:root {
  --bg: #f5f1e8;
  --surface: rgba(255, 252, 246, 0.88);
  --surface-strong: #fffdfa;
  --line: rgba(49, 58, 43, 0.08);
  --text: #1e241d;
  --muted: #5f6b59;
  --accent: #1f6f5f;
  --accent-strong: #11483d;
  --secondary: #d98f3d;
  --danger: #ad3a2d;
  --shadow: 0 10px 28px rgba(34, 44, 31, 0.06);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --card-radius: 12px;
  --title-size: 0.8rem;
  --meta-size: 0.72rem;
  --button-size: 0.8rem;
  --button-height: 34px;
  --button-padding-x: 12px;
  --session-action-width: 118px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 143, 61, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(31, 111, 95, 0.18), transparent 24%),
    linear-gradient(180deg, #f7f2e7 0%, #f0eadf 100%);
}

body.booking-screen {
  --bg: #f4efe5;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --line: #dfe7e3;
  --text: #112126;
  --muted: #687478;
  --accent: #006c63;
  --accent-strong: #004c47;
  --accent-soft: #dff0ec;
  --shadow: 0 18px 50px rgba(29, 40, 35, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 108, 99, 0.1), transparent 28rem),
    var(--bg);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

a,
[role="button"],
[tabindex]:not([tabindex="-1"]) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 40px;
}

.booking-screen .page-shell {
  width: min(1280px, calc(100vw - 48px));
  padding: 24px 0 44px;
}

.booking-screen .layout {
  gap: 24px;
}

.page-shell--auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.auth-layout {
  width: min(560px, 100%);
}

.auth-panel {
  padding: 20px;
}

.auth-panel__heading {
  margin-bottom: 16px;
}

.auth-panel__title {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form__actions {
  justify-content: space-between;
}

.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-label {
  margin: 0 0 6px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 800;
}

.panel h2,
.empty-state h3 {
  margin: 0;
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.hero {
  margin-bottom: 6px;
}

.hero__content--compact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
}

.hero__actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.hero__title h1 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.05;
}

.hero__meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero__action {
  min-width: 190px;
}

.hero--admin .hero__content--compact {
  align-items: end;
  gap: 8px 12px;
}

.hero--admin .hero__title h1 {
  font-size: var(--title-size);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-strong);
}

.hero--admin .hero__meta {
  margin: 2px 0 0;
  font-size: var(--meta-size);
  font-weight: 700;
  color: var(--muted);
}

.hero--admin .hero__actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

.hero--admin .hero__action {
  min-width: 88px;
  min-height: var(--button-height);
  padding: 7px var(--button-padding-x);
  font-size: var(--button-size);
  font-weight: 700;
  line-height: 1.1;
  border-radius: 999px;
}

.admin-session-panel {
  margin-bottom: 6px;
}

.admin-session-panel.panel--subtle {
  padding: 4px 8px 3px;
  min-height: 88px;
}

.session-top-card--admin .session-top-card__value {
  color: var(--accent-strong);
}

.session-top-card--admin .session-top-card__label {
  color: var(--accent-strong);
}

.panel {
  padding: 16px;
  border-radius: 20px;
}

.panel--highlight {
  background: rgba(255, 252, 246, 0.76);
}

.panel--wide {
  grid-column: 1 / -1;
}

.panel--calendar {
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(31, 111, 95, 0.14);
  box-shadow: 0 18px 50px rgba(29, 40, 35, 0.12);
}

#calendarView {
  touch-action: pan-y;
}

.panel--subtle {
  padding: 8px 12px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.52);
}

#sessionPanel.panel--subtle {
  padding: 4px 8px 3px;
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(49, 58, 43, 0.06);
  min-height: 88px;
}

.panel__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(49, 58, 43, 0.08);
}

.panel__heading--tight {
  margin-bottom: 8px;
  align-items: flex-start;
}

.calendar-heading {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

.booking-page-heading,
.resource-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.booking-page-heading {
  margin-bottom: 28px;
}

.booking-page-heading h1,
.resource-bar h2 {
  margin: 0 0 4px;
  letter-spacing: 0;
}

.booking-page-heading h1 {
  font-size: clamp(1.8rem, 4vw, 2.25rem);
}

.booking-page-heading p,
.resource-bar p,
.helper-text {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.resource-bar {
  margin: 28px 0 22px;
}

.resource-bar h2 {
  font-size: 1.45rem;
}

.resource-bar p {
  color: var(--accent-strong);
}

.helper-text {
  display: inline-flex;
  align-items: center;
  max-width: 320px;
  text-align: right;
}

.booking-screen .panel--calendar {
  padding: 28px;
  border-radius: 18px;
}

.booking-screen .booking-page-heading {
  margin-bottom: 28px;
  align-items: flex-start;
}

.booking-screen .booking-page-heading h1 {
  margin-bottom: 4px;
  color: var(--text);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.05;
  font-weight: 850;
}

.booking-screen .booking-page-heading p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.booking-screen .period-toolbar__nav {
  gap: 10px;
}

.booking-screen .period-toolbar__calendar,
.booking-screen .period-toolbar__today,
.booking-screen .period-toolbar__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--accent-strong);
  box-shadow: none;
  font-size: 15px;
  font-weight: 750;
}

.booking-screen .period-toolbar__calendar {
  width: 48px;
  padding: 0;
}

.booking-screen .period-toolbar__today {
  padding: 0 18px;
}

.booking-screen .period-toolbar__arrow {
  padding: 0;
  font-size: 28px;
  line-height: 1;
}

.booking-screen .period-toolbar__arrow--primary {
  background: #d7ebe6;
  border-color: #bdd9d2;
}

.booking-screen .period-toolbar__calendar:hover,
.booking-screen .period-toolbar__today:hover,
.booking-screen .period-toolbar__arrow:hover {
  border-color: rgba(0, 108, 99, 0.36);
  background: #f8faf8;
}

.booking-screen .ui-icon,
.booking-screen .period-toolbar__calendar svg {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-screen .calendar-tabs {
  gap: 8px;
  margin: 0 0 26px;
  border-bottom: 1px solid var(--line);
}

.booking-screen .calendar-tabs .button,
.booking-screen .calendar-tabs .button--small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 160px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  background: #fff;
  color: var(--accent-strong);
  box-shadow: none;
  font-size: 16px;
  font-weight: 750;
}

.booking-screen .calendar-tabs .button span,
.booking-screen .calendar-tabs .button--small span,
.calendar-more-tab span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-screen .calendar-tabs .button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: none;
}

.calendar-more-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 120px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  background: #fff;
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
}

.calendar-more-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.calendar-more-tab select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.booking-screen .resource-bar {
  margin: 0 0 22px;
  align-items: flex-start;
}

.booking-screen .resource-bar h2 {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 24px;
  font-weight: 850;
}

