*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Motyw jasny (à la Cursor light) */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f1f3f7;
  --border: rgba(0, 0, 0, 0.1);
  --text: #1a1d24;
  --text-muted: #6b7280;
  --header-bg: #ffffff;
  /* Nakładki hover na jasnych powierzchniach */
  --hover: rgba(0, 0, 0, 0.05);
  --hover-strong: rgba(0, 0, 0, 0.08);
  /* Akcenty — jak w prototypie (bez zmian) */
  --user-accent: #5b8def;
  --user-accent-soft: rgba(91, 141, 239, 0.15);
  --provider-accent: #3ecf8e;
  --provider-accent-soft: rgba(62, 207, 142, 0.15);
  --accent-client: #5b8def;
  --accent-client-soft: rgba(91, 141, 239, 0.15);
  --accent-provider: #3ecf8e;
  --accent-provider-soft: rgba(62, 207, 142, 0.15);
  /* Kalendarz: dziś / zaznaczenie (wyraźniejsze niż chip-soft 15%) */
  --cal-today-bg: color-mix(in srgb, var(--accent-client) 28%, var(--surface));
  --cal-today-fg: var(--accent-client);
  --cal-selected-bg: color-mix(in srgb, var(--text) 16%, var(--surface-2));
  --cal-selected-fg: var(--text);
  --danger: #ef5b5b;
  --danger-soft: rgba(239, 91, 91, 0.12);
  --warning: #d99a17;
  --warning-soft: rgba(245, 181, 68, 0.16);
  --success: #2fae76;
  --phone-bg: #ffffff;
  --radius: 16px;
  --phone-radius: 36px;
  /* Symulator — zawsze 1:1, bez pomniejszenia */
  --cal-week-rows: 6;
  --cal-day-size: 2rem;
  --cal-day-gap: 0.25rem;
  --cal-section-gap: 0.55rem;
  --cal-grid-height: calc(var(--cal-week-rows) * var(--cal-day-size) + (var(--cal-week-rows) - 1) * var(--cal-day-gap));
  --cal-visible-height: calc(2rem + var(--cal-section-gap) + 0.875rem + var(--cal-section-gap) + var(--cal-grid-height));
  --booking-panel-col-pad: 0.85rem;
  --booking-panel-label-h: 1.35rem;
  --booking-panel-layout-h: calc(var(--booking-panel-col-pad) * 2 + var(--booking-panel-label-h) + var(--cal-visible-height));
  --booking-panel-summary-h: 3.75rem;
  --booking-panel-animate-h: calc(var(--booking-panel-layout-h) + var(--booking-panel-summary-h) + 0.5rem);
  --phi: 1.618;
  --bottom-nav-pill-h: 56px;
  --bottom-nav-pad-x: 0.35rem;
  --bottom-nav-gap: 0.15rem;
  --bottom-nav-item-w: calc(var(--bottom-nav-pill-h) / var(--phi) * 1.382);
  --bottom-nav-item-h: 44px;
  --bottom-nav-active-w: 44px;
  --bottom-nav-float-gap: 0px;
  --bottom-nav-h: var(--bottom-nav-pill-h);
  --bottom-nav-clearance: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  --app-pad-x: 0.75rem;
  --frame-h: 700px;
  --frame-mobile-w: 320px;
  --frame-desktop-w: 760px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* Header — standardowy pasek menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 64px;
  padding: 0 1.5rem;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.site-header__inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.25rem;
}

a.logo,
.logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

a.logo:visited,
a.logo:hover,
a.logo:active {
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--border);
  flex-shrink: 0;
}

.logo-mark__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.site-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

