@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --brand: #277e7d;
  --brand-hover: #1c6464;
  --brand-press: #174f4f;
  --brand-soft: #d4e9e8;
  --brand-strong: #0e2e2e;

  --bg: #fbf8f3;
  --bg-raised: #ffffff;
  --bg-sunken: #f5efe5;
  --bg-tint: #eef6f6;

  --fg1: #0d0d0b;
  --fg2: #403f3a;
  --fg3: #7f7c72;

  --ink-100: #e7e5df;
  --ink-200: #cfccc2;
  --ink-300: #aaa69a;

  --line: rgba(13, 13, 11, 0.10);
  --line-strong: rgba(13, 13, 11, 0.18);
  --line-soft: rgba(13, 13, 11, 0.06);

  --status-confirmed-bg: #d4e9e8;
  --status-confirmed-fg: #174f4f;
  --status-pending-bg: #fbeed7;
  --status-pending-fg: #7a4f00;
  --status-blocked-bg: #e7e5df;
  --status-blocked-fg: #403f3a;
  --status-cancelled-bg: #f6dede;
  --status-cancelled-fg: #7a2020;

  --positive: #3d8a5c;
  --positive-bg: #e3f1e8;
  --danger: #b14545;
  --danger-bg: #f6dede;
  --warning: #c98a2b;
  --warning-bg: #fbeed7;

  --shadow-1: 0 1px 2px rgba(13, 13, 11, 0.05), 0 1px 1px rgba(13, 13, 11, 0.03);
  --shadow-2: 0 4px 12px -2px rgba(13, 13, 11, 0.08), 0 2px 4px -2px rgba(13, 13, 11, 0.04);
  --shadow-3: 0 18px 38px -12px rgba(13, 13, 11, 0.18), 0 6px 12px -6px rgba(13, 13, 11, 0.08);

  --r-1: 4px;
  --r-2: 8px;
  --r-3: 14px;
  --r-4: 20px;
  --r-5: 28px;
  --r-pill: 999px;
  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg1);
}

/* Icons */
.ico {
  width: 1.125em;
  height: 1.125em;
  flex-shrink: 0;
  display: block;
}
.ico-sm { width: 16px; height: 16px; }
.ico-md { width: 18px; height: 18px; }
.ico-lg { width: 20px; height: 20px; }

.with-icon,
.mgr-nav-link,
.mg-btn,
.btn-link.with-icon,
.mgr-btn-primary.with-icon,
.mgr-btn-ghost.with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.mgr-icon-btn,
.mg-icon-btn,
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.mgr-icon-btn .ico,
.mg-icon-btn .ico,
.btn-icon .ico {
  width: 18px;
  height: 18px;
}

.success-box.with-icon { display: flex; align-items: flex-start; gap: 8px; }

.nav-ico { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-ico .ico { width: 16px; height: 16px; }

.progress-step span { display: inline-flex; align-items: center; justify-content: center; }

/* Booking app (client) */
body.booking-app {
  margin: 0;
  background: #f5f5f5;
  color: var(--fg1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.booking-app h1,
body.booking-app h2,
body.booking-app h3,
body.booking-app p { margin: 0; }
body.booking-app a { color: inherit; text-decoration: none; }

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 0 40px rgba(13, 13, 11, 0.06);
}
.app-header {
  padding: 16px 16px 8px;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.brand-name {
  color: var(--brand-strong);
  letter-spacing: 0.02em;
}
.brand-sub { color: var(--fg3); margin-top: 6px; font-size: 14px; }

/* Booking progress (dots, no step labels) */
.booking-progress {
  padding: 4px 20px 14px;
  flex-shrink: 0;
}
.booking-progress.hidden {
  display: none;
}
.booking-progress-inner {
  position: relative;
  height: 11px;
  display: flex;
  align-items: center;
}
.booking-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: #e8e8e8;
  border-radius: 99px;
  overflow: hidden;
}
.booking-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--brand);
  border-radius: 99px;
  transition: width 0.35s ease;
}
.booking-progress-dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.booking-progress-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d8d8d8;
  box-sizing: border-box;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.booking-progress-dot.done,
.booking-progress-dot.active {
  border-color: var(--brand);
  background: var(--brand);
}
.booking-progress-dot.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.app-main {
  flex: 1;
  padding: 0 16px 100px;
  overflow-x: hidden;
}
.app-main.app-main--compact {
  padding-bottom: 24px;
}
.app-main.app-main--step4-end {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
}