.booking-screen .resource-bar p,
.booking-screen .helper-text {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.booking-screen .helper-text {
  color: var(--accent-strong);
  font-weight: 750;
}

.period-toolbar__period {
  display: grid;
  gap: 2px;
  width: 100%;
}

.period-label__main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.period-label__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.period-label__title {
  min-width: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.period-label__title--with-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.period-label__title--with-info span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-info-button {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(31, 111, 95, 0.18);
  border-radius: 50%;
  color: var(--accent-strong);
  background: rgba(255, 253, 250, 0.9);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.calendar-info-button:hover {
  border-color: rgba(31, 111, 95, 0.34);
  background: rgba(31, 111, 95, 0.09);
}

.period-label__subtitle {
  color: var(--accent-strong);
  font-size: var(--title-size);
  font-weight: 700;
  line-height: 1.15;
}

.period-label__meta {
  color: var(--muted);
  font-size: var(--meta-size);
  font-weight: 700;
  line-height: 1.2;
}

.period-label__session {
  min-width: 0;
  color: var(--text);
  text-align: right;
}

.period-label__session strong {
  display: block;
  max-width: 320px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-toolbar__nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.calendar-controls {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}

.period-toolbar__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(49, 58, 43, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(34, 44, 31, 0.06);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.period-toolbar__today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(31, 111, 95, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-strong);
  box-shadow: 0 4px 14px rgba(34, 44, 31, 0.06);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.period-toolbar__arrow:hover {
  background: rgba(255, 255, 255, 0.94);
}

.period-toolbar__today:hover {
  background: rgba(255, 255, 255, 0.94);
}

.period-toolbar__arrow--primary {
  background: rgba(31, 111, 95, 0.14);
  color: var(--accent-strong);
  border-color: rgba(31, 111, 95, 0.12);
}

.period-toolbar__arrow--primary:hover {
  background: rgba(31, 111, 95, 0.18);
}

.badge {
  background: rgba(31, 111, 95, 0.08);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.78rem;
}

.form-grid,
.compact-form,
.filters {
  display: grid;
  gap: 14px;
}

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

.form-grid__full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 111, 95, 0.18);
  border-color: rgba(31, 111, 95, 0.36);
}

.compact-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: rgba(30, 36, 29, 0.08);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(30, 36, 29, 0.14);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
}

.button--danger {
  background: rgba(173, 58, 45, 0.1);
  color: var(--danger);
}

.button--ghost {
  border: 1px solid rgba(49, 58, 43, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.9);
}

.button--small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.feedback {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
}

.session-top-card,
.my-booking-card {
  display: grid;
  gap: 8px;
}

.session-top-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 5px 10px;
  align-items: end;
  min-height: 70px;
}

.session-top-card--identity {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 16px;
  min-height: 74px;
}

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

.session-avatar {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f6f5f, #00615a);
  color: #fffdfa;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.12);
}

.session-identity__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.session-identity__title,
.session-identity__subtitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-identity__title {
  color: var(--accent-strong);
  font-size: 1.05rem;
  font-weight: 800;
}

.session-identity__subtitle {
  color: var(--muted);
  font-weight: 700;
}

.session-top-card__label,
.session-top-card__value {
  min-width: 0;
}

.session-top-card__guest-heading {
  grid-column: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: min(100%, 50%);
  min-width: 0;
}

.session-top-card__guest-heading .session-top-card__label {
  align-self: baseline;
}

.session-top-card__label {
  align-self: end;
  font-size: var(--title-size);
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-top-card__value {
  justify-self: end;
  text-align: right;
  font-size: var(--title-size);
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-top-card--identity .session-top-card__value {
  justify-self: end;
  max-width: 260px;
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.session-top-card__control {
  margin: 0;
  min-width: 0;
}

.session-recovery-link {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  opacity: 0.5;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.session-recovery-link:hover,
.session-recovery-link:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

.pin-recovery-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.session-top-card__control--left {
  justify-self: stretch;
}

.session-top-card--guest .session-top-card__control--left {
  width: min(100%, 50%);
}

.session-top-card--auth .session-top-card__control--left {
  width: auto;
  justify-self: center;
}

.session-top-card--auth .session-top-card__control--right {
  width: var(--session-action-width);
  margin-left: auto;
}

.session-top-card__control--right {
  display: flex;
  justify-content: flex-end;
  justify-self: stretch;
}

.session-top-card__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  flex-wrap: nowrap;
}

.session-top-card__spacer {
  display: inline-block;
  width: var(--session-action-width);
  height: var(--button-height);
}

#sessionPanel input,
#sessionPanel select {
  min-height: var(--button-height);
  padding: 5px 11px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.78);
}

#sessionPanel .button,
#sessionPanel .button--small {
  min-height: var(--button-height);
  padding: 7px var(--button-padding-x);
  font-size: var(--button-size);
  font-weight: 700;
  line-height: 1.1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(49, 58, 43, 0.06);
  color: var(--accent-strong);
  box-shadow: none;
  transition: background 150ms ease, transform 150ms ease;
}

#sessionPanel .button:hover,
#sessionPanel .button--small:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: none;
}

#sessionPanel .button--primary {
  background: rgba(31, 111, 95, 0.12);
  color: var(--accent-strong);
}

#sessionPanel .button--primary:hover {
  background: rgba(31, 111, 95, 0.18);
}

.session-top-card .button,
.session-top-card .button--small {
  min-width: var(--session-action-width);
  width: var(--session-action-width);
  justify-content: center;
}

.session-top-card__control--right > .button,
.session-top-card__control--right > .button--small,
.session-top-card__actions > .button,
.session-top-card__actions > .button--small,
.session-top-card__actions > .session-card__action-link {
  width: var(--session-action-width);
  flex: 0 0 var(--session-action-width);
  white-space: nowrap;
}

.session-card__action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.booking-screen #sessionPanel,
.booking-screen .panel--calendar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 108, 99, 0.18);
  box-shadow: var(--shadow);
}

.booking-screen #sessionPanel {
  padding: 16px 22px;
  border-radius: 18px;
}

.booking-screen .session-top-card--identity {
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 24px;
  min-height: 54px;
}

.booking-screen .session-avatar {
  flex-basis: 52px;
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  font-size: 20px;
}

.booking-screen .session-identity__title {
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 800;
}

.booking-screen .session-identity__subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.booking-screen .session-top-card--identity .session-top-card__value {
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 800;
}

.booking-screen .session-top-card__actions {
  gap: 12px;
}

.booking-screen #sessionPanel .button,
.booking-screen #sessionPanel .button--small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 750;
}

.booking-screen #sessionPanel .button:hover,
.booking-screen #sessionPanel .button--small:hover {
  border-color: rgba(0, 108, 99, 0.36);
  background: #f8faf8;
}

.session-login-form .feedback {
  grid-column: 1 / -1;
  align-self: center;
  font-size: 0.74rem;
}

.session-login-form .session-card__title {
  font-size: 0.78rem;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden.period-toolbar__period {
  width: 1px;
}

.my-booking-panel {
  margin: 14px 0 18px;
}

.my-booking-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(248, 250, 248, 0.92);
}

.my-booking-card.is-empty {
  background: rgba(30, 36, 29, 0.04);
  border-color: rgba(49, 58, 43, 0.08);
}

.booking-panel__feedback {
  color: var(--accent-strong);
  font-size: 0.78rem;
  line-height: 1.2;
}

.booking-panel__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 228px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.booking-panel__item {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 111, 95, 0.12);
}

.booking-panel__item--button {
  width: auto;
  color: var(--accent-strong);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.booking-panel__item--button:hover,
.booking-panel__item--button:focus-visible {
  background: rgba(31, 111, 95, 0.18);
  text-decoration: underline;
  outline: 0;
}

.booking-panel__item:first-child {
  border-top: 0;
}

.booking-panel__line {
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--accent-strong);
}