a.site-nav__link,
.site-nav__link {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

button.site-nav__link {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

.site-nav__link--active {
  color: var(--accent-client);
  background: var(--accent-client-soft);
}

a.site-nav__link:visited {
  color: var(--text-muted);
  text-decoration: none;
}

a.site-nav__link:hover,
.site-nav__link:hover {
  color: var(--text);
  background: var(--hover);
  text-decoration: none;
}

.site-header__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.site-nav__action {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.site-nav__action:hover {
  background: var(--hover-strong);
  border-color: var(--border);
}

.site-nav__action--primary {
  background: var(--user-accent);
  border-color: transparent;
  color: #fff;
}

.site-nav__action--primary:hover {
  background: #3d7fd9;
  border-color: transparent;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  max-width: min(92vw, 28rem);
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.toast[hidden] {
  display: none;
}

.sim-preview--active {
  outline: 2px solid var(--accent-client);
  outline-offset: 6px;
  border-radius: 12px;
}

.sim-preview--active[data-side="provider"] {
  outline-color: var(--accent-provider);
}

.device-frame--fullscale {
  width: min(100%, var(--frame-desktop-w));
  max-width: 100%;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    min-height: 56px;
    padding: 0.65rem 1rem;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  a.site-nav__link,
  .site-nav__link {
    font-size: 0.875rem;
    padding: 0.45rem 0.7rem;
  }
}

/* Google Calendar */
.calendar-section {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.calendar-section-header h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.calendar-section-header p {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.calendar-section:has(.calendar-frame--user) .calendar-section-header h2 {
  color: var(--user-accent);
}

.calendar-section:has(.calendar-frame--provider) .calendar-section-header h2 {
  color: var(--provider-accent);
}

.calendar-connect {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.calendar-connect input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  outline: none;
}

.calendar-connect input:focus {
  border-color: var(--accent-client);
}

.calendar-connect button {
  flex-shrink: 0;
  padding: 0.55rem 0.9rem;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.calendar-section:has(.calendar-frame--user) .calendar-connect button {
  background: var(--user-accent);
  color: #fff;
}

.calendar-section:has(.calendar-frame--provider) .calendar-connect button {
  background: var(--provider-accent);
  color: #0f1117;
}

.calendar-frame {
  width: 100%;
  min-height: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.calendar-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.calendar-placeholder {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.calendar-frame--user {
  border-color: rgba(91, 141, 239, 0.2);
}

.calendar-frame--provider {
  border-color: rgba(62, 207, 142, 0.2);
}

/* Panel labels */
.phone-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.panel-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.role-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.role-user {
  background: var(--user-accent-soft);
  color: var(--user-accent);
  border: 1px solid rgba(91, 141, 239, 0.3);
}

.role-provider {
  background: var(--provider-accent-soft);
  color: var(--provider-accent);
  border: 1px solid rgba(62, 207, 142, 0.3);
}

.role-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Phone frame */
.phone {
  width: 100%;
  max-width: 320px;
  background: var(--phone-bg);
  border-radius: var(--phone-radius);
  border: 2px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 64px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 90px;
  height: 24px;
  background: var(--phone-bg);
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.app-screen {
  display: flex;
  flex-direction: column;
  height: 580px;
  background: var(--surface);
}

/* Płynne wejście ekranu po zmianie zakładki/ekranu (crossfade, bez transform —
   transform łamałby position: fixed dolnej nawigacji podczas animacji). */
@keyframes appScreenEnter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.app-screen--enter {
  animation: appScreenEnter 0.22s ease;
}

/* Wejście kalendarza z pulpitu (mobile): z prawej, potem panel edycji. */
@keyframes appScreenEnterFromRight {
  from {
    transform: translateX(10%);
    opacity: 0.5;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.app-screen--enter-from-right {
  animation: appScreenEnterFromRight 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .app-screen--enter,
  .app-screen--enter-from-right {
    animation: none;
  }
}

.app-screen--user {
  --accent: var(--user-accent);
  --accent-soft: var(--user-accent-soft);
  --bubble-out: var(--user-accent);
}

.app-screen--client {
  --cal-today-bg: color-mix(in srgb, var(--accent-client) 28%, var(--surface));
  --cal-today-fg: var(--accent-client);
}

.app-screen--provider {
  --accent: var(--provider-accent);
  --accent-soft: var(--provider-accent-soft);
  --bubble-out: #2a9d6a;
  --cal-today-bg: color-mix(in srgb, var(--accent-provider) 28%, var(--surface));
  --cal-today-fg: var(--accent-provider);
}

/* Site footer */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   Page + Hero
   ============================================================ */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 3rem;
}

.hero {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--accent-client), var(--accent-provider));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin-top: 0.85rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ============================================================
   Pełnoekranowa aplikacja (#page-app)
   ============================================================ */
#page-home[hidden],
#page-app[hidden] {
  display: none;
}

#page-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100svh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

body:has(#page-app:not([hidden])) {
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100svh;
  max-height: 100dvh;
  min-height: 0;
}

/* Topbar aplikacji */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 60px;
  padding: 0 1.5rem;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow: visible;
}

.app-header__inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-header__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

#page-app[data-active-role="provider"] .app-header__nav .site-nav__link--active {
  color: var(--accent-provider);
  background: var(--accent-provider-soft);
}

/* Mobile: nawigacja w dolnym menu — bez górnego paska */
@media (max-width: 899px) {
  #page-home .site-nav,
  #page-app[data-active-role="client"] .app-header,
  #page-app[data-active-role="provider"] .app-header {
    display: none;
  }

  #page-app[data-active-role="client"] .app-fullscreen,
  #page-app[data-active-role="provider"] .app-fullscreen {
    flex: 1 1 0;
    min-height: 0;
    max-height: 100%;
    height: auto;
    overflow: hidden;
  }
}

.logo--btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* Przełącznik ról */
.app-role-switch {
  display: inline-flex;
  padding: 0.2rem;
  gap: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.app-role-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.app-role-btn[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--text);
}

.app-role-btn--client[aria-pressed="true"] {
  color: var(--accent-client);
}

.app-role-btn--provider[aria-pressed="true"] {
  color: var(--accent-provider);
}

.app-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.app-header__user {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.app-header__menu-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.app-header__menu-btn:hover,
.app-header__menu-btn--open {
  background: var(--hover-strong);
  border-color: var(--border);
}

.app-header__menu-icon {
  display: block;
  width: 1rem;
  height: 0.75rem;
  background:
    linear-gradient(var(--text), var(--text)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--text), var(--text)) 0 100% / 100% 2px no-repeat;
}

/* Obszar treści aplikacji — pełna szerokość, bez ramki */
.app-fullscreen {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Widok do osadzenia w iframe (#embed/slug) */
html.embed-mode,
body.embed-mode {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

body.embed-mode #page-home {
  display: none !important;
}

body.embed-mode #page-app {
  display: flex !important;
  height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
}

body.embed-mode .app-header,
body.embed-mode .app-menu {
  display: none !important;
}

body.embed-mode .app-fullscreen {
  flex: 1 1 auto;
  height: 100%;
  max-height: none;
}

body.embed-mode .bottom-nav:not(:has(.bottom-nav__book)) {
  display: none;
}

.app-fullscreen .app-screen {
  width: 100%;
  max-width: none;
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  max-height: 100%;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg);
}

@media (min-width: 768px) {
  .app-fullscreen .app-screen {
    max-width: none;
  }
}

.app-fullscreen-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.app-fullscreen-placeholder__role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.app-fullscreen-placeholder__screen {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.app-fullscreen-placeholder__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================================
   Symulator (CONTRACT §3, PLAN M1 kroki 4 + 6)
   ============================================================ */
.simulator {
  margin: 0 auto;
}

.simulator__stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.sim-preview {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.sim-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.15rem 0.15rem;
}

.sim-toolbar__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sim-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.sim-dot--client {
  background: var(--accent-client);
}

.sim-dot--provider {
  background: var(--accent-provider);
}

/* Toggle desktop/mobile */
.sim-viewtoggle {
  display: inline-flex;
  padding: 0.2rem;
  gap: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.sim-viewtoggle button {
  padding: 0.35rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.sim-viewtoggle button:hover {
  color: var(--text);
}

.sim-preview[data-side="client"] .sim-viewtoggle button[aria-pressed="true"] {
  background: var(--accent-client);
  color: #fff;
}

.sim-preview[data-side="provider"] .sim-viewtoggle button[aria-pressed="true"] {
  background: var(--accent-provider);
  color: #0f1117;
}

.sim-viewtoggle--locked {
  opacity: 0.55;
}

.sim-viewtoggle button:disabled {
  cursor: not-allowed;
}

/* Viewport — zawsze pełna skala (1:1), bez pomniejszenia */
.sim-viewport {
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: var(--frame-h);
}

/* Ramka urządzenia — ta sama wysokość dla mobile i desktop */
.device-frame {
  --w: var(--frame-mobile-w);
  width: var(--w);
  height: var(--frame-h);
  flex-shrink: 0;
  background: var(--phone-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 64px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-radius 0.5s ease;
}

.device-frame[data-view="mobile"] {
  --w: var(--frame-mobile-w);
  border-radius: 28px;
}

.device-frame[data-view="desktop"] {
  --w: var(--frame-desktop-w);
  height: var(--frame-h);
  border-radius: 16px;
}

/* Wnętrze montażu aplikacji */
.app-mount {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.device-frame .app-mount {
  flex: 1 1 auto;
}

.device-frame .app-screen {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  position: relative;
}

.device-frame .app-screen--booking {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.device-frame .app-screen--booking .booking-mobile {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
}

.device-frame .app-screen--booking .booking-layout {
  display: none;
}

.device-frame .app-screen--booking > .booking-confirm-bar,
.device-frame .app-screen--booking > .bottom-nav {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  flex-shrink: 0;
}

.app-mount:empty {
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.app-mount:empty::after {
  content: "Podgląd aplikacji załaduje się tutaj";
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Powłoka aplikacji renderowana przez backend (bazowe style) */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background: var(--surface);
  color: var(--text);
}

.app-shell[data-role="client"] {
  --accent: var(--accent-client);
  --accent-soft: var(--accent-client-soft);
}

.app-shell[data-role="provider"] {
  --accent: var(--accent-provider);
  --accent-soft: var(--accent-provider-soft);
}

.app-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  height: 100%;
  min-height: 100%;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at top, var(--accent-soft), transparent 55%),
    var(--surface);
}

.app-placeholder__role {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-placeholder__screen {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Desktop zmienia układ wewnętrzny, nie tylko szerokość ramki */
.device-frame[data-view="desktop"] .app-shell {
  --shell-layout: desktop;
}

.device-frame[data-view="mobile"] .app-shell {
  --shell-layout: mobile;
}

@media (max-width: 900px) {
  .simulator__stage {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sim-viewport {
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device-frame,
  .sim-viewtoggle button {
    transition: none;
  }
}

/* ============================================================
   Bazowe przyciski + statusy (CONTRACT §7)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease,
    transform 0.08s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent, var(--accent-client));
  color: #fff;
}

.btn--primary:hover {
  opacity: 0.92;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--border);
  background: var(--hover);
}

.btn--danger {
  background: var(--danger);
  color: #fff;
}

.btn--danger:hover {
  opacity: 0.92;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.status-badge[data-status="confirmed"] {
  background: var(--success-soft, rgba(62, 207, 142, 0.15));
  color: var(--success);
  border-color: rgba(62, 207, 142, 0.3);
}

.status-badge[data-status="pending"] {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: rgba(245, 181, 68, 0.3);
}

.status-badge[data-status="proposed"] {
  background: var(--accent-client-soft);
  color: var(--accent-client);
  border-color: rgba(91, 141, 239, 0.3);
}

.status-badge[data-status="rejected"] {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(239, 91, 91, 0.3);
}

.status-badge[data-status="cancelled"] {
  background: rgba(139, 146, 168, 0.15);
  color: var(--text-muted);
  border-color: rgba(139, 146, 168, 0.3);
}

/* ============================================================
   Sekcja kalendarza Google (opcjonalna, PLAN decyzja #4)
   ============================================================ */
.calendar-block {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.calendar-block__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.calendar-block__header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.calendar-block__header p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calendar-block__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  justify-items: center;
  align-items: start;
}

@media (max-width: 900px) {
  .calendar-block__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   EKRANY APLIKACJI (klient + usługodawca)
   Renderowane w symulatorze (#app-*) i w trybie pełnoekranowym.
   ============================================================ */
.app-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  max-height: 100%;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
}

/* ---- Menu boczne (hamburger) ---- */
.app-menu {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
  /* Opóźnij ukrycie, żeby animacja wysunięcia zdążyła się dokończyć */
  transition: visibility 0s linear 0.38s;
}

.app-menu--open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s linear 0s;
}

.app-menu__backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(28, 35, 51, 0.48);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.34s ease;
}

.app-menu--open .app-menu__backdrop {
  opacity: 1;
}

.app-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: calc(100% - 2.75rem);
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.9rem 0.85rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  box-shadow: -10px 0 32px rgba(15, 23, 42, 0.18);
  transform: translate3d(105%, 0, 0);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  will-change: transform;
}

.app-menu--open .app-menu__panel {
  transform: translate3d(0, 0, 0);
}

/* Desktop: menu nad headerem (otwierane z paska) */
@media (min-width: 900px) {
  .app-fullscreen .app-menu {
    position: fixed;
    z-index: 200;
  }
}

.app-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.app-menu__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.app-menu__logo {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--border);
  flex-shrink: 0;
}

.app-menu__brand-text {
  min-width: 0;
}

.app-menu__brand-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}

.app-menu__title {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-menu__close {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
}

.app-menu__close:hover {
  color: var(--text);
}

.app-menu__close-icon {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.app-menu__profiles {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--border);
}

.app-menu__profiles-label {
  margin: 0 0 0.1rem;
  padding: 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-menu__profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.35rem 0.35rem 0.55rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  transition: background 0.18s ease;
}

button.app-menu__profile {
  cursor: pointer;
  gap: 0.7rem;
  padding: 0.65rem 0.7rem;
}

.app-menu__profile-main {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0.3rem 0.35rem 0.3rem 0.15rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.app-menu__profile--client:hover,
.app-menu__profile--provider:hover,
.app-menu__profile--add:hover,
.app-menu__profile:hover {
  background: color-mix(in srgb, var(--accent-client) 8%, transparent);
}

.app-menu__profile--client.app-menu__profile--active,
.app-menu__profile--client.app-menu__profile--active:hover {
  background: var(--accent-client-soft);
}

.app-menu__profile--provider.app-menu__profile--active,
.app-menu__profile--provider.app-menu__profile--active:hover {
  background: var(--provider-accent-soft);
}

.app-menu__profile-edit {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.app-menu__profile-edit:hover,
.app-menu__profile-edit:active {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.app-menu__profile-edit-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.app-menu__photo-btn {
  position: relative;
  display: block;
  margin: -0.15rem 0 0.15rem;
  padding: 0.2rem 0.7rem 0.35rem;
  cursor: pointer;
}

.app-menu__photo-btn-label {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--accent-client);
}

.app-menu__file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.app-menu__avatar {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}

.app-menu__avatar--client {
  background: linear-gradient(135deg, var(--accent-client), #6aa8ff);
}

.app-menu__avatar--provider {
  background: linear-gradient(135deg, var(--accent-provider), var(--accent-client));
}

.app-menu__avatar--add {
  background: var(--surface);
  border: 1.5px dashed color-mix(in srgb, var(--accent-client) 45%, var(--border));
  color: var(--accent-client);
  font-size: 1.35rem;
  font-weight: 500;
}

.app-menu__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-menu__profile-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.app-menu__profile-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-menu__profile-name {
  font-size: 0.95rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-menu__profile-hint {
  font-size: 0.72rem;
  color: var(--accent-client);
}

.app-menu__links,
.app-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.app-menu__footer {
  margin-top: auto;
  padding-top: 0.25rem;
}

.app-menu__link {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.55rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.app-menu__link:hover {
  background: var(--surface-2);
  color: var(--accent-client);
}

.pwa-install-help {
  position: fixed;
  inset: 0;
  z-index: 11100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.pwa-install-help[hidden] {
  display: none;
}

.pwa-install-help__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.pwa-install-help__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  animation: pwa-install-help-in 0.2s ease;
}

@keyframes pwa-install-help-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pwa-install-help__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.pwa-install-help__close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.pwa-install-help__close-icon {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pwa-install-help__title {
  margin: 0 1.75rem 0.45rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.pwa-install-help__lead {
  margin: 0 0 0.95rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.pwa-install-help__steps {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pwa-install-help__step {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
}

.pwa-install-help__num {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-client) 14%, transparent);
  color: var(--accent-client);
  font-size: 0.78rem;
  font-weight: 700;
}

.pwa-install-help__ok {
  width: 100%;
}

body.pwa-install-help-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .pwa-install-help__dialog {
    animation: none;
  }
}

.cancel-visit-dialog {
  position: fixed;
  inset: 0;
  z-index: 11120;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.cancel-visit-dialog[hidden] {
  display: none;
}

.cancel-visit-dialog__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.cancel-visit-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  padding: 1.25rem 1.15rem 1.1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  animation: pwa-install-help-in 0.2s ease;
}

.cancel-visit-dialog__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.cancel-visit-dialog__lead {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.cancel-visit-dialog__policy {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
  border: 1px solid var(--border);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.cancel-visit-dialog__policy-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cancel-visit-dialog__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cancel-visit-dialog__actions .btn {
  min-width: 0;
}

body.cancel-visit-dialog-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .cancel-visit-dialog__panel {
    animation: none;
  }
}

.app-menu__link--logout {
  color: var(--danger);
}

.app-menu__link--logout:hover {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
}

.app-menu__version {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.app-menu__link--version {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.app-menu__link--version:hover {
  color: var(--text);
}

.app-menu__link--version.has-update {
  color: var(--text);
}

.app-menu__link--version > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.app-menu__update-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-provider) 16%, transparent);
  color: var(--accent-provider);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.app-menu__version-num {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: var(--text);
}

.app-menu__link--version.has-update .app-menu__version-num {
  color: var(--accent-provider);
}

@media (prefers-reduced-motion: reduce) {
  .app-menu,
  .app-menu--open,
  .app-menu__backdrop,
  .app-menu__panel {
    transition: none;
  }
}

.app-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem var(--app-pad-x) 1.25rem;
  background: #eef0f4;
}

.app-screen--provider .app-scroll {
  background: var(--surface);
}

.app-screen--settings .app-scroll,
.app-screen--service-edit .app-scroll {
  background: #eef0f4;
}

.screen-head {
  margin-bottom: 0.9rem;
}

.screen-head--with-back {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.screen-head--with-back:has(.screen-head__text) {
  align-items: flex-start;
}

.screen-head__back {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0 0 -0.45rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.screen-head__back-icon {
  display: block;
  width: 0.82rem;
  height: 1.35rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5.5l-7.5 6.5 7.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5.5l-7.5 6.5 7.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.screen-head__back:hover {
  color: var(--text-muted);
}

.screen-head__back:active {
  transform: scale(0.94);
}

.screen-head--with-back .screen-head__title {
  flex: 1;
  min-width: 0;
}

.screen-head__text {
  flex: 1;
  min-width: 0;
}

.screen-head__text .screen-head__title {
  flex: none;
}

.screen-head__text .screen-head__sub {
  margin-top: 0.15rem;
}

.screen-head__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.screen-head__sub {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.empty-note {
  padding: 1.5rem 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.5;
}

.btn--sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

/* ---- Topbar wewnątrz ekranu ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 5;
}

.topbar__back {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
}

.topbar__back:hover {
  background: var(--surface-2);
}

.topbar__title {
  font-weight: 600;
  font-size: 0.95rem;
}

.topbar__spacer {
  width: 2rem;
}

.fav-btn {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.fav-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--danger);
}

.fav-btn--on {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
  color: var(--danger);
}

.fav-btn__icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fav-btn--on .fav-btn__icon {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Wyszukiwarka + kategorie ---- */
.search__input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.search__input:focus {
  outline: none;
  border-color: var(--accent-client);
}

/* ---- Pasek wyszukiwania desktop (Booksy-like) ---- */
.search-wrap {
  container-type: inline-size;
  margin-bottom: 0.75rem;
}

.search-bar--mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-bar__row--query,
.search-bar__row--meta {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.search-bar__logo {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.search-bar__logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-bar--mobile .search-bar__segment--block {
  border: none;
  border-radius: 10px;
  background: var(--surface);
  min-height: 2.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.search-bar--mobile .search-bar__segment--query {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.search-bar--mobile .search-bar__segment--location {
  flex: 1;
  min-width: 0;
}

.search-bar--mobile .search-bar__segment--radius {
  flex: 0 0 auto;
  min-width: 6.5rem;
}

.search-bar--mobile .search-bar__select {
  width: 100%;
}

.search-bar--desktop {
  display: none;
}

@container (min-width: 560px) {
  .search-bar--mobile {
    display: none;
  }

  .search-bar--desktop {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
  }
}

.device-frame[data-view="desktop"] .search-bar--mobile {
  display: none;
}

.device-frame[data-view="desktop"] .search-bar--desktop {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}

.search-bar__segment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.85rem;
  min-height: 3rem;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.search-bar__segment--query {
  flex: 1.4 1 0;
}

.search-bar__segment--location {
  flex: 1.2 1 0;
  position: relative;
}

.search-bar__segment--radius {
  flex: 0 0 auto;
  padding-right: 0.5rem;
}

.search-bar__icon {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1;
}

.search-bar__input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 0;
}

.search-bar__input::placeholder {
  color: var(--text-muted);
}

.search-bar__input:focus {
  outline: none;
}

.search-bar__clear {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
  flex-shrink: 0;
}

.search-bar__clear:hover {
  color: var(--text);
}

.search-bar__select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem 0.65rem 0.35rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b92a8' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
}

.search-bar__select:focus {
  outline: none;
}

.search-bar__submit {
  flex: 0 0 auto;
  border-radius: 0;
  min-height: 3rem;
  padding: 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.filter-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.filter-scroll--dragging {
  cursor: grabbing;
}

.filter-scroll--main {
  margin: 0.75rem 0 0.5rem;
}

.filters-wrap {
  container-type: inline-size;
  container-name: filters;
}

.category-filter-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.category-filter-row .filter-scroll--main {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0.75rem 0 0.5rem;
}

.filter-toggle {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0.75rem 0 0.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}

.filter-toggle:hover {
  color: color-mix(in srgb, var(--text) 72%, var(--text-muted));
  border-color: color-mix(in srgb, var(--text) 22%, var(--border));
}

/* Aktywne filtry (panel schowany) — subtelny szary akcent */
.filter-toggle--active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 28%, var(--border));
  background: var(--surface-2);
}

/* Panel widoczny — czarny przycisk z białą ikoną */
.filter-toggle--open {
  color: #fff;
  border-color: var(--text);
  background: var(--text);
}

.filter-toggle--open:hover {
  color: #fff;
  border-color: var(--text);
  background: color-mix(in srgb, var(--text) 88%, #000);
}

.filter-toggle__icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Ccircle cx='8' cy='6' r='1.75' fill='black'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Ccircle cx='14' cy='12' r='1.75' fill='black'/%3E%3Cline x1='4' y1='18' x2='20' y2='18'/%3E%3Ccircle cx='10' cy='18' r='1.75' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Ccircle cx='8' cy='6' r='1.75' fill='black'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Ccircle cx='14' cy='12' r='1.75' fill='black'/%3E%3Cline x1='4' y1='18' x2='20' y2='18'/%3E%3Ccircle cx='10' cy='18' r='1.75' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Rozwiń / zwiń — 300 ms */
.search-filters {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0;
  padding: 0;
  border-top: 1px solid transparent;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition:
    grid-template-rows 300ms ease,
    opacity 300ms ease,
    margin 300ms ease,
    padding 300ms ease,
    border-color 300ms ease,
    visibility 0s linear 300ms;
}

.search-filters--open {
  grid-template-rows: 1fr;
  margin: 0 0 0.65rem;
  padding: 0.55rem 0 0.15rem;
  border-top-color: var(--border);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition:
    grid-template-rows 300ms ease,
    opacity 300ms ease,
    margin 300ms ease,
    padding 300ms ease,
    border-color 300ms ease,
    visibility 0s linear 0s;
}

.search-filters__inner {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 0;
  overflow: hidden;
}

.search-filters__section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.search-filters__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.search-filters__empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.filter-scroll--dates {
  margin: 0;
}

.date-strip--filters {
  display: inline-flex;
  width: max-content;
  max-width: none;
  overflow: visible;
  gap: 0.28rem;
  padding: 0;
}

.date-strip--filters .date-chip {
  flex: 0 0 2.55rem;
  width: 2.55rem;
  min-width: 2.55rem;
  max-width: 2.55rem;
}

.period-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.period-chip {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.period-chip:hover {
  border-color: color-mix(in srgb, var(--accent-client) 40%, var(--border));
}

.period-chip--active {
  background: var(--accent-client-soft);
  border-color: var(--accent-client);
  color: var(--accent-client);
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .search-filters {
    transition: none;
  }
}

.filter-scroll--sub {
  margin: 0 0 0.85rem;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.filter-scroll__track {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  width: max-content;
  min-width: min(100%, max-content);
  padding: 0 0.15rem;
}

.filter-scroll--sub .filter-scroll__track {
  gap: 0.35rem;
}

.category-chips,
.subcategory-chips {
  /* track wewnątrz .filter-scroll — bez własnego overflow */
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: inherit;
  width: max-content;
}

.category-chip,
.subcategory-chip {
  flex-shrink: 0;
  white-space: nowrap;
  user-select: none;
}

.category-chip {
  appearance: none;
  border: 1px solid transparent;
  background: #fff;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-label--short {
  display: none;
}

@media (max-width: 899px) {
  .chip-label--full {
    display: none;
  }

  .chip-label--short {
    display: inline;
  }
}

.device-frame[data-view="mobile"] .chip-label--full {
  display: none;
}

.device-frame[data-view="mobile"] .chip-label--short {
  display: inline;
}

.category-chip:hover {
  color: var(--text);
}

.category-chip--active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.category-chip--active:hover {
  color: #fff;
  background: #111;
  border-color: #111;
}

.subcategory-chip {
  appearance: none;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subcategory-chip:hover {
  color: var(--text);
  border-color: var(--accent-client);
}

.subcategory-chip--active {
  background: var(--accent-client-soft);
  border-color: var(--accent-client);
  border-style: solid;
  color: var(--accent-client);
}

/* ---- Lista firm (karty) ---- */
.provider-item {
  display: flex;
  flex-direction: column;
}

.provider-card--open {
  border-color: var(--accent-client);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.provider-booking-panel {
  overflow: hidden;
  border: 1px solid var(--accent-client);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: var(--surface);
}

.provider-booking-panel--enter {
  animation: providerPanelSlideDown 0.3s ease;
}

.provider-booking-panel--closing {
  animation: providerPanelSlideUp 0.3s ease forwards;
  pointer-events: none;
}

.provider-card--closing {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Ten sam padding kolumn co w auto — bez dodatkowego paddingu na panelu
   (wcześniej --approval zwężał listę/kalendarz przy zmianie trybu oferty). */

.provider-booking-panel__services {
  margin-bottom: 0.5rem;
  max-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.provider-booking-panel .booking-layout {
  min-height: var(--booking-panel-layout-h);
  max-height: var(--booking-panel-layout-h);
  height: var(--booking-panel-layout-h);
  grid-template-rows: minmax(0, 1fr);
}

.provider-booking-panel .booking__calendar .cal {
  flex: 0 0 auto;
  height: var(--cal-visible-height);
  max-height: var(--cal-visible-height);
  overflow: hidden;
}

.provider-booking-panel .cal__day {
  aspect-ratio: auto;
  height: var(--cal-day-size);
  min-height: var(--cal-day-size);
  max-height: var(--cal-day-size);
}

.provider-booking-panel .selection-summary--inline {
  border-top: 1px solid var(--border);
  border-radius: 0;
}

@keyframes providerPanelSlideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-0.35rem);
  }

  to {
    opacity: 1;
    max-height: var(--booking-panel-animate-h);
    transform: translateY(0);
  }
}

@keyframes providerPanelSlideUp {
  from {
    opacity: 1;
    max-height: var(--booking-panel-animate-h);
    transform: translateY(0);
  }

  to {
    opacity: 0;
    max-height: 0;
    transform: translateY(-0.35rem);
  }
}

.device-frame[data-view="desktop"] .provider-booking-panel .booking-layout {
  display: grid;
}

@media (min-width: 900px) {
  .app-fullscreen .provider-booking-panel .booking-layout {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .provider-booking-panel--enter,
  .provider-booking-panel--closing {
    animation: none;
  }
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.provider-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "head head head"
    "avatar details menu";
  column-gap: 0.75rem;
  row-gap: 0.45rem;
  align-items: start;
  width: 100%;
  padding: 0.8rem;
  background: var(--surface);
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.1s ease,
    border-bottom-left-radius 0.3s ease,
    border-bottom-right-radius 0.3s ease;
}

.provider-card--booking-header {
  margin-bottom: 0.65rem;
  row-gap: 0.12rem;
  padding-top: 0;
  padding-bottom: 0.35rem;
  background: var(--surface-2);
  box-shadow: none;
}

.provider-card__head {
  grid-area: head;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.provider-card__back {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 0.05rem 0 -0.35rem;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.provider-card__back-icon {
  display: block;
  width: 0.82rem;
  height: 1.35rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5.5l-7.5 6.5 7.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5.5l-7.5 6.5 7.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.provider-card__back:hover {
  color: var(--text-muted);
  background: transparent;
  border: none;
}

.provider-card__back:active {
  transform: scale(0.94);
}

.provider-card--with-back .provider-card__name {
  flex: 1;
  min-width: 0;
}

.provider-card__avatar {
  grid-area: avatar;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-client), var(--accent-provider));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Lista wyników: avatar na wysokość 3 linii szczegółów */
.provider-list .provider-card__avatar {
  width: 3.625rem;
  height: 3.625rem;
  border-radius: 12px;
  font-size: 1.15rem;
  align-self: start;
}

button.provider-card__avatar.avatar-trigger,
button.profile__avatar.avatar-trigger {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: none;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
}

button.provider-card__avatar.avatar-trigger:hover,
button.profile__avatar.avatar-trigger:hover {
  filter: brightness(1.05);
}

button.provider-card__avatar.avatar-trigger:active,
button.profile__avatar.avatar-trigger:active {
  transform: scale(0.96);
}

.avatar-trigger .avatar-preview__initials,
.avatar-trigger .avatar-preview__img {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.avatar-trigger .avatar-preview__img {
  object-fit: cover;
}

.avatar-preview {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.avatar-preview[hidden] {
  display: none !important;
}

.avatar-preview__backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}

.avatar-preview__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: min(100%, 22.5rem);
  max-height: min(88vh, 38rem);
  padding: 0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  animation: avatar-preview-in 0.2s ease;
  overflow: hidden;
}

.avatar-preview__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 1.15rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.avatar-preview__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 0 1rem;
  overscroll-behavior: contain;
}

.avatar-preview__section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.avatar-preview__section:last-child {
  margin-bottom: 0.15rem;
}

.avatar-preview__section-title {
  margin: 0;
  padding: 0 1.1rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--text);
}

.avatar-preview__carousel {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.1rem 1.1rem 0.2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.avatar-preview__carousel::-webkit-scrollbar {
  display: none;
}

.avatar-preview__card {
  position: relative;
  flex: 0 0 auto;
  width: 8.4rem;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.avatar-preview__card-img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-2);
}

.avatar-preview__card-img--empty {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-client) 18%, var(--surface-2)), color-mix(in srgb, var(--accent-provider) 16%, var(--surface-2)));
}

.avatar-preview__card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem 0.45rem;
}

.avatar-preview__card-dur {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.avatar-preview__card-price {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text);
}

.avatar-preview__empty {
  margin: 0.4rem 1.1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.avatar-preview__cat {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

@keyframes avatar-preview-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.avatar-preview__close {
  appearance: none;
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
}

.avatar-preview__close:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 22%, var(--border));
}

.avatar-preview__close-icon {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.avatar-preview__frame {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-client), var(--accent-provider));
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-preview__initials--large {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.avatar-preview__img--large {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-preview__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  text-align: center;
}

body.avatar-preview-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .avatar-preview__dialog {
    animation: none;
  }
}

.provider-card__name {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}

.provider-card__name:active {
  transform: scale(0.995);
}

.provider-card__details {
  grid-area: details;
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.provider-card__details:active {
  transform: scale(0.995);
}

.provider-card--static .provider-card__name,
.provider-card--static .provider-card__details {
  cursor: default;
}

.provider-card--static .provider-card__name:active,
.provider-card--static .provider-card__details:active {
  transform: none;
}

.provider-card__cat {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.provider-card__meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
  font-size: 0.75rem;
  color: var(--accent-client);
  font-weight: 500;
}

.provider-card__dow {
  flex-shrink: 0;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.provider-card__meta-sep {
  opacity: 0.55;
}

.provider-card__hours {
  min-width: 0;
}

.provider-card__addr {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.provider-card__toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 0 0 auto;
  width: auto;
}

.provider-card__menu-slot {
  grid-area: menu;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: end;
  gap: 0.35rem;
}

/* Desktop: avatar po lewej, nazwa + ⋯ ♥ w jednym wierszu */
@media (min-width: 900px) {
  .provider-card {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "avatar head menu"
      "avatar details details";
    row-gap: 0.15rem;
    align-items: center;
  }

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

  .provider-card__menu-slot {
    align-self: center;
  }

  .provider-card__details {
    align-self: start;
  }

  .provider-card__avatar {
    align-self: start;
  }
}

.device-frame[data-view="desktop"] .provider-card {
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "avatar head menu"
    "avatar details details";
  row-gap: 0.15rem;
  align-items: center;
}

.device-frame[data-view="desktop"] .provider-card__menu-slot {
  align-self: center;
}

.device-frame[data-view="desktop"] .provider-card__details,
.device-frame[data-view="desktop"] .provider-card__avatar {
  align-self: start;
}

.device-frame[data-view="mobile"] .provider-card {
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "head head head"
    "avatar details menu";
  align-items: start;
}

.device-frame[data-view="mobile"] .provider-card__menu-slot {
  align-self: end;
}

/* Mobile lista: bez ⋯; otwarty profil/rezerwacja — ⋯ zlicowane z dołem szczegółów */
@media (max-width: 899px) {
  .provider-card__menu-slot {
    align-self: end;
  }

  .provider-card:not(.provider-card--booking-header):not(.provider-card--open) {
    grid-template-areas:
      "head head head"
      "avatar details details";
  }

  .provider-card:not(.provider-card--booking-header):not(.provider-card--open) .provider-card__menu-slot {
    display: none;
  }
}

.device-frame[data-view="mobile"] .provider-card:not(.provider-card--booking-header):not(.provider-card--open) {
  grid-template-areas:
    "head head head"
    "avatar details details";
}

.device-frame[data-view="mobile"] .provider-card:not(.provider-card--booking-header):not(.provider-card--open) .provider-card__menu-slot {
  display: none;
}

.provider-card__action {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.provider-card__action-icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.provider-card-popover__item-icon--info {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 10v6M12 7h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 10v6M12 7h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.provider-card-popover__item-icon--call {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.provider-card-popover__item-icon--mail {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.provider-card-popover__item-icon--social {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12h8M12 8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12h8M12 8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.provider-card__menu:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
  color: var(--text);
}

.provider-card__menu--open {
  background: var(--accent-client-soft);
  border-color: var(--accent-client);
  color: var(--accent-client);
}

.provider-card__menu-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E");
}

.provider-card__info:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
  color: var(--text);
}

.provider-card__info--open {
  background: var(--accent-client-soft);
  border-color: var(--accent-client);
  color: var(--accent-client);
}

.provider-card__info-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 10v6M12 7h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 10v6M12 7h.01'/%3E%3C/svg%3E");
}

.provider-card__action.provider-card__fav {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.provider-card__action.provider-card__fav:hover,
.provider-card__action.provider-card__fav:active,
.provider-card__action.provider-card__fav--on,
.provider-card__action.provider-card__fav--on:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent-client);
}

.provider-card__fav-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.provider-card__fav--on .provider-card__fav-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

/* ---- Popover menu karty usługodawcy ---- */
.provider-card-popover {
  position: fixed;
  z-index: 10050;
  min-width: 10.5rem;
  padding: 0.3rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.provider-card-popover[hidden] {
  display: none !important;
}

.provider-card-popover__item {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}

.provider-card-popover__item:hover {
  background: var(--surface-2);
  color: var(--accent-client);
}

.provider-card-popover__item-icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  background: currentColor;
}

.provider-card-popover__item-icon--share {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E") center / contain no-repeat;
}

.provider-card-popover__item-icon--nav {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='3 11 22 2 13 21 11 13 3 11'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='3 11 22 2 13 21 11 13 3 11'/%3E%3C/svg%3E") center / contain no-repeat;
}

.provider-card-popover__item--report {
  margin-top: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.provider-card-popover__item--report:hover {
  color: var(--danger);
}

.provider-card-popover__item-icon--report {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cline x1='4' y1='22' x2='4' y2='15'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cline x1='4' y1='22' x2='4' y2='15'/%3E%3C/svg%3E") center / contain no-repeat;
}

.booking__provider-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  z-index: 2;
}

.provider-card__info-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  margin: 0;
  padding: 0.4rem var(--app-pad-x, 0.75rem) 0.45rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  animation: provider-info-panel-in 0.2s ease;
}

@keyframes provider-info-panel-in {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.provider-card__info-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.provider-card__info-action {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.55rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.provider-card__info-action:hover {
  background: var(--surface-2);
  color: var(--accent-client);
}

.provider-card__info-action--report {
  margin-top: 0.1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
}

.provider-card__info-action--report:hover {
  color: var(--danger);
}

@media (prefers-reduced-motion: reduce) {
  .provider-card__info-panel {
    animation: none;
  }
}

/* ---- Kafelki kontaktu w panelu info karty ---- */
.provider-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.15rem 0 0.5rem;
}

.provider-tile {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 4.1rem;
  flex: 0 0 auto;
  padding: 0.55rem 0.5rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.12s ease;
}

.provider-tile:hover {
  background: var(--hover);
  border-color: var(--accent-client);
  color: var(--accent-client);
}

.provider-tile:active {
  transform: scale(0.97);
}

.provider-tile--disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.provider-tile__icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.provider-tile__icon--profile {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-3.5 4.5-5 8-5s6.5 1.5 8 5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-3.5 4.5-5 8-5s6.5 1.5 8 5'/%3E%3C/svg%3E");
}

.provider-tile__icon--call {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.provider-tile__icon--nav {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='3 11 22 2 13 21 11 13 3 11'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='3 11 22 2 13 21 11 13 3 11'/%3E%3C/svg%3E");
}

.provider-tile__icon--website,
.provider-tile__icon--web {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a13.5 13.5 0 0 1 0 18 13.5 13.5 0 0 1 0-18z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a13.5 13.5 0 0 1 0 18 13.5 13.5 0 0 1 0-18z'/%3E%3C/svg%3E");
}

.provider-tile__icon--instagram {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.2' cy='6.8' r='1' fill='black' stroke='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.2' cy='6.8' r='1' fill='black' stroke='none'/%3E%3C/svg%3E");
}

.provider-tile__icon--facebook {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M13.5 21v-7h2.6l.4-3h-3V9.1c0-.87.24-1.46 1.5-1.46h1.6V4.98c-.28-.04-1.23-.12-2.33-.12-2.3 0-3.88 1.4-3.88 3.98V11H8v3h2.39v7h3.11z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M13.5 21v-7h2.6l.4-3h-3V9.1c0-.87.24-1.46 1.5-1.46h1.6V4.98c-.28-.04-1.23-.12-2.33-.12-2.3 0-3.88 1.4-3.88 3.98V11H8v3h2.39v7h3.11z'/%3E%3C/svg%3E");
}

.provider-tile__icon--tiktok {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M16.5 3c.34 1.76 1.83 3.15 3.63 3.28v2.86a6.4 6.4 0 0 1-3.63-1.13v5.66a5.73 5.73 0 1 1-5.73-5.73c.32 0 .63.03.94.08v2.96a2.86 2.86 0 1 0 1.93 2.7V3h2.86z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M16.5 3c.34 1.76 1.83 3.15 3.63 3.28v2.86a6.4 6.4 0 0 1-3.63-1.13v5.66a5.73 5.73 0 1 1-5.73-5.73c.32 0 .63.03.94.08v2.96a2.86 2.86 0 1 0 1.93 2.7V3h2.86z'/%3E%3C/svg%3E");
}

.provider-tile__icon--youtube {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='19' height='13' rx='3.5'/%3E%3Cpath d='m10 9 5 3-5 3V9z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='19' height='13' rx='3.5'/%3E%3Cpath d='m10 9 5 3-5 3V9z' fill='black'/%3E%3C/svg%3E");
}

.provider-tile__icon--x {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4h3.4l4.4 6.1L17.6 4H20l-6.9 8.4L20.5 20h-3.4l-4.7-6.4L6.6 20H4l7.2-8.6L4 4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4h3.4l4.4 6.1L17.6 4H20l-6.9 8.4L20.5 20h-3.4l-4.7-6.4L6.6 20H4l7.2-8.6L4 4z'/%3E%3C/svg%3E");
}

.provider-tile__icon--linkedin {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='3' width='18' height='18' rx='3' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='8.1' cy='8.3' r='1.2'/%3E%3Cpath d='M7 11h2.2v7H7zM11 11h2.1v1.05c.6-.6 1.4-1.2 2.6-1.2 2 0 3.3 1.2 3.3 3.7V18h-2.2v-3.1c0-1.2-.5-1.9-1.5-1.9-1.1 0-2.1.7-2.1 2V18H11v-7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='3' width='18' height='18' rx='3' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='8.1' cy='8.3' r='1.2'/%3E%3Cpath d='M7 11h2.2v7H7zM11 11h2.1v1.05c.6-.6 1.4-1.2 2.6-1.2 2 0 3.3 1.2 3.3 3.7V18h-2.2v-3.1c0-1.2-.5-1.9-1.5-1.9-1.1 0-2.1.7-2.1 2V18H11v-7z'/%3E%3C/svg%3E");
}

.provider-tile__icon--pinterest {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5c-2 0-3.4 1.3-3.4 3 0 .9.4 1.6 1.2 2 .1.05.2.03.23-.06l.18-.75a.25.25 0 0 0-.06-.24c-.3-.37-.5-.84-.5-1.35 0-1.5 1.15-2.6 2.6-2.6 1.42 0 2.35.83 2.35 2.05 0 1.5-.8 2.9-2 2.9-.66 0-1.15-.5-1-1.13.2-.85.6-1.77.6-2.39 0-.55-.31-.76-.67-.76-.53 0-.96.55-.96 1.28 0 .47.16.79.16.79l-.63 2.67c-.18.8-.1 1.86-.05 2.03'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5c-2 0-3.4 1.3-3.4 3 0 .9.4 1.6 1.2 2 .1.05.2.03.23-.06l.18-.75a.25.25 0 0 0-.06-.24c-.3-.37-.5-.84-.5-1.35 0-1.5 1.15-2.6 2.6-2.6 1.42 0 2.35.83 2.35 2.05 0 1.5-.8 2.9-2 2.9-.66 0-1.15-.5-1-1.13.2-.85.6-1.77.6-2.39 0-.55-.31-.76-.67-.76-.53 0-.96.55-.96 1.28 0 .47.16.79.16.79l-.63 2.67c-.18.8-.1 1.86-.05 2.03'/%3E%3C/svg%3E");
}

.provider-tile__label {
  line-height: 1;
  white-space: nowrap;
}

/* ---- Godziny + lokalizacje w panelu info ---- */
.provider-hours {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.provider-hours__toggle {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.15rem 0.4rem;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.provider-hours__label {
  flex: 1 1 auto;
}

.provider-hours__chev {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.18s ease;
  color: var(--text-muted);
}

.provider-hours__toggle[aria-expanded="true"] .provider-hours__chev {
  transform: rotate(180deg);
}

.provider-hours__today-line {
  margin: 0;
  padding: 0 0.15rem 0.5rem;
  font-size: 0.78rem;
  color: var(--accent-client);
  font-weight: 500;
}

.provider-hours__list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-bottom: 0.4rem;
}

.provider-hours__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  padding: 0.3rem 0.15rem;
  border-radius: 7px;
}

.provider-hours__row--today {
  background: var(--accent-client-soft);
}

.provider-hours__day {
  flex: 0 0 7.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.provider-hours__today {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent-client);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.provider-hours__time {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.provider-hours__closed {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.provider-hours__locs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-left: auto;
}

.provider-hours__loc {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-muted);
}

.provider-hours__loc-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--text-muted);
}

.provider-info__locs {
  padding: 0.3rem 0 0.5rem;
  border-top: 1px solid var(--border);
}

.provider-info__sub {
  margin: 0.4rem 0.15rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.provider-info__locs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.provider-info__loc {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.35rem 0.15rem;
  font-size: 0.78rem;
}

.provider-info__loc .provider-hours__loc-dot {
  align-self: center;
  flex: 0 0 auto;
}

.provider-info__loc-label {
  font-weight: 600;
  color: var(--text);
  flex: 0 0 auto;
}

.provider-info__loc-addr {
  color: var(--text-muted);
  font-size: 0.72rem;
}

/* Desktop: panel info = wiersz wewnątrz otwartej karty (nie overlay) */
.provider-card--open .provider-card__info-panel {
  position: static;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0.4rem 0 0;
  padding: 0.55rem 0.1rem 0.15rem;
  border-top: 1px solid var(--border);
  background: transparent;
  box-shadow: none;
  animation: provider-info-panel-in 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .provider-card__info-panel,
  .provider-tile,
  .provider-hours__chev {
    animation: none;
    transition: none;
  }
}

/* ---- Profil ---- */
.profile__header {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.5rem 0 1rem;
}

.profile__avatar {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-client), var(--accent-provider));
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.profile__name {
  font-size: 1.2rem;
  font-weight: 700;
}

.profile__cat {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile__addr {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.profile__about {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text);
}

.profile__policy {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
  border: 1px solid var(--border);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.profile__policy-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile__policy--compact {
  margin-top: 0.35rem;
}

.profile__contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}

.profile__contact-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent-client) 6%, var(--surface));
  color: var(--text);
  text-decoration: none;
}

.profile__contact-link:hover {
  background: color-mix(in srgb, var(--accent-client) 12%, var(--surface));
}

.profile__contact-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.profile__contact-val {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--accent-client);
  text-align: right;
  word-break: break-word;
}

.profile__mode {
  padding: 0.6rem 0.8rem;
  background: var(--warning-soft);
  border: 1px solid rgba(245, 181, 68, 0.3);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--warning);
  margin-bottom: 0.75rem;
}

.profile__section {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.5rem 0 0.6rem;
}

.profile__hint {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Lista usług (wybór) ---- */
.service-list__group {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 0.9rem;
}

.service-list__group:last-child {
  margin-bottom: 0;
}

.service-list__group-head {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0 0 0.4rem;
  padding: 0 0.05rem;
}

.service-list__group-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.service-list__group-sub {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

/* „Na prośbę” — osobna sekcja za separatorem */
.service-list__group--approval {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.service-row__mode {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--accent-provider);
}

.service-row__mode--auto {
  color: var(--accent-provider);
}

.service-row__mode--approval {
  color: var(--warning, #c9851a);
}

.service-row__mode--queue {
  color: var(--accent-client, #5b8def);
}


.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.service-row:has(.service-row__check):not(.service-row--booking-b) {
  padding-bottom: 0;
}

/* Lista usług u usługodawcy — jak oferty u klienta: płasko + separatory */
.service-list:has(.service-row--static) {
  gap: 0;
}

.service-row--static {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.7rem 0.15rem;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  cursor: default;
  transition: none;
}

.service-row--static::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}

.service-row--static:last-child::after {
  display: none;
}

.service-row--static .service-row__top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

.service-row__thumb {
  flex-shrink: 0;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 9px;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.service-row__thumb--empty {
  position: relative;
  display: grid;
  place-items: center;
  background: transparent;
  border-color: transparent;
}

/* Ikona oferty — ta sama co w menu „Usługi”, szara */
.service-row__thumb--empty::before {
  content: "";
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  background: color-mix(in srgb, var(--text-muted) 72%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41 13.42 20.58a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82Z'/%3E%3Cpath d='M7 7h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41 13.42 20.58a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82Z'/%3E%3Cpath d='M7 7h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.service-row__static-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}

.service-row__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.service-row__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.service-row__detail-text {
  margin: 0;
}

.service-row__edit {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.service-row__edit:hover {
  color: var(--accent-provider, var(--accent-client));
  background: transparent;
}

.service-row__edit:active {
  transform: scale(0.94);
  opacity: 0.85;
}

.service-row__edit-icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Wariant B listy ofert (rezerwacja) — płaska lista z separatorami */
.service-list:has(.service-row--booking-b) {
  gap: 0;
}

.service-row--booking-b {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.7rem 0.15rem;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  cursor: default;
  box-shadow: none;
  transition: none;
}

.service-row--booking-b::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}

.service-row--booking-b:last-child::after {
  display: none;
}

.service-row--booking-b .service-row__top {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

/* Karuzela wariantów czasu/ceny — pod krótkim opisem */
.service-variant-carousel {
  min-width: 0;
  margin: 0.05rem 0 0.2rem;
}

.service-row--booking-b .service-variant-carousel {
  padding-left: calc(3.1rem + 0.55rem);
  padding-right: 2.55rem;
}

.service-row--static .service-variant-carousel {
  padding-left: calc(3.1rem + 0.55rem);
  padding-right: 2.4rem;
}

.service-variant-carousel__track {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.05rem 0.05rem 0.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
}

.service-variant-carousel__track::-webkit-scrollbar {
  display: none;
}

.service-variant-carousel__track.filter-scroll--dragging {
  cursor: grabbing;
}

.service-variant-carousel__track.filter-scroll--dragging .service-variant-chip {
  pointer-events: none;
}

.service-variant-chip {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

span.service-variant-chip {
  cursor: default;
}

.service-variant-chip:not(.service-variant-chip--on) {
  opacity: 0.72;
  color: var(--text-muted);
}

.service-variant-chip--on {
  opacity: 1;
  background: var(--accent-client);
  border-color: var(--accent-client);
  color: #fff;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--accent-client) 32%, transparent);
}

.app-screen--provider .service-variant-chip--on {
  background: var(--accent-provider);
  border-color: var(--accent-provider);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--accent-provider) 32%, transparent);
}

.service-row--booking-b .service-row__check--radio {
  width: 2rem;
  height: 2rem;
  margin: 0;
  flex-shrink: 0;
}

.service-row--booking-b .service-row__check--radio .service-row__check-visual {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.22);
  background: transparent;
  opacity: 1;
  box-shadow: none;
}

.service-row--booking-b .service-row__check--radio .service-row__check-visual::after {
  width: 0.42rem;
  height: 0.24rem;
  margin-top: -0.08rem;
  border-left: 1.5px solid transparent;
  border-bottom: 1.5px solid transparent;
  border-radius: 0;
  background: transparent;
  transform: rotate(-45deg);
}

.service-row--booking-b .service-row__check--radio:hover .service-row__check-visual {
  opacity: 1;
  border-color: var(--accent-client);
}

.service-row--booking-b .service-row__check--radio.service-row__check--on .service-row__check-visual {
  opacity: 1;
  border-color: var(--accent-client);
  background: var(--accent-client);
  box-shadow: 0 0 0 2px var(--accent-client-soft);
}

.service-row--booking-b .service-row__check--radio.service-row__check--on .service-row__check-visual::after {
  border-left-color: #fff;
  border-bottom-color: #fff;
  background: transparent;
}

.service-row--booking-b .service-row__thumb--btn {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-2);
}

.service-row--booking-b .service-row__thumb--btn:hover {
  border-color: color-mix(in srgb, var(--accent-client) 45%, var(--border));
}

.service-row--booking-b .service-row__thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-row--booking-b .service-row__static-main--btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.service-row--booking-b .service-row__static-main--btn:disabled {
  cursor: default;
}

/* Opis oferty rozwija się pod nazwą — obszar rośnie/maleje (max-height). */
.service-row--booking-b .service-row__sub-clip {
  display: block;
  min-width: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.service-row--booking-b .service-row__sub-clip .service-row__sub {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-row--booking-b.service-row--expanded .service-row__sub-clip .service-row__sub {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.service-row--booking-b .service-row__thumb,
.service-row--booking-b .service-row__check {
  margin-top: 0.1rem;
}

@media (prefers-reduced-motion: reduce) {
  .service-row--booking-b .service-row__sub-clip {
    transition: none;
  }
}

.service-list__add {
  width: 100%;
  margin-top: 0.85rem;
}

/* Panel karuzeli zdjęć usługi (wariant B) */
.service-photo-preview {
  position: fixed;
  inset: 0;
  z-index: 11050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.service-photo-preview[hidden] {
  display: none !important;
}

.service-photo-preview__backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(15, 23, 42, 0.62);
  cursor: pointer;
}

.service-photo-preview__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: min(100%, 22.5rem);
  max-height: min(88vh, 34rem);
  padding: 1rem 1rem 0.9rem;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  animation: avatar-preview-in 0.2s ease;
}

.service-photo-preview__close {
  appearance: none;
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}

.service-photo-preview__close:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.service-photo-preview__close-icon {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.service-photo-preview__title {
  margin: 0 2rem 0 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.25;
}

.service-photo-preview__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.service-photo-preview__img {
  display: block;
  width: 100%;
  max-height: min(58vh, 26rem);
  object-fit: contain;
  background: #0f172a08;
}

.service-photo-preview__empty {
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.service-photo-preview__nav {
  appearance: none;
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.service-photo-preview__nav:hover {
  background: var(--surface);
}

.service-photo-preview__nav--prev {
  left: 0.45rem;
}

.service-photo-preview__nav--next {
  right: 0.45rem;
}

.service-photo-preview__nav--prev::before,
.service-photo-preview__nav--next::before {
  content: "";
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.service-photo-preview__nav--next::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.service-photo-preview__counter {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

body.service-photo-preview-open {
  overflow: hidden;
}

.service-edit {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
}

.service-edit__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.service-edit__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.service-edit__input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  box-sizing: border-box;
}

.service-edit__input:focus {
  outline: none;
  border-color: var(--accent-provider, var(--accent-client));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-provider, var(--accent-client)) 16%, transparent);
}

.service-edit__textarea {
  resize: vertical;
  min-height: 8.5rem;
  line-height: 1.4;
}

/* Floating label — jak w ustawieniach */
.service-edit__field--float {
  position: relative;
  display: block;
  gap: 0;
}

.service-edit__field--float .service-edit__input {
  padding: 1.2rem 0.75rem 0.45rem;
  background: var(--surface);
}

.service-edit__field--float .service-edit__textarea {
  min-height: 8.5rem;
  padding-top: 1.4rem;
  padding-bottom: 0.6rem;
}

.service-edit__field--float .service-edit__label {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  color: var(--text-muted);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    top 0.16s ease,
    transform 0.16s ease,
    font-size 0.16s ease,
    color 0.16s ease;
}

.service-edit__field--float .service-edit__textarea + .service-edit__label {
  top: 1.1rem;
  transform: none;
}

.service-edit__field--float .service-edit__input:focus + .service-edit__label,
.service-edit__field--float .service-edit__input:not(:placeholder-shown) + .service-edit__label {
  top: 0.34rem;
  transform: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-muted) 88%, var(--text));
}

.service-edit__field--float .service-edit__input:focus + .service-edit__label {
  color: var(--accent-provider);
}

.service-edit__hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.service-edit__mode-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.service-edit__mode-toggle.settings-contact__toggle {
  align-items: center;
  border: none;
  border-radius: 0;
  background: transparent;
}

.service-edit__mode-toggle.settings-contact__toggle + .service-edit__mode-toggle {
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

.service-edit__locs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.service-edit__loc-check {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.service-edit__loc-check + .service-edit__loc-check {
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

.service-edit__loc-check:disabled {
  cursor: default;
}

.service-edit__loc-check.is-on {
  background: transparent;
}

.service-edit__loc-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--loc, var(--accent-provider));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loc, var(--accent-provider)) 35%, transparent);
}

.service-edit__loc-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.service-edit__loc-name {
  font-size: 0.88rem;
  font-weight: 650;
}

.service-edit__loc-addr {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-edit__loc-mark {
  flex: 0 0 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--text-muted) 55%, var(--border));
  box-sizing: border-box;
}

.service-edit__loc-check.is-on .service-edit__loc-mark {
  border-color: var(--accent-provider);
  background:
    radial-gradient(circle at center, var(--accent-provider) 0 38%, transparent 40%),
    color-mix(in srgb, var(--accent-provider) 12%, var(--surface));
}

.service-row__locs {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 550;
  color: var(--text-muted);
}

.service-edit__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.service-edit__photo,
.service-edit__photo-add {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.service-edit__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-edit__photo-remove {
  appearance: none;
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.45rem;
  height: 1.45rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.service-edit__photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  border-style: dashed;
  color: var(--accent-provider, var(--accent-client));
  cursor: pointer;
}

.service-edit__photo-add:hover {
  background: color-mix(in srgb, var(--accent-provider, var(--accent-client)) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--accent-provider, var(--accent-client)) 45%, var(--border));
}

.service-edit__photo-add-icon {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
}

.service-edit__photo-add-text {
  font-size: 0.72rem;
  font-weight: 600;
}

.service-edit__photo-file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.service-edit__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.service-edit__variants {
  --avail-trail: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-edit__variants-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Jak wiersz dostępności: pola + × + */
.service-edit__variant {
  display: flex;
  align-items: flex-end;
  gap: 0.15rem;
  min-width: 0;
  min-height: 2.25rem;
}

.service-edit__variant-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.service-edit__variant .avail-edit__icon-btn,
.service-edit__variant .avail-edit__icon-spacer {
  margin-bottom: 0.15rem;
}

.service-edit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.service-row:not(.service-row--static):not(.service-row--booking-b):hover {
  border-color: var(--accent-client);
}

.service-row--selected:not(.service-row--booking-b) {
  border-color: var(--accent-client);
  background: var(--accent-client-soft);
}

.service-row__select {
  appearance: none;
  -webkit-appearance: none;
  display: none;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.service-row--pick .service-row__select {
  display: grid;
  animation: servicePickIn 0.2s ease;
}

@keyframes servicePickIn {
  from {
    opacity: 0;
    transform: translateX(-0.4rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.service-row__select--checkbox {
  border-radius: 50%;
}

.service-row__select--radio {
  border-radius: 50%;
}

.service-row__select:hover {
  border-color: var(--accent-client);
}

.service-row__select--on.service-row__select--checkbox {
  background: var(--accent-client);
  border-color: var(--accent-client);
}

.service-row__select--on.service-row__select--radio {
  border-color: var(--accent-client);
}

.service-row__select-mark {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.service-row__select--checkbox.service-row__select--on .service-row__select-mark {
  width: 0.65rem;
  height: 0.35rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(1);
  opacity: 1;
  border-radius: 0;
  margin-top: -0.1rem;
}

.service-row__select--radio.service-row__select--on .service-row__select-mark {
  border-radius: 50%;
  background: var(--accent-client);
  opacity: 1;
  transform: scale(1);
}

.service-row__content {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0;
  align-items: start;
}

.service-row__head {
  display: contents;
}

.service-row__main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.service-row__main:hover .service-row__name {
  color: var(--accent-client);
}

.service-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.service-row__name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.service-row__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-row--expanded .service-row__sub {
  -webkit-line-clamp: unset;
  display: block;
}

.service-row__meta {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex-shrink: 0;
}

.service-row__content--with-check .service-row__meta {
  grid-row: 1;
  gap: 0.1rem;
}

.service-row__dur {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.service-row__price {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
}

.service-row__foot {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-height: 1.1rem;
  margin: 0;
  padding-top: 0.1rem;
}

.service-row__content--with-check .service-row__foot {
  grid-column: 1 / -1;
  min-height: 44px;
  padding-top: 0;
  padding-right: 0.05rem;
  justify-content: space-between;
  align-items: center;
}

.service-row__content--with-check .service-row__more {
  width: fit-content;
  flex-shrink: 0;
}

.service-row__foot-spacer {
  flex: 1;
  min-width: 0;
}

.service-row__check {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 -0.35rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.service-row__check-visual {
  display: grid;
  place-items: center;
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  background: transparent;
  opacity: 0.4;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.service-row__check-visual::after {
  content: "";
  display: block;
  width: 0.38rem;
  height: 0.22rem;
  margin-top: -0.08rem;
  border-left: 1.5px solid transparent;
  border-bottom: 1.5px solid transparent;
  transform: rotate(-45deg);
  transition: border-color 0.15s ease;
}

.service-row__check:hover .service-row__check-visual {
  opacity: 0.7;
  border-color: var(--accent-client);
}

.service-row__check--on .service-row__check-visual {
  opacity: 1;
  border-color: var(--accent-client);
  background: var(--accent-client);
  box-shadow: 0 0 0 2px var(--accent-client-soft);
}

.service-row__check--on .service-row__check-visual::after {
  border-left-color: #fff;
  border-bottom-color: #fff;
}

.service-row__more {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent-client);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.service-row__more:hover {
  text-decoration: underline;
}

.service-row__chev {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15rem;
  transition: transform 0.2s ease;
}

.service-row--expanded .service-row__chev {
  transform: rotate(-135deg);
  margin-top: 0.1rem;
}

.service-row__detail {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  padding-top: 0.15rem;
  border-top: 1px solid var(--border);
}

/* ---- Pasek podsumowania wyboru ---- */
.selection-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.selection-summary__info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.selection-summary__duration {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.selection-summary__price {
  font-weight: 700;
  font-size: 1rem;
}

.selection-summary--empty .selection-summary__duration,
.selection-summary--empty .selection-summary__price {
  color: var(--text-muted);
  font-weight: 500;
}

.selection-summary__cta {
  margin-left: auto;
}

.selection-summary__cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---- Rezerwacja (kalendarz + godziny) ---- */
.booking__provider-card {
  margin: 0 0 0.35rem;
}

/* Nagłówek rezerwacji: pełna szerokość (poza .booking-mobile — widoczny też na desktopie) */
.app-screen--booking .booking-mobile {
  padding-top: 0;
}

.app-screen--booking > .booking__provider-card {
  flex: 0 0 auto;
  margin: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  z-index: 3;
}

.app-screen--booking > .booking__provider-card .provider-card--booking-header {
  border-radius: 0;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
  row-gap: 0.35rem;
  padding: 0 0 0.45rem;
  background: var(--surface-2);
}

.app-screen--booking > .booking__provider-card .provider-card--booking-header .provider-card__head {
  padding: 0.35rem var(--app-pad-x);
  background: transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.app-screen--booking > .booking__provider-card .provider-card--booking-header .provider-card__avatar,
.app-screen--booking > .booking__provider-card .provider-card--booking-header .provider-card__details,
.app-screen--booking > .booking__provider-card .provider-card--booking-header .provider-card__menu-slot {
  margin-left: 0;
}

.app-screen--booking > .booking__provider-card .provider-card--booking-header .provider-card__avatar {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.82rem;
  margin-left: var(--app-pad-x);
}

.app-screen--booking > .booking__provider-card .provider-card--booking-header .provider-card__menu-slot {
  align-self: center;
  margin-right: var(--app-pad-x);
}

.app-screen--booking > .booking__provider-card .provider-card--booking-header .provider-card__back {
  margin-left: -0.2rem;
}

.app-screen--booking > .booking__provider-card .provider-card__info-panel {
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
}

.provider-card--clickable {
  cursor: pointer;
}

.booking__selection {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 0.85rem;
}

.booking__svc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.booking__meta {
  font-size: 0.8rem;
  color: var(--accent-client);
  font-weight: 600;
}

.booking__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0.5rem 0 0.5rem;
}

.booking__label--caps {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.booking__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.booking__label-row .booking__label {
  margin-bottom: 0.35rem;
}

.booking__month {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
}

.booking__label-hint {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent-client);
}

.booking__label-part {
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
  color: var(--warning);
}

/* Mobile booking: usługi rosną z wysokością ekranu; daty/godziny tuż nad menu */
.booking-mobile {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.app-screen--booking {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.app-screen--booking .booking-mobile {
  flex: 1 1 0;
  min-height: 0;
  padding: 0 var(--app-pad-x);
  padding-bottom: 0;
  box-sizing: border-box;
  background: var(--surface);
}

.device-frame .app-screen--booking .booking-mobile {
  padding-left: var(--app-pad-x);
  padding-right: var(--app-pad-x);
}

/* Stopka rezerwacji (Suma/Rezerwuj + menu) zawsze przyklejona na dole */
.app-screen--booking > .booking-confirm-bar,
.app-screen--booking > .bottom-nav {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  flex-shrink: 0;
  margin-top: 0;
}

.app-screen--booking > .booking-layout {
  flex: 1 1 0;
  min-height: 0;
}

.booking--mobile-split {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.booking__main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 0;
  background: var(--surface);
}

.booking__main .booking__label {
  flex-shrink: 0;
  margin-top: 0.15rem;
  margin-bottom: 0.35rem;
}

.booking-mobile .booking__services-list {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  margin: 0;
  gap: 0.12rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.booking-mobile .booking__services-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.booking__schedule {
  flex: 0 0 auto;
  margin: 0 -1rem;
  padding: 0.45rem 1rem 0.55rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.booking__schedule .booking__label {
  margin-top: 0.35rem;
}

.booking__schedule .booking__label:first-child,
.booking__schedule .booking__label-row:first-child .booking__label {
  margin-top: 0;
}

.device-frame .booking__schedule {
  margin-left: -0.85rem;
  margin-right: -0.85rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

/* ---- Rezerwacja desktop: 3 kolumny (usługi | kalendarz | terminy) ---- */

.booking-layout {
  display: none;
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(9.5rem, 1fr) minmax(11rem, 1.15fr) minmax(9.5rem, 1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.booking__services,
.booking__calendar,
.booking__times {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.booking__times {
  border-right: none;
}

.booking__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  flex-shrink: 0;
  min-width: 0;
}

.booking__panel-head .booking__panel-label,
.booking__panel-head .booking__label {
  margin: 0;
}

.booking__panel-head--mobile {
  margin: 0.5rem 0 0.5rem;
}

.booking__panel-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.55rem;
  flex-shrink: 0;
}

.booking__panel-hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent-client);
}

.booking__multi-hint {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-client);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.booking__services-list {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.booking__services-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.booking__calendar {
  align-items: stretch;
  justify-content: flex-start;
}

.booking__calendar .cal {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.booking__calendar .cal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.booking__times .time-list--vertical {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.booking__times .time-list--vertical::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.app-screen--booking {
  animation: clientBookingSlideIn 0.32s ease;
}

@keyframes clientBookingSlideIn {
  from {
    transform: translateX(8%);
    opacity: 0.55;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Kalendarz miesięczny */
.cal {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  min-height: 0;
}

.cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cal__nav-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cal__nav-btn:hover {
  border-color: var(--accent-client);
}

.cal__title {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: capitalize;
}

.cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
}

.cal__weekdays span:last-child {
  color: var(--danger);
}

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(var(--cal-week-rows), var(--cal-day-size));
  gap: var(--cal-day-gap);
  height: var(--cal-grid-height);
  min-height: var(--cal-grid-height);
}

.cal__day {
  appearance: none;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
  transition: color 0.15s ease, background 0.15s ease;
}

.cal__day-num {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  line-height: 1;
  font-weight: 700;
  color: inherit;
}

.cal__day--pad {
  visibility: hidden;
  pointer-events: none;
}

.cal__day--available {
  color: var(--text);
  cursor: pointer;
}

.cal__day--available:hover:not(.cal__day--selected):not(.cal__day--today) .cal__day-num {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

/* Dziś — tylko obwódka akcentu; tekst zwykły (niedziela: red przez --holiday) */
.cal__day--today:not(.cal__day--selected) .cal__day-num {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--cal-today-fg);
}

/* Zaznaczony (przeglądanie) — szary w kółku */
.cal__day--selected .cal__day-num {
  background: var(--cal-selected-bg);
  color: var(--cal-selected-fg);
}

/* Zaznaczony przy wyborze terminu rezerwacji — pełny akcent */
.cal--booking .cal__day--selected .cal__day-num {
  background: var(--accent-client);
  color: #fff;
}

.cal__day.cal__day--holiday:not(.cal__day--selected) .cal__day-num,
.cal__day--holiday:not(.cal__day--selected) .cal__day-num,
.cal__day--today.cal__day--holiday:not(.cal__day--selected) .cal__day-num {
  color: var(--danger);
}

.cal__day--disabled {
  opacity: 0.35;
}

/* Mój kalendarz — jak kalendarz usługodawcy: tydzień + wysuwany miesiąc */
.app-screen--my-cal {
  padding: 0;
  overscroll-behavior: none;
  --prov-cal-month-ms: 320ms;
  --prov-cal-month-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.my-cal-top {
  flex-shrink: 0;
  padding: 0.55rem var(--app-pad-x) 0.15rem;
  background: var(--surface);
  border-bottom: 0;
  z-index: 7;
  overflow: visible;
  position: relative;
}

.my-cal-top__anchor {
  position: relative;
  z-index: 8;
  min-height: 0;
}

.my-cal-top:has(.gcal-month) {
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--text) 16%, transparent);
}

.my-cal-body {
  flex: 1;
  min-height: 0;
  padding: 0 var(--app-pad-x) 0.85rem;
}

.my-cal-week {
  margin: 0 0 0.55rem;
  padding-bottom: 0.2rem;
  background: var(--surface);
}

/* Mobile: pasek dni na całą szerokość (jak standard kalendarzy) */
@media (max-width: 899px) {
  .app-screen--my-cal .gcal-week__sticky.my-cal-week {
    margin-left: calc(-1 * var(--app-pad-x));
    margin-right: calc(-1 * var(--app-pad-x));
    width: calc(100% + 2 * var(--app-pad-x));
    box-sizing: border-box;
  }
}

.device-frame[data-view="mobile"] .app-screen--my-cal .gcal-week__sticky.my-cal-week {
  margin-left: calc(-1 * var(--app-pad-x));
  margin-right: calc(-1 * var(--app-pad-x));
  width: calc(100% + 2 * var(--app-pad-x));
  box-sizing: border-box;
}

/* Bez guttera godzin — pełna szerokość na 7 dni (musi wygrywać z mobile .gcal-week__head: 2.45rem 1fr) */
.app-screen--my-cal .my-cal-week__head,
.app-screen--my-cal .gcal-week__head,
.app-fullscreen .app-screen--my-cal .gcal-week__head,
.device-frame[data-view="mobile"] .app-screen--my-cal .gcal-week__head {
  display: grid;
  grid-template-columns: 1fr;
}

.app-screen--my-cal .gcal-week__days-clip {
  width: 100%;
  min-width: 0;
}

.app-screen--my-cal .gcal-week__days {
  display: grid;
  width: 100%;
  min-width: 0;
  --gcal-days: 7;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.my-cal-visits {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.35rem;
  background: var(--surface);
}

.my-cal-visits .booking__label {
  margin: 0;
}

.my-cal-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.55rem;
}

.my-cal-status-chip {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.my-cal-status-chip:hover {
  border-color: color-mix(in srgb, var(--accent-client) 35%, var(--border));
  color: var(--text);
}

.my-cal-status-chip.is-on {
  border-color: color-mix(in srgb, var(--accent-client) 45%, var(--border));
  background: color-mix(in srgb, var(--accent-client) 10%, var(--surface));
  color: var(--accent-client);
}

.app-screen--my-cal .my-cal-body,
.app-screen--my-cal .my-cal-layout__main {
  background: var(--surface);
}

.my-cal-layout__side {
  display: none;
}

/* Desktop: lista wizyt po lewej, otwarty miesiąc po prawej */
@media (min-width: 900px) {
  .app-screen--my-cal .my-cal-top__anchor {
    display: none;
  }

  .app-screen--my-cal .my-cal-top:has(.gcal-month) {
    box-shadow: none;
  }

  .app-screen--my-cal .my-cal-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .app-screen--my-cal .my-cal-layout {
    flex: 1 1 0;
    display: grid;
    grid-template-columns: minmax(17.5rem, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    min-height: 0;
  }

  .app-screen--my-cal .my-cal-layout__main {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-left: 0.15rem;
  }

  .app-screen--my-cal .my-cal-week,
  .app-screen--my-cal .gcal-week__sticky.my-cal-week {
    display: none;
  }

  .app-screen--my-cal .my-cal-layout__side {
    display: block;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    width: 100%;
    max-width: 24rem;
    min-width: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0.35rem 0.65rem 0.85rem;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .app-screen--my-cal .gcal-month--side {
    margin: 0;
    padding: 0;
    border: 0;
    animation: none;
    overflow: visible;
  }

  .app-screen--my-cal .gcal-month--side .gcal-month__cal {
    margin: 0;
  }

  .app-screen--my-cal .prov-cal__tool--month-label .prov-cal__month-chevron {
    display: none;
  }
}

.device-frame[data-view="desktop"] .app-screen--my-cal .my-cal-top__anchor {
  display: none;
}

.device-frame[data-view="desktop"] .app-screen--my-cal .my-cal-layout {
  display: grid;
  grid-template-columns: minmax(17.5rem, 0.85fr) minmax(0, 1.15fr);
  grid-template-rows: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  min-height: 0;
}

.device-frame[data-view="desktop"] .app-screen--my-cal .my-cal-layout__main {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
}

.device-frame[data-view="desktop"] .app-screen--my-cal .my-cal-week,
.device-frame[data-view="desktop"] .app-screen--my-cal .gcal-week__sticky.my-cal-week {
  display: none;
}

.device-frame[data-view="desktop"] .app-screen--my-cal .my-cal-layout__side {
  display: block;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  width: 100%;
  max-width: 24rem;
  height: auto;
  padding: 0.35rem 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 14px;
}

.device-frame[data-view="mobile"] .app-screen--my-cal .my-cal-layout__side {
  display: none;
}

.device-frame[data-view="mobile"] .app-screen--my-cal .my-cal-layout {
  display: block;
}

.app-screen--my-cal .prov-cal__today-btn {
  border-color: color-mix(in srgb, var(--accent-client) 40%, var(--border));
  background: color-mix(in srgb, var(--accent-client) 10%, var(--surface));
  color: var(--accent-client);
}

.app-screen--my-cal .gcal-month__day-dot {
  background: var(--accent-client);
}

.app-screen--my-cal .gcal-week__dayhead--sel .gcal-week__num {
  background: var(--accent-client);
  color: #fff;
}

.app-screen--my-cal .gcal-month__day--on .gcal-month__day-num {
  background: var(--accent-client);
  color: #fff;
}

.cal__day--selectable {
  color: var(--text);
}

.cal__day--selectable:hover:not(.cal__day--selected):not(.cal__day--today) .cal__day-num {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.cal__day--visit {
  color: var(--text);
}

.cal__day-dot {
  position: absolute;
  left: 50%;
  bottom: 0.22rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--accent-client);
  transform: translateX(-50%);
}

/* ── Kalendarz wizyt usługodawcy (Booksy Biz–style day view) ── */
.app-screen--prov-cal {
  padding: 0;
  overscroll-behavior: none;
}

/* Desktop: pulpit (lewy) + większy kalendarz (prawy) */
.prov-desk {
  display: none;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

/* Panel „Nowy termin” / prośba / edycja — tylko nad pulpitem (szerokość lewej kolumny). */
.prov-desk > .prov-cal-add {
  right: auto;
  width: min(24rem, 36%);
  min-width: 18rem;
  max-width: 24rem;
  z-index: 140;
}

.prov-desk__dash {
  flex: 0 0 min(24rem, 36%);
  width: min(24rem, 36%);
  min-width: 18rem;
  max-width: 24rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
}

.prov-desk__dash .app-scroll--dash-side {
  flex: 1 1 0;
  min-height: 0;
  padding: 0.7rem 0.85rem 1rem;
}

.prov-desk__dash .stat-row {
  gap: 0.45rem;
}

.prov-desk__dash .stat-card {
  padding: 0.55rem 0.5rem;
}

.prov-desk__dash .stat-card__lbl {
  font-size: 0.68rem;
  line-height: 1.25;
}

.prov-desk__cal {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

/* Desktop: lista usług (lewy, jak pulpit) | edycja (prawy) */
.prov-svc {
  display: none;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.prov-svc__list {
  flex: 0 0 min(24rem, 36%);
  width: min(24rem, 36%);
  min-width: 18rem;
  max-width: 24rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
}

.prov-svc__list .app-scroll--svc-side {
  flex: 1 1 0;
  min-height: 0;
  padding: 0.7rem 0.85rem 1rem;
}

.prov-svc__list .service-row--static {
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.prov-svc__list .service-row--static.is-selected {
  background: color-mix(in srgb, var(--accent-provider-soft) 70%, var(--surface));
  box-shadow: inset 3px 0 0 var(--accent-provider);
}

.prov-svc__list .service-row--static:hover {
  background: color-mix(in srgb, var(--border) 35%, var(--surface));
}

.prov-svc__list .service-row--static.is-selected:hover {
  background: color-mix(in srgb, var(--accent-provider-soft) 78%, var(--surface));
}

.prov-svc__list .service-list__add {
  margin-top: 0.75rem;
  width: 100%;
}

.prov-svc__edit {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.prov-svc__edit .app-scroll--svc-edit {
  flex: 1 1 0;
  min-height: 0;
  padding: 1rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prov-svc__edit .service-edit {
  width: 100%;
  max-width: 42rem;
}

.prov-svc__empty {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.prov-svc__empty-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.prov-svc__empty-text {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .app-screen--services-desktop > .prov-svc {
    display: flex;
  }
}

.device-frame[data-view="desktop"] .app-screen--services-desktop > .prov-svc {
  display: flex;
}

/* Ramka mobile przy szerokim oknie: lista pełna; edycja osobno (jak mobile). */
.device-frame[data-view="mobile"] .app-screen--services-desktop > .prov-svc {
  display: flex;
}

.device-frame[data-view="mobile"] .app-screen--services-desktop:not(.app-screen--services-editing) .prov-svc__edit {
  display: none;
}

.device-frame[data-view="mobile"] .app-screen--services-desktop:not(.app-screen--services-editing) .prov-svc__list {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  border-right: 0;
}

.device-frame[data-view="mobile"] .app-screen--services-desktop.app-screen--services-editing .prov-svc__list {
  display: none;
}

.device-frame[data-view="mobile"] .app-screen--services-desktop.app-screen--services-editing .prov-svc__edit {
  display: flex;
  flex: 1 1 auto;
}

.prov-desk__cal .prov-cal-body {
  padding-bottom: 1rem;
}

.prov-desk__cal .prov-cal-fab {
  bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  .app-screen--prov-cal-desktop > .prov-desk {
    display: flex;
  }
}

.device-frame[data-view="desktop"] .app-screen--prov-cal-desktop > .prov-desk {
  display: flex;
}

/* Ramka mobilna: nawet przy szerokim oknie zostaje sam kalendarz (bez lewego pulpitu). */
.device-frame[data-view="mobile"] .prov-desk__dash {
  display: none;
}

.device-frame[data-view="mobile"] .app-screen--prov-cal-desktop > .prov-desk {
  display: flex;
}

.device-frame[data-view="mobile"] .prov-desk__cal {
  flex: 1 1 auto;
  width: 100%;
}

/* Bez pulpitu panel wraca na pełną szerokość (jak na mobile). */
.device-frame[data-view="mobile"] .prov-desk > .prov-cal-add {
  right: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.prov-cal-top {
  flex-shrink: 0;
  padding: 0.55rem var(--app-pad-x) 0.15rem;
  background: var(--surface);
  border-bottom: 0;
  z-index: 7;
  overflow: visible;
  position: relative;
}

/* Kotwica pod nagłówkiem: ikona widoku stała, panel miesiąca wysuwa się obok/pod nią. */
.prov-cal-top__anchor {
  position: relative;
  z-index: 8;
  min-height: 0;
}

.prov-cal-view-corner {
  position: absolute;
  left: calc(-1 * var(--app-pad-x) + 0.1rem);
  top: 0;
  z-index: 9;
  width: 2.45rem;
  height: 2.75rem;
  padding: 0.15rem 0 0.2rem;
  background: var(--surface);
}

@media (min-width: 900px) {
  .prov-cal-view-corner {
    left: 0;
    width: 3.1rem;
  }
}

.device-frame[data-view="mobile"] .prov-cal-view-corner {
  left: calc(-1 * var(--app-pad-x) + 0.1rem);
  width: 2.45rem;
}

/* Ten sam cień co .gcal-week__sticky — gdy otwarty panel miesiąca */
.prov-cal-top:has(.gcal-month) {
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--text) 16%, transparent);
}

.screen-head--prov-cal {
  margin-bottom: 0;
  padding-bottom: 0.4rem;
  /* Ta sama linia co nad panelem miesiąca — też nad paskiem dni (dzień/tydzień). */
  border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
}

.prov-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.prov-cal-head__title-row {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  min-width: 0;
}

.prov-cal-head__title-row .screen-head__title {
  margin: 0;
}

.prov-cal-head__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.prov-cal__tools {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.prov-cal__tool {
  appearance: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.prov-cal__tool:hover {
  background: var(--surface-2);
  color: var(--text);
}

.prov-cal__tool.is-on {
  background: color-mix(in srgb, var(--accent-provider) 14%, var(--surface));
  color: var(--accent-provider);
}

.prov-cal__tool--month-label {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  width: auto;
  height: auto;
  min-height: 2rem;
  padding: 0.3rem 0.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: rgba(28, 35, 51, 0.42);
}

.prov-cal__tool--month-label:hover {
  background: transparent;
  color: rgba(28, 35, 51, 0.72);
}

/* Jak nieaktywna ikona Kalendarza w bottom-nav: bez tła i bez obramowania. */
.prov-cal__tool--month-label.is-on,
.prov-cal__tool--month-label.is-on:hover {
  background: transparent;
  color: rgba(28, 35, 51, 0.42);
}

.prov-cal__month-name {
  line-height: 1.1;
  white-space: nowrap;
}

.prov-cal__month-chevron {
  display: block;
  width: 0.65rem;
  height: 0.65rem;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.prov-cal__tool--month-label.is-on .prov-cal__month-chevron {
  transform: rotate(180deg);
}

.gcal__event--dim {
  opacity: 0.22;
}

.prov-cal__today-btn {
  appearance: none;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--accent-provider) 40%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-provider) 10%, var(--surface));
  color: var(--accent-provider);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.prov-cal-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 calc(1rem + var(--bottom-nav-clearance));
}

/* FAB „+” nad dolną nawigacją — otwiera panel nowego terminu. */
.prov-cal-fab {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  bottom: calc(var(--bottom-nav-clearance) + 0.65rem);
  z-index: 40;
  width: 3.35rem;
  height: 3.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--accent-provider);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent-provider) 38%, rgba(15, 23, 42, 0.18));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.prov-cal-fab:hover {
  background: color-mix(in srgb, var(--accent-provider) 88%, #000);
}

.prov-cal-fab:active {
  transform: scale(0.94);
}

.prov-cal-fab__icon {
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1;
  margin-top: -0.08rem;
}

.prov-cal-add {
  --prov-cal-add-pad-x: 0.85rem;
  --prov-cal-add-side: var(--bottom-nav-item-h);
  --prov-cal-add-icon-size: var(--bottom-nav-item-h);
  --prov-cal-add-row-gap: 0.75rem;
  position: absolute;
  inset: 0;
  /* Nad dolnym menu (nav ma z-index 120). */
  z-index: 130;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Kalendarz w tle zostaje klikalny — tylko sheet łapie eventy. */
  pointer-events: none;
}

.prov-cal-add__sheet {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  max-height: min(92%, 40rem);
  margin: 0;
  padding: 0;
  border-radius: 18px 18px 0 0;
  background: var(--surface);
  box-shadow: 0 -10px 36px rgba(15, 23, 42, 0.16);
  /* Jak panel klienta, ale w akcentach usługodawcy */
  --accent: var(--accent-provider);
  --accent-soft: var(--accent-provider-soft);
  --accent-client: var(--accent-provider);
  --accent-client-soft: var(--accent-provider-soft);
}

/* Wjazd tylko przy pierwszym otwarciu — nie przy zmianie dnia / slotu. */
.prov-cal-add--enter .prov-cal-add__sheet {
  animation: prov-cal-add-up 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.prov-cal-add__sheet.is-height-animating {
  animation: none !important;
  will-change: height;
}

@keyframes prov-cal-add-up {
  from {
    opacity: 0.6;
    transform: translateY(18%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prov-cal-add__head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  gap: 0.25rem;
  padding: 0 var(--prov-cal-add-pad-x);
  box-sizing: border-box;
  flex-shrink: 0;
}

.prov-cal-add__head--tabs {
  padding: 0 var(--prov-cal-add-pad-x);
  border-bottom: 1px solid var(--border);
}

.prov-cal-add__title {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text);
  text-align: center;
  line-height: 1.1;
}

.prov-cal-add__head-main {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  height: 100%;
}

.prov-cal-add__tabs {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
  height: 100%;
}

.prov-cal-add__tab {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.22s ease;
}

.prov-cal-add__close {
  appearance: none;
  -webkit-appearance: none;
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.prov-cal-add__close:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--border) 55%, transparent);
}

.prov-cal-add__close:active {
  transform: scale(0.94);
}

.prov-cal-add__close .bottom-nav__icon {
  width: 1.15rem;
  height: 1.15rem;
}

.prov-cal-add__tab.is-active {
  color: var(--text);
  font-weight: 750;
}

.prov-cal-add__tab-ink {
  position: absolute;
  left: 0;
  /* Na linii separatora nagłówka (.prov-cal-add__head--tabs border-bottom). */
  bottom: -1px;
  z-index: 2;
  width: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--text);
  transform: translateX(0);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  will-change: transform, width;
}

.prov-cal-add__body,
.prov-cal-add__foot {
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.prov-cal-add__body.prov-cal-add--tab-swap,
.prov-cal-add__foot.prov-cal-add--tab-swap {
  opacity: 0;
  transform: translateX(var(--tab-swap-x, 12px));
}

.prov-cal-add__body.prov-cal-add--tab-enter,
.prov-cal-add__foot.prov-cal-add--tab-enter {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .prov-cal-add__tab,
  .prov-cal-add__tab-ink,
  .prov-cal-add__body,
  .prov-cal-add__foot {
    transition: none;
  }
}

.prov-cal-add__tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prov-cal-add__tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.prov-cal-add__requests {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.15rem 0 0.5rem;
}

.prov-cal-add__requests-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.prov-cal-add__req-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.prov-cal-add__req {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.15rem;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.prov-cal-add__req:last-child {
  border-bottom: none;
}

.prov-cal-add__req-body {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.15rem 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.prov-cal-add__req-body:active {
  opacity: 0.85;
}

.prov-cal-add__req-main {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.prov-cal-add__req-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prov-cal-add__req-svc,
.prov-cal-add__req-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prov-cal-add__req-dismiss {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.prov-cal-add__req-dismiss:hover,
.prov-cal-add__req-dismiss:active {
  color: var(--danger);
  background: var(--danger-soft);
}

.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;
}

.prov-cal-add__head-spacer {
  grid-column: 1;
  justify-self: start;
  width: 40px;
  height: 40px;
  pointer-events: none;
}

.prov-cal-add__collapse {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Aktywne pole kliknięcia: 44px; bez tła. */
  width: var(--prov-cal-add-side);
  height: var(--prov-cal-add-side);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  justify-self: start;
  grid-column: 1;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.prov-cal-add__collapse:active {
  transform: scale(0.94);
  color: var(--text);
}

.prov-cal-add__collapse-icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.prov-cal-add__collapse.is-minimized .prov-cal-add__collapse-icon {
  transform: rotate(180deg);
}

.prov-cal-add--minimized .prov-cal-add__sheet {
  max-height: none;
  animation: none;
  box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.12);
}

.prov-cal-add--minimized .prov-cal-add__head--tabs {
  padding-top: 0.2rem;
}

.prov-cal-add--minimized .prov-cal-add__head--mini {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  padding: 0.45rem 0.75rem 0.2rem;
  border-bottom: none;
}

.prov-cal-add--minimized .prov-cal-add__head--mini .prov-cal-add__head-spacer {
  display: none;
}

.prov-cal-add--minimized .prov-cal-add__head--mini .prov-cal-add__collapse {
  grid-column: auto;
  justify-self: start;
  margin: 0;
}

.prov-cal-add--minimized .prov-cal-add__body {
  flex: 0 0 auto;
  overflow: hidden;
  padding-top: 0.15rem;
  padding-bottom: 0.35rem;
}

/* Zwinięty: tylko klient, usługa i karuzela godzin. */
.prov-cal-add--minimized .prov-cal-add__part-note,
.prov-cal-add--minimized .prov-cal-add__schedule > .booking__label,
.prov-cal-add--minimized .prov-cal-add__schedule > .empty-note,
.prov-cal-add--minimized .proposal-list--panel {
  display: none !important;
}

.prov-cal-add--minimized .prov-cal-add__schedule {
  margin-top: 0.15rem;
  gap: 0.35rem;
}

.prov-cal-add--minimized .time-list--horizontal:not([hidden]) {
  margin: 0;
}

.prov-cal-add--minimized .prov-cal-add__foot {
  padding-top: 0.4rem;
  padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
}

.prov-cal-add__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem var(--prov-cal-add-pad-x) 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.prov-cal-add__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prov-cal-add__client-pick {
  position: relative;
  z-index: 1;
}

.prov-cal-add__client-pick.is-open {
  z-index: 32;
}

.prov-cal-add__client-row {
  display: flex;
  align-items: center;
  gap: var(--prov-cal-add-row-gap, 0.75rem);
  min-width: 0;
}

.prov-cal-add__client-pick.has-phone > .prov-cal-add__client-row {
  align-items: flex-start;
}

.prov-cal-add__client-pick.has-phone > .prov-cal-add__client-row > .prov-cal-add__client-avatar,
.prov-cal-add__client-pick.has-phone > .prov-cal-add__client-row > .prov-cal-add__client-clear,
.prov-cal-add__client-pick.has-phone > .prov-cal-add__client-row > .prov-cal-add__client-search {
  margin-top: 0.45rem;
}

.prov-cal-add__client-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
}

.prov-cal-add__client-main .prov-cal-add__input {
  flex: 0 0 auto;
  width: 100%;
}

.prov-cal-add__client-pick.has-phone .prov-cal-add__client-main .prov-cal-add__input {
  min-height: 0;
  padding: 0.2rem 0 0;
  line-height: 1.25;
}

.prov-cal-add__client-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0 0 0.15rem;
  pointer-events: none;
}

.prov-cal-add__client-phone,
.prov-cal-add__client-email {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prov-cal-add__client-phone {
  font-variant-numeric: tabular-nums;
}

.prov-cal-add__client-clear,
.prov-cal-add__client-search {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 var(--prov-cal-add-side);
  width: var(--prov-cal-add-side);
  height: var(--prov-cal-add-side);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.prov-cal-add__client-clear {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  opacity: 0.7;
}

.prov-cal-add__client-clear:hover,
.prov-cal-add__client-search:hover {
  color: var(--text);
  opacity: 1;
}

.prov-cal-add__client-search svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.prov-cal-add__client-row > .prov-cal-add__client-clear,
.prov-cal-add__client-row > .prov-cal-add__client-search {
  margin-left: 0;
}

/* Panel kontaktów (WhatsApp-style) — wysuwany z dołu */
.client-sheet {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.client-sheet[hidden] {
  display: none !important;
}

.client-sheet.is-open {
  pointer-events: auto;
}

/* Po otwarciu: backdrop nie łapie tego samego gestu (klik/touch), który otworzył sheet. */
.client-sheet.client-sheet--arming .client-sheet__backdrop {
  pointer-events: none;
}

.client-sheet__backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
  animation: client-sheet-fade 0.22s ease both;
}

.client-sheet__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: min(88vh, 40rem);
  max-height: 88vh;
  margin: 0;
  padding: 0;
  border-radius: 18px 18px 0 0;
  background: var(--surface);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
  animation: client-sheet-up 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  --accent: var(--accent-provider);
  overflow: hidden;
}

@keyframes client-sheet-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes client-sheet-up {
  from {
    opacity: 0.7;
    transform: translateY(24%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-sheet__grab {
  flex-shrink: 0;
  width: 2.4rem;
  height: 0.28rem;
  margin: 0.45rem auto 0.15rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 16%, transparent);
}

.client-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.85rem 0.45rem;
  flex-shrink: 0;
}

.client-sheet__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text);
}

.client-sheet__close {
  appearance: none;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.client-sheet__done {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.35rem 0.15rem;
  border: 0;
  background: transparent;
  color: var(--accent, var(--accent-provider));
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.service-sheet {
  --accent: var(--accent-provider);
}

/* Desktop: sheet usług = szerokość i miejsce pulpitu (nie cała szerokość okna). */
.service-sheet.service-sheet--desk {
  inset: auto;
  left: var(--service-sheet-left, 0);
  top: var(--service-sheet-top, 0);
  width: var(--service-sheet-width, min(24rem, 36vw));
  height: var(--service-sheet-height, 100%);
  max-width: 24rem;
}

.service-sheet.service-sheet--desk .client-sheet__panel,
.service-sheet.service-sheet--desk .service-sheet__panel {
  height: 100%;
  max-height: none;
  border-radius: 0;
}

.service-sheet__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem 1.1rem;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.service-sheet__list {
  display: flex;
  flex-direction: column;
}

.service-sheet.has-inne-duration .service-sheet__panel {
  pointer-events: none;
}

.service-sheet .prov-cal-add__inne-duration {
  pointer-events: auto;
}

.service-sheet .prov-cal-add__service-opt {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  min-height: 3rem;
}

body.service-sheet-open {
  overflow: hidden;
}

.client-sheet__search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0.85rem 0.55rem;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  background: var(--surface-2);
  flex-shrink: 0;
}

.client-sheet__search-icon {
  flex: 0 0 0.95rem;
  width: 0.95rem;
  height: 0.95rem;
  background: var(--text-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.2'/%3E%3Cpath d='m15.4 15.4 5.1 5.1'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.2'/%3E%3Cpath d='m15.4 15.4 5.1 5.1'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.client-sheet__search-input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.client-sheet__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.client-sheet__body--requests {
  flex-direction: column;
  padding: 0;
}

.client-sheet__pinned {
  flex: 0 0 auto;
  padding: 0 0.85rem;
}

.client-sheet__list-label {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.client-sheet__sep {
  height: 1px;
  margin: 0.55rem 0 0.65rem;
  background: var(--border);
}

.client-sheet__row--selected {
  margin: 0 -0.15rem;
  padding: 0 0.15rem;
  border-bottom: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-provider) 8%, transparent);
}

.client-sheet__row--selected .client-sheet__row-main:hover,
.client-sheet__row--selected .client-sheet__row-main:active {
  background: transparent;
}

.client-sheet__body--requests .client-sheet__list {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 0.85rem 1.25rem;
}

.client-sheet__body--requests .client-sheet__index[hidden] {
  display: none;
}

.client-sheet__list {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.6rem 1.25rem 0.85rem;
}

.client-sheet__section {
  margin: 0;
}

.client-sheet__letter {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 0.35rem 0.15rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-sheet__row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.client-sheet__section .client-sheet__row:last-child {
  border-bottom-color: transparent;
}

.client-sheet__row-main {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.65rem 0.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.client-sheet__row-main:hover,
.client-sheet__row-main:active {
  background: color-mix(in srgb, var(--accent-provider) 6%, transparent);
}

.client-sheet__row-detail {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.35rem 0.05rem 0.35rem 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.client-sheet__row-detail:hover,
.client-sheet__row-detail:active {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.client-sheet__row-detail-icon {
  width: 0.85rem;
  height: 0.85rem;
  background: currentColor;
  opacity: 0.65;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.client-sheet__detail {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.client-sheet--detail .client-sheet__detail {
  transform: translateX(0);
}

.client-sheet__detail-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem 0.45rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.client-sheet__detail-back {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 2.1rem;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
}

.client-sheet__detail-back-icon {
  width: 0.95rem;
  height: 0.95rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 6 9 12 15 18'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 6 9 12 15 18'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.client-sheet__detail-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 750;
  color: var(--text);
  text-align: center;
}

.client-sheet__detail-spacer {
  flex: 0 0 2.1rem;
  width: 2.1rem;
  height: 2.1rem;
}

.client-sheet__detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0.95rem 1.4rem;
}

.client-sheet__detail-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 1.15rem;
  padding: 0.35rem 0 0.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.client-sheet__detail-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

.client-sheet__avatar--lg {
  width: 5.25rem;
  height: 5.25rem;
  font-size: 1.45rem;
  font-weight: 750;
}

.client-sheet__detail-name {
  font-size: 1.12rem;
  font-weight: 750;
  color: var(--text);
  line-height: 1.25;
}

.client-sheet__detail-sep {
  height: 1px;
  margin: 0.85rem 0 0.55rem;
  background: var(--border);
}

.client-sheet__detail-fields {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.client-sheet__detail-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.35rem;
  padding: 0.2rem 0.1rem;
}

.client-sheet__detail-icon {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.client-sheet__detail-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.client-sheet__detail-line {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  word-break: break-word;
  user-select: text;
  pointer-events: none;
}

.client-sheet__detail-line--muted {
  color: var(--text-muted);
  opacity: 0.8;
}

.client-sheet__detail-section {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.client-sheet__visits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.client-sheet__visit {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.client-sheet__visit-when {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.client-sheet__visit-svc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.client-sheet__row--add {
  margin-bottom: 0;
  border-bottom: 0;
  padding: 0;
  gap: 0.15rem;
  background: transparent;
  cursor: default;
}

.client-sheet__row--add:hover,
.client-sheet__row--add:active {
  background: transparent;
}

.client-sheet__add {
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.client-sheet__add-main {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.65rem 0.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.client-sheet__add-main:hover,
.client-sheet__add-main:active {
  background: color-mix(in srgb, var(--accent-provider) 6%, transparent);
}

.client-sheet__add-expand {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.35rem 0.1rem 0.35rem 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.client-sheet__add-expand:hover,
.client-sheet__add-expand:active {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.client-sheet__add-expand-icon {
  width: 0.9rem;
  height: 0.9rem;
  background: currentColor;
  opacity: 0.7;
  transition: transform 0.16s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.client-sheet__add-expand.is-open .client-sheet__add-expand-icon,
.client-sheet__add.is-expanded .client-sheet__add-expand-icon {
  transform: rotate(180deg);
}

.client-sheet__add-details {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0 0.15rem 0.75rem 3.45rem;
}

.client-sheet__add-details[hidden] {
  display: none !important;
}

.client-sheet__add-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
}

.client-sheet__add-field-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.client-sheet__add-input {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

.client-sheet__add-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent-provider) 45%, var(--border));
}

.client-sheet__avatar {
  flex: 0 0 2.55rem;
  width: 2.55rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-provider) 18%, var(--surface-2));
  color: var(--accent-provider);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.client-sheet__avatar--add {
  background: color-mix(in srgb, var(--accent-provider) 14%, var(--surface));
  color: var(--accent-provider);
  font-size: 1.35rem;
  font-weight: 500;
}

.client-sheet__meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}

.client-sheet__name {
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-sheet__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-sheet__row--add .client-sheet__name,
.client-sheet__add-main .client-sheet__name {
  color: var(--accent-provider);
}

.client-sheet__empty {
  margin: 1.2rem 0.25rem;
}

.client-sheet__index {
  position: absolute;
  top: 0.25rem;
  right: 0.1rem;
  bottom: 0.25rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.15rem 0.15rem;
  pointer-events: none;
}

.client-sheet__index-btn {
  appearance: none;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  min-height: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-provider);
  font: inherit;
  font-size: 0.58rem;
  font-weight: 750;
  line-height: 1.15;
  cursor: pointer;
  opacity: 0.35;
}

.client-sheet__index-btn.is-on {
  opacity: 1;
}

.client-sheet__index-btn:disabled {
  opacity: 0.22;
  cursor: default;
}

body.client-sheet-open {
  overflow: hidden;
}

.prov-cal-add__client-avatar {
  flex: 0 0 var(--prov-cal-add-icon-size);
  width: var(--prov-cal-add-icon-size);
  height: var(--prov-cal-add-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
}

.prov-cal-add__client-avatar svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.prov-cal-add__input {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 2.55rem;
  margin: 0;
  padding: 0.45rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
}

.prov-cal-add__input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.prov-cal-add__input[readonly] {
  cursor: pointer;
  caret-color: transparent;
}

.prov-cal-add__input:focus {
  outline: none;
}

.prov-cal-add__input--contact {
  font-size: 15px;
  font-weight: 500;
  min-height: 2.25rem;
}

.prov-cal-add__service-pick {
  width: 100%;
}

/* Wyższa specyficzność niż .avail-loc-pick--compact (gap: 0) — ten sam układ co wiersz klienta. */
.prov-cal-add .prov-cal-add__service-pick.avail-loc-pick--compact .avail-loc-pick__btn {
  display: flex;
  align-items: center;
  gap: var(--prov-cal-add-row-gap, 0.75rem);
  min-height: 2.55rem;
  padding: 0;
  font-size: 16px;
}

.prov-cal-add .prov-cal-add__service-pick.avail-loc-pick--compact .avail-loc-pick__btn .prov-cal-add__client-avatar {
  margin-top: 0;
  flex: 0 0 var(--prov-cal-add-icon-size);
}

.prov-cal-add .prov-cal-add__service-pick.avail-loc-pick--compact .avail-loc-pick__btn .avail-loc-pick__chevron {
  margin-top: 0;
  margin-left: 0;
  flex: 0 0 var(--prov-cal-add-side);
  width: var(--prov-cal-add-side);
  height: var(--prov-cal-add-side);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: 1.05rem 1.05rem;
  -webkit-mask-size: 1.05rem 1.05rem;
  mask-size: 1.05rem 1.05rem;
}

.prov-cal-add .prov-cal-add__service-pick.avail-loc-pick--compact .avail-edit__loc-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0.45rem 0;
}

.prov-cal-add__service-pick .avail-loc-pick__label {
  font-size: 16px;
  font-weight: 600;
}

.prov-cal-add__service-pick .avail-loc-pick__label--placeholder {
  font-weight: 500;
}

.prov-cal-add__service-summary.visit-card__services {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0.15rem;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  color: var(--text);
}

.prov-cal-add__service-summary.visit-card__services li {
  list-style: none;
}

.prov-cal-add__service-pick .avail-loc-pick__menu {
  top: calc(100% + 0.35rem);
  bottom: auto;
  left: 0;
  right: 0;
  min-width: 100%;
  max-width: none;
  z-index: 30;
}

.prov-cal-add__service-opt {
  align-items: center;
  gap: 0.55rem;
}

/* Minutnik długości „Inne” — ten sam input[type=time] co w dostępności (osie h/min). */
.prov-cal-add__inne-duration {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.prov-cal-add__inne-duration .client-sheet__backdrop {
  position: absolute;
  inset: 0;
}

.prov-cal-add__inne-duration-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-height: min(70%, 22rem);
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  box-shadow: 0 -8px 28px color-mix(in srgb, var(--text) 12%, transparent);
}

.prov-cal-add__inne-duration-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.35rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
}

.prov-cal-add__inne-duration-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prov-cal-add__inne-duration-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.15rem 0.35rem;
  border-radius: 12px;
  background: var(--surface-2);
}

.prov-cal-add__inne-duration-field .avail-edit__time-icon {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--text-muted);
}

.prov-cal-add__inne-duration-field .avail-edit__time-wrap {
  flex: 1 1 auto;
}

.prov-cal-add__inne-duration-field .avail-edit__time {
  width: 100%;
  max-width: 8rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.prov-cal-add__inne-duration-hint {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.prov-cal-add__inne-clear {
  appearance: none;
  -webkit-appearance: none;
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--border) 55%, var(--surface));
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.prov-cal-add__inne-clear:hover {
  background: color-mix(in srgb, var(--border) 75%, var(--surface));
}

.prov-cal-add__service-sep {
  height: 1px;
  margin: 0.25rem 0.45rem;
  background: color-mix(in srgb, var(--border) 88%, transparent);
}

.prov-cal-add__service-opt-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
}

.prov-cal-add__service-opt .avail-loc-pick__opt-label {
  flex: 0 1 auto;
  white-space: normal;
  line-height: 1.2;
}

.prov-cal-add__service-opt-meta {
  margin: 0;
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.prov-cal-add__service-opt .service-row__check-visual {
  flex: 0 0 0.95rem;
  margin-left: 0.15rem;
  align-self: center;
}

.prov-cal-add__service-opt .service-row__check-visual.is-on,
.prov-cal-add__service-opt.is-selected .service-row__check-visual {
  opacity: 1;
  border-color: var(--accent-provider);
  background: var(--accent-provider);
  box-shadow: 0 0 0 2px var(--accent-provider-soft);
}

.prov-cal-add__service-opt .service-row__check-visual.is-on::after,
.prov-cal-add__service-opt.is-selected .service-row__check-visual::after {
  border-left-color: #fff;
  border-bottom-color: #fff;
}

.prov-cal-add__service-opt:hover .service-row__check-visual {
  opacity: 0.7;
  border-color: var(--accent-provider);
}

.prov-cal-add__service-empty {
  margin: 0.35rem 0.55rem;
}

.prov-cal-add__services .booking__label {
  margin: 0 0 0.45rem;
}

.prov-cal-add__services .service-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.prov-cal-add__schedule {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.prov-cal-add .time-list--horizontal {
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.1rem 0 0.25rem;
  scrollbar-width: none;
}

.prov-cal-add .time-list--horizontal::-webkit-scrollbar {
  display: none;
}

.prov-cal-add .time-row--chip {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0.25rem 0.75rem;
  text-align: left;
  color: inherit;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

.prov-cal-add .time-list--horizontal .time-row--chip + .time-row--chip {
  border-left: 1px solid var(--border);
}

.prov-cal-add .time-row--chip.time-row--selected {
  opacity: 1;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.prov-cal-add .time-list--horizontal .time-row--chip.time-row--selected {
  border-left-color: var(--border);
}

.prov-cal-add .time-row--chip.time-row--selected .time-row__range {
  background: var(--accent-provider);
  color: #fff;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--accent-provider) 35%, transparent);
}

.prov-cal-add .time-row--chip.time-row--selected .time-row__place {
  font-weight: 600;
}

.prov-cal-add .service-row--selected {
  border-color: var(--accent-provider);
  background: var(--accent-provider-soft);
}

.prov-cal-add .service-row__check:hover .service-row__check-visual,
.prov-cal-add .service-row__check--on .service-row__check-visual {
  border-color: var(--accent-provider);
}

.prov-cal-add .service-row__check--on .service-row__check-visual {
  background: var(--accent-provider);
  box-shadow: 0 0 0 2px var(--accent-provider-soft);
}

.prov-cal-add .service-row__more {
  color: var(--accent-provider);
}

.prov-cal-add__foot.booking-confirm-bar {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem var(--prov-cal-add-pad-x) calc(0.55rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: var(--surface);
  box-shadow: none;
}

.prov-cal-add__foot .bottom-nav__summary {
  flex: 0 1 auto;
  min-width: 0;
}

.prov-cal-add__foot .bottom-nav__book {
  flex: 1 1 auto;
  background: var(--accent-provider);
  color: #fff;
}

.prov-cal-add__foot .bottom-nav__book:disabled {
  opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
  .prov-cal-add__sheet {
    animation: none;
  }
}

.prov-cal-body--day-swipe {
  overflow-x: hidden;
  overflow-y: hidden;
  touch-action: pan-y;
  position: relative;
}

.prov-cal-body--animating-days {
  overflow: hidden !important;
  touch-action: none;
}

/* Tor swipe: dwa pełne panele obok siebie — bez odrywania od krawędzi. */
.prov-cal-day-track {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: max-content;
  max-width: none;
  will-change: transform;
}

.prov-cal-day-track .gcal {
  box-sizing: border-box;
}

.gcal--swipe-underlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--surface);
}

.gcal--swipe-top {
  position: relative;
  z-index: 1;
  background: var(--surface);
}

/* Widok dnia — styl Google Calendar */
.gcal {
  padding: 0 var(--app-pad-x);
  background: var(--surface);
}

.gcal--sliding {
  pointer-events: none;
  will-change: transform;
}

/* Mobile: oś godzin blisko lewej krawędzi; dni dociągnięte do prawej */
@media (max-width: 899px) {
  .app-fullscreen .gcal {
    padding-left: 0.1rem;
    padding-right: 0;
  }

  .app-fullscreen .gcal__timeline,
  .app-fullscreen .gcal-week__head,
  .app-fullscreen .gcal-week__timeline {
    grid-template-columns: 2.45rem 1fr;
  }

  .app-fullscreen .app-screen--my-cal .gcal-week__head {
    grid-template-columns: 1fr;
  }

  .app-fullscreen .gcal__hour-label {
    right: 0.2rem;
    font-size: 0.62rem;
  }
}

.device-frame[data-view="mobile"] .gcal {
  padding-left: 0.1rem;
  padding-right: 0;
}

.device-frame[data-view="mobile"] .gcal__timeline,
.device-frame[data-view="mobile"] .gcal-week__head,
.device-frame[data-view="mobile"] .gcal-week__timeline {
  grid-template-columns: 2.45rem 1fr;
}

.device-frame[data-view="mobile"] .app-screen--my-cal .gcal-week__head {
  grid-template-columns: 1fr;
}

.device-frame[data-view="mobile"] .gcal__hour-label {
  right: 0.2rem;
  font-size: 0.62rem;
}

/* Panel wyboru miesiąca / dnia — kolumny dni jak w pasku tygodnia (.gcal-week__days) */
.gcal-month {
  margin: 0.35rem 0 0.15rem;
  padding: 0.55rem 0 0.35rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  animation: gcal-month-in 0.22s ease;
}

@keyframes gcal-month-in {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Kalendarz wizyt: linia jest na .screen-head--prov-cal; panel miesiąca wysuwa się w dół. */
/* Wspólny timing: otwarcie i zamknięcie miesiąca + pasek dnia/tygodnia. */
.app-screen--prov-cal {
  --prov-cal-month-ms: 320ms;
  --prov-cal-month-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.app-screen--prov-cal .gcal-month,
.app-screen--my-cal .gcal-month {
  margin: 0;
  padding: 0.55rem 0 0.35rem;
  border-top: 0;
  overflow: hidden;
  transform-origin: top center;
  animation: prov-cal-month-reveal var(--prov-cal-month-ms) var(--prov-cal-month-ease) both;
}

.app-screen--prov-cal .gcal-month.gcal-month--instant,
.app-screen--my-cal .gcal-month.gcal-month--instant {
  animation: none;
}

.app-screen--prov-cal .gcal-month.gcal-month--closing,
.app-screen--my-cal .gcal-month.gcal-month--closing {
  animation: none;
  pointer-events: none;
  overflow: hidden;
  transition:
    max-height var(--prov-cal-month-ms) var(--prov-cal-month-ease),
    opacity var(--prov-cal-month-ms) var(--prov-cal-month-ease),
    transform var(--prov-cal-month-ms) var(--prov-cal-month-ease),
    padding var(--prov-cal-month-ms) var(--prov-cal-month-ease);
}

@keyframes prov-cal-month-reveal {
  from {
    max-height: 0;
    opacity: 0;
    transform: translateY(-0.35rem);
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    max-height: 22rem;
    opacity: 1;
    transform: translateY(0);
    padding-top: 0.55rem;
    padding-bottom: 0.35rem;
  }
}

/* Pasek dnia/tygodnia: schowany pod otwartym miesiącem, wraca razem z zamykaniem. */
.app-screen--prov-cal .gcal-week__sticky,
.app-screen--my-cal .gcal-week__sticky {
  overflow: hidden;
  max-height: 4.75rem;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height var(--prov-cal-month-ms) var(--prov-cal-month-ease),
    opacity var(--prov-cal-month-ms) var(--prov-cal-month-ease),
    transform var(--prov-cal-month-ms) var(--prov-cal-month-ease),
    padding var(--prov-cal-month-ms) var(--prov-cal-month-ease),
    box-shadow var(--prov-cal-month-ms) var(--prov-cal-month-ease);
}

.app-screen--prov-cal .gcal-week__sticky--under-month:not(.gcal-week__sticky--revealing),
.app-screen--my-cal .gcal-week__sticky--under-month:not(.gcal-week__sticky--revealing) {
  max-height: 0;
  opacity: 0;
  padding-bottom: 0;
  box-shadow: none;
  transform: translateY(-0.3rem);
  pointer-events: none;
}

.app-screen--prov-cal .gcal-week__sticky--revealing,
.app-screen--my-cal .gcal-week__sticky--revealing {
  max-height: 4.75rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gcal-month__cal {
  touch-action: pan-y;
  user-select: none;
}

/* W kalendarzu wizyt: wyrównanie kolumn do paska tygodnia (gutter godzin) */
.app-screen--prov-cal .gcal-month__cal {
  padding-left: 3.1rem;
}

.app-screen--my-cal .gcal-month__cal {
  padding-left: 0;
}

@media (max-width: 899px) {
  .app-fullscreen .app-screen--prov-cal .gcal-month,
  .app-fullscreen .app-screen--my-cal .gcal-month {
    margin-left: calc(-1 * var(--app-pad-x) + 0.1rem);
    margin-right: calc(-1 * var(--app-pad-x));
  }

  .app-fullscreen .app-screen--prov-cal .gcal-month__cal {
    padding-left: 2.45rem;
  }

  .app-fullscreen .app-screen--my-cal .gcal-month__cal {
    padding-left: 0;
  }
}

.device-frame[data-view="mobile"] .app-screen--prov-cal .gcal-month,
.device-frame[data-view="mobile"] .app-screen--my-cal .gcal-month {
  margin-left: calc(-1 * var(--app-pad-x) + 0.1rem);
  margin-right: calc(-1 * var(--app-pad-x));
}

.device-frame[data-view="mobile"] .app-screen--prov-cal .gcal-month__cal {
  padding-left: 2.45rem;
}

.device-frame[data-view="mobile"] .app-screen--my-cal .gcal-month__cal {
  padding-left: 0;
}

/* Dostępność: pełna szerokość miesiąca w .avail-top.
   Linia jest tylko na .screen-head--prov-cal (jak w Kalendarzu) — bez drugiej na panelu. */
.gcal-month--avail {
  margin: 0.2rem 0 0;
  padding: 0.35rem 0 0.45rem;
  border-top: 0;
}

.gcal-month--avail .gcal-month__viewport {
  position: relative;
  overflow: hidden;
}

.gcal-month--avail .gcal-month__cal {
  padding-left: 0;
  will-change: transform;
}

.gcal-month--avail .gcal-month__viewport--slide .gcal-month__cal {
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.gcal-month--avail .gcal-month__cal--incoming {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
}

.gcal-month--avail.gcal-month--avail-fade {
  animation: avail-month-fade 0.14s ease;
}

@keyframes avail-month-fade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.35;
  }
}

/* Dostępność: podświetlenie aktualnego tygodnia (jeden wiersz siatki) */
.gcal-month--avail .gcal-month__grid {
  position: relative;
}

.gcal-month--avail .gcal-month__wk {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2rem;
  z-index: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  pointer-events: none;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dostępność: 3 sloty kropek przed datą (niewidoczne, gdy puste) */
.gcal-month--avail .gcal-month__day {
  position: relative;
  z-index: 1;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  padding: 0.2rem 0.05rem;
}

.gcal-month--avail .gcal-month__day-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 0.28rem;
  flex-shrink: 0;
}

.gcal-month--avail .gcal-month__day-dot {
  position: static;
  bottom: auto;
  width: 0.28rem;
  height: 0.28rem;
  opacity: 0;
  background: var(--loc, var(--accent-provider));
  box-shadow: none;
}

.gcal-month--avail .gcal-month__day-dot.is-on {
  opacity: 1;
}

/* Dostępność: dziś = obwódka akcentu; wybór to tydzień (nie dzień) */
.gcal-month--avail .gcal-month__day--today .gcal-month__day-num {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--cal-today-fg);
}

/* Dni poprzedniego / następnego miesiąca — zawsze 6 tygodni */
.gcal-month--avail .gcal-month__day--outside {
  color: var(--text-muted);
  opacity: 0.55;
}

.gcal-month--avail .gcal-month__day--outside .gcal-month__day-num {
  color: inherit;
  font-weight: 600;
}

.gcal-month--avail .gcal-month__day--outside.gcal-month__day--red {
  color: color-mix(in srgb, var(--danger) 55%, var(--text-muted));
}

.gcal-month--avail .gcal-month__day--outside .gcal-month__day-dot.is-on {
  opacity: 0.55;
}

.gcal-month__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0.12rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text-muted);
}

.gcal-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
}

.gcal-month__day {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  margin: 0;
  padding: 0.2rem 0.05rem 0.35rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.gcal-month__day-num {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}

.gcal-month__day--pad {
  visibility: hidden;
  pointer-events: none;
}

/* Dziś — tylko obwódka akcentu; tekst zwykły (niedziela: red) */
.gcal-month__day--today:not(.gcal-month__day--on) .gcal-month__day-num {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--cal-today-fg);
}

/* Zaznaczony (przeglądanie) — szary w kółku; usługodawca: pełny akcent jak w pasku dni */
.gcal-month__day--on .gcal-month__day-num {
  background: var(--cal-selected-bg);
  color: var(--cal-selected-fg);
}

.app-screen--provider .gcal-month__day--on .gcal-month__day-num {
  background: var(--accent-provider);
  color: #fff;
  box-shadow: none;
}

.gcal-month__day--red:not(.gcal-month__day--on) {
  color: var(--danger);
}

.gcal-month__day--today.gcal-month__day--red:not(.gcal-month__day--on) .gcal-month__day-num {
  color: var(--danger);
}

.gcal-month__day-dot {
  position: absolute;
  bottom: 0.12rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--accent-provider);
}

.gcal__timeline {
  position: relative;
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  touch-action: pan-y;
  --gcal-hour-h: 60px;
  overflow: visible;
}

.gcal__timeline--dragging {
  z-index: 5;
}

/* ---- Widok tygodnia (wąskie kolumny, same bloki) ---- */
.gcal--week {
  min-width: 0;
}

/* Nagłówek dni przyklejony przy scrollu osi (dzień i wiele dni). */
.gcal-week__sticky {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--surface);
  padding-bottom: 0.2rem;
  margin-bottom: 0;
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--text) 16%, transparent);
}

.gcal-week__head {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  margin-bottom: 0;
}

.gcal-week__corner {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin: 0;
  padding: 0 0.1rem 0.2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.gcal-week__corner--spacer {
  pointer-events: none;
  visibility: hidden;
}

.gcal-week__corner:hover .gcal-week__view-badge,
.gcal-week__corner[aria-expanded="true"] .gcal-week__view-badge {
  color: var(--accent-provider);
}

.gcal-week__view-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  color: var(--text-muted);
}

/* Chmurka wyboru widoku: 1 dzień / 3 dni / tydzień */
.prov-cal-view-cloud {
  position: fixed;
  z-index: 10055;
  min-width: 9.5rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.prov-cal-view-cloud[hidden] {
  display: none !important;
}

.prov-cal-view-cloud__item {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.prov-cal-view-cloud__item:hover {
  background: var(--surface-2);
}

.prov-cal-view-cloud__item.is-on {
  background: color-mix(in srgb, var(--accent-provider) 12%, var(--surface));
  color: var(--accent-provider);
  font-weight: 650;
}

/* Ta sama ikona kalendarza+cyfra co .gcal-week__corner */
.prov-cal-view-cloud__item .gcal-week__view-badge {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  color: currentColor;
}

.prov-cal-view-cloud__item .gcal-week__view-badge-num {
  color: currentColor;
  font-size: 0.62rem;
}

.prov-cal-view-cloud__label {
  min-width: 0;
}

.gcal-week__view-badge-ico {
  display: block;
  width: 100%;
  height: 100%;
}

/* Liczba w dolnej części kartki kalendarza (poniżej linii y=10 w SVG). */
.gcal-week__view-badge-num {
  position: absolute;
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  pointer-events: none;
}

/* Clip nagłówków / kolumn — oś godzin zostaje poza transformem swipa. */
.gcal-week__days-clip,
.gcal-week__cols-clip {
  overflow: hidden;
  min-width: 0;
  width: 100%;
  position: relative;
}

.gcal-week__days {
  display: grid;
  grid-template-columns: repeat(var(--gcal-days, 7), minmax(0, 1fr));
  min-width: 0;
}

.gcal-week__days.prov-cal-swipe-extended,
.gcal-week__cols.prov-cal-swipe-extended {
  will-change: transform;
}

.gcal-week__dayhead {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  margin: 0;
  padding: 0.2rem 0.05rem 0.35rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  min-width: 0;
}

.gcal-week__dayhead:hover {
  background: color-mix(in srgb, var(--text-muted) 8%, transparent);
}

.gcal-week__dow {
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1;
}

.gcal-week__num {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.gcal-week__dayhead--sun .gcal-week__dow,
.gcal-week__dayhead--sun .gcal-week__num {
  color: #c23b3b;
}

.gcal-week__dayhead--today:not(.gcal-week__dayhead--sel) .gcal-week__dow {
  color: var(--text);
}

/* Dziś — obwódka akcentu; zaznaczony — szary (wygrywa nad dziś) */
.gcal-week__dayhead--today:not(.gcal-week__dayhead--sel) .gcal-week__num {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--cal-today-fg);
}

.gcal-week__dayhead--today.gcal-week__dayhead--sun:not(.gcal-week__dayhead--sel) .gcal-week__dow,
.gcal-week__dayhead--today.gcal-week__dayhead--sun:not(.gcal-week__dayhead--sel) .gcal-week__num {
  color: #c23b3b;
}

.gcal-week__dayhead--sel .gcal-week__num {
  background: var(--cal-selected-bg);
  color: var(--cal-selected-fg);
}

/* Usługodawca: zaznaczona data kolorem akcentu */
.app-screen--provider .gcal-week__dayhead--sel .gcal-week__num {
  background: var(--accent-provider);
  color: #fff;
  box-shadow: none;
}

.gcal-week__timeline {
  grid-template-columns: 3.1rem 1fr;
}

.gcal-week__cols {
  display: grid;
  grid-template-columns: repeat(var(--gcal-days, 7), minmax(0, 1fr));
  min-width: 0;
  height: 100%;
}

.gcal-week__cols-clip {
  border-left: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  height: 100%;
}

.gcal-week__col {
  min-width: 0;
  height: 100%;
  border-right: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
}

.gcal-week__col:last-child {
  border-right: 0;
}

.gcal-week__col--today {
  background: color-mix(in srgb, var(--accent-provider) 4%, transparent);
}

/* Zaznaczona kolumna dnia — jasny tint akcentu na całej wysokości */
.gcal-week__col--sel {
  background: color-mix(in srgb, var(--accent-provider) 16%, transparent);
}

.gcal-week__col--sel.gcal-week__col--request {
  background: color-mix(in srgb, var(--accent-provider) 18%, transparent);
}

.gcal-week__track {
  border-left: 0;
  cursor: pointer;
}

/* Wąskie kolumny tygodnia — ten sam styl kafla co w dniu, ciaśniejszy padding. */
.gcal-week__track .gcal__event {
  left: 1px;
  right: 1px;
  padding-left: 0.45rem;
  padding-right: 0.2rem;
}

.gcal-week__track .gcal__now {
  right: 0;
}

.gcal-week__track .gcal__now span {
  display: none;
}

.gcal__hours {
  position: relative;
  z-index: 3;
  overflow: visible;
  background: var(--surface);
}

.gcal__hour {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
}

.gcal__hour-label {
  position: absolute;
  top: -0.4rem;
  right: 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.gcal__timeline--dragging .gcal__hour-label {
  opacity: 0.28;
}

/* Godzina startu na osi — przytrzymanie / przeciąganie wizyty */
.gcal__drag-time {
  position: absolute;
  left: 0;
  z-index: 12;
  transform: translateY(-50%);
  min-width: 2.7rem;
  padding: 0.18rem 0.28rem;
  border-radius: 6px;
  background: var(--accent-provider);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent-provider) 45%, rgba(0, 0, 0, 0.2));
}

.gcal__track {
  position: relative;
  border-left: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  height: 100%;
  min-height: 100%;
  /* Cała kolumna dnia przyjmuje tap (pusty przedział), nie tylko obszar wizyt. */
  cursor: pointer;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--gcal-hour-h) - 1px),
    color-mix(in srgb, var(--border) 85%, transparent) calc(var(--gcal-hour-h) - 1px),
    color-mix(in srgb, var(--border) 85%, transparent) var(--gcal-hour-h)
  );
}

/* Pasek dostępności — jedna reguła dla dnia i wielu dni; kolor z lokalizacji (--loc). */
.gcal__avail {
  position: absolute;
  left: -2px;
  width: 3px;
  z-index: 1;
  border-radius: 0;
  background: var(--loc, var(--accent-provider));
  pointer-events: none;
}

.gcal__empty {
  position: absolute;
  left: 0.85rem;
  top: 1.1rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.gcal__now {
  position: absolute;
  left: 0;
  right: 0.35rem;
  z-index: 4;
  height: 0;
  border-top: 2px dashed #e24b4b;
  pointer-events: none;
}

.gcal__now span {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e24b4b;
}

.gcal__event {
  position: absolute;
  left: 0.4rem;
  right: 0.35rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.08rem;
  padding: 0.22rem 0.4rem 0.22rem 0.55rem;
  border-radius: 0;
  overflow: hidden;
  /* Kolor z lokalizacji dostępności (--loc / loc-tone-*), inaczej accent usługodawcy. */
  --event-accent: var(--loc, var(--accent-provider));
  background: color-mix(in srgb, var(--event-accent) 16%, var(--surface));
  color: var(--text);
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.14s ease;
}

.gcal__event::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  border-radius: 0;
  background: var(--event-accent);
  pointer-events: none;
  transition: width 0.12s ease, background 0.12s ease;
}

.gcal__event--selected {
  z-index: 5;
  background: color-mix(in srgb, var(--event-accent) 22%, var(--surface));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--event-accent) 55%, transparent);
  transform: scale(1.035);
  transform-origin: left center;
}

.gcal__event--selected::before {
  width: 4px;
  background: var(--event-accent);
}

.gcal__event--dragging.gcal__event--selected {
  transform: scale(1.05);
}

.gcal__event--proposed {
  opacity: 0.9;
}

.gcal__event--proposed::before {
  background: color-mix(in srgb, var(--event-accent) 70%, var(--text-muted));
}

.gcal__event[data-role="prov-cal-slot"] {
  /* Domyślnie pozwól skrolować oś pionowo przy przeciąganiu palcem po slocie;
     tap zaznacza, a przytrzymanie uruchamia przeciąganie wizyty. */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

/* Dopiero uzbrojone przeciąganie blokuje natywny scroll (nasza logika przejmuje ruch). */
body.prov-cal-dragging .gcal__timeline,
body.prov-cal-dragging .gcal__event[data-role="prov-cal-slot"] {
  touch-action: none;
}

/*
 * Safari: obce sloty („Wolne”, inne wizyty) nie mogą brać udziału w hit-testach
 * podczas przeciągania — inaczej pointercancel urywa gest.
 */
.gcal--drag-active .gcal__event[data-role="prov-cal-slot"]:not(.gcal__event--dragging) {
  pointer-events: none;
}

.gcal--drag-active .gcal__event--dragging {
  pointer-events: auto;
}

/* Podpowiedź krawędzi przy przeciąganiu — auto-przesuwanie okna dni. */
.gcal--drag-edge-left .gcal-week__cols-clip::before,
.gcal--drag-edge-right .gcal-week__cols-clip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  z-index: 8;
  pointer-events: none;
  animation: gcal-drag-edge-pulse 0.85s ease-in-out infinite;
}

.gcal--drag-edge-left .gcal-week__cols-clip::before {
  left: 0;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--accent-provider) 34%, transparent),
    transparent
  );
}

.gcal--drag-edge-right .gcal-week__cols-clip::after {
  right: 0;
  background: linear-gradient(
    to left,
    color-mix(in srgb, var(--accent-provider) 34%, transparent),
    transparent
  );
}

@keyframes gcal-drag-edge-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

/* Pinch zoom osi — przeglądarka nie może przejąć gestu (scroll / page-zoom). */
body.prov-cal-pinching,
body.prov-cal-pinching .prov-cal-body,
body.prov-cal-pinching .gcal__timeline,
body.prov-cal-pinching .gcal__event[data-role="prov-cal-slot"] {
  touch-action: none;
  overscroll-behavior: none;
}

.gcal__event--dragging {
  z-index: 9;
  opacity: 0.96;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--text) 18%, transparent);
}

/* Wizyty są chwytliwe — afordancja przeciągania (tylko wskaźnik precyzyjny). */
@media (hover: hover) and (pointer: fine) {
  .gcal__event[data-kind="booking"] {
    cursor: grab;
  }
  .gcal__event[data-kind="booking"]:hover {
    background: color-mix(in srgb, var(--event-accent) 22%, var(--surface));
  }
}

.gcal__event--dragging[data-kind="booking"] {
  cursor: grabbing;
}

body.prov-cal-dragging,
body.prov-cal-dragging * {
  cursor: grabbing !important;
}

.gcal__event--free {
  z-index: 1;
  cursor: pointer;
  background: color-mix(in srgb, var(--text-muted) 14%, var(--surface));
  color: color-mix(in srgb, var(--text-muted) 88%, var(--text));
  border: 1px dashed color-mix(in srgb, var(--text-muted) 50%, var(--border));
  box-shadow: none;
  padding-left: 0.45rem;
}

.gcal__event--free::before {
  display: none;
}

.gcal__event--free.gcal__event--selected {
  z-index: 5;
  background: color-mix(in srgb, var(--text-muted) 22%, var(--surface));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text-muted) 55%, transparent);
}

/* Pusty szkic przedziału (tap w wolne miejsce) */
.gcal__event--draft {
  z-index: 6;
  cursor: default;
  background: color-mix(in srgb, var(--accent-provider) 14%, var(--surface));
  color: var(--text);
  border: 1.5px solid color-mix(in srgb, var(--accent-provider) 55%, var(--border));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-provider) 20%, transparent);
  padding-left: 0.45rem;
  --event-accent: var(--accent-provider);
}

.gcal__event--draft::before {
  display: none;
}

.gcal__event--draft.gcal__event--selected {
  transform: none;
  background: color-mix(in srgb, var(--accent-provider) 18%, var(--surface));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent-provider) 50%, transparent);
}

.gcal__event--draft .gcal__event-time {
  font-weight: 650;
  opacity: 1;
}

/* Duchy propozycji terminów (odpowiedź na prośbę o termin) — klik zdejmuje propozycję */
.gcal__event--proposal {
  z-index: 5;
  cursor: pointer;
  border-style: dashed;
  background: color-mix(in srgb, var(--accent-provider) 10%, var(--surface));
}

.gcal__event--proposal:hover {
  background: color-mix(in srgb, var(--accent-provider) 17%, var(--surface));
}

.gcal__event-resize {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--accent-provider);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  z-index: 2;
  touch-action: none;
  cursor: ns-resize;
}

.gcal__event-resize--start {
  top: -0.55rem;
  left: -0.2rem;
  right: auto;
}

.gcal__event-resize--end {
  bottom: -0.55rem;
  right: -0.2rem;
  left: auto;
}

body.prov-cal-resizing,
body.prov-cal-resizing * {
  cursor: ns-resize !important;
  user-select: none;
  -webkit-user-select: none;
}

.gcal__event--free.gcal__event--drop-target {
  z-index: 3;
  background: color-mix(in srgb, var(--accent-provider) 16%, var(--surface));
  border-color: color-mix(in srgb, var(--accent-provider) 55%, var(--border));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent-provider) 40%, transparent);
}

.gcal__event--invalid {
  opacity: 0.55;
}

.gcal__event--free .gcal__event-time {
  opacity: 0.8;
}

.gcal__event--compact,
.gcal__event--tiny {
  justify-content: center;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.gcal__event-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.12em;
  min-width: 0;
}

.gcal__event-title {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gcal__event-time {
  /* Stała kolumna na „00:00–00:00” → nazwy usług wyrównane w pionie. */
  flex: 0 0 11ch;
  width: 11ch;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
}

/* Wąska kolumna: tylko godzina startu (szerokość mierzona w JS). */
.gcal__event--time-short .gcal__event-time {
  flex: 0 0 5ch;
  width: 5ch;
}

.gcal__event-client {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.15;
  opacity: 0.92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gcal__event--compact .gcal__event-client {
  display: none;
}

/* Mocniejsze skrócenie osi (mały zoom) — chowamy klienta;
   godzina + nazwa zostają w jednym wierszu, w tym samym rozmiarze co w pełnym kaflu. */
.gcal__event--tiny .gcal__event-client {
  display: none;
}

.gcal__event--mini {
  padding: 0;
}

.gcal__event--mini .gcal__event-row,
.gcal__event--mini .gcal__event-client {
  display: none;
}

.time-list--vertical {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
}

/* Pełnoekranowy widok rezerwacji — kolumny wypełniają wysokość ekranu */
.app-screen--booking .booking-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.device-frame[data-view="desktop"] .app-screen--booking .booking-mobile {
  display: none;
}

.device-frame[data-view="desktop"] .app-screen--booking .booking-layout {
  display: grid;
  flex: 1 1 0;
  min-height: 0;
}

.device-frame[data-view="desktop"] .app-screen--booking > .booking__provider-card {
  flex: 0 0 auto;
}

@media (min-width: 900px) {
  .app-fullscreen .app-screen--booking .booking-mobile {
    display: none;
  }

  .app-fullscreen .app-screen--booking .booking-layout {
    display: grid;
    flex: 1 1 0;
    min-height: 0;
  }

  .app-fullscreen .app-screen--booking > .booking__provider-card {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-screen--booking {
    animation: none;
  }

  .provider-booking-panel {
    animation: none;
  }

  .bottom-nav__indicator {
    transition: none;
  }
}

.date-strip {
  --date-chip-gap: 0.28rem;
  display: flex;
  gap: var(--date-chip-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.date-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  /* Min. 7 dni w widocznym obszarze */
  flex: 0 0 calc((100% - 6 * var(--date-chip-gap)) / 7);
  width: calc((100% - 6 * var(--date-chip-gap)) / 7);
  min-width: calc((100% - 6 * var(--date-chip-gap)) / 7);
  max-width: calc((100% - 6 * var(--date-chip-gap)) / 7);
  padding: 0.28rem 0.05rem 0.2rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  box-sizing: border-box;
  transition: color 0.15s ease, background 0.15s ease;
}

.date-chip__dow {
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.01em;
  font-weight: 750;
}

.date-chip__day {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  color: inherit;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.date-chip:hover:not(.date-chip--active):not(.date-chip--today) .date-chip__day {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

/* Dziś — tylko obwódka akcentu; tekst zwykły (niedziela: red przez --holiday) */
.date-chip--today:not(.date-chip--active) .date-chip__dow {
  color: var(--text);
}

.date-chip--today:not(.date-chip--active) .date-chip__day {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--cal-today-fg);
}

/* Zaznaczony (filtry / przeglądanie) — szary w kółku */
.date-chip--active .date-chip__day {
  background: var(--cal-selected-bg);
  color: var(--cal-selected-fg);
}

/* Rezerwacja: niezaznaczone przygaszone, wybrane = najmocniejszy sygnał */
.date-strip--booking .date-chip:not(.date-chip--active):not(.date-chip--closed) {
  opacity: 0.72;
}

.date-strip--booking .date-chip--active {
  opacity: 1;
}

.date-strip--booking .date-chip--active .date-chip__day {
  background: var(--accent-client);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--accent-client) 35%, transparent);
}

.date-strip--booking .date-chip--active .date-chip__dow {
  color: var(--accent-client);
  font-weight: 800;
}

.date-chip--holiday:not(.date-chip--active) .date-chip__dow,
.date-chip--holiday:not(.date-chip--active) .date-chip__day,
.date-chip--today.date-chip--holiday:not(.date-chip--active) .date-chip__dow,
.date-chip--today.date-chip--holiday:not(.date-chip--active) .date-chip__day {
  color: var(--danger);
}

/* Tylko dni przeszłe — przygaszone (nie da się już rezerwować) */
.date-chip--closed {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.date-chip--closed:hover {
  border-color: var(--border);
}

/* Dzień bez wolnych terminów w przyszłości: wygląda jak zwykły chip, nieklikalny */
.date-chip--unavailable {
  cursor: default;
  pointer-events: none;
}

.date-chip--unavailable:hover {
  border-color: var(--border);
}

.time-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.booking-mobile .time-list--horizontal {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.booking-mobile .time-list--horizontal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.time-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

/* Lista pionowa — płaskie pola z separatorami (jak oferty / wizyty) */
.time-list--vertical > .time-row:not(.time-row--chip) {
  position: relative;
  padding: 0.7rem 0.15rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.time-list--vertical > .time-row:not(.time-row--chip)::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}

.time-list--vertical > .time-row:not(.time-row--chip):last-child::after {
  display: none;
}

.time-row:not(.time-row--chip):hover {
  border-color: var(--accent-client);
}

.time-list--vertical > .time-row:not(.time-row--chip):hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent-client) 5%, transparent);
}

.booking-mobile .time-row--chip {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0.25rem 0.75rem;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

.booking-mobile .time-list--horizontal .time-row--chip + .time-row--chip {
  border-left: 1px solid var(--border);
}

.booking-mobile .time-row--chip:active {
  opacity: 0.85;
}

.booking-mobile .time-row--chip.time-row--selected {
  opacity: 1;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.booking-mobile .time-list--horizontal .time-row--chip.time-row--selected {
  border-left-color: var(--border);
}

/* Wybrana godzina — pill z pełnym akcentem (jak kółko dnia) */
.booking-mobile .time-row--chip.time-row--selected .time-row__range {
  background: var(--accent-client);
  color: #fff;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--accent-client) 35%, transparent);
}

.booking-mobile .time-row--chip.time-row--selected .time-row__place {
  color: var(--text-muted);
  font-weight: 600;
}

.time-row__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  flex: 1;
  min-width: 0;
}

.booking-mobile .time-row--chip .time-row__info {
  flex: none;
}

.time-row__range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.time-row__place {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  max-width: 100%;
  padding-left: 0.15rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.time-row__loc-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--loc, var(--accent-client));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loc, var(--accent-client)) 35%, transparent);
}

.time-row__btn {
  flex-shrink: 0;
  padding: 0.38rem 0.7rem;
  font-size: 0.75rem;
}

/* ---- Dolne menu klienta (pełna szerokość, biały pasek + fasolka) ---- */
.bottom-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: var(--bottom-nav-gap);
  flex-shrink: 0;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: calc(var(--bottom-nav-pill-h) + env(safe-area-inset-bottom, 0px));
  min-height: calc(var(--bottom-nav-pill-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 var(--bottom-nav-pad-x);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
  z-index: 120;
}

/* Aktywna zakładka tylko kolorem ikony (szary → czarny) — bez kolorowej „fasoli”. */
.bottom-nav__indicator {
  display: none;
}

.bottom-nav__item {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--bottom-nav-active-w);
  height: var(--bottom-nav-item-h);
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(28, 35, 51, 0.4);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.bottom-nav__item:hover {
  color: rgba(28, 35, 51, 0.7);
}

.bottom-nav__item:active {
  transform: scale(0.94);
}

.bottom-nav__item--active {
  color: #111;
}

.bottom-nav--provider .bottom-nav__item--active,
.bottom-nav--client .bottom-nav__item--active {
  color: #111;
}

.bottom-nav__icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.bottom-nav__icon--search {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--search {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10.5 3a7.5 7.5 0 0 1 5.89 12.08l4.28 4.28-1.42 1.42-4.28-4.28A7.5 7.5 0 1 1 10.5 3Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10.5 3a7.5 7.5 0 0 1 5.89 12.08l4.28 4.28-1.42 1.42-4.28-4.28A7.5 7.5 0 1 1 10.5 3Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Z'/%3E%3C/svg%3E");
}

.bottom-nav__icon--home {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 12 4l8 6.5'/%3E%3Cpath d='M6 10.5V19h12v-8.5'/%3E%3Cpath d='M10 19v-5h4v5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 12 4l8 6.5'/%3E%3Cpath d='M6 10.5V19h12v-8.5'/%3E%3Cpath d='M10 19v-5h4v5'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--home {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 3.2 4 10v10h5v-6h6v6h5V10L12 3.2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 3.2 4 10v10h5v-6h6v6h5V10L12 3.2Z'/%3E%3C/svg%3E");
}

.bottom-nav__icon--back {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--back {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14.7 5.3a1 1 0 0 1 0 1.4L9.4 12l5.3 5.3a1 1 0 1 1-1.4 1.4l-6-6a1 1 0 0 1 0-1.4l6-6a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14.7 5.3a1 1 0 0 1 0 1.4L9.4 12l5.3 5.3a1 1 0 1 1-1.4 1.4l-6-6a1 1 0 0 1 0-1.4l6-6a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E");
}

.bottom-nav__icon--close {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.bottom-nav--booking {
  gap: 0.35rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.bottom-nav--booking-dual {
  position: relative;
  gap: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.bottom-nav__layer {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--bottom-nav-item-h);
  opacity: 1;
  transition: opacity 0.22s ease;
}

.bottom-nav__layer--menu {
  position: relative;
  z-index: 1;
  justify-content: space-evenly;
  gap: var(--bottom-nav-gap);
  padding: 0 var(--bottom-nav-pad-x);
  pointer-events: auto;
}

.bottom-nav--with-back .bottom-nav__layer--menu {
  gap: 0;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  justify-content: stretch;
  overflow: hidden;
}

.bottom-nav__layer--confirm {
  position: absolute;
  inset: 0;
  z-index: 2;
  justify-content: flex-start;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.75rem;
  opacity: 0;
  pointer-events: none;
}

.bottom-nav__summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  min-width: 0;
}

.bottom-nav__summary-label {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.1;
}

.bottom-nav__summary-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.1;
  min-width: 0;
  margin-left: 0.35rem;
  margin-right: 0.45rem;
}

.bottom-nav__summary-dur {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.bottom-nav__summary-price {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.bottom-nav__add {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bottom-nav__add:hover {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--accent-client) 35%, var(--border));
}

.bottom-nav__add:active {
  transform: scale(0.94);
}

.bottom-nav__add--active {
  background: color-mix(in srgb, var(--accent-client) 14%, #e8eef5);
  border-color: var(--accent-client);
  color: var(--accent-client);
}

.bottom-nav__add-icon {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
}

.booking-confirm-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  width: 100%;
  padding: 0.45rem 0.75rem;
  padding-bottom: calc(0.45rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  z-index: 119;
}

.booking-confirm-bar .bottom-nav__summary {
  flex: 0 1 auto;
}

.booking-confirm-bar .bottom-nav__book {
  flex: 1 1 auto;
}

.booking-confirm-bar .bottom-nav__clear {
  flex-shrink: 0;
}

.bottom-nav__summary--empty .bottom-nav__summary-dur,
.bottom-nav__summary--empty .bottom-nav__summary-price {
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav__layer {
    transition: none;
  }
}

.bottom-nav--with-back {
  gap: 0;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  justify-content: space-evenly;
}

.bottom-nav--with-back .bottom-nav__item {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
}

.bottom-nav--with-back .bottom-nav__indicator {
  width: var(--bottom-nav-active-w);
  height: var(--bottom-nav-item-h);
}

.bottom-nav--booking .bottom-nav__item {
  width: var(--bottom-nav-item-w);
}

.bottom-nav__book {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: var(--bottom-nav-item-h);
  margin: 0;
  padding: 0 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--accent-client);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
}

.bottom-nav__layer--confirm .bottom-nav__clear {
  flex-shrink: 0;
}

.bottom-nav__book:active:not(:disabled) {
  transform: scale(0.97);
}

.bottom-nav__book:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bottom-nav__clear {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: rgba(28, 35, 51, 0.55);
  cursor: pointer;
  flex-shrink: 0;
}

.bottom-nav__clear:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--text) 22%, var(--border));
}

.bottom-nav__clear:active {
  transform: scale(0.94);
}

.bottom-nav__icon--heart {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--heart {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
}

.bottom-nav__icon--bookmark {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--bookmark {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.bottom-nav__icon--calendar {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='3'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--calendar {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 1-1Zm13 9H4v8a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 1-1Zm13 9H4v8a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-8Z'/%3E%3C/svg%3E");
}

.bottom-nav__icon--slots {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--slots {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm.75 5a.75.75 0 0 0-1.5 0v5.1c0 .2.08.39.22.53l2.8 2.8a.75.75 0 1 0 1.06-1.06l-2.58-2.58V7Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm.75 5a.75.75 0 0 0-1.5 0v5.1c0 .2.08.39.22.53l2.8 2.8a.75.75 0 1 0 1.06-1.06l-2.58-2.58V7Z'/%3E%3C/svg%3E");
}

.bottom-nav__icon--profile {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--profile {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3.5 6.25h17a1.25 1.25 0 1 1 0 2.5h-17a1.25 1.25 0 1 1 0-2.5Zm0 4.5h17a1.25 1.25 0 1 1 0 2.5h-17a1.25 1.25 0 1 1 0-2.5Zm0 4.5h17a1.25 1.25 0 1 1 0 2.5h-17a1.25 1.25 0 1 1 0-2.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3.5 6.25h17a1.25 1.25 0 1 1 0 2.5h-17a1.25 1.25 0 1 1 0-2.5Zm0 4.5h17a1.25 1.25 0 1 1 0 2.5h-17a1.25 1.25 0 1 1 0-2.5Zm0 4.5h17a1.25 1.25 0 1 1 0 2.5h-17a1.25 1.25 0 1 1 0-2.5Z'/%3E%3C/svg%3E");
}

.bottom-nav__icon--requests {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13'/%3E%3Cpath d='M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13'/%3E%3Cpath d='M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--requests {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5h13a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2Zm0 6h13a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2Zm0 6h13a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2ZM3.5 5.25a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm0 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm0 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5h13a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2Zm0 6h13a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2Zm0 6h13a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2ZM3.5 5.25a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm0 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm0 6a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Z'/%3E%3C/svg%3E");
}

.bottom-nav__icon--services {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41 13.42 20.58a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82Z'/%3E%3Cpath d='M7 7h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41 13.42 20.58a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82Z'/%3E%3Cpath d='M7 7h.01'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--services {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M2 2h10.17a2 2 0 0 1 1.41.59l8.42 8.41a3 3 0 0 1 0 4.24l-7.17 7.17a3 3 0 0 1-4.24 0L2 13.83V2Zm5.5 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M2 2h10.17a2 2 0 0 1 1.41.59l8.42 8.41a3 3 0 0 1 0 4.24l-7.17 7.17a3 3 0 0 1-4.24 0L2 13.83V2Zm5.5 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z'/%3E%3C/svg%3E");
}

.bottom-nav__icon--settings {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E");
}

.bottom-nav__item--active .bottom-nav__icon--settings {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M11 2h2v2.07a7.98 7.98 0 0 1 2.93 1.21l1.46-1.46 1.41 1.41-1.46 1.46A7.98 7.98 0 0 1 18.93 11H21v2h-2.07a7.98 7.98 0 0 1-1.21 2.93l1.46 1.46-1.41 1.41-1.46-1.46A7.98 7.98 0 0 1 13 18.93V21h-2v-2.07a7.98 7.98 0 0 1-2.93-1.21l-1.46 1.46-1.41-1.41 1.46-1.46A7.98 7.98 0 0 1 5.07 13H3v-2h2.07a7.98 7.98 0 0 1 1.21-2.93L4.82 6.61l1.41-1.41 1.46 1.46A7.98 7.98 0 0 1 11 4.07V2Zm1 6a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M11 2h2v2.07a7.98 7.98 0 0 1 2.93 1.21l1.46-1.46 1.41 1.41-1.46 1.46A7.98 7.98 0 0 1 18.93 11H21v2h-2.07a7.98 7.98 0 0 1-1.21 2.93l1.46 1.46-1.41 1.41-1.46-1.46A7.98 7.98 0 0 1 13 18.93V21h-2v-2.07a7.98 7.98 0 0 1-2.93-1.21l-1.46 1.46-1.41-1.41 1.46-1.46A7.98 7.98 0 0 1 5.07 13H3v-2h2.07a7.98 7.98 0 0 1 1.21-2.93L4.82 6.61l1.41-1.41 1.46 1.46A7.98 7.98 0 0 1 11 4.07V2Zm1 6a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z'/%3E%3C/svg%3E");
}

.bottom-nav--provider .bottom-nav__indicator {
  display: none;
}

.account-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.25rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}

.account-card__avatar {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-client), var(--accent-provider));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  overflow: hidden;
}

.account-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-card__name {
  font-size: 1.05rem;
  font-weight: 700;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.account-actions__btn {
  width: 100%;
  justify-content: center;
}

.account-actions__btn--logout {
  color: var(--danger);
}

.device-frame[data-view="desktop"] .bottom-nav {
  display: none;
}

.device-frame[data-view="mobile"] .bottom-nav {
  display: flex;
}

/* Wąskie okno = mobile wszędzie (symulator lustrem aplikacji) */
@media (max-width: 899px) {
  .device-frame .bottom-nav {
    display: flex;
  }

  .device-frame .search-bar--mobile {
    display: block;
  }

  .device-frame .search-bar--desktop {
    display: none;
  }

  .device-frame .provider-booking-panel .booking-layout {
    display: none;
  }

  .device-frame .app-screen--booking .booking-mobile {
    display: flex;
  }

  .device-frame .app-screen--booking .booking-layout {
    display: none;
  }
}

@media (min-width: 900px) {
  .app-fullscreen .bottom-nav,
  .app-fullscreen .booking-confirm-bar:not(.prov-cal-add__foot) {
    display: none;
  }
}

@media (max-width: 899px) {
  .app-fullscreen .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
  }

  .app-fullscreen .app-screen--client .app-scroll,
  .app-fullscreen .app-screen--provider .app-scroll {
    padding-bottom: calc(var(--bottom-nav-clearance) + 0.35rem);
  }

  .app-fullscreen .app-screen--client:not(.app-screen--booking) .booking-mobile {
    padding-bottom: calc(var(--bottom-nav-clearance) + 0.35rem);
  }

  .app-fullscreen .app-screen--booking .booking-mobile {
    padding-bottom: 0;
  }

  .app-fullscreen .app-screen--booking > .booking-confirm-bar,
  .app-fullscreen .app-screen--booking > .bottom-nav {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    flex-shrink: 0;
  }

  .app-fullscreen .app-screen--client .selection-summary,
  .app-fullscreen .app-screen--provider .selection-summary {
    margin-bottom: var(--bottom-nav-clearance);
  }

  .device-frame .app-screen--client .app-scroll,
  .device-frame .app-screen--provider .app-scroll {
    padding-bottom: calc(var(--bottom-nav-clearance) + 0.35rem);
  }

  .device-frame .app-screen--client:not(.app-screen--booking) .booking-mobile {
    padding-bottom: calc(var(--bottom-nav-clearance) + 0.35rem);
  }

  .device-frame .app-screen--booking .booking-mobile {
    padding-bottom: 0;
  }

  .device-frame .app-screen--client .selection-summary,
  .device-frame .app-screen--provider .selection-summary {
    margin-bottom: var(--bottom-nav-clearance);
  }

  .device-frame .bottom-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    margin-top: 0;
  }

  .device-frame .app-screen--booking > .booking-confirm-bar,
  .device-frame .app-screen--booking > .bottom-nav {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    flex-shrink: 0;
  }
}

/* ---- Karty wizyt / próśb ---- */
.visit-list,
.request-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.visit-card,
.request-card {
  padding: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.visit-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.visit-card__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.visit-card__svc {
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.visit-card__when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.visit-card__meta-item {
  min-width: 0;
}

.visit-card__meta-item--time {
  font-variant-numeric: tabular-nums;
}

.visit-card__meta-sep {
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin: 0 0.55rem;
  background: color-mix(in srgb, var(--border) 92%, var(--text-muted));
  flex-shrink: 0;
  align-self: center;
}

.visit-card__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.visit-card__chip {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}

.visit-card__chip:hover,
.visit-card__chip:focus-visible {
  background: transparent;
  color: var(--accent-client);
  outline: none;
}

.visit-card__chip:active {
  color: var(--accent-client);
}

.visit-card__chip-icon {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  background: currentColor;
}

.visit-card__chip-icon--nav {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='3 11 22 2 13 21 11 13 3 11'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='3 11 22 2 13 21 11 13 3 11'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.visit-card__chip-icon--call {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.visit-card__chip-icon--calendar {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.visit-card__chip-icon--rebook {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M12 14v4'/%3E%3Cpath d='M10 16h4'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M12 14v4'/%3E%3Cpath d='M10 16h4'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.visit-card__actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

/* Lista wizyt — płaskie pola z separatorami (jak oferty) */
.visit-list:has(.visit-card--provider),
.visit-list:has(.visit-card--client) {
  gap: 0;
}

.visit-card--client {
  position: relative;
  padding: 0.85rem 0.15rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.visit-card--client .visit-card__main {
  display: grid;
  grid-template-columns: 3.35rem minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: start;
}

.visit-card--client .visit-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.05rem;
  padding-top: 0.05rem;
  text-align: center;
  line-height: 1.05;
}

.visit-card--client .visit-card__dow {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.visit-card--client .visit-card__daynum {
  font-size: 1.55rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.visit-card--client .visit-card__month {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: lowercase;
}

.visit-card--client .visit-card__body {
  position: relative;
  min-width: 0;
  padding-left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.visit-card--client .visit-card__body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 1px;
  background: var(--border);
}

.visit-card--client .visit-card__time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.visit-card--client .visit-card__hours {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: -0.01em;
}

.visit-card--client .visit-card__name {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
}

.visit-card--client .visit-card__svc {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.visit-card--client .visit-card__place {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.visit-card--client .visit-card__quick {
  margin-top: 0.45rem;
  padding-left: calc(3.35rem + 0.75rem);
}

.visit-card--client .visit-card__actions {
  margin-top: 0.45rem;
  padding-left: calc(3.35rem + 0.75rem);
}

.visit-card--client .status-badge {
  flex-shrink: 0;
}

.visit-card--client::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}

.visit-card--client:last-child::after {
  display: none;
}

.visit-card--provider {
  /* Jak .gcal__event: kolor lokalizacji (--loc / loc-tone-*), inaczej status. */
  --visit-status-color: var(--text-muted);
  --visit-accent: var(--loc, var(--visit-status-color));
  position: relative;
  overflow: hidden;
  padding: 0.85rem 0.15rem 0.85rem 0.9rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.visit-card--provider.is-selected {
  background: color-mix(in srgb, var(--accent-provider-soft) 55%, var(--surface));
  border-radius: 12px;
}

.visit-card--provider.is-selected::after {
  opacity: 0;
}

.visit-card--provider::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: 0;
  width: 0.28rem;
  border-radius: 999px;
  background: var(--visit-accent);
}

.visit-card--provider::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}

.visit-card--provider:last-child::after {
  display: none;
}

.visit-card--provider[data-status="confirmed"] {
  --visit-status-color: var(--success);
}

.visit-card--provider[data-status="proposed"] {
  --visit-status-color: var(--accent-client);
}

.visit-card--provider.visit-card--free,
.visit-card--provider[data-status="free"] {
  --visit-status-color: color-mix(in srgb, var(--text-muted) 72%, transparent);
  --visit-accent: var(--visit-status-color);
  background: transparent;
}

.visit-card--provider.visit-card--free.is-selected,
.visit-card--provider[data-status="free"].is-selected {
  background: color-mix(in srgb, var(--text-muted) 12%, var(--surface));
  border-radius: 12px;
}

.visit-card--free .visit-card__schedule {
  margin-bottom: 0;
}

.visit-card--free .visit-card__range {
  color: var(--text-muted);
  font-weight: 600;
}

.visit-card__schedule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.visit-card__range {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.visit-card__duration {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.visit-card__clock {
  position: relative;
  width: 0.9rem;
  height: 0.9rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.visit-card__clock::before,
.visit-card__clock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  background: currentColor;
  transform-origin: 50% 0;
}

.visit-card__clock::before {
  height: 0.25rem;
  transform: translate(-50%, -100%);
}

.visit-card__clock::after {
  height: 0.2rem;
  transform: translate(0, -1px) rotate(125deg);
}

.visit-card--provider .visit-card__schedule {
  margin-bottom: 0.35rem;
}

.visit-card--provider .visit-card__name {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.visit-card__services {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding-left: 1rem;
  color: var(--text);
  font-size: 0.82rem;
}

.visit-card__services li::marker {
  color: var(--visit-accent, var(--visit-status-color));
}

.visit-card--provider .visit-card__services {
  padding-left: 0;
  list-style: none;
}

.visit-card--provider .visit-card__services li {
  list-style: none;
}

/* ---- Panel usługodawcy: zakładki ---- */
.provider-tabs {
  display: flex;
  gap: 0.2rem;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  background: var(--surface);
  flex-shrink: 0;
}

.provider-tabs__item {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.provider-tabs__item:hover {
  color: var(--text);
}

.provider-tabs__item--active {
  background: var(--accent-provider-soft);
  color: var(--accent-provider);
}

/* Akcenty usługodawcy nadpisują niebieski w panelu providera */
.app-screen--provider .time-row--selected:not(.time-row--chip) {
  background: color-mix(in srgb, var(--accent-provider) 10%, transparent);
  border-color: transparent;
}

.app-screen--provider .date-strip--booking .date-chip--active .date-chip__day {
  background: var(--accent-provider);
  color: #fff;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--accent-provider) 35%, transparent);
}

.app-screen--provider .date-strip--booking .date-chip--active .date-chip__dow {
  color: var(--accent-provider);
  font-weight: 800;
}

.app-screen--provider .time-row:not(.time-row--chip):hover {
  border-color: var(--accent-provider);
}

.app-screen--provider .time-list--vertical > .time-row:not(.time-row--chip):hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent-provider) 6%, transparent);
}

.app-screen--provider .booking__meta {
  color: var(--accent-provider);
}

/* ---- Pulpit: statystyki (karuzela pozioma) ---- */
.stat-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.05rem 0 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
}

.stat-row::-webkit-scrollbar {
  display: none;
}

.stat-card {
  flex: 0 0 calc(50% - 0.3rem);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-card__num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-provider);
}

.stat-card__lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Lista wizyt na pulpicie — karuzela pionowa na resztę wysokości */
.app-screen--dashboard .app-scroll--dash,
.prov-desk__dash .app-scroll--dash {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.app-screen--dashboard .app-scroll--dash > .screen-head,
.app-screen--dashboard .app-scroll--dash > .stat-row,
.app-screen--dashboard .app-scroll--dash > .prov-section-row,
.prov-desk__dash .app-scroll--dash > .screen-head,
.prov-desk__dash .app-scroll--dash > .stat-row,
.prov-desk__dash .app-scroll--dash > .prov-section-row {
  flex-shrink: 0;
}

.visit-list--carousel {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.visit-list--carousel > .visit-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex-shrink: 0;
}

.visit-list--carousel > .empty-note {
  scroll-snap-align: start;
}

.prov-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.5rem 0 0.6rem;
}

.prov-section {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  min-width: 0;
}

.prov-free-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.prov-free-toggle__text {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ---- Dostępność (usługodawca) ---- */
.app-screen--avail {
  padding: 0;
}

.avail-top {
  flex-shrink: 0;
  padding: 0.55rem var(--app-pad-x) 0.35rem;
  background: var(--surface);
  border-bottom: 0;
  z-index: 2;
}

/* Jak .prov-cal-top — cień tylko gdy otwarty panel miesiąca (bez podwójnej linii). */
.avail-top:has(.gcal-month) {
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--text) 16%, transparent);
}

.app-screen--avail .avail-top .screen-head--prov-cal {
  margin-bottom: 0;
}

.avail-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  /* miejsce na dolne menu */
  padding: 0.85rem var(--app-pad-x) calc(5.4rem + var(--bottom-nav-clearance));
}

.avail-week {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  container-type: inline-size;
  container-name: avail-week;
}

.avail-week__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.avail-week__month {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.avail-week__nav-btns {
  display: flex;
  gap: 0.25rem;
}

.avail-week__nav-btn {
  appearance: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.avail-week__nav-btn:hover {
  border-color: var(--accent-provider);
  color: var(--accent-provider);
}

.avail-week__nav-btn:active {
  transform: scale(0.96);
}

.avail-week__grid {
  --avail-gap: 0.28rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--avail-gap);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
  padding: 0.05rem 0 0.3rem;
  margin: 0;
  scrollbar-width: thin;
  cursor: grab;
  user-select: none;
}

.avail-week__grid--dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.avail-week__grid::-webkit-scrollbar {
  height: 4px;
}

.avail-week__grid::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text-muted) 35%, transparent);
  border-radius: 999px;
}

.avail-week__col {
  /* Minimum 7 dni w widocznym obszarze (szerokość kontenera). */
  --avail-col-w: calc((100cqi - 6 * var(--avail-gap)) / 7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  flex: 0 0 var(--avail-col-w);
  width: var(--avail-col-w);
  min-width: var(--avail-col-w);
  max-width: var(--avail-col-w);
  scroll-snap-align: start;
  box-sizing: border-box;
}

.avail-week__col--month-start {
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--border) 85%, transparent);
}

.avail-week__col[data-action="avail-jump-date"] {
  cursor: pointer;
}

.avail-week__col--closed[data-action="avail-jump-date"] .avail-week__card {
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.avail-week__col[data-action="avail-jump-date"]:active .avail-week__card {
  transform: scale(0.97);
}

.avail-week__col--target .avail-week__card {
  border-color: color-mix(in srgb, var(--accent-provider) 55%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-provider) 28%, transparent);
}

.avail-week__col--current .avail-week__day {
  color: var(--accent-provider);
}

.avail-week__col--current .avail-week__card {
  border-color: color-mix(in srgb, var(--accent-provider) 50%, var(--border));
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent-provider) 30%, transparent);
}

.avail-week__col--current.avail-week__col--sunday .avail-week__day {
  color: var(--danger);
}

.avail-day-group--flash .avail-day {
  animation: avail-day-flash 1.05s ease;
}

@keyframes avail-day-flash {
  0% {
    border-color: color-mix(in srgb, var(--accent-provider) 55%, var(--border));
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-provider) 35%, transparent);
  }
  35% {
    border-color: var(--accent-provider);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-provider) 22%, transparent);
  }
  100% {
    border-color: color-mix(in srgb, var(--accent-provider) 45%, var(--border));
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  }
}

.avail-week__dow {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.avail-week__dow--red,
.avail-week__day--red {
  color: var(--danger);
}

.avail-week__day {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.05;
}

.avail-week__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.04rem;
  width: 100%;
  min-height: 4.75rem;
  padding: 0.28rem 0.12rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-sizing: border-box;
}

.avail-week__col--open .avail-week__card {
  background: var(--surface);
}

.avail-week__card.loc-tone-0,
.avail-week__card.loc-tone-1,
.avail-week__card.loc-tone-2,
.avail-week__card.loc-tone-3,
.avail-week__card.loc-tone-4,
.avail-week__card.loc-tone-5 {
  background: color-mix(in srgb, var(--loc) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--loc) 40%, var(--border));
}

.avail-week__card--mixed {
  background: var(--surface);
}

.avail-week__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  --loc: var(--accent-provider);
}

.avail-week__slot + .avail-week__slot {
  margin-top: 0.22rem;
  padding-top: 0.2rem;
  border-top: 1px solid color-mix(in srgb, var(--loc) 28%, var(--border));
  width: 100%;
}

.avail-week__slot-label {
  font-size: 0.52rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: lowercase;
}

.avail-week__slot-time {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--loc);
  font-variant-numeric: tabular-nums;
}

.avail-week__empty-mark {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.45;
}

.avail-list__head {
  display: flex;
  align-items: center;
  margin: 0 0 0.55rem;
  padding: 0 0.5rem;
}

.avail-list__heading {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.avail-list-viewport {
  position: relative;
  overflow: hidden;
}

.avail-list-viewport--slide .avail-list {
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.avail-list--incoming {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
}

.avail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 0.5rem;
}

.avail-day-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
}

.avail-day-group:last-child {
  border-bottom: 0;
}

.avail-day-group--closed {
  opacity: 0.85;
}

.avail-day-group--closed:has(.avail-day--editing) {
  opacity: 1;
}

/* Swipe-to-delete: wiersz dnia → czerwony kosz po prawej */
.avail-day__swipe {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  border-radius: 0;
}

.avail-day__swipe--locked {
  touch-action: auto;
}

.avail-day__swipe-action {
  appearance: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--danger, #e25555);
  color: #fff;
  cursor: pointer;
}

.avail-day__swipe.is-armed .avail-day__swipe-action {
  background: color-mix(in srgb, var(--danger, #e25555) 88%, #000);
}

.avail-day__swipe-trash {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3Cpath d='M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3Cpath d='M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.avail-day__swipe-front {
  position: relative;
  z-index: 1;
  background: var(--surface, #fff);
  will-change: transform;
}

.app-screen--avail .avail-day__swipe-front {
  background: var(--surface, #fff);
}

.avail-day__swipe.is-deleting {
  pointer-events: none;
}

.avail-day__swipe--locked .avail-day__swipe-action {
  visibility: hidden;
}

.avail-day__sep {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  padding: 0 0.5rem;
}

.avail-day-group:has(.avail-day__hours-row + .avail-day__hours-row) .avail-day__sep {
  height: auto;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  align-items: flex-start;
}

.avail-day-group:has(.avail-day__hours-row + .avail-day__hours-row) .avail-day__edit-btn {
  margin-top: 0.15rem;
}

.avail-day__sep-main {
  display: grid;
  grid-template-columns: 1.7rem 2.1rem minmax(0, 1fr);
  column-gap: 0.45rem;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.avail-day__hours {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}

/* Nagłówek dnia zawsze pokazuje godziny — także przy otwartym edytorze */
.avail-day-group--open .avail-day__sep-main .avail-day__hours,
.avail-day-group:has(.avail-day--editing) .avail-day__sep-main .avail-day__hours {
  display: flex;
  visibility: visible;
  opacity: 1;
}

.avail-day-group--open .avail-day__sep-main .avail-day__hours-row,
.avail-day-group:has(.avail-day--editing) .avail-day__sep-main .avail-day__hours-row {
  color: var(--text);
}

.avail-day__hours-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.2;
}

.avail-day__loc-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--loc, var(--accent-provider));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loc, var(--accent-provider)) 35%, transparent);
}

.avail-day__hours-row--empty {
  color: var(--text-muted);
  font-weight: 500;
}

.avail-day__hours-sep {
  color: var(--text-muted);
  font-weight: 500;
}

.avail-day__from,
.avail-day__to {
  min-width: 2.6rem;
}

.avail-day__edit-btn {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.avail-day__edit-btn:hover {
  color: var(--accent-provider);
  background: transparent;
}

.avail-day__edit-btn:active {
  transform: scale(0.94);
}

.avail-day__edit-btn.is-on {
  color: #fff;
  border: 0;
  background: var(--accent-provider);
}

.avail-day__edit-btn--save {
  width: auto;
  min-width: 2rem;
  padding: 0 0.55rem;
  border-radius: 8px;
}

.avail-day__edit-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.avail-day__toggle-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  background: currentColor;
  opacity: 0.9;
}

.avail-day__toggle-icon--edit {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.avail-day__dow {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
}

.avail-day__date {
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  line-height: 1;
  white-space: nowrap;
}

.avail-day__dow--red,
.avail-day__date--red {
  color: var(--danger);
}

.avail-day {
  padding: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.avail-day--editing {
  overflow: visible;
  border-color: color-mix(in srgb, var(--accent-provider) 45%, var(--border));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  background: var(--surface);
}

/* Edytor Calendly: pełna szerokość ekranu, bez zaokrągleń */
.avail-day--editing:has(.avail-edit--day) {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  margin-left: calc(-1 * var(--app-pad-x));
  margin-right: calc(-1 * var(--app-pad-x));
  box-shadow: none;
  background: var(--surface-2);
}

.avail-day__summary {
  appearance: none;
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0.7rem 1.6rem 0.7rem 0.8rem;
  border: none;
  background: transparent;
  text-align: center;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.avail-day__summary:hover {
  background: color-mix(in srgb, var(--accent-provider) 6%, transparent);
}

.avail-day--closed.avail-day--editing {
  opacity: 1;
}

.avail-day__head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.avail-day__summary:not(:has(.avail-day__blocks)) .avail-day__head,
.avail-day--closed .avail-day__summary .avail-day__head {
  margin-bottom: 0;
}

.avail-day__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  width: 100%;
}

.avail-day__chevron {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.35rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
  opacity: 0.7;
}

.avail-day--editing .avail-day__chevron {
  transform: rotate(-135deg);
  margin-top: -0.15rem;
}

/* Stare bloki godzin (legacy) — nie nadpisują nagłówka listy */
.avail-day__hours-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  line-height: 1.2;
  --loc: var(--accent-provider);
}

.avail-day__hours-block .avail-day__hours-row {
  white-space: nowrap;
}

.avail-day__hours-time {
  font-size: 0.82rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--loc);
}

.avail-day__hours-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: lowercase;
  min-width: 1.2rem;
}

.avail-day__off {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.avail-day__blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.avail-block {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  --loc: var(--accent-provider);
  --loc-soft: var(--accent-provider-soft);
  background: var(--loc-soft);
  color: var(--loc);
}

/* Kolory miejsc — każdy lokal osobny ton */
.loc-tone-0 {
  --loc: #1f9d6a;
  --loc-soft: color-mix(in srgb, #1f9d6a 16%, #fff);
}
.loc-tone-1 {
  --loc: #e67a22;
  --loc-soft: color-mix(in srgb, #e67a22 16%, #fff);
}
.loc-tone-2 {
  --loc: #2f6fdb;
  --loc-soft: color-mix(in srgb, #2f6fdb 14%, #fff);
}
.loc-tone-3 {
  --loc: #c24b6e;
  --loc-soft: color-mix(in srgb, #c24b6e 14%, #fff);
}
.loc-tone-4 {
  --loc: #0f8a8a;
  --loc-soft: color-mix(in srgb, #0f8a8a 14%, #fff);
}
.loc-tone-5 {
  --loc: #6a6f2e;
  --loc-soft: color-mix(in srgb, #6a6f2e 16%, #fff);
}

.avail-edit {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem 0.85rem;
  border-top: none;
}

.avail-day--editing .avail-edit {
  border-top: none;
}

/* —— Edytor dnia (Calendly-style) —— */
.avail-edit--day {
  /* Jedna treść: godziny / lokalizacja / powtórzenie — ten sam krój i rozmiar. */
  --avail-edit-font-size: 16px;
  --avail-edit-font-weight: 600;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.55rem calc(var(--app-pad-x) + 0.25rem) 0.7rem;
  border-radius: 0;
  box-sizing: border-box;
  background: var(--surface-2);
  font-family: inherit;
  font-size: var(--avail-edit-font-size);
  font-weight: var(--avail-edit-font-weight);
  line-height: 1.25;
  color: var(--text);
}

.avail-edit--day .avail-edit__time,
.avail-edit--day .avail-edit__dash,
.avail-edit--day .avail-edit__unavailable-label,
.avail-edit--day .avail-loc-pick--compact .avail-loc-pick__btn,
.avail-edit--day .avail-loc-pick--compact .avail-loc-pick__label,
.avail-edit--day .avail-loc-pick__opt-label {
  font-family: inherit;
  font-size: var(--avail-edit-font-size);
  font-weight: var(--avail-edit-font-weight);
  line-height: 1.25;
}

.avail-edit--day .avail-edit__time::-webkit-datetime-edit,
.avail-edit--day .avail-edit__time::-webkit-datetime-edit-fields-wrapper,
.avail-edit--day .avail-edit__time::-webkit-datetime-edit-hour-field,
.avail-edit--day .avail-edit__time::-webkit-datetime-edit-minute-field,
.avail-edit--day .avail-edit__time::-webkit-datetime-edit-text {
  font-family: inherit;
  font-size: var(--avail-edit-font-size);
  font-weight: var(--avail-edit-font-weight);
  line-height: 1.25;
}

.avail-edit__slots {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.avail-edit__slot {
  /* Kolumna ikon 24px + 12px gap — typowy rytm list (Material / iOS). */
  --avail-lead: 1.5rem;
  --avail-gap: 0.75rem;
  --avail-trail: 2rem; /* × / + */
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.avail-edit__slot + .avail-edit__slot {
  padding-top: 0.7rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
}

.avail-edit__slot-row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  min-height: 2.25rem;
}

.avail-edit__slot-times {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.avail-edit__time-icon {
  flex: 0 0 var(--avail-lead);
  width: var(--avail-lead);
  height: var(--avail-lead);
  margin-right: var(--avail-gap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.85;
}

.avail-edit__time-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

/*
  Standardowy natywny picker godzin (input[type=time]).
  NIE ustawiamy appearance:none — to wyłącza natywny picker na iOS/WebKit.
  font-size:16px zapobiega auto-zoomowi na iOS.
*/
.avail-edit__time-wrap {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 2.75rem;
}

.avail-edit__time {
  position: relative;
  box-sizing: border-box;
  /* Szerokość pod HH:MM — bez pustego pola, które „centrowało” godziny. */
  width: 3.55rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.5rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.06);
}

.avail-edit__time-wrap--from .avail-edit__time,
.avail-edit__time-wrap--to .avail-edit__time {
  text-align: left;
}

.avail-edit__time-wrap--from .avail-edit__time::-webkit-datetime-edit,
.avail-edit__time-wrap--from .avail-edit__time::-webkit-datetime-edit-fields-wrapper,
.avail-edit__time-wrap--to .avail-edit__time::-webkit-datetime-edit,
.avail-edit__time-wrap--to .avail-edit__time::-webkit-datetime-edit-fields-wrapper {
  text-align: left;
  width: 100%;
}

.avail-edit__time:focus {
  outline: none;
}

/*
  Ukryj natywne ikony zegara przy obu polach time —
  zostaje tylko jedna ikona po lewej (.avail-edit__time-icon).
  Indicator nadal wypełnia input, żeby cały obszar otwierał picker.
*/
.avail-edit__time::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  color: transparent;
  background: transparent;
}

.avail-edit__time::-webkit-datetime-edit,
.avail-edit__time::-webkit-datetime-edit-fields-wrapper,
.avail-edit__time::-webkit-datetime-edit-hour-field,
.avail-edit__time::-webkit-datetime-edit-minute-field,
.avail-edit__time::-webkit-datetime-edit-text {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  padding: 0;
}

.avail-edit__dash {
  flex: 0 0 auto;
  margin: 0 0.35rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.avail-edit__icon-btn {
  appearance: none;
  flex: 0 0 var(--avail-trail, 2rem);
  width: var(--avail-trail, 2rem);
  height: var(--avail-trail, 2rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.avail-edit__icon-btn--remove {
  font-size: 1.65rem;
  font-weight: 400;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* Chmurka po kliknięciu ×: Usuń dzień / Usuń serię */
.avail-series-cloud {
  position: fixed;
  z-index: 10060;
  min-width: 10.5rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);
}

.avail-series-cloud[hidden] {
  display: none !important;
}

.avail-series-cloud__btn {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--danger, #e25555);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.avail-series-cloud__btn:hover,
.avail-series-cloud__btn:active {
  background: color-mix(in srgb, var(--danger, #e25555) 10%, transparent);
}

.avail-series-cloud__btn.is-disabled,
.avail-series-cloud__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.avail-series-cloud__icon {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3Cpath d='M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3Cpath d='M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.avail-edit__icon-btn:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
}

.avail-edit__icon-btn--remove:hover {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
}

.avail-edit__icon-btn--add {
  color: var(--accent-provider);
  font-weight: 500;
  font-size: 1.75rem;
}

.avail-edit__icon-btn--add:hover {
  background: color-mix(in srgb, var(--accent-provider) 12%, transparent);
  color: var(--accent-provider);
}

.avail-edit__icon-spacer {
  flex: 0 0 var(--avail-trail, 2rem);
  width: var(--avail-trail, 2rem);
  height: var(--avail-trail, 2rem);
}

.avail-edit__slot-loc {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 2.25rem;
}

.avail-edit__slot-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  min-height: 2.25rem;
  gap: 0;
  padding: 0;
  margin: 0;
}

.avail-edit__loc-lead {
  position: relative;
  flex: 0 0 var(--avail-lead);
  width: var(--avail-lead);
  height: var(--avail-lead);
  margin-right: var(--avail-gap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avail-edit__loc-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0.85;
}

.avail-edit__loc-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

/* Tekst w jednej linii z godzinami (po kolumnie ikony + gap). */
.avail-edit__loc-content {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
  min-width: 0;
}

/* Kolor miejsca na ikonie — nie przesuwa etykiety. */
.avail-loc-pick--compact .avail-edit__loc-lead .avail-edit__loc-dot {
  position: absolute;
  right: 0;
  bottom: -0.05rem;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0;
  border: 1.5px solid var(--surface);
  box-shadow: none;
  flex-shrink: 0;
}

.avail-loc-pick--compact .avail-edit__loc-dot--lead {
  width: 0.5rem;
  height: 0.5rem;
}

.avail-loc-pick--compact .avail-edit__loc-dot.is-hidden,
.avail-loc-pick--compact .avail-edit__loc-dot[hidden] {
  display: none;
}

.avail-loc-pick--compact {
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.avail-loc-pick--compact .avail-loc-pick__btn {
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  min-height: 2.25rem;
  padding: 0.25rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 0;
  font-size: 0.9rem;
  text-align: left;
  text-align-last: left;
  color: var(--text);
}

.avail-loc-pick--compact .avail-loc-pick__btn:hover {
  background: transparent;
}

.avail-loc-pick--compact .avail-loc-pick__label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.avail-loc-pick--compact .avail-edit__loc-content .avail-loc-pick__label {
  flex: 1 1 auto;
}

.avail-loc-pick--compact .avail-loc-pick__label--placeholder {
  color: var(--text-muted);
  font-weight: var(--avail-edit-font-weight, 600);
}

/* Ikona select: chevron góra + dół (jak w natywnych listach). */
.avail-loc-pick__chevron {
  flex: 0 0 0.95rem;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: auto;
  background: currentColor;
  opacity: 0.45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='7 9 12 4 17 9'/%3E%3Cpolyline points='7 15 12 20 17 15'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='7 9 12 4 17 9'/%3E%3Cpolyline points='7 15 12 20 17 15'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.avail-repeat-pick {
  width: 100%;
}

.avail-repeat-pick .avail-edit__repeat-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  color: var(--text-muted);
}

.avail-repeat-pick .avail-edit__repeat-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.avail-edit__unavailable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.4rem;
  padding: 0.15rem 0;
}

.avail-edit__unavailable-label {
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--text-muted);
}

.avail-edit__bar {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
}

.avail-edit__bar-btn {
  appearance: none;
  flex: 1 1 0;
  min-height: 2.35rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 11px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
}

.avail-edit__bar-btn:active {
  transform: scale(0.98);
}

.avail-edit__bar-btn--danger {
  border: 1.5px solid color-mix(in srgb, var(--danger) 35%, var(--border));
  background: color-mix(in srgb, var(--danger) 7%, var(--surface));
  color: var(--danger);
}

.avail-edit__bar-btn--primary,
.avail-edit__bar-btn--ghost {
  border: 1.5px solid color-mix(in srgb, var(--border) 90%, var(--text-muted));
  background: var(--surface-2);
  color: var(--text);
}

.avail-edit__bar-btn--primary:hover,
.avail-edit__bar-btn--ghost:hover {
  background: color-mix(in srgb, var(--text-muted) 10%, var(--surface-2));
}

.avail-edit__row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.avail-edit__group {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  background: var(--surface-2);
  overflow: hidden;
}

.avail-edit__group:has(.avail-loc-pick) {
  overflow: visible;
}

.avail-edit__group:has(.avail-loc-pick.is-open) {
  position: relative;
  z-index: 5;
}

.avail-edit__group--times {
  flex-direction: row;
  align-items: center;
  padding-left: 0.7rem;
  gap: 0;
  --loc: var(--accent-provider);
}

.avail-edit__clock {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.15rem;
  border: 1.75px solid var(--text);
  border-radius: 50%;
  position: relative;
  opacity: 1;
}

.avail-edit__clock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.75px;
  height: 0.32rem;
  margin-left: -0.875px;
  margin-top: -0.3rem;
  background: var(--text);
  border-radius: 1px;
  transform-origin: bottom center;
}

.avail-edit__clock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.28rem;
  height: 1.75px;
  margin-left: -1px;
  margin-top: -0.875px;
  background: var(--text);
  border-radius: 1px;
}

.avail-edit__group--times .avail-edit__line {
  flex: 1 1 50%;
  min-width: 0;
  padding-left: 0.55rem;
}

.avail-edit__group--times .avail-edit__line + .avail-edit__line {
  border-top: none;
  border-left: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  margin-left: 0;
  padding-left: 0.7rem;
}

.avail-edit__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.55rem 0.85rem;
  margin: 0;
  cursor: pointer;
  position: relative;
}

.avail-edit__line + .avail-edit__line::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0;
  top: 0;
  height: 1px;
  background: color-mix(in srgb, var(--border) 85%, transparent);
}

.avail-edit__key {
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.avail-edit__pin {
  position: relative;
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  opacity: 1;
}

.avail-edit__pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.08rem;
  width: 0.78rem;
  height: 0.78rem;
  margin-left: -0.39rem;
  border: 1.75px solid var(--text);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-sizing: border-box;
}

.avail-edit__pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.28rem;
  width: 0.26rem;
  height: 0.26rem;
  margin-left: -0.13rem;
  border-radius: 50%;
  background: var(--text);
}

.avail-edit__repeat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--text);
  opacity: 1;
  overflow: visible;
}

.avail-edit__repeat-icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  aspect-ratio: 1 / 1;
}

.avail-edit__val {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
  margin-left: auto;
}

.avail-edit__pill {
  appearance: none;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text) 6%, var(--surface));
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  cursor: pointer;
}

.avail-edit__pill::-webkit-calendar-picker-indicator {
  display: none;
  opacity: 0;
  width: 0;
  height: 0;
}

.avail-edit__pill::-webkit-inner-spin-button {
  display: none;
}

.avail-edit__val--menu {
  position: relative;
  max-width: 70%;
  padding-right: 0.85rem;
}

.avail-edit__val--loc {
  gap: 0.4rem;
  overflow: visible;
}

.avail-edit__loc-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--loc, var(--accent-provider));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loc, var(--accent-provider)) 35%, transparent);
}

.avail-edit__val--menu select,
.avail-loc-pick__btn {
  appearance: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.2rem 0;
  border: none;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  text-align: right;
  text-align-last: right;
  cursor: pointer;
}

.avail-loc-pick {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.avail-loc-pick.is-open {
  z-index: 6;
}

.avail-loc-pick__btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  width: auto;
  max-width: 100%;
  margin-left: auto;
}

.avail-loc-pick__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avail-loc-pick__menu {
  position: absolute;
  top: auto;
  bottom: calc(100% + 0.35rem);
  right: -0.2rem;
  left: auto;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 11.5rem;
  max-width: min(16rem, 78vw);
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(20, 24, 30, 0.14);
}

.avail-repeat-pick .avail-loc-pick__menu {
  min-width: 12rem;
  right: 0;
}

.avail-loc-pick__menu[hidden] {
  display: none;
}

.avail-loc-pick__opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.avail-loc-pick__opt:hover,
.avail-loc-pick__opt:focus-visible {
  background: var(--surface-2);
  outline: none;
}

.avail-loc-pick__opt.is-selected {
  background: var(--loc-soft, color-mix(in srgb, var(--accent-provider) 10%, var(--surface)));
}

.avail-loc-pick__opt-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avail-edit__val--menu::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.28rem;
  border-right: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  transform: rotate(45deg);
  opacity: 0.55;
  pointer-events: none;
}

.avail-edit__val--loc.avail-edit__val--menu::after {
  top: 0.85rem;
  margin-top: 0;
}

.avail-edit__switch {
  appearance: none;
  position: relative;
  width: 2.55rem;
  height: 1.5rem;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-muted) 35%, var(--border));
  cursor: pointer;
  transition: background 0.18s ease;
  flex-shrink: 0;
}

.avail-edit__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.5rem - 4px);
  height: calc(1.5rem - 4px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.avail-edit__switch:checked {
  background: var(--accent-provider);
}

.avail-edit__switch:checked::after {
  transform: translateX(1.05rem);
}

.avail-edit__remove {
  appearance: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--danger);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.avail-edit__remove:hover {
  background: color-mix(in srgb, var(--danger) 8%, var(--surface-2));
}

.avail-edit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.avail-edit__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0;
  padding: 0.7rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: var(--surface);
}

.avail-edit__footer-row {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}

.avail-edit__add-hours {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.45rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1.5px dashed color-mix(in srgb, var(--accent-provider) 45%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-provider) 6%, var(--surface));
  color: var(--accent-provider);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.avail-edit__add-hours:hover {
  background: color-mix(in srgb, var(--accent-provider) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--accent-provider) 65%, var(--border));
}

.avail-edit__add-hours:active {
  transform: scale(0.98);
}

.avail-edit__remove--in-group,
.avail-edit__save--in-group {
  appearance: none;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 2.55rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.avail-edit__remove--in-group {
  border: 1.5px solid color-mix(in srgb, var(--danger) 35%, var(--border));
  background: color-mix(in srgb, var(--danger) 7%, var(--surface));
  color: var(--danger);
}

.avail-edit__save--in-group {
  border: 1.5px solid color-mix(in srgb, var(--border) 90%, var(--text-muted));
  background: var(--surface-2);
  color: var(--text);
}

.avail-edit__remove--in-group:hover {
  background: color-mix(in srgb, var(--danger) 14%, var(--surface));
}

.avail-edit__save--in-group:hover {
  background: color-mix(in srgb, var(--text-muted) 12%, var(--surface-2));
}

.avail-edit__remove--in-group:active,
.avail-edit__save--in-group:active {
  transform: scale(0.98);
}

.avail-edit__btn {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
  padding: 0.55rem 0.7rem;
}

.avail-edit__btn--danger {
  color: var(--danger);
}

/* ---- Ustawienia ---- */
.settings {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-bottom: 0.5rem;
}

.settings__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.settings__group-title {
  margin: 0;
  padding: 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.settings__group-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.settings__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem;
  background: var(--surface);
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.settings__key {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.settings__val {
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
}

.settings__row--toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.settings__toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.settings__hint {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.settings__toggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.settings__row--mode {
  gap: 0.45rem;
}

.settings__mode {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings__mode-btn {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.settings__mode-btn:hover {
  border-color: color-mix(in srgb, var(--accent-provider) 35%, var(--border));
}

.settings__mode-btn.is-on {
  border-color: color-mix(in srgb, var(--accent-provider) 55%, var(--border));
  background: color-mix(in srgb, var(--accent-provider) 10%, var(--surface));
}

.settings__mode-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.settings__mode-btn.is-on .settings__mode-title {
  color: var(--accent-provider);
}

.settings__mode-desc {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}

.settings__row--locations {
  gap: 0.45rem;
}

.settings__help {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.settings__cap {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.settings-locs {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.settings-loc {
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Bez lewego paddingu — kolumna koloru jak ikona social (2.4rem), żeby tekst startował w tej samej linii. */
  padding: 0.35rem 0.45rem 0.4rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.settings-loc__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding-bottom: 0.15rem;
}

.settings-loc__color {
  position: relative;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.settings-loc__swatch {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  flex: 0 0 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--loc, var(--accent-provider)) 25%, var(--surface));
  border-radius: 999px;
  background: var(--loc, var(--accent-provider));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loc, var(--accent-provider)) 35%, transparent);
  cursor: pointer;
}

.settings-loc__swatch:hover,
.settings-loc__color.is-open .settings-loc__swatch,
.settings-loc__color:focus-within .settings-loc__swatch {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--loc, var(--accent-provider)) 22%, transparent);
}

.settings-loc__palette {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 8;
  padding-top: 0.4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}

.settings-loc__color:hover .settings-loc__palette,
.settings-loc__color:focus-within .settings-loc__palette,
.settings-loc__color.is-open .settings-loc__palette {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.settings-loc__palette-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.settings-loc__name-field {
  flex: 1 1 auto;
  min-width: 0;
}

.settings-loc__name-field .settings-loc__name {
  font-weight: 650;
}

/* Wewnątrz karty: bez osobnych ramek pól, tylko wspólne obramowanie .settings-loc */
.settings-loc .settings-contact__field--float .settings-contact__input {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  /* Jak .settings-social__input — ten sam odstęp tekstu od lewej krawędzi pola */
  padding-left: 0.65rem;
  padding-right: 0.35rem;
}

.settings-loc .settings-contact__field--float .settings-contact__input:focus {
  border-color: transparent;
  box-shadow: none;
}

.settings-loc .settings-contact__field--float .settings-contact__label {
  left: 0.65rem;
}

.settings-loc .settings-loc__field.settings-contact__field--float {
  margin-top: 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  padding-top: 0.1rem;
  /* Adres pod nazwą: ta sama linia startu co pole nazwy (kolumna koloru + gap) */
  padding-left: calc(2.4rem + 0.45rem);
}

.settings-loc:focus-within {
  border-color: color-mix(in srgb, var(--accent-provider) 40%, var(--border));
}

.settings-loc__head .avail-edit__icon-btn,
.settings-loc__head .avail-edit__icon-spacer {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
}

.settings-loc--empty {
  border: 1px dashed color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--surface-2) 50%, var(--surface));
}

.settings-loc__empty-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.settings-loc__field-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

.settings-contact__field--float .settings-loc__address {
  font-size: 0.9rem;
}

.settings-loc__tone {
  appearance: none;
  flex: 0 0 1.45rem;
  width: 1.45rem;
  height: 1.45rem;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--loc);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loc) 30%, transparent);
}

.settings-loc__tone:hover {
  transform: scale(1.08);
}

.settings-loc__tone.is-on {
  border-color: var(--text);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--loc) 25%, transparent);
}


.settings__row--contact {
  gap: 0.55rem;
}

.settings-contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.settings-contact__label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

.settings-contact__input {
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.settings-contact__input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent-provider) 45%, var(--border));
}

/* Floating label — duży opis w ramce, mały nad treścią po wypełnieniu / focusie */
.settings-contact__field--float {
  position: relative;
  display: block;
  gap: 0;
}

.settings-contact__field--float .settings-contact__input {
  padding: 1.15rem 0.7rem 0.4rem;
  border-radius: 10px;
  background: var(--surface);
}

.settings-contact__field--float .settings-contact__textarea {
  min-height: 5.2rem;
  padding-top: 1.35rem;
  padding-bottom: 0.55rem;
  resize: vertical;
}

.settings-contact__field--float .settings-contact__label {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    top 0.16s ease,
    transform 0.16s ease,
    font-size 0.16s ease,
    color 0.16s ease;
}

.settings-contact__field--float .settings-contact__textarea + .settings-contact__label {
  top: 1.05rem;
  transform: none;
}

.settings-contact__field--float .settings-contact__input:focus + .settings-contact__label,
.settings-contact__field--float .settings-contact__input:not(:placeholder-shown) + .settings-contact__label,
.settings-contact__field--float.settings-contact__field--select .settings-contact__label {
  top: 0.32rem;
  transform: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--text-muted) 88%, var(--text));
}

.settings-contact__field--float .settings-contact__input:focus + .settings-contact__label {
  color: var(--accent-provider);
}

.app-screen--client .settings-contact__field--float .settings-contact__input:focus {
  border-color: color-mix(in srgb, var(--accent-client) 45%, var(--border));
}

.app-screen--client .settings-contact__field--float .settings-contact__input:focus + .settings-contact__label {
  color: var(--accent-client);
}

.settings-contact__field--float.settings-contact__field--select .settings-contact__input {
  padding-right: 1.6rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 0.9rem;
}

.settings-contact__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}

.settings-contact__toggle-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}

.settings-contact__socials {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.settings__row--socials {
  gap: 0.55rem;
}

.settings-socials {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.settings-social {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.settings-social__kind {
  position: relative;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
  overflow: hidden;
  cursor: pointer;
}

.settings-social__logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--text);
  pointer-events: none;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.settings-social__logo--website {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");
}

.settings-social__logo--instagram {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='black' stroke='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='black' stroke='none'/%3E%3C/svg%3E");
}

.settings-social__logo--facebook {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14 8h2V5h-2c-2.2 0-4 1.8-4 4v2H8v3h2v7h3v-7h2.2l.8-3H13V9c0-.6.4-1 1-1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14 8h2V5h-2c-2.2 0-4 1.8-4 4v2H8v3h2v7h3v-7h2.2l.8-3H13V9c0-.6.4-1 1-1z'/%3E%3C/svg%3E");
}

.settings-social__logo--tiktok {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14.5 3c.3 2.2 1.7 3.8 3.8 4.1v2.3c-1.3 0-2.5-.4-3.5-1.1v6.2c0 3.2-2.6 5.8-5.8 5.8S3.2 17.7 3.2 14.5 5.8 8.7 9 8.7c.3 0 .6 0 .9.1v2.5c-.3-.1-.6-.1-.9-.1-1.8 0-3.3 1.5-3.3 3.3S7.2 17.8 9 17.8s3.3-1.5 3.3-3.3V3h2.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14.5 3c.3 2.2 1.7 3.8 3.8 4.1v2.3c-1.3 0-2.5-.4-3.5-1.1v6.2c0 3.2-2.6 5.8-5.8 5.8S3.2 17.7 3.2 14.5 5.8 8.7 9 8.7c.3 0 .6 0 .9.1v2.5c-.3-.1-.6-.1-.9-.1-1.8 0-3.3 1.5-3.3 3.3S7.2 17.8 9 17.8s3.3-1.5 3.3-3.3V3h2.2z'/%3E%3C/svg%3E");
}

.settings-social__logo--youtube {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M22.5 7.2a3 3 0 0 0-2.1-2.1C18.5 4.6 12 4.6 12 4.6s-6.5 0-8.4.5A3 3 0 0 0 1.5 7.2 31 31 0 0 0 1 12a31 31 0 0 0 .5 4.8 3 3 0 0 0 2.1 2.1c1.9.5 8.4.5 8.4.5s6.5 0 8.4-.5a3 3 0 0 0 2.1-2.1A31 31 0 0 0 23 12a31 31 0 0 0-.5-4.8zM10 15.2V8.8L15.5 12 10 15.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M22.5 7.2a3 3 0 0 0-2.1-2.1C18.5 4.6 12 4.6 12 4.6s-6.5 0-8.4.5A3 3 0 0 0 1.5 7.2 31 31 0 0 0 1 12a31 31 0 0 0 .5 4.8 3 3 0 0 0 2.1 2.1c1.9.5 8.4.5 8.4.5s6.5 0 8.4-.5a3 3 0 0 0 2.1-2.1A31 31 0 0 0 23 12a31 31 0 0 0-.5-4.8zM10 15.2V8.8L15.5 12 10 15.2z'/%3E%3C/svg%3E");
}

.settings-social__logo--pinterest {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12c0 4.2 2.6 7.8 6.3 9.2-.1-.8-.2-2 0-2.9.2-.8 1.3-5.4 1.3-5.4s-.3-.7-.3-1.6c0-1.5.9-2.6 2-2.6.9 0 1.4.7 1.4 1.5 0 .9-.6 2.3-.9 3.5-.3 1.1.5 1.9 1.5 1.9 1.8 0 3.2-1.9 3.2-4.6 0-2.4-1.7-4.1-4.2-4.1-2.9 0-4.5 2.1-4.5 4.3 0 .9.3 1.8.8 2.3.1.1.1.2.1.3l-.3 1.2c0 .2-.2.2-.4.1-1.4-.7-2.3-2.7-2.3-4.4 0-3.6 2.6-6.8 7.5-6.8 3.9 0 7 2.8 7 6.5 0 3.9-2.5 7-5.9 7-1.2 0-2.2-.6-2.6-1.3l-.7 2.7c-.3 1-1 2.2-1.5 2.9A10 10 0 0 0 12 22c5.5 0 10-4.5 10-10S17.5 2 12 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12c0 4.2 2.6 7.8 6.3 9.2-.1-.8-.2-2 0-2.9.2-.8 1.3-5.4 1.3-5.4s-.3-.7-.3-1.6c0-1.5.9-2.6 2-2.6.9 0 1.4.7 1.4 1.5 0 .9-.6 2.3-.9 3.5-.3 1.1.5 1.9 1.5 1.9 1.8 0 3.2-1.9 3.2-4.6 0-2.4-1.7-4.1-4.2-4.1-2.9 0-4.5 2.1-4.5 4.3 0 .9.3 1.8.8 2.3.1.1.1.2.1.3l-.3 1.2c0 .2-.2.2-.4.1-1.4-.7-2.3-2.7-2.3-4.4 0-3.6 2.6-6.8 7.5-6.8 3.9 0 7 2.8 7 6.5 0 3.9-2.5 7-5.9 7-1.2 0-2.2-.6-2.6-1.3l-.7 2.7c-.3 1-1 2.2-1.5 2.9A10 10 0 0 0 12 22c5.5 0 10-4.5 10-10S17.5 2 12 2z'/%3E%3C/svg%3E");
}

.settings-social__logo--linkedin {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6.5 9H3.7v11.3h2.8V9zM5.1 3.7a1.6 1.6 0 1 0 0 3.2 1.6 1.6 0 0 0 0-3.2zM20.3 9h-2.7v1.5h0c.4-.7 1.3-1.7 3-1.7 3.1 0 3.7 2.1 3.7 4.8v6.7h-2.8v-5.9c0-1.4 0-3.2-2-3.2s-2.3 1.5-2.3 3.1v6h-2.8V9h2.7v1.4z' transform='translate(-2.2 -1)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6.5 9H3.7v11.3h2.8V9zM5.1 3.7a1.6 1.6 0 1 0 0 3.2 1.6 1.6 0 0 0 0-3.2zM20.3 9h-2.7v1.5h0c.4-.7 1.3-1.7 3-1.7 3.1 0 3.7 2.1 3.7 4.8v6.7h-2.8v-5.9c0-1.4 0-3.2-2-3.2s-2.3 1.5-2.3 3.1v6h-2.8V9h2.7v1.4z' transform='translate(-2.2 -1)'/%3E%3C/svg%3E");
}

.settings-social__logo--x {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M18.2 3H21l-6.5 7.4L22 21h-6.2l-4.9-6.4L5.3 21H2.5l7-8L2 3h6.3l4.4 5.8L18.2 3zm-1.1 16.2h1.7L7 4.7H5.2l11.9 14.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M18.2 3H21l-6.5 7.4L22 21h-6.2l-4.9-6.4L5.3 21H2.5l7-8L2 3h6.3l4.4 5.8L18.2 3zm-1.1 16.2h1.7L7 4.7H5.2l11.9 14.5z'/%3E%3C/svg%3E");
}

.settings-social__kind-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  font: inherit;
}

.settings-social__input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.settings-social__input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent-provider) 45%, var(--border));
}

.settings-social .avail-edit__icon-btn,
.settings-social .avail-edit__icon-spacer {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
}

.settings-contact__textarea {
  resize: vertical;
  min-height: 4.2rem;
  line-height: 1.35;
}

.settings-share-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}

.settings-share .settings__hint {
  word-break: break-all;
}

.settings-share__btn {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--accent-provider) 40%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-provider) 8%, var(--surface));
  color: var(--accent-provider);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}

.settings-share__btn:hover {
  background: color-mix(in srgb, var(--accent-provider) 14%, var(--surface));
}

.settings--client {
  padding-bottom: 1rem;
}

.settings__row--account-card {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.settings__row--account-card .account-card__avatar {
  width: 3rem;
  height: 3rem;
  font-size: 1rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.settings-account__photo-btn {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
}

.settings-account__photo-btn .app-menu__file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.settings__row--actions {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.settings__row--actions .account-actions__btn {
  width: 100%;
}

.settings__row[data-field="account-notifications"] {
  gap: 0.55rem;
}

.settings__row[data-field="account-notifications"] .settings-contact__toggle {
  margin: 0;
}

/* ============================================================
   Zapytanie o termin — dni + pora dnia (klient),
   wiele propozycji godzin (usługodawca), wybór jednej (klient)
   ============================================================ */

/* ---- Klient: wybór dni ---- */
.booking__request-days .date-strip {
  flex: 0 0 auto;
}

.booking__request-days .cal--booking {
  flex: 0 0 auto;
}

.booking__request-hint {
  margin: 0.6rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-muted);
  flex-shrink: 0;
}

.request-day-list {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 0.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.request-day-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.booking__schedule--request .request-day-list {
  max-height: 9.5rem;
}

.request-day {
  padding: 0.5rem 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.request-day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.request-day__label {
  font-size: 0.8rem;
  font-weight: 600;
}

.request-day__remove {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.05rem 0.3rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.request-day__remove:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.day-part-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.day-part-chip {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.day-part-chip:hover {
  border-color: var(--accent-client);
  color: var(--text);
}

.day-part-chip--active,
.day-part-chip--active:hover {
  background: var(--accent-client);
  border-color: var(--accent-client);
  color: #fff;
}

/* ---- Podsumowanie dni w kartach zapytań ---- */
.request-card__days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.request-day-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.72rem;
}

.request-day-badge__day {
  font-weight: 700;
}

.request-day-badge__part {
  color: var(--text-muted);
}

.request-card__note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* ---- Usługodawca: koszyk propozycji ---- */
.proposal-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.proposal-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.8rem;
}

.proposal-row__range {
  font-weight: 600;
}

.proposal-row__place {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.proposal-row__remove {
  appearance: none;
  -webkit-appearance: none;
  margin-left: auto;
  padding: 0.05rem 0.3rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.proposal-row__remove:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.date-chip {
  position: relative;
}

.date-chip__badge {
  position: absolute;
  top: 0.02rem;
  right: 0.05rem;
  display: grid;
  place-items: center;
  min-width: 0.95rem;
  height: 0.95rem;
  padding: 0 0.18rem;
  border-radius: 999px;
  background: var(--accent-provider);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
}

/* Ekran propozycji — poziome chipy godzin (jak w panelu „+”) */
.app-screen--provider .booking .time-list--horizontal {
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.1rem 0 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-screen--provider .booking .time-list--horizontal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.app-screen--provider .booking .time-row--chip {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0.25rem 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.app-screen--provider .booking .time-list--horizontal .time-row--chip + .time-row--chip {
  border-left: 1px solid var(--border);
}

.app-screen--provider .booking .time-row--chip .time-row__info {
  flex: none;
}

.app-screen--provider .booking .time-row--chip.time-row--selected .time-row__range {
  background: var(--accent-provider);
  color: #fff;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--accent-provider) 35%, transparent);
}

.app-screen--provider .day-part-chip:hover {
  border-color: var(--accent-provider);
}

.app-screen--provider .day-part-chip--active,
.app-screen--provider .day-part-chip--active:hover {
  background: var(--accent-provider);
  border-color: var(--accent-provider);
}

/* ---- Klient: zapytania i wybór jednego terminu ---- */
.client-requests {
  margin: 0.75rem 0 1rem;
}

.client-request-card {
  padding: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.client-request-card .visit-card__actions {
  margin-top: 0.55rem;
  flex-wrap: wrap;
}

.proposal-list--pick {
  gap: 0.45rem;
}

.proposal-pick {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.proposal-pick:hover {
  border-color: var(--accent-client);
  background: var(--accent-client-soft);
}

.proposal-pick__range {
  font-size: 0.82rem;
  font-weight: 600;
}

.proposal-pick__place {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.proposal-pick__cta {
  margin-left: auto;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-client);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---- Powiadomienia w aplikacji ---- */
.notif-block {
  margin: 0.75rem 0 1rem;
}

.notif-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notif-item {
  padding: 0.5rem 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.notif-item--unread {
  background: var(--surface);
  color: var(--text);
  border-left-color: var(--accent-provider);
}

.app-screen--client .notif-item--unread {
  border-left-color: var(--accent-client);
}

/* ---- Pulpit: karta statystyki jako przejście do zapytań ---- */
.stat-card--alert .stat-card__num {
  color: var(--danger);
}

/* ---- Kalendarz: odpowiedź na zapytanie o termin ---- */
.gcal-week__dayhead--request:not(.gcal-week__dayhead--sel) .gcal-week__num {
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent-provider) 50%, transparent);
}

.gcal-week__dayhead--dim,
.gcal-week__col--dim {
  opacity: 0.34;
}

.gcal-week__col--request:not(.gcal-week__col--sel) {
  background: color-mix(in srgb, var(--accent-provider) 4%, transparent);
}

.gcal-month__day--request:not(.gcal-month__day--on) .gcal-month__day-num {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-provider) 45%, transparent);
}

.gcal-month__day--dim {
  opacity: 0.32;
}

.date-chip--request:not(.date-chip--active) .date-chip__day {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent-provider) 55%, transparent);
}

.prov-cal-add--reply .request-card__days {
  margin: 0 0 0.55rem;
}

.prov-cal-add__part-note {
  margin: 0.45rem 0 0.15rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: var(--warning-soft);
  border: 1px solid rgba(245, 181, 68, 0.3);
  color: var(--warning);
  font-size: 0.76rem;
  line-height: 1.4;
}

.prov-cal-add__part-note strong {
  font-weight: 700;
  color: inherit;
}

.prov-cal-add__part-note--outside {
  background: rgba(139, 146, 168, 0.12);
  border-color: rgba(139, 146, 168, 0.28);
  color: var(--text-muted);
}

.proposal-list--panel {
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
}

.stat-card--link {
  appearance: none;
  -webkit-appearance: none;
  align-items: flex-start;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.stat-card--link:hover {
  border-color: var(--accent-provider);
  background: var(--accent-provider-soft);
}