.step-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-panel.panel-enter {
  animation: panelIn 0.32s ease forwards;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.step-subtitle {
  font-size: 14px;
  color: var(--fg3);
  margin-top: 2px;
}
.section-label {
  font-size: 17px;
  font-weight: 700;
}

.step-nav {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
.btn-back {
  width: 40px;
  height: 40px;
  border: none;
  background: #f5f5f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  color: var(--brand);
}
.btn-back .ico { width: 22px; height: 22px; }

/* Calendar */
.calendar-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.calendar-tab {
  padding: 12px 10px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  color: var(--fg2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.calendar-tab-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg3);
  line-height: 1.2;
}
.calendar-tab-date {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg1);
  line-height: 1.2;
}
.calendar-tab.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.calendar-tab.active .calendar-tab-label {
  color: var(--brand-strong);
}
.calendar-tab.active .calendar-tab-date {
  color: var(--brand-strong);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
  color: #b0b0b0;
  text-align: center;
}

.calendar-expanded {
  overflow: hidden;
  max-height: 2000px;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 1;
}
.calendar-expanded.calendar-expanded--collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.calendar-scroll {
  max-height: min(58vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
.calendar-month { margin-bottom: 20px; }
.calendar-month-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day--empty { pointer-events: none; }
.cal-day {
  aspect-ratio: 1;
  min-height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}
.cal-day--disabled {
  color: #c8c8c8;
  cursor: default;
}
.cal-day:not(.cal-day--disabled):not(.cal-day--empty):active {
  transform: scale(0.92);
}
.cal-day--edge {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.cal-day--in-range {
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: 0;
}
.cal-day--start.cal-day--in-range,
.cal-day--start { border-radius: 50% 0 0 50%; }
.cal-day--end.cal-day--in-range,
.cal-day--end { border-radius: 0 50% 50% 0; }
.cal-day--start.cal-day--end { border-radius: 50%; }

/* Guests */
.guest-section { margin-top: 4px; }
.guest-box { display: flex; flex-direction: column; gap: 12px; }
.counter {
  border: 1px solid #ebebeb;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fafafa;
}
.counter strong { font-size: 16px; }
.counter-value {
  min-width: 28px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
.counter-controls { display: flex; align-items: center; gap: 12px; }
.hint { color: var(--fg3); font-size: 13px; margin-top: 4px; }

.guest-box .child-ages-section {
  margin-top: 0;
  padding: 12px 0 4px;
  border-top: 1px solid #ebebeb;
}
.child-ages-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.child-age-row {
  border: 1px solid #ebebeb;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fafafa;
}
.child-age-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
}
.child-age-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-strong);
  font-family: var(--font-mono);
}
.child-age-row input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
  height: 6px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #fff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg1);
}
.btn-icon:active { background: #f0f0f0; }

/* Date strip */
.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding: 4px 0 8px;
  margin: 0 -4px;
  scroll-snap-type: x proximity;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-chip {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: #f3f3f3;
  text-align: center;
  scroll-snap-align: center;
  transition: background 0.2s, color 0.2s;
}
.date-chip-day {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg1);
}
.date-chip-dow,
.date-chip-price {
  display: block;
  font-size: 12px;
  color: var(--fg3);
  margin-top: 2px;
}
.date-chip-price {
  font-family: var(--font-mono);
  font-weight: 600;
}
.date-chip.active {
  background: var(--brand);
}
.date-chip.active .date-chip-day,
.date-chip.active .date-chip-dow,
.date-chip.active .date-chip-price {
  color: #fff;
}
.booking-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(251, 248, 243, 0.82);
  backdrop-filter: blur(6px);
}
.booking-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 24px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-3);
  min-width: min(320px, 92vw);
}
.booking-loader-scene {
  position: relative;
  width: 300px;
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #8fd4eb 0%, #d4eef6 38%, #f5e6c8 72%, #e8d4a8 100%);
}
.loader-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #6ebee0 0%, #a8dff0 42%, #f0e4c8 78%, transparent 100%);
}
.loader-sun {
  position: absolute;
  top: 14px;
  right: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #fffce8, #ffd54a 55%, #f0a828 100%);
  box-shadow: 0 0 28px rgba(255, 210, 80, 0.65);
  animation: loader-sun-pulse 3s ease-in-out infinite;
}
.loader-cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  filter: drop-shadow(0 2px 6px rgba(80, 130, 160, 0.12));
}
.loader-cloud--1 {
  width: 56px;
  height: 20px;
  top: 22px;
  left: 18px;
  animation: loader-cloud-drift 6s ease-in-out infinite;
}
.loader-cloud--2 {
  width: 42px;
  height: 15px;
  top: 38px;
  left: 108px;
  animation: loader-cloud-drift 7.5s ease-in-out infinite reverse;
}
.loader-mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 52px;
  height: 72px;
  background:
    radial-gradient(ellipse 90px 36px at 12% 100%, #8a9e7a 0%, transparent 72%),
    radial-gradient(ellipse 110px 44px at 38% 100%, #6d8f6a 0%, transparent 74%),
    radial-gradient(ellipse 130px 50px at 62% 100%, #7a9a72 0%, transparent 76%),
    radial-gradient(ellipse 100px 40px at 88% 100%, #95a888 0%, transparent 70%);
  opacity: 0.85;
}
.loader-shore {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58px;
  background: linear-gradient(180deg, #f2d9a8 0%, #e8c888 35%, #dcc078 100%);
}
.loader-lake {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 18px;
  height: 72px;
  border-radius: 60% 60% 0 0 / 18% 18% 0 0;
  background:
    linear-gradient(180deg,
      rgba(120, 220, 235, 0.95) 0%,
      #3eb8c8 28%,
      #2a9aad 55%,
      #1f8494 100%);
  box-shadow: inset 0 8px 24px rgba(255, 255, 255, 0.25);
}
.loader-shimmer {
  position: absolute;
  top: 12px;
  left: -40%;
  width: 45%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: loader-shimmer 2.8s ease-in-out infinite;
}
.loader-ripple {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: loader-ripple 3.2s ease-out infinite;
}
.loader-ripple--1 {
  width: 20px;
  height: 10px;
  left: 28%;
  bottom: 22px;
}
.loader-ripple--2 {
  width: 16px;
  height: 8px;
  left: 62%;
  bottom: 18px;
  animation-delay: 1.1s;
}
.loader-reeds {
  position: absolute;
  bottom: 44px;
  width: 28px;
  height: 36px;
  opacity: 0.7;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 3px,
    #5a8f4a 3px 5px,
    transparent 5px 8px
  );
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.loader-reeds--l { left: 6px; transform: skewX(-6deg); }
.loader-reeds--r { right: 8px; transform: skewX(8deg) scaleX(-1); }
.loader-resort {
  position: absolute;
  left: 50%;
  bottom: 48px;
  width: 120px;
  height: 56px;
  transform: translateX(-50%);
}
.loader-yurt {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 46px;
  animation: loader-yurt-bob 3.2s ease-in-out infinite;
}
.loader-yurt-roof {
  position: absolute;
  left: 3px;
  top: 0;
  width: 44px;
  height: 26px;
  background: linear-gradient(180deg, #d4895a 0%, #a8653a 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.loader-yurt-roof::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.2);
}
.loader-yurt-wall {
  position: absolute;
  left: 7px;
  bottom: 0;
  width: 36px;
  height: 20px;
  background: linear-gradient(180deg, #f0e0c4 0%, #d8c09a 100%);
  border-radius: 0 0 5px 5px;
}
.loader-yurt-door {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 11px;
  height: 13px;
  transform: translateX(-50%);
  background: #6b4a32;
  border-radius: 5px 5px 2px 2px;
}
.loader-deck {
  position: absolute;
  left: 44px;
  bottom: 4px;
  width: 52px;
  height: 8px;
  background: linear-gradient(180deg, #c4a06a 0%, #9a7848 100%);
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}
.loader-deck::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 2px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #8a6840 0 6px, transparent 6px 10px);
  opacity: 0.5;
}
.loader-umbrella {
  position: absolute;
  right: 4px;
  bottom: 8px;
  width: 36px;
  height: 40px;
  animation: loader-umbrella-sway 4s ease-in-out infinite;
}
.loader-umbrella-canopy {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 18px;
  background: linear-gradient(180deg, #e85c4a 0%, #c93d32 100%);
  border-radius: 50% 50% 4px 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.loader-umbrella-canopy::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 2px;
  height: 14px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.35);
}
.loader-umbrella-pole {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 3px;
  height: 22px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #d8d0c4, #a89e90);
  border-radius: 2px;
}
.booking-loader-text {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: -0.01em;
  text-align: center;
}
@keyframes loader-shimmer {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(320%); opacity: 0; }
}
@keyframes loader-ripple {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}
@keyframes loader-yurt-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes loader-umbrella-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(3deg); }
}
@keyframes loader-cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(12px); }
}
@keyframes loader-sun-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .loader-yurt,
  .loader-umbrella,
  .loader-cloud,
  .loader-sun,
  .loader-shimmer,
  .loader-ripple {
    animation: none;
  }
}
@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

.room-list--busy {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.room-card--skeleton .room-card-photo--empty {
  background: linear-gradient(90deg, #ececec 0%, #f5f5f5 50%, #ececec 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-line {
  height: 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #ececec 0%, #f5f5f5 50%, #ececec 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-line--lg { height: 20px; width: 70%; }
.skeleton-line--sm { width: 45%; margin-bottom: 0; }
@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.btn-primary.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.btn-primary.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: booking-spin 0.75s linear infinite;
}

.info-banner {
  font-size: 14px;
  color: var(--fg2);
  background: #f5f5f5;
  border-radius: 12px;
  padding: 12px 14px;
  line-height: 1.4;
}
.empty-state {
  text-align: center;
  color: var(--fg3);
  padding: 32px 16px;
  font-size: 15px;
}

/* Room cards */
.room-list { display: flex; flex-direction: column; gap: 16px; }
.room-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.room-card-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #e8e8e8;
}
.room-card-photo--empty { min-height: 160px; }
.room-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.room-card-title { font-size: 18px; font-weight: 700; }
.room-card-desc {
  font-size: 14px;
  color: var(--fg3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.room-card-amenities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.room-card-amenities li {
  font-size: 12px;
  color: var(--fg2);
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 99px;
}
.room-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 4px;
}
.room-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--fg3);
}
.room-card-price {
  text-align: right;
}
.room-card-price strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg1);
}
.room-card-price span {
  font-size: 12px;
  color: var(--fg3);
}
.room-select-btn {
  margin-top: 8px;
}