.booking-panel__line strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-panel__line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.booking-panel__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.booking-panel__remove {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(173, 58, 45, 0.1);
  color: var(--danger);
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.booking-panel__remove--text {
  width: auto;
  min-width: 78px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.booking-panel__remove:hover {
  background: rgba(173, 58, 45, 0.16);
}

.chip-list,
.resource-list,
.booking-list {
  display: grid;
  gap: 12px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list--rows {
  gap: 8px;
}

.admin-subsection {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-subsection__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.admin-subsection__head h3 {
  margin: 0 0 4px;
  font-size: var(--title-size);
  font-weight: 700;
  color: var(--accent-strong);
}

.member-entry-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 420px;
  margin: 16px 0 10px;
}

.member-entry-option {
  min-width: 0;
}

.member-entry-option__actions {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.member-entry-option__actions .button {
  flex: 0 1 340px;
  width: auto;
  min-width: 0;
}

.member-entry-import-text {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin: 0 0 14px;
  padding-left: 2px;
}

.member-entry-import-text[hidden] {
  display: none;
}

.member-entry-help-button {
  flex: 0 0 38px;
  width: 38px;
  min-height: 38px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 50%;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.member-entry-help-button:hover,
.member-entry-help-button:focus-visible {
  background: rgba(31, 111, 95, 0.08);
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.member-entry-help-content {
  display: grid;
  gap: 10px;
}

.member-entry-help-content p {
  margin: 0;
}

.member-entry-help-example {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(31, 111, 95, 0.06);
  color: var(--text);
  font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre;
}

.member-entry-option p {
  margin: 7px 2px 0;
  color: var(--muted);
  font-size: var(--meta-size);
}

.member-list-heading {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.member-pin-settings {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(31, 111, 95, 0.04);
}

.member-pin-settings .field-help {
  margin: -2px 0 2px;
}

.member-pin-settings .checkbox-field {
  margin: 4px 0 0;
}

.form-actions__group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.admin-toolbar__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-day-block-form {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-day-block-form label {
  display: grid;
  gap: 6px;
  font-size: var(--meta-size);
  min-width: 0;
  overflow: hidden;
}

.admin-day-block-form input,
.admin-day-block-form select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 11px 13px;
}

.admin-day-block-form input[type="date"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  -webkit-appearance: none;
  appearance: none;
}

#customerPanel .panel__heading {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

#customerPanel .panel__heading h2 {
  margin: 0;
}

#customerPanel .form-grid {
  gap: 10px;
}

#customerPanel label {
  gap: 6px;
  font-size: var(--meta-size);
}

#customerPanel input,
#customerPanel select {
  padding: 11px 13px;
}

#customerPanel .admin-toolbar {
  gap: 10px;
}

#customerPanel .admin-toolbar__actions {
  align-items: center;
}

#customerPanel .button,
#customerPanel .button--small {
  padding: 11px 14px;
}

#customerPanel .form-actions {
  gap: 8px;
}

#customerPanel .feedback {
  font-size: 0.76rem;
}

.admin-form-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.chip-list {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.chip,
.resource-card,
.booking-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  background: var(--surface-strong);
}

.admin-card,
.admin-list-head {
  font-size: var(--meta-size);
}

.admin-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-card--calendar {
  position: relative;
  display: grid;
  gap: 14px;
  padding-right: 52px;
}

.admin-card--empty {
  justify-content: flex-start;
  border-style: dashed;
  background: rgba(30, 36, 29, 0.03);
}

.admin-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-card__actions--calendar {
  justify-content: flex-start;
}

.admin-list-head {
  display: none;
}

.admin-list-head--three {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px;
  gap: 10px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-list-head--three span:nth-child(2),
.admin-list-head--three span:nth-child(3) {
  text-align: center;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-row--three {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px;
  align-items: center;
}

.admin-row__primary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.admin-row__primary--stacked {
  display: grid;
  gap: 2px;
  align-items: start;
}

.admin-row__primary strong {
  min-width: 0;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-row__primary span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  cursor: pointer;
  justify-self: center;
  width: 44px;
  text-align: center;
}

.admin-text-link:hover {
  color: var(--accent);
}

.admin-delete-link {
  border: 0;
  padding: 0;
  width: 28px;
  height: 28px;
  justify-self: center;
  background: transparent;
  color: var(--danger);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-delete-link:hover {
  color: #8f2218;
}

.admin-delete-button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(173, 58, 45, 0.1);
  color: var(--danger);
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-delete-button:hover {
  background: rgba(173, 58, 45, 0.16);
}

.admin-delete-button--corner {
  position: absolute;
  top: 14px;
  right: 14px;
}

.chip strong,
.resource-card strong,
.booking-card strong {
  display: block;
  margin-bottom: 4px;
}

.resource-meta,
.booking-meta {
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.filters {
  grid-template-columns: repeat(4, minmax(0, 150px));
  align-items: end;
  gap: 10px;
}

.booking-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.booking-card {
  position: relative;
  overflow: hidden;
}

.booking-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}

.booking-card.cancelled::before {
  background: var(--danger);
}

.booking-card__head,
.booking-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.booking-card__head {
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill.active {
  background: rgba(31, 111, 95, 0.12);
  color: var(--accent-strong);
}

.status-pill.cancelled {
  background: rgba(173, 58, 45, 0.12);
  color: var(--danger);
}

.empty-state {
  padding: 28px 14px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
}

.calendar-view {
  display: none;
  gap: 12px;
  margin-bottom: 8px;
  --swipe-offset: 0px;
  overflow-x: hidden;
  transform: translate3d(var(--swipe-offset), 0, 0);
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
  transform-origin: center center;
}

.calendar-view.is-visible {
  display: grid;
}

.calendar-view.is-swiping {
  filter: blur(1.8px);
  opacity: 0.9;
  will-change: transform, filter, opacity;
}

.calendar-view.is-swipe-settling {
  filter: blur(0);
  opacity: 1;
}

.calendar-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 0;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}

.calendar-tabs .button,
.calendar-tabs .button--small {
  width: auto;
  min-width: 160px;
  max-width: min(260px, 100%);
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-strong);
  box-shadow: none;
  transform: none;
  margin-bottom: -1px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
}

.calendar-tabs .button:hover,
.calendar-tabs .button--small:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(31, 111, 95, 0.3);
  transform: none;
}

.calendar-tabs .button--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.calendar-tabs .button--primary:hover {
  background: var(--accent-strong);
}

.week-grid,
.month-grid {
  display: grid;
  gap: 12px;
}

.week-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
}

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

.calendar-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.calendar-day {
  display: grid;
  gap: 8px;
  min-height: 0;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  scroll-snap-align: start;
}

.calendar-day--week {
  grid-template-rows: 22px repeat(var(--slot-count, 6), minmax(46px, auto));
}

.calendar-day--month {
  grid-template-rows: auto auto;
}

.calendar-day.is-muted {
  opacity: 0.45;
}

.calendar-day.is-today {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.calendar-day__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 850;
  color: var(--accent-strong);
}

.calendar-day__label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day__bookings {
  display: grid;
  gap: 8px;
}

.calendar-pill {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(31, 111, 95, 0.08);
  border: 1px solid rgba(31, 111, 95, 0.12);
  font-size: 0.84rem;
  line-height: 1.35;
}

.calendar-pill.cancelled {
  background: rgba(173, 58, 45, 0.08);
  border-color: rgba(173, 58, 45, 0.14);
}

.calendar-pill strong {
  display: block;
  margin-bottom: 2px;
}

.calendar-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.calendar-legend__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legend-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(30, 36, 29, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
}

.slot-list {
  display: grid;
  gap: 8px;
}

.slot-card {
  position: relative;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.slot-card__marker {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  cursor: pointer;
  z-index: 2;
}

.slot-card__marker--amber {
  background: #d98f3d;
}

.slot-card__marker--red {
  background: #ad3a2d;
}

.slot-card__marker--blue {
  background: #2c6ea8;
}

.slot-card.is-clickable {
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.slot-card.is-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(34, 44, 31, 0.08);
  border-color: var(--accent);
}

.slot-card__head {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-strong);
  line-height: 1.08;
}

.slot-card.is-empty {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
}

.slot-card.is-past {
  cursor: not-allowed;
  opacity: 0.48;
  background: rgba(30, 36, 29, 0.06);
  border-color: rgba(49, 58, 43, 0.06);
  color: rgba(95, 107, 89, 0.72);
}

.slot-card.is-past .slot-card__head {
  color: rgba(95, 107, 89, 0.72);
}

.slot-card.is-mobile {
  min-height: 46px;
}

.slot-card.is-cancelled {
  background: rgba(173, 58, 45, 0.08);
  border-color: rgba(173, 58, 45, 0.14);
}

.slot-card.user-color-0 {
  background: rgba(31, 111, 95, 0.12);
  border-color: rgba(31, 111, 95, 0.22);
}

.slot-card.user-color-1 {
  background: rgba(31, 111, 95, 0.12);
  border-color: rgba(31, 111, 95, 0.22);
}

.slot-card.user-color-2 {
  background: rgba(31, 111, 95, 0.12);
  border-color: rgba(31, 111, 95, 0.22);
}