/* Step 3 confirm */
.confirm-room {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 14px;
  background: #fafafa;
}
.confirm-room-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.confirm-room-text {
  flex: 1;
  display: flex;
  gap: 10px;
  min-width: 0;
}
.confirm-room-ico { color: var(--fg3); flex-shrink: 0; margin-top: 2px; }
.confirm-room-text strong { font-size: 16px; display: block; }
.confirm-room-text p {
  font-size: 13px;
  color: var(--fg3);
  margin-top: 4px;
}
.confirm-amenities {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.confirm-amenities li {
  font-size: 12px;
  background: #fff;
  border: 1px solid #eee;
  padding: 3px 8px;
  border-radius: 8px;
}
.confirm-room-thumb {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.confirm-summary {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #eee;
  padding: 0 14px;
}
.summary-row--compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  align-items: center;
}
.summary-col:not(.summary-col--end) {
  padding-left: 8px;
}
.summary-col strong {
  font-size: 14px;
  line-height: 1.35;
  display: block;
  font-weight: 600;
}
.summary-col p {
  font-size: 12px;
  color: var(--fg3);
  margin-top: 2px;
}
.summary-col--end {
  text-align: right;
  padding-right: 8px;
}
.summary-inline-muted {
  font-weight: 500;
  color: var(--fg3);
}
.summary-row--price .summary-col strong {
  font-size: 17px;
  color: var(--brand-strong);
}
.summary-row--price .summary-deposit {
  font-size: 17px;
  color: var(--fg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-4);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg-raised) 100%);
  box-shadow: var(--shadow-1);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg2);
  letter-spacing: 0.01em;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-3);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fg1);
  background: var(--bg-raised);
  box-shadow: inset 0 1px 2px rgba(13, 13, 11, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder {
  color: var(--ink-300);
  font-weight: 400;
  opacity: 1;
}
.field input:hover:not(:focus):not(:disabled) {
  border-color: var(--ink-200);
  background: #fff;
}
.field input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow:
    inset 0 1px 2px rgba(13, 13, 11, 0.03),
    0 0 0 3px var(--brand-soft);
}
.field input:focus::placeholder {
  color: var(--ink-200);
}
.field input:user-invalid:not(:placeholder-shown):not(:focus) {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px var(--danger-bg);
}
.field select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-3);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fg1);
  background: var(--bg-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237f7c72' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  box-shadow: inset 0 1px 2px rgba(13, 13, 11, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.field select:hover:not(:focus):not(:disabled) {
  border-color: var(--ink-200);
  background-color: #fff;
}
.field select:focus {
  outline: none;
  border-color: var(--brand);
  background-color: #fff;
  box-shadow:
    inset 0 1px 2px rgba(13, 13, 11, 0.03),
    0 0 0 3px var(--brand-soft);
}

/* Step 4 — подтверждение брони */
.step4-panel {
  gap: 10px;
  padding-bottom: 24px;
}
.step4-panel.step4-panel--end {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding-bottom: 0;
}
.step4-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  margin-bottom: 10px;
}

.step4-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin-bottom: 0;
}
.step4-hero-icon .ico {
  width: 48px;
  height: 48px;
  color: var(--positive);
  stroke-width: 2.25;
}
.step4-hero--muted .step4-hero-icon .ico {
  color: var(--fg3);
}
.step4-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.step4-ref {
  margin: 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.25;
  color: var(--fg2);
}
.step4-ref span {
  display: block;
  margin-top: 2px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand-strong);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.step4-admin-note {
  margin: 0 0 10px;
  padding: 0 4px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--fg2);
  text-align: center;
}

.timer-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: var(--bg-raised);
  margin: 4px 0 14px;
}
.timer-label-top {
  font-size: 13px;
  color: var(--fg3);
  margin-bottom: 8px;
}
.timer-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: clamp(34px, 8vw, 42px);
  font-weight: 700;
  color: var(--fg1);
  line-height: 1;
  transition: color 0.3s ease;
}
.timer-row.warn {
  color: var(--warning);
}
.timer-row.danger {
  color: var(--danger);
  animation: timerPulse 0.9s ease-in-out infinite;
}
.timer-sep {
  font-size: clamp(28px, 6.5vw, 36px);
  font-weight: 700;
  color: var(--fg3);
  animation: timerBlink 1s step-end infinite;
  margin: 0 2px;
  user-select: none;
}
.timer-units {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.timer-unit-label {
  font-size: 11px;
  color: var(--fg3);
  width: 52px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.timer-unit-spacer {
  width: 20px;
  flex-shrink: 0;
}
@keyframes timerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.step4-details {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}
.step4-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.step4-details-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  font-weight: 500;
}
.step4-details-list li:last-child {
  border-bottom: none;
}
.step4-detail-ico {
  flex-shrink: 0;
  color: var(--fg3);
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step4-detail-price span:last-child {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-strong);
}

.step4-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f8f8f8;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
}
.step4-notice-ico {
  flex-shrink: 0;
  color: var(--warning);
}
.step4-notice-ico .ico {
  width: 20px;
  height: 20px;
}
.step4-notice p {
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.45;
}

.step4-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.btn-text-link {
  border: none;
  background: transparent;
  color: var(--fg3);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-text-link:active {
  color: var(--fg2);
}

.step4-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
  padding: 16px 16px 8px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  box-sizing: border-box;
}
.step4-state-text,
.step4-expired-text {
  font-size: 15px;
  color: var(--fg2);
  line-height: 1.55;
  margin: 0;
  max-width: min(360px, 100%);
  width: 100%;
}
.step4-state-text strong,
.step4-expired-text strong {
  color: var(--brand-strong);
  font-family: var(--font-mono);
  font-weight: 700;
}
.step4-state-btn {
  max-width: min(360px, 100%);
}

.payment-toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(120%);
  max-width: min(440px, calc(100% - 32px));
  width: 100%;
  padding: 14px 18px;
  background: var(--fg1);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  border-radius: 12px;
  box-shadow: var(--shadow-3);
  z-index: 50;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.payment-toast--show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Sticky footer & buttons */
.sticky-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 85%, rgba(255, 255, 255, 0));
  border-top: 1px solid #f0f0f0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-hold-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--fg3);
  text-align: center;
}