.slot-card.user-color-3 {
  background: rgba(31, 111, 95, 0.12);
  border-color: rgba(31, 111, 95, 0.22);
}

.slot-card.is-current-user {
  background: rgba(31, 111, 95, 0.16);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  transform: translateY(-1px);
}

.slot-card.is-current-user::after {
  content: none;
}

.slot-card__status {
  display: block;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-screen .my-booking-panel {
  margin: 22px 0 26px;
}

.booking-screen .my-booking-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faf8;
}

.booking-screen .my-booking-card .section-label {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.booking-screen .booking-panel__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.booking-screen .booking-panel__item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: auto;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.1;
}

.booking-screen .booking-panel__item span {
  color: var(--accent-strong);
  font-weight: 500;
}

.booking-screen .booking-panel__item--button:hover,
.booking-screen .booking-panel__item--button:focus-visible {
  background: #cfe8e1;
  text-decoration: underline;
}

.booking-screen .calendar-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.booking-screen .week-grid {
  grid-template-columns: repeat(var(--visible-days, 7), minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.booking-screen .calendar-day {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.booking-screen .calendar-day--week {
  grid-template-rows: 22px repeat(var(--slot-count, 6), var(--slot-row-height, 54px));
}

.booking-screen .calendar-day.is-today {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.booking-screen .calendar-day.is-closed {
  background: rgba(247, 247, 245, 0.74);
}

.booking-screen .calendar-day__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 850;
}

.booking-screen .calendar-day__label em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.booking-screen .slot-list {
  display: contents;
}

.booking-screen .slot-card {
  display: flex;
  align-items: center;
  min-height: var(--slot-row-height, 54px);
  height: var(--slot-row-height, 54px);
  margin-bottom: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: none;
  transform: none;
}

.booking-screen .slot-card.is-empty {
  background: #fff;
  border-color: var(--line);
}

.booking-screen .slot-card.is-past {
  opacity: 0.42;
  background: #f2f2f1;
  border-color: rgba(223, 231, 227, 0.72);
}

.booking-screen .slot-card.is-booked,
.booking-screen .slot-card.user-color-0,
.booking-screen .slot-card.user-color-1,
.booking-screen .slot-card.user-color-2,
.booking-screen .slot-card.user-color-3 {
  background: var(--accent-soft);
  border-color: #b8ddd5;
  color: var(--accent-strong);
}

.booking-screen .slot-card.is-current-user {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.booking-screen .slot-card.is-clickable:hover {
  border-color: var(--accent);
  box-shadow: none;
  transform: none;
}

.booking-screen .slot-card__head {
  gap: 2px;
  width: 100%;
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.08;
}

.booking-screen .slot-card__status,
.booking-screen .slot-card__owner {
  display: block;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-screen .slot-card__owner {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
}

.calendar-bottom-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  color: var(--muted);
  font-weight: 700;
}

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

.legend-box {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.legend-box--booked {
  background: rgba(31, 111, 95, 0.12);
  border-color: rgba(31, 111, 95, 0.22);
}

.legend-box--selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.calendar-bottom-legend__note {
  margin-left: 12px;
}

.booking-dialog {
  width: min(430px, calc(100% - 28px));
  border: 1px solid rgba(49, 58, 43, 0.06);
  border-radius: 28px;
  padding: 0;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 32px 72px rgba(20, 24, 19, 0.18);
}

#calendarDialog {
  width: min(660px, calc(100% - 32px));
  max-height: min(90dvh, 900px);
  overflow-y: auto;
}

.booking-dialog::backdrop {
  background: rgba(18, 24, 20, 0.32);
  backdrop-filter: blur(8px);
}

.booking-dialog__form {
  display: grid;
  gap: 14px;
  padding: 26px 24px 22px;
}

.booking-dialog__header {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-right: 42px;
}

.booking-dialog__header .section-label {
  margin-bottom: 4px;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
}

.booking-dialog__header h2 {
  font-size: 1.28rem;
  line-height: 1.05;
  font-weight: 800;
}

.booking-dialog .booking-meta {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.booking-dialog label {
  gap: 6px;
  color: var(--text);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.booking-dialog .field-help {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.booking-dialog-section {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 111, 95, 0.12);
  border-radius: 14px;
  background: rgba(31, 111, 95, 0.04);
}

.booking-dialog-section__head {
  display: grid;
  gap: 2px;
}

.booking-dialog-section__head h3 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 800;
}

.booking-dialog-section--booking {
  background: rgba(31, 111, 95, 0.03);
}

.booking-dialog-section--drift {
  background: rgba(31, 111, 95, 0.06);
}

.booking-dialog-section__actions {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding-top: 2px;
}

.issue-marker-controls {
  display: grid;
  gap: 8px;
}

.issue-marker-controls[hidden] {
  display: none !important;
}

.issue-marker-controls .section-label {
  margin: 0;
}

.issue-marker-controls .button--small {
  width: fit-content;
}

.issue-marker-controls__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.calendar-form-group {
  display: grid;
  gap: 12px;
  padding: 14px 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(49, 58, 43, 0.08);
  background: rgba(255, 255, 255, 0.42);
}

.calendar-form-group--locked {
  background: rgba(31, 111, 95, 0.04);
  border-color: rgba(31, 111, 95, 0.12);
}

.calendar-form-group__label {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.calendar-form-group--locked .calendar-form-group__label {
  color: var(--muted);
}

.calendar-form-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-form-group label {
  margin: 0;
}

.weekday-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.weekday-picker legend {
  width: 100%;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.weekday-picker label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(31, 111, 95, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.weekday-picker input {
  width: 16px;
  height: 16px;
}

.calendar-rule-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  border: 1px solid rgba(31, 111, 95, 0.18);
  border-radius: 999px;
  background: rgba(31, 111, 95, 0.1);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.calendar-rule-toggle[aria-expanded="true"] {
  background: rgba(31, 111, 95, 0.18);
}

.calendar-rule-popover {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(31, 111, 95, 0.12);
  background: rgba(31, 111, 95, 0.08);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

.calendar-form-group--locked .calendar-rule-popover {
  background: rgba(31, 111, 95, 0.06);
  color: var(--muted);
}

.booking-dialog .checkbox-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 4px 2px 0;
  color: var(--text);
}

.booking-dialog .checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  align-self: start;
}

.booking-dialog .checkbox-field span {
  display: block;
  line-height: 1.35;
}

.booking-dialog input {
  padding: 16px 16px;
  border-radius: 18px;
  border-color: rgba(49, 58, 43, 0.08);
  background: rgba(248, 245, 238, 0.96);
  font-size: 16px;
  font-weight: 700;
}

.booking-dialog input[type="date"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
}

.booking-dialog select {
  font-size: 16px;
}

.booking-dialog input::placeholder {
  color: rgba(95, 107, 89, 0.72);
}

.booking-dialog .button--primary {
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 22px rgba(17, 72, 61, 0.18);
}

.booking-dialog .button--primary:disabled,
.booking-dialog .button--primary[data-busy="true"] {
  position: relative;
  background: linear-gradient(135deg, #257160, #11483d);
  color: #fff;
  opacity: 1;
  cursor: wait;
  box-shadow: 0 8px 16px rgba(17, 72, 61, 0.14);
}

.booking-dialog .button--primary:disabled:hover,
.booking-dialog .button--primary[data-busy="true"]:hover {
  transform: none;
  background: linear-gradient(135deg, #257160, #11483d);
}

.booking-dialog .button--primary[data-busy="true"] {
  padding-right: 44px;
}

.booking-dialog .button--primary[data-busy="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 999px;
  animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.booking-dialog__close {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(173, 58, 45, 0.14);
  color: var(--danger);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.booking-dialog__close:hover {
  background: rgba(173, 58, 45, 0.22);
}

.booking-dialog__notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(31, 111, 95, 0.08);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: pre-line;
}

.booking-dialog__notice[data-tone="danger"] {
  background: rgba(173, 58, 45, 0.1);
  color: var(--danger);
}

.booking-dialog__notice[data-tone="success"] {
  background: rgba(31, 111, 95, 0.14);
  color: var(--accent-strong);
}

.booking-dialog--info .booking-dialog__form {
  gap: 10px;
}

.privacy-notice-dialog .booking-dialog__form {
  gap: 8px;
}

.privacy-notice-dialog .booking-dialog__header h2 {
  font-size: 1.12rem;
}

.privacy-notice-dialog .booking-dialog__header .section-label {
  font-size: 0.6rem;
}

.privacy-notice-dialog .booking-meta,
.privacy-notice-dialog .booking-dialog__notice {
  font-size: 0.82rem;
  line-height: 1.3;
}

.privacy-notice-dialog .button--primary {
  min-height: 44px;
  padding: 11px 14px;
  font-size: 0.9rem;
}

.booking-dialog .form-actions {
  gap: 10px;
}

.booking-dialog .feedback {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.admin-summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.admin-summary::-webkit-details-marker {
  display: none;
}

details[open] .admin-summary {
  margin-bottom: 12px;
}

@media (max-width: 1040px) {
  .calendar-view {
    overflow-x: auto;
  }

  .week-grid {
    grid-template-columns: repeat(7, minmax(132px, 1fr));
    min-width: max-content;
  }

  .booking-screen .calendar-view,
  .booking-screen .calendar-scroll {
    overflow-x: hidden;
  }

  .booking-screen .week-grid {
    grid-template-columns: repeat(var(--visible-days, 5), minmax(0, 1fr));
    min-width: 0;
  }

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

@media (min-width: 900px) and (max-width: 1366px) and (orientation: landscape) {
  .page-shell {
    width: min(1340px, calc(100% - 24px));
  }

  .booking-screen .page-shell {
    padding-top: 6px;
  }

  .booking-screen .layout {
    gap: 8px;
  }

  .panel--calendar {
    padding: 18px;
  }

  .booking-screen .panel--calendar {
    padding: 12px 16px;
  }

  .booking-screen .booking-page-heading {
    margin-bottom: 8px;
    align-items: center;
  }

  .booking-screen .booking-page-heading h1 {
    margin-bottom: 0;
    font-size: 24px;
  }

  .booking-screen .booking-page-heading p {
    display: none;
  }

  .booking-screen .period-toolbar__today,
  .booking-screen .period-toolbar__arrow {
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 10px;
    font-size: 14px;
  }

  .booking-screen .calendar-tabs {
    margin: 0 0 8px;
  }

  .booking-screen .calendar-tabs .button,
  .booking-screen .calendar-tabs .button--small,
  .booking-screen .calendar-more-tab {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .booking-screen .resource-bar {
    margin-bottom: 6px;
  }

  .booking-screen .resource-bar h2 {
    margin-bottom: 0;
    font-size: 20px;
  }

  .booking-screen .resource-bar p {
    display: none;
  }

  .booking-screen .my-booking-panel {
    margin: 6px 0 8px;
  }

  .booking-screen .my-booking-card {
    padding: 8px 10px;
  }

  .booking-screen .my-booking-card .section-label {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .booking-screen .booking-panel__item {
    padding: 5px 9px;
    font-size: 11px;
  }

  .booking-screen .my-booking-panel:has(.my-booking-card.is-empty) {
    display: none;
  }

  .calendar-view,
  .week-grid {
    gap: 10px;
  }

  .calendar-day {
    padding: 10px;
  }

  .calendar-day__bookings {
    gap: 9px;
  }

  .slot-card {
    padding: 8px 9px;
  }

  .slot-card__head {
    font-size: 0.78rem;
  }

  .booking-screen .calendar-day--week {
    grid-template-rows: 17px repeat(var(--slot-count, 6), minmax(26px, 4.8vh));
  }

  .booking-screen .slot-card {
    min-height: 26px;
    height: min(34px, 4.8vh);
    padding: 3px 6px;
  }

  .booking-screen .slot-card__head {
    font-size: 11px;
  }

  .booking-screen .slot-card__owner {
    font-size: 10px;
  }
}

@media (min-width: 761px) and (max-width: 899px) {
  .booking-screen .page-shell {
    width: min(100% - 20px, 860px);
    padding-top: 6px;
  }

  .booking-screen .layout {
    gap: 8px;
  }

  .booking-screen #sessionPanel,
  .booking-screen .panel--calendar {
    padding: 12px;
    border-radius: 14px;
  }

  .booking-screen .session-top-card--identity {
    min-height: 42px;
    gap: 10px;
  }

  .booking-screen .session-avatar {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .booking-screen .session-identity__title {
    font-size: 15px;
  }

  .booking-screen .session-identity__subtitle {
    font-size: 12px;
  }

  .booking-screen #sessionPanel .button,
  .booking-screen #sessionPanel .button--small,
  .booking-screen #sessionPanel .session-card__action-link {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .booking-screen .booking-page-heading {
    margin-bottom: 8px;
    align-items: center;
  }

  .booking-screen .booking-page-heading h1 {
    margin-bottom: 0;
    font-size: 24px;
  }

  .booking-screen .booking-page-heading p {
    display: none;
  }

  .booking-screen .period-toolbar__today,
  .booking-screen .period-toolbar__arrow {
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 10px;
    font-size: 14px;
  }

  .booking-screen .calendar-tabs {
    margin: 0 -12px 8px;
    padding: 0 12px;
  }

  .booking-screen .calendar-tabs .button,
  .booking-screen .calendar-tabs .button--small,
  .booking-screen .calendar-more-tab {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .booking-screen .resource-bar {
    margin-bottom: 6px;
  }

  .booking-screen .resource-bar h2 {
    margin-bottom: 0;
    font-size: 20px;
  }

  .booking-screen .resource-bar p {
    display: none;
  }

  .booking-screen .my-booking-panel {
    margin: 6px 0 8px;
  }

  .booking-screen .my-booking-card {
    padding: 8px 10px;
    border-radius: 12px;
  }

  .booking-screen .my-booking-card .section-label {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .booking-screen .booking-panel__list {
    gap: 5px;
  }

  .booking-screen .booking-panel__item {
    padding: 5px 9px;
    font-size: 11px;
  }

  .booking-screen .my-booking-panel:has(.my-booking-card.is-empty) {
    display: none;
  }

  .booking-screen .calendar-scroll {
    margin: 0;
    padding: 0 0 4px;
    overflow-x: visible;
  }

  .booking-screen .week-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .booking-screen .calendar-day {
    padding: 7px;
    gap: 4px;
  }

  .booking-screen .calendar-day--week {
    grid-template-rows: 17px repeat(var(--slot-count, 6), minmax(26px, 4.7vh));
  }

  .booking-screen .calendar-day__label {
    font-size: 12px;
  }

  .booking-screen .slot-card {
    min-height: 26px;
    height: min(34px, 4.7vh);
    padding: 3px 6px;
  }

  .booking-screen .slot-card__head {
    font-size: 11px;
    line-height: 1.02;
  }

  .booking-screen .slot-card__owner {
    margin-top: 1px;
    font-size: 10px;
  }

  .booking-screen .calendar-bottom-legend {
    display: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 10px;
  }

  .hero__content--compact {
    padding: 0;
  }

  .hero--admin .hero__content--compact {
    align-items: start;
  }

  .hero--admin .hero__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-session-panel {
    margin-bottom: 4px;
  }

  .hero__title h1 {
    font-size: 1.02rem;
  }

  .panel {
    padding: 14px;
    border-radius: 16px;
  }

  .form-grid,
  .compact-form,
  .compact-form--double,
  .filters,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .session-top-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .session-top-card--identity {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
  }

  .session-identity {
    align-items: flex-start;
  }

  .session-avatar {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .session-top-card--identity .session-top-card__value {
    display: none;
  }

  .session-top-card--identity .session-top-card__control--left,
  .session-top-card--identity .session-top-card__control--right {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }

  .session-top-card--identity .session-top-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .session-top-card--identity .session-top-card__actions > .button,
  .session-top-card--identity .session-top-card__actions > .button--small,
  .session-top-card--identity .session-top-card__actions > .session-card__action-link,
  .session-top-card--identity .session-top-card__control--right > .button {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  .session-top-card__label {
    grid-column: 1;
  }

  .session-top-card__value {
    grid-column: 2;
    justify-self: end;
  }

  .session-top-card__control--left {
    grid-column: 1;
  }

  .session-top-card__control--right {
    grid-column: 2;
    justify-self: end;
  }

  .session-top-card .feedback {
    grid-column: 1 / -1;
  }

  .stat-card {
    padding: 6px 8px;
    border-radius: 10px;
  }

  .stat-card strong {
    font-size: 0.95rem;
    margin-bottom: 0;
  }

  .stat-card span {
    font-size: 0.74rem;
    line-height: 1.15;
  }

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

  .calendar-heading {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  .period-label__title {
    font-size: 0.9rem;
  }

  .period-label__subtitle {
    font-size: 0.82rem;
  }

  .period-label__meta {
    font-size: 0.76rem;
  }

  .period-toolbar__period {
    width: 100%;
  }

  .period-label__session strong {
    max-width: 170px;
    font-size: 0.9rem;
    line-height: 1.1;
  }

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

  .panel__heading,
  .booking-card__head,
  .booking-card__actions,
  .form-actions,
  .admin-card,
  .admin-subsection__head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-card__actions {
    justify-content: stretch;
  }

  .admin-row {
    align-items: flex-start;
  }

  .admin-row__primary {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .session-card {
    grid-template-columns: 1fr;
  }

  .session-card__head {
    align-items: center;
  }

  .session-card__actions {
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-left: 0;
  }

  .booking-panel__item {
    align-items: flex-start;
  }

  .booking-panel__actions {
    align-self: flex-end;
  }

  .booking-panel__remove {
    align-self: flex-end;
  }

  .calendar-controls {
    margin-bottom: 6px;
  }

  .button,
  .button--small {
    width: 100%;
    min-height: 48px;
  }

  .period-toolbar__arrow,
  .booking-panel__remove,
  .booking-dialog__close {
    transform: translateZ(0);
  }

  #customerPanel .button,
  #customerPanel .button--small {
    width: auto;
    min-width: 0;
  }

  #customerPanel .admin-toolbar__actions,
  #customerPanel .form-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  #customerPanel .button--primary {
    flex: 1 1 auto;
  }

  #customerPanel #customerCancelButton,
  #customerPanel #deleteCustomerButton,
  #customerPanel #newCustomerButton,
  #customerPanel #openCustomerPageButton {
    flex: 0 1 auto;
  }

  #customerPanel .section-label {
    margin-bottom: 2px;
  }

  .period-toolbar__arrow {
    width: 64px;
    height: 46px;
    font-size: 1.48rem;
  }

  .period-toolbar__today {
    min-width: 78px;
    height: 46px;
    padding: 0 16px;
  }

  .booking-dialog {
    width: min(100% - 18px, 430px);
    border-radius: 24px;
  }

  #calendarDialog {
    width: min(100% - 18px, 520px);
    max-height: calc(100dvh - 18px);
  }

  .booking-dialog__form {
    padding: 20px 18px 18px;
    gap: 12px;
  }

  .booking-dialog__header h2 {
    font-size: 1.1rem;
  }

  .panel--calendar {
    padding: 18px;
  }

  .booking-page-heading,
  .resource-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .period-toolbar__nav {
    justify-content: flex-end;
  }

  .helper-text {
    max-width: none;
    text-align: left;
  }

  .calendar-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .calendar-tabs .button,
  .calendar-tabs .button--small {
    min-width: 148px;
  }

  .booking-dialog .button--primary {
    width: 100%;
  }

  .calendar-day {
    min-height: auto;
    min-width: 136px;
    padding: 10px;
  }

  .calendar-day__label {
    font-size: 0.76rem;
  }

  .slot-card {
    min-height: 46px;
    padding: 8px;
  }

  .slot-card__head {
    font-size: 0.72rem;
  }

  .slot-card.is-mobile {
    padding: 8px;
    border-radius: 10px;
  }

  .slot-card.is-mobile .slot-card__head {
    justify-content: start;
    font-size: 0.72rem;
  }
}

@media (max-width: 760px) {
  html,
  body.booking-screen {
    overflow-x: hidden;
  }

  .booking-screen .page-shell {
    width: min(100vw - 20px, 520px);
    padding: 10px 0 28px;
  }

  .booking-screen .layout {
    gap: 14px;
  }

  .booking-screen #sessionPanel {
    padding: 12px;
    border-radius: 16px;
  }

  .booking-screen .session-top-card--identity {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: center;
    min-height: 0;
  }

  .booking-screen .session-identity {
    grid-column: 1;
    align-items: center;
    gap: 12px;
  }

  .booking-screen .session-avatar {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .booking-screen .session-identity__title {
    font-size: 16px;
    line-height: 1.15;
  }

  .booking-screen .session-identity__subtitle {
    font-size: 13px;
    line-height: 1.15;
  }

  .booking-screen .session-top-card--identity .session-top-card__value {
    display: none;
  }

  .booking-screen .session-top-card--identity .session-top-card__control--right {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: auto;
  }

  .booking-screen .session-top-card--identity .session-top-card__control--left {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .booking-screen .session-top-card--identity .session-top-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .booking-screen .session-top-card--identity .session-top-card__actions > .button,
  .booking-screen .session-top-card--identity .session-top-card__actions > .button--small,
  .booking-screen .session-top-card--identity .session-top-card__control--right > .button {
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .booking-screen .session-top-card--identity .session-top-card__control--right > .button {
    width: 44px;
    padding: 0;
  }

  .booking-screen .session-top-card--identity .session-top-card__control--right > .button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .booking-screen .panel--calendar {
    padding: 16px;
    border-radius: 16px;
  }

  .booking-screen .booking-page-heading {
    gap: 14px;
    margin-bottom: 20px;
  }

  .booking-screen .booking-page-heading > div:first-child {
    display: none;
  }

  .booking-screen .booking-page-heading h1 {
    font-size: 30px;
  }

  .booking-screen .booking-page-heading p {
    max-width: 280px;
    font-size: 15px;
    line-height: 1.22;
  }

  .booking-screen .period-toolbar__nav {
    gap: 8px;
  }

  .booking-screen .period-toolbar__calendar,
  .booking-screen .period-toolbar__today,
  .booking-screen .period-toolbar__arrow {
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 11px;
  }

  .booking-screen .calendar-tabs {
    margin: 0 -16px 20px;
    padding: 0 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .booking-screen .calendar-tabs .button,
  .booking-screen .calendar-tabs .button--small {
    flex: 0 0 auto;
    min-width: 0;
    width: calc((100% - 8px) / 2);
    min-height: 50px;
    padding: 0 10px;
    font-size: 15px;
  }

  .booking-screen .calendar-tabs:has(.calendar-more-tab) .button,
  .booking-screen .calendar-tabs:has(.calendar-more-tab) .button--small,
  .booking-screen .calendar-more-tab {
    flex: 0 0 calc((100% - 16px) / 3);
    width: calc((100% - 16px) / 3);
    min-width: 0;
    padding: 0 8px;
    font-size: 14px;
    gap: 7px;
  }

  .booking-screen .calendar-tabs:has(.calendar-more-tab) .ui-icon {
    width: 16px;
    height: 16px;
  }

  .booking-screen .calendar-tabs:has(.calendar-more-tab) .button span,
  .booking-screen .calendar-tabs:has(.calendar-more-tab) .button--small span,
  .booking-screen .calendar-tabs:has(.calendar-more-tab) .calendar-more-tab span {
    max-width: 10ch;
  }

  .booking-screen .resource-bar {
    gap: 10px;
    margin: 0 0 16px;
  }

  .booking-screen .resource-bar h2 {
    font-size: 24px;
  }

  .booking-screen .resource-bar p,
  .booking-screen .helper-text {
    font-size: 15px;
    line-height: 1.15;
    text-align: left;
  }

  .booking-screen .my-booking-panel {
    margin: 16px 0 18px;
  }

  .booking-screen .my-booking-card {
    padding: 12px;
  }

  .booking-screen .booking-panel__item {
    max-width: 100%;
    min-height: 34px;
    height: auto;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1;
  }

  .booking-screen .booking-panel__item strong,
  .booking-screen .booking-panel__item span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .booking-screen .booking-panel__feedback {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.15;
  }

  .booking-screen .calendar-scroll {
    margin: 0 -16px;
    padding: 0 16px 6px;
    overflow-x: visible;
  }

  .booking-screen .week-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .booking-screen .calendar-day {
    min-width: 0;
    padding: 8px;
    gap: 6px;
  }

  .booking-screen .calendar-day--week {
    grid-template-rows: 18px repeat(var(--slot-count, 6), 34px);
  }

  .booking-screen .slot-card {
    min-height: 34px;
    height: 34px;
    padding: 4px 7px;
  }

  .booking-screen .slot-card__head {
    font-size: 12px;
    line-height: 1.02;
  }

  .booking-screen .slot-card__owner {
    margin-top: 1px;
    font-size: 10px;
  }

  .booking-screen .calendar-bottom-legend {
    display: none;
  }
}

@media (max-width: 760px) and (max-height: 760px) {
  .booking-screen .page-shell {
    padding-top: 8px;
  }

  .booking-screen .layout {
    gap: 10px;
  }

  .booking-screen #sessionPanel {
    padding: 10px;
  }

  .booking-screen .session-top-card--identity {
    gap: 8px 10px;
  }

  .booking-screen .session-avatar {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .booking-screen .session-identity__title {
    font-size: 15px;
  }

  .booking-screen .session-identity__subtitle {
    font-size: 12px;
  }

  .booking-screen .session-top-card--identity .session-top-card__actions > .button,
  .booking-screen .session-top-card--identity .session-top-card__actions > .button--small {
    min-height: 36px;
  }

  .booking-screen .panel--calendar {
    padding: 14px;
  }

  .booking-screen .booking-page-heading {
    margin-bottom: 14px;
  }

  .booking-screen .period-toolbar__calendar,
  .booking-screen .period-toolbar__today,
  .booking-screen .period-toolbar__arrow {
    min-width: 42px;
    height: 42px;
    min-height: 42px;
  }

  .booking-screen .calendar-tabs {
    margin: 0 -14px 14px;
    padding: 0 14px;
  }

  .booking-screen .calendar-tabs .button,
  .booking-screen .calendar-tabs .button--small {
    min-height: 44px;
  }

  .booking-screen .resource-bar {
    margin-bottom: 10px;
  }

  .booking-screen .resource-bar h2 {
    font-size: 22px;
  }

  .booking-screen .resource-bar p {
    display: none;
  }

  .booking-screen .helper-text {
    font-size: 14px;
  }

  .booking-screen .my-booking-panel:has(.my-booking-card.is-empty) {
    display: none;
  }

  .booking-screen .calendar-scroll {
    margin: 0 -14px;
    padding: 0 14px 4px;
  }

  .booking-screen .calendar-day {
    padding: 7px;
    gap: 4px;
  }

  .booking-screen .calendar-day--week {
    grid-template-rows: 17px repeat(var(--slot-count, 6), 29px);
  }

  .booking-screen .calendar-day__label {
    font-size: 12px;
  }

  .booking-screen .slot-card {
    min-height: 29px;
    height: 29px;
    padding: 3px 6px;
  }

  .booking-screen .slot-card__head {
    font-size: 11px;
  }

  .booking-screen .slot-card__owner {
    font-size: 9px;
  }
}

@media (max-width: 430px) {
  .booking-screen .calendar-tabs:has(.calendar-more-tab) .button,
  .booking-screen .calendar-tabs:has(.calendar-more-tab) .button--small,
  .booking-screen .calendar-more-tab {
    padding: 0 6px;
    font-size: 13px;
    gap: 5px;
  }

  .booking-screen .calendar-tabs:has(.calendar-more-tab) .button span,
  .booking-screen .calendar-tabs:has(.calendar-more-tab) .button--small span,
  .booking-screen .calendar-tabs:has(.calendar-more-tab) .calendar-more-tab span {
    max-width: 8ch;
  }

  .booking-screen .panel--calendar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .booking-screen .calendar-scroll {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    overflow-x: hidden;
  }

  .booking-screen .week-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .booking-screen .calendar-day {
    max-width: 100%;
    padding-right: 5px;
    padding-left: 5px;
  }

  .booking-screen .calendar-day__label,
  .booking-screen .slot-card__head,
  .booking-screen .slot-card__owner {
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }
}

@media (max-width: 374px) {
  .booking-screen .calendar-tabs:has(.calendar-more-tab) .button span,
  .booking-screen .calendar-tabs:has(.calendar-more-tab) .button--small span,
  .booking-screen .calendar-tabs:has(.calendar-more-tab) .calendar-more-tab span {
    max-width: 6ch;
  }

  .booking-screen .panel--calendar {
    padding-right: 8px;
    padding-left: 8px;
  }

  .booking-screen .week-grid {
    gap: 4px;
  }

  .booking-screen .calendar-day {
    padding-right: 4px;
    padding-left: 4px;
  }

  .booking-screen .calendar-day__label {
    font-size: 11px;
  }
}

.booking-screen[data-session-layout="minimized"] #sessionPanel[data-session-state="auth"] {
  display: block;
  padding: 6px 10px;
}

.booking-screen[data-session-layout="minimized"] .session-top-card--identity {
  min-height: 36px;
  gap: 8px;
}

.booking-screen[data-session-layout="minimized"] .session-avatar {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.booking-screen[data-session-layout="minimized"] .session-identity__title {
  font-size: 13px;
}

.booking-screen[data-session-layout="minimized"] .session-identity__subtitle {
  display: none;
}

.booking-screen[data-session-layout="minimized"] #sessionPanel .button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.booking-screen[data-session-layout="compact"] #sessionPanel[data-session-state="auth"] {
  padding: 10px 14px;
}

.booking-screen[data-session-layout="compact"] .session-top-card--identity {
  min-height: 42px;
  gap: 10px;
}

.booking-screen[data-session-layout="compact"] .session-avatar {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.booking-screen[data-session-layout="compact"] .session-identity__title {
  font-size: 15px;
}

.booking-screen[data-session-layout="compact"] .session-identity__subtitle {
  font-size: 12px;
}

.booking-screen[data-calendar-density="compact"] .panel--calendar,
.booking-screen[data-calendar-density="kiosk"] .panel--calendar {
  padding: 12px 16px;
}

.booking-screen[data-calendar-density="compact"] .layout,
.booking-screen[data-calendar-density="kiosk"] .layout {
  gap: 8px;
}

.booking-screen[data-calendar-density="compact"] .booking-page-heading,
.booking-screen[data-calendar-density="kiosk"] .booking-page-heading {
  align-items: center;
  margin-bottom: 8px;
}

.booking-screen[data-calendar-density="compact"] .booking-page-heading h1,
.booking-screen[data-calendar-density="kiosk"] .booking-page-heading h1 {
  margin-bottom: 0;
  font-size: 24px;
}

.booking-screen[data-calendar-density="compact"] .booking-page-heading p,
.booking-screen[data-calendar-density="kiosk"] .booking-page-heading p,
.booking-screen[data-calendar-density="kiosk"] .resource-bar p {
  display: none;
}

.booking-screen[data-calendar-density="compact"] .period-toolbar__today,
.booking-screen[data-calendar-density="compact"] .period-toolbar__arrow,
.booking-screen[data-calendar-density="kiosk"] .period-toolbar__today,
.booking-screen[data-calendar-density="kiosk"] .period-toolbar__arrow {
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 10px;
  font-size: 14px;
}

.booking-screen[data-calendar-density="compact"] .calendar-tabs,
.booking-screen[data-calendar-density="kiosk"] .calendar-tabs {
  margin-bottom: 8px;
}

.booking-screen[data-calendar-density="compact"] .calendar-tabs .button,
.booking-screen[data-calendar-density="compact"] .calendar-tabs .button--small,
.booking-screen[data-calendar-density="compact"] .calendar-more-tab,
.booking-screen[data-calendar-density="kiosk"] .calendar-tabs .button,
.booking-screen[data-calendar-density="kiosk"] .calendar-tabs .button--small,
.booking-screen[data-calendar-density="kiosk"] .calendar-more-tab {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.booking-screen[data-calendar-density="compact"] .resource-bar,
.booking-screen[data-calendar-density="kiosk"] .resource-bar {
  margin-bottom: 6px;
}

.booking-screen[data-calendar-density="compact"] .resource-bar h2,
.booking-screen[data-calendar-density="kiosk"] .resource-bar h2 {
  margin-bottom: 0;
  font-size: 20px;
}

.booking-screen[data-calendar-density="compact"] .my-booking-panel,
.booking-screen[data-calendar-density="kiosk"] .my-booking-panel {
  margin: 6px 0 8px;
}

.booking-screen[data-calendar-density="kiosk"] .my-booking-panel:has(.my-booking-card.is-empty) {
  display: none;
}

.booking-screen[data-calendar-density="compact"] .my-booking-card,
.booking-screen[data-calendar-density="kiosk"] .my-booking-card {
  padding: 8px 10px;
  border-radius: 12px;
}

.booking-screen[data-calendar-density="compact"] .my-booking-card .section-label,
.booking-screen[data-calendar-density="kiosk"] .my-booking-card .section-label {
  margin-bottom: 5px;
  font-size: 10px;
}

.booking-screen[data-calendar-density="compact"] .booking-panel__item,
.booking-screen[data-calendar-density="kiosk"] .booking-panel__item {
  padding: 5px 9px;
  font-size: 11px;
}

.booking-screen[data-calendar-density="compact"] .week-grid,
.booking-screen[data-calendar-density="kiosk"] .week-grid {
  gap: 8px;
}

.booking-screen[data-calendar-density="compact"] .calendar-day,
.booking-screen[data-calendar-density="kiosk"] .calendar-day {
  padding: 7px;
  gap: 4px;
}

.booking-screen[data-calendar-density="compact"] .calendar-day--week,
.booking-screen[data-calendar-density="kiosk"] .calendar-day--week {
  grid-template-rows: 17px repeat(var(--slot-count, 6), var(--slot-row-height, 34px));
}

.booking-screen[data-calendar-density="compact"] .calendar-day__label,
.booking-screen[data-calendar-density="kiosk"] .calendar-day__label {
  font-size: 12px;
}

.booking-screen[data-calendar-density="compact"] .slot-card,
.booking-screen[data-calendar-density="kiosk"] .slot-card {
  min-height: var(--slot-row-height, 34px);
  height: var(--slot-row-height, 34px);
  padding: 3px 6px;
}

.booking-screen[data-calendar-density="compact"] .slot-card__head,
.booking-screen[data-calendar-density="kiosk"] .slot-card__head {
  font-size: 11px;
  line-height: 1.02;
}

.booking-screen[data-calendar-density="compact"] .slot-card__owner,
.booking-screen[data-calendar-density="kiosk"] .slot-card__owner {
  margin-top: 1px;
  font-size: 10px;
}

.booking-screen[data-calendar-density="kiosk"] .calendar-bottom-legend {
  display: none;
}

/* Floating help chat */
.help-chat {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1200;
  font-family: "Manrope", sans-serif;
  color: var(--text);
}

.help-chat__launcher {
  min-width: 92px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(17, 72, 61, 0.24);
  font-weight: 800;
  cursor: pointer;
}

.help-chat__launcher:hover {
  background: var(--accent-strong);
}

.help-chat__launcher svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-chat__panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: min(350px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 100px));
  display: none;
  grid-template-rows: auto minmax(120px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: 0 20px 55px rgba(24, 46, 39, 0.2);
}

.help-chat.is-open .help-chat__panel {
  display: grid;
}

.help-chat.is-open .help-chat__launcher {
  visibility: hidden;
}

.help-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  color: #fff;
  background: var(--accent);
}

.help-chat__header div {
  display: grid;
  gap: 2px;
}

.help-chat__header strong {
  font-size: 15px;
}

.help-chat__header span {
  font-size: 11px;
  opacity: 0.78;
}

.help-chat__close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.help-chat__messages {
  min-height: 150px;
  padding: 16px;
  overflow-y: auto;
  background: #f7faf8;
}

.help-chat__message {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}

.help-chat__message--bot {
  border-bottom-left-radius: 4px;
  background: #e5f1ee;
}

.help-chat__message--user {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  color: #fff;
  background: var(--accent);
}

.help-chat__message strong {
  display: inline;
}

.help-chat__message .help-chat__intro,
.help-chat__message span {
  display: block;
}

.help-chat__message ol,
.help-chat__message ul {
  margin: 8px 0;
  padding-left: 20px;
}

.help-chat__message li + li {
  margin-top: 7px;
}

.help-chat__message p {
  margin: 10px 0 0;
}

.help-chat__message p:first-child {
  margin-top: 0;
}

.help-chat__message pre {
  overflow-x: auto;
  max-width: 100%;
  margin: 7px 0 2px;
  padding: 8px;
  border: 1px solid rgba(31, 111, 95, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre;
}

.help-chat__suggestions {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
}

.help-chat__suggestions button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #bfd8d2;
  border-radius: 16px;
  color: var(--accent-strong);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.help-chat__form {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 8px;
  padding: 11px 12px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
}

.help-chat__form input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #ccd9d5;
  border-radius: 10px;
  outline: none;
  background: #fff;
  font-size: 13px;
}

.help-chat__form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 95, 0.1);
}

.help-chat__form button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 560px) {
  .help-chat {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .help-chat__launcher {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }

  .help-chat__launcher span {
    display: none;
  }

  .help-chat__panel {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(400px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: min(520px, calc(100dvh - 20px));
  }

  .help-chat__form input {
    font-size: 16px;
  }
}

/* Fallback for browsers without backdrop-filter support (Samsung Internet, older Android) */
@supports not (backdrop-filter: blur(10px)) {
  .panel {
    background: #fffdfa !important;
  }
}

.admin-guide {
  display: grid;
  gap: 16px;
  border-left: 4px solid var(--accent);
}

.admin-guide .panel__heading {
  margin-bottom: 0;
}

.admin-guide__notice {
  max-width: 900px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(31, 111, 95, 0.07);
  color: var(--muted);
  font-size: var(--meta-size);
  line-height: 1.5;
}

.admin-guide__notice strong {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-strong);
}

.admin-guide__notice p {
  margin: 0;
}

.admin-guide__tracks,
.admin-guide__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-guide__tracks {
  justify-content: flex-start;
}

.admin-guide__step {
  max-width: 900px;
  padding: 4px 0 2px;
}

.admin-guide__step h3 {
  margin: 0 0 8px;
  color: var(--accent-strong);
}

.admin-guide__step p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.admin-guide__step ul {
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
}

.admin-guide__example {
  overflow-x: auto;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(31, 111, 95, 0.05);
  color: var(--ink);
  font: 0.9em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre;
}

.admin-guide__controls {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-guide__controls .admin-toolbar__actions {
  margin: 0;
}

@media (max-width: 560px) {
  .admin-guide__controls {
    align-items: flex-start;
    flex-direction: column;
  }
}