.date-summary-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
  text-align: center;
  cursor: pointer;
}
.date-summary-bar:active {
  background: #f0f0f0;
}
.date-summary-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg2);
  line-height: 1.35;
  margin: 0;
}
.date-summary-edit {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}

body.booking-app input,
body.booking-app textarea,
body.booking-app button {
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}
body.booking-app button { cursor: pointer; transition: background 0.15s, transform 0.1s; }

.btn-primary {
  background: var(--brand);
  border: 1px solid transparent;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(39, 126, 125, 0.22);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 4px 16px rgba(39, 126, 125, 0.32);
}
.btn-primary:active {
  background: var(--brand-press);
  transform: scale(0.99);
  box-shadow: 0 2px 8px rgba(39, 126, 125, 0.26);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-block { width: 100%; display: block; }
.btn-secondary {
  width: 100%;
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  color: var(--fg2);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 20px;
  border-radius: 14px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover {
  background: var(--bg-sunken);
  border-color: var(--ink-200);
  color: var(--fg1);
}
.btn-secondary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Общие контролы форм: booking + админка */
.booking-app .field input,
.booking-app .field select,
.booking-app .field textarea,
.mgr-page .ui-sheet .field input,
.mgr-page .ui-sheet .field select,
.mgr-page .ui-sheet .field textarea,
.mgr-page .ui-sheet .select-control select {
  font-family: var(--font-sans);
  -webkit-appearance: none;
  appearance: none;
}
.booking-app button,
.mgr-page .ui-sheet button {
  font-family: var(--font-sans);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
.mgr-page .ui-sheet .btn-primary,
.mgr-page .ui-sheet .btn-secondary {
  width: 100%;
  display: block;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.mgr-page .ui-sheet .btn-primary {
  background: var(--brand);
  border: 1px solid transparent;
  color: #fff;
  font-size: 17px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(39, 126, 125, 0.22);
}
.mgr-page .ui-sheet .btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 4px 16px rgba(39, 126, 125, 0.32);
}
.mgr-page .ui-sheet .btn-primary:active {
  background: var(--brand-press);
  transform: scale(0.99);
}
.mgr-page .ui-sheet .btn-secondary {
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  color: var(--fg2);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 20px;
}
.mgr-page .ui-sheet .btn-secondary:hover {
  background: var(--bg-sunken);
  border-color: var(--ink-200);
  color: var(--fg1);
}

.field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.select-control {
  display: block;
  position: relative;
}
.select-control select {
  width: 100%;
  display: block;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-3);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fg1);
  background-color: var(--bg-raised);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23277e7d' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  box-shadow: inset 0 1px 2px rgba(13, 13, 11, 0.04);
  cursor: pointer;
}
.select-control select:hover:not(:focus):not(:disabled) {
  border-color: var(--ink-200);
  background-color: #fff;
}
.select-control select:focus {
  outline: none;
  border-color: var(--brand);
  background-color: #fff;
  box-shadow:
    inset 0 1px 2px rgba(13, 13, 11, 0.03),
    0 0 0 3px var(--brand-soft);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: var(--r-3);
  background: var(--bg-sunken);
  border: 1px solid var(--line-soft);
}
.segmented-btn {
  min-height: 44px;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--fg2);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.segmented-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.55);
  color: var(--fg1);
}
.segmented-btn.active {
  background: var(--bg-raised);
  color: var(--brand-strong);
  box-shadow: var(--shadow-1);
}
.segmented-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

@media (min-width: 481px) {
  body.booking-app { background: #e8ecec; }
}

/* Manager schedule layout */
body.mgr-page {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--fg1);
  -webkit-font-smoothing: antialiased;
}
body.mgr-page button,
body.mgr-page input,
body.mgr-page select,
body.mgr-page textarea {
  font-family: var(--font-sans);
}
.mgr { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.mgr-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 52px; flex-shrink: 0;
  background: var(--bg-raised); border-bottom: 1px solid var(--line);
}
.mgr-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mgr-brand { display: flex; align-items: center; gap: 6px; }
.mgr-brand-mark { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.mgr-brand-sep { color: var(--ink-300); }
.mgr-brand-sub { color: var(--fg3); font-size: 15px; }
.mgr-nav { display: flex; gap: 4px; }
.mgr-nav-link {
  padding: 7px 12px; border-radius: var(--r-2); font-size: 15px;
  font-weight: 500; color: var(--fg2); text-decoration: none; transition: background .15s;
}
.mgr-nav-link:hover { background: var(--ink-100); }
.mgr-nav-link.active { background: var(--brand-soft); color: var(--brand-strong); }
.mgr-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; flex-shrink: 0; gap: 12px; flex-wrap: wrap;
  background: var(--bg-raised); border-bottom: 1px solid var(--line-soft);
}
.mgr-daterange { display: flex; align-items: center; gap: 6px; }
.mgr-daterange-text { font-size: 16px; font-weight: 600; color: var(--fg1); min-width: 140px; }
.mgr-icon-btn {
  width: 32px; height: 32px; border: 1px solid var(--line-strong); background: var(--bg-raised);
  border-radius: var(--r-2); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mgr-icon-btn:hover { background: var(--ink-100); }

.mgr-telegram-bind {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--fg3);
}
.mgr-telegram-bind:hover {
  color: var(--brand-strong);
}
.mgr-telegram-bind-text {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
  user-select: none;
}
.mgr-btn-ghost {
  padding: 7px 12px; border: 1px solid var(--line-strong); background: var(--bg-raised);
  border-radius: var(--r-2); cursor: pointer; font-size: 15px; font-weight: 500;
}
.mgr-btn-primary {
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(39, 126, 125, 0.22);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
.mgr-btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 4px 14px rgba(39, 126, 125, 0.28);
}
.mgr-btn-primary:active { transform: scale(0.99); }
.mgr-toolbar-right { display: flex; align-items: center; gap: 12px; }
.mgr-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.mgr-pill {
  display: flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--bg-raised); font-size: 14px;
  font-weight: 500; cursor: pointer; color: var(--fg2);
}
.mgr-pill.active { background: var(--fg1); color: #fff; border-color: var(--fg1); }
.mgr-pill.status-confirmed { border-color: var(--status-confirmed-fg); color: var(--status-confirmed-fg); }
.mgr-pill.status-pending { border-color: var(--status-pending-fg); color: var(--status-pending-fg); }
.mgr-pill.status-blocked, .mgr-pill.status-cancelled { border-color: var(--ink-300); color: var(--fg3); }
.mgr-pill-count { font-weight: 700; }
.mg-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.mgr-body { flex: 1; display: flex; overflow: hidden; min-height: 0; }
.mgr-body.has-detail .mgr-grid-wrap { flex: 1; }
.mgr-rail {
  width: 220px; flex-shrink: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column;
  overflow: hidden; min-height: 0;
}
.mgr-rail-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.mgr-rail-group {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg3);
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 1;
}
.mgr-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px 8px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0;
  background: var(--bg-raised); z-index: 2; flex-shrink: 0;
}
.mgr-rail-manage-btn {
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  transition: background 0.2s ease, color 0.2s ease;
}
.mgr-rail-manage-btn:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.mgr-rail-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 24px);
  margin: 10px 12px 12px;
  padding: 12px 14px;
  border: 1px dashed var(--brand);
  border-radius: var(--r-3);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.mgr-rail-add:hover {
  background: #c8e3e2;
  border-color: var(--brand-hover);
}
.mgr-rail-add:active { transform: scale(0.99); }
.mgr-rail-add-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
}

/* Overlay sheet — тот же визуальный язык, что у booking-app */
.ui-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.ui-overlay.hidden { display: none !important; }
.ui-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 11, 0.42);
  backdrop-filter: blur(2px);
}
.ui-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: min(92vh, 720px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg);
  border-radius: var(--r-5) var(--r-5) 0 0;
  box-shadow: var(--shadow-3);
  animation: sheetUp 0.28s ease forwards;
}
@keyframes sheetUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.ui-sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
}
.ui-sheet-close:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.ui-sheet-head {
  padding: 22px 52px 4px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ui-sheet-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg3);
}
.ui-sheet-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg1);
}
.ui-sheet-sub {
  margin: 0;
  font-size: 14px;
  color: var(--fg3);
  line-height: 1.4;
}
.ui-sheet-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 20px 24px;
}
.mgr-mode-tabs { margin: 0; }
.mgr-add-fields {
  margin: 0;
  gap: 16px;
  padding: 18px;
  border-radius: var(--r-4);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  box-shadow: var(--shadow-1);
}
.mgr-page .ui-sheet .mgr-add-fields .field input,
.mgr-page .ui-sheet .mgr-add-fields .select-control select {
  background-color: #fff;
}
.mgr-add-fields.hidden { display: none !important; }
.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-3);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.form-error.hidden { display: none !important; }
.ui-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
body.mgr-page.ui-sheet-open { overflow: hidden; }

/* Custom dropdown */
.ui-dropdown {
  position: relative;
  width: 100%;
}
.ui-dropdown-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ui-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-3);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fg1);
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 1px 2px rgba(13, 13, 11, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.ui-dropdown-trigger:hover:not(:disabled) {
  border-color: var(--ink-200);
}
.ui-dropdown.is-open .ui-dropdown-trigger,
.ui-dropdown-trigger:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow:
    inset 0 1px 2px rgba(13, 13, 11, 0.03),
    0 0 0 3px var(--brand-soft);
}
.ui-dropdown.is-disabled .ui-dropdown-trigger {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--bg-sunken);
}
.ui-dropdown-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ui-dropdown-value.is-placeholder {
  color: var(--ink-300);
  font-weight: 400;
}
.ui-dropdown-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg3);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ui-dropdown-chevron-ico {
  width: 18px;
  height: 18px;
  display: block;
}
.ui-dropdown.is-open .ui-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--brand);
}
.ui-dropdown-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  border-radius: var(--r-3);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.ui-dropdown-panel.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ui-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: min(240px, 42vh);
  overflow-y: auto;
}
.ui-dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--r-2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ui-dropdown-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ui-dropdown-option-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg1);
  line-height: 1.3;
}
.ui-dropdown-option-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg3);
}
.ui-dropdown-option-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: var(--brand);
  transition: opacity 0.15s ease;
}
.ui-dropdown-check {
  width: 16px;
  height: 16px;
  display: block;
}
.ui-dropdown-option:hover,
.ui-dropdown-option.is-highlighted {
  background: var(--bg-tint);
}
.ui-dropdown-option.is-selected {
  background: var(--brand-soft);
}
.ui-dropdown-option.is-selected .ui-dropdown-option-label {
  color: var(--brand-strong);
}
.ui-dropdown-option.is-selected .ui-dropdown-option-check {
  opacity: 1;
}
.ui-dropdown-empty {
  padding: 14px 12px;
  font-size: 14px;
  color: var(--fg3);
  text-align: center;
}

/* Inventory manage sheet */
.ui-sheet--manage {
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
}
.mgr-manage-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 20px 8px;
}
.mgr-manage-error {
  margin: 0 20px 12px;
}
.mgr-manage-add {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.mgr-manage-add.is-submitting {
  opacity: 0.92;
}
.mgr-add-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--brand-soft);
  border: 1px solid rgba(39, 126, 125, 0.22);
  color: var(--brand-strong);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.mgr-add-loading-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(39, 126, 125, 0.22);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: booking-spin 0.75s linear infinite;
  flex-shrink: 0;
}
.mgr-add-loading-text {
  text-align: center;
}
.mgr-manage-section-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg3);
}
.mgr-manage-list-section {
  padding-bottom: 8px;
}
.mgr-manage-list-section .mgr-manage-section-title {
  margin-bottom: 12px;
}
.mgr-manage-footer {
  flex-shrink: 0;
  padding: 12px 20px 24px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-raised);
}
.mgr-inventory-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mgr-inventory-category {
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--bg-raised);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.mgr-inventory-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line-soft);
}
.mgr-inventory-cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg1);
  letter-spacing: -0.01em;
}
.mgr-inventory-cat-meta {
  font-size: 12px;
  color: var(--fg3);
  margin-top: 2px;
}
.mgr-inventory-rooms {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mgr-inventory-room {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.mgr-inventory-room:last-child {
  border-bottom: none;
}
.mgr-inventory-room-name {
  font-size: 14px;
  font-weight: 600;
}
.mgr-inventory-room-meta {
  font-size: 12px;
  color: var(--fg3);
  margin-top: 2px;
}
.mgr-inventory-empty {
  padding: 24px 20px;
  text-align: center;
  color: var(--fg3);
  font-size: 14px;
}
.mgr-icon-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: var(--r-2);
  background: transparent;
  color: var(--fg3);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mgr-icon-btn-danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(177, 69, 69, 0.2);
}
.mgr-icon-btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mgr-icon-btn-danger .ico {
  width: 17px;
  height: 17px;
}

@media (min-width: 640px) {
  .ui-overlay {
    align-items: center;
    padding: 24px;
  }
  .ui-sheet {
    border-radius: var(--r-5);
    max-height: min(88vh, 680px);
  }
}
.mg-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--fg3); }
.mgr-rail-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft);
  min-height: 64px; box-sizing: border-box;
}
.mgr-rail-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 4px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg3);
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 1;
}
.mgr-rail-group-row .mgr-rail-group-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mg-room-thumb { width: 36px; height: 36px; border-radius: var(--r-2); object-fit: cover; background: var(--ink-100); flex-shrink: 0; }
.mg-room-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.mg-room-meta { font-size: 13px; color: var(--fg3); margin-top: 2px; }
.mgr-grid-wrap { flex: 1; overflow-x: auto; overflow-y: hidden; min-width: 0; }
.mgr-grid { display: flex; flex-direction: column; min-width: max-content; height: 100%; }
.mg-dayheader { display: flex; position: sticky; top: 0; z-index: 3; background: var(--bg-raised); border-bottom: 1px solid var(--line); }
.mg-day {
  width: var(--cell-w, 48px); flex-shrink: 0; text-align: center; padding: 6px 4px; border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.mg-day.wknd { background: #faf9f6; }
.mg-day.today { background: var(--brand-soft); }
.mg-day-dow { font-size: 11px; text-transform: uppercase; color: var(--fg3); font-weight: 600; }
.mg-day-num { font-size: 15px; font-weight: 700; line-height: 1; font-family: var(--font-mono); }
.mg-day.today .mg-day-num { color: var(--brand-strong); }
.mg-day-mo { font-size: 10px; color: var(--fg3); }
.mgr-grid-body { flex: 1; position: relative; overflow-y: auto; }
.mg-today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand); z-index: 2; pointer-events: none; }
.mg-today-line span { position: absolute; top: 4px; left: 4px; font-size: 10px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.mg-row {
  display: flex; position: relative; min-height: 64px; border-bottom: 1px solid var(--line-soft);
  overflow: visible;
}
.mg-cell { width: var(--cell-w, 48px); flex-shrink: 0; border-right: 1px solid var(--line-soft); cursor: pointer; }
.mg-cell:hover { background: var(--bg-tint); }
.mg-cell.wknd { background: #faf9f6; }
.mg-cell.wknd:hover { background: #f0f7f6; }
.mg-bar {
  position: absolute;
  border-radius: var(--r-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  border: none;
  font-family: var(--font-sans);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow .15s, transform .1s;
  box-sizing: border-box;
}
.mg-bar:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.mg-bar.sel { box-shadow: var(--shadow-2), 0 0 0 2px var(--brand); }
.mg-bar.status-confirmed { background: var(--status-confirmed-bg); color: var(--status-confirmed-fg); }
.mg-bar.status-pending { background: var(--status-pending-bg); color: var(--status-pending-fg); }
.mg-bar.status-blocked { background: var(--status-blocked-bg); color: var(--status-blocked-fg); }
.mg-bar.status-cancelled { background: var(--status-cancelled-bg); color: var(--status-cancelled-fg); opacity: .6; }
.mg-bar-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-bar-meta { font-size: 13px; opacity: .7; white-space: nowrap; }
.mg-detail {
  width: 280px; flex-shrink: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column;
  overflow-y: auto; background: var(--bg-raised);
}
.mg-detail-head { padding: 16px; border-bottom: 1px solid var(--line-soft); }
.mg-eyebrow-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mg-icon-btn {
  width: 28px; height: 28px; border: 1px solid var(--line-strong); background: var(--bg-raised);
  border-radius: var(--r-2); cursor: pointer;
}
.mg-detail-name { font-size: 20px; font-weight: 700; margin: 4px 0 8px; }
.mg-status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; }
.mg-status-pill.status-confirmed { background: var(--status-confirmed-bg); color: var(--status-confirmed-fg); }
.mg-status-pill.status-pending { background: var(--status-pending-bg); color: var(--status-pending-fg); }
.mg-status-pill.status-cancelled { background: var(--status-cancelled-bg); color: var(--status-cancelled-fg); }
.mg-detail-section { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); display: grid; gap: 8px; }
.mg-detail-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mg-l { font-size: 14px; color: var(--fg3); flex-shrink: 0; }
.mg-v { font-size: 15px; font-weight: 500; text-align: right; }
.mg-detail-total { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; }
.mg-amount { font-size: 18px; font-weight: 700; color: var(--brand-strong); font-family: var(--font-mono); }
.mg-detail-actions { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
#detailCancel.hidden,
#detailCancel[hidden] {
  display: none !important;
}
.mg-detail-cancelled-notice {
  margin: 0; padding: 10px 14px; border-radius: var(--r-2); font-size: 15px; font-weight: 600;
  text-align: center; color: var(--fg2); background: var(--bg-sunken); border: 1px solid var(--line-soft);
  user-select: none; pointer-events: none;
}
.mg-btn {
  padding: 10px 14px; border-radius: var(--r-2); font-size: 15px; font-weight: 600; cursor: pointer;
  text-align: center; text-decoration: none; border: none; font-family: var(--font-sans);
}
.mg-btn-wa { background: #25d366; color: #fff; }
.mg-btn-confirm { background: var(--positive-bg); color: var(--positive); border: 1px solid var(--positive); }
.mg-btn-cancel { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger); }
.mg-btn-ghost { background: var(--bg-sunken); color: var(--fg2); border: 1px solid var(--line-strong); }
.mgr-auth-overlay { position: fixed; inset: 0; background: rgba(13, 13, 11, .5); display: flex; align-items: center; justify-content: center; z-index: 100; }
.mgr-auth-box { background: var(--bg-raised); border-radius: var(--r-4); padding: 32px; width: 320px; display: grid; gap: 12px; box-shadow: var(--shadow-3); }
.mgr-auth-box h2 { font-size: 20px; font-weight: 700; margin: 0; }
.auth-error { font-size: 14px; color: var(--danger); margin: 0; }

@media (max-width: 1024px) {
  .mgr-body { flex-direction: column; }
  .mgr-rail { width: 100%; max-height: 170px; border-right: none; border-bottom: 1px solid var(--line); }
  .mg-detail { width: 100%; border-left: none; border-top: 1px solid var(--line); }
}

@media (min-width: 768px) {
  .row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  background: var(--bg-sunken, #f5f4f0);
  font-family: var(--font-sans);
  color: var(--fg1, #0d0d0b);
}
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  gap: 20px;
}
.auth-brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
}
.auth-card { width: min(100%, 400px); }
.auth-card-wide { width: min(100%, 440px); }
.auth-card h1 { font-size: 24px; margin: 0; }
.auth-lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg3, #6b6a64); }
.auth-footer { margin: 0; font-size: 14px; color: var(--fg3, #6b6a64); text-align: center; }
.auth-footer a { color: var(--brand-strong, #1a5c42); }
.auth-hint { margin: 0; font-size: 13px; color: var(--fg3, #6b6a64); }
.auth-success { color: var(--positive, #1a5c42); }
.auth-google-btn { margin-top: 4px; }
.onboarding-google-section { display: grid; gap: 8px; margin-top: 4px; }
.onboarding-linked {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--positive, #1a5c42);
}
.auth-form { display: grid; gap: 12px; margin-top: 8px; }
.auth-field { display: grid; gap: 6px; font-size: 14px; }
.auth-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong, #d8d6ce);
  border-radius: var(--r-2, 8px);
  font: inherit;
  background: #fff;
}
.auth-subdomain-row { display: flex; align-items: center; gap: 8px; }
.auth-subdomain-row input { flex: 1; min-width: 0; }
.auth-subdomain-suffix { font-size: 14px; color: var(--fg3, #6b6a64); white-space: nowrap; }
.hidden { display: none !important; }

/* Admin account menu */
.mgr-header { gap: 12px; }
.mgr-account { position: relative; margin-left: auto; }
.mgr-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  font: inherit;
}
.mgr-account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.mgr-account-label {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}
.mgr-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-3);
  padding: 8px;
  z-index: 50;
}
.mgr-account-email {
  margin: 0;
  padding: 8px 10px 4px;
  font-size: 13px;
  color: var(--fg3);
  word-break: break-all;
}
.mgr-account-logout {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: var(--r-2);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
}
.mgr-account-logout:hover { background: var(--ink-100); }
