﻿:root {
  color-scheme: light;
  --bg: #f6f3ee;
  --ink: #191b20;
  --muted: #747985;
  --line: #e2ddd5;
  --panel: rgba(255, 253, 249, 0.9);
  --panel-2: #faf7f1;
  --accent: #6d6674;
  --accent-2: #e7d9dd;
  --soft: #fbf8fb;
  --field-bg: #fbfaf7;
  --field-ink: #191b20;
  --field-muted: #747985;
  --shadow: 0 24px 70px rgba(28, 31, 36, 0.12);
  --shadow-soft: 0 14px 36px rgba(28, 31, 36, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 78% 8%, rgba(231, 217, 221, 0.34), transparent 34%),
    radial-gradient(circle at 28% 82%, rgba(109, 102, 116, 0.11), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 760;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 22%, transparent);
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  box-shadow: none;
}

.link-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 15px;
  text-decoration: none;
  font-weight: 760;
  display: inline-grid;
  place-items: center;
}

.link-button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  box-shadow: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 65%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

input,
select {
  height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 98px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

label input,
label select,
label textarea {
  color: var(--ink);
  font-size: 14px;
  font-weight: 520;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px 1fr;
  transition: grid-template-columns 0.22s ease;
}

.app.sidebar-collapsed {
  grid-template-columns: 78px 1fr;
}

.app::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 27, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 27, 32, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(120deg, transparent, #000 18%, #000 70%, transparent);
}

.sidebar {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  overflow-y: auto;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    #171b20;
  color: #fff;
}

.sidebar-toggle {
  position: fixed;
  z-index: 25;
  top: 18px;
  left: 276px;
  width: 34px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: #171b20;
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.app.sidebar-collapsed .sidebar-toggle {
  left: 62px;
}

.brand {
  display: flex;
  gap: 13px;
  align-items: center;
}

.app.sidebar-collapsed .sidebar {
  padding: 18px 12px;
  align-items: center;
}

.app.sidebar-collapsed .brand {
  justify-content: center;
}

.app.sidebar-collapsed .brand > div:not(.brand-mark),
.app.sidebar-collapsed .plan-box span,
.app.sidebar-collapsed .plan-box p,
.app.sidebar-collapsed .plan-box strong {
  display: none;
}

.app.sidebar-collapsed .nav-item {
  width: 52px;
  overflow: hidden;
  padding: 0;
  text-indent: -999px;
  position: relative;
}

.app.sidebar-collapsed .nav-item::after {
  content: attr(data-short);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-indent: 0;
  font-size: 13px;
  font-weight: 850;
}

.app.sidebar-collapsed .plan-box {
  width: 52px;
  min-height: 52px;
  padding: 0;
}

.app.sidebar-collapsed .plan-box::after {
  content: "₽";
  display: grid;
  place-items: center;
  min-height: 52px;
  color: #fff;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.panel h3,
.panel p,
.preview h3,
.preview p {
  margin: 0;
}

.brand h1 {
  font-size: 21px;
  letter-spacing: 0;
}

.brand p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.35;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  justify-content: flex-start;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.76);
  text-align: left;
  box-shadow: none;
}

.nav-item.active {
  border-color: rgba(255, 255, 255, 0.52);
  background: #fff;
  color: #171b20;
}

.plan-box {
  width: 100%;
  height: auto;
  text-align: left;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: none;
}

.plan-box span,
.plan-box p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.plan-box strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.workspace {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.topbar h2 {
  margin-top: 5px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 740px;
}

.actions {
  display: flex;
  gap: 9px;
}

.account-bar {
  display: grid;
  gap: 0;
  margin: -8px 0 18px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.6)),
    color-mix(in srgb, var(--soft) 34%, white);
  box-shadow:
    0 18px 44px rgba(31, 35, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.account-bar[hidden] {
  display: none;
}

.account-quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
}

.account-main,
.account-cabinet {
  display: grid;
  gap: 6px;
}

.account-cabinet {
  min-width: 0;
  flex: 1 1 auto;
}

.account-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.account-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 16px;
}

.account-cabinet select {
  min-height: 42px;
  font-weight: 760;
}

.cabinet-picker {
  position: relative;
  min-width: 0;
  width: min(520px, 100%);
}

.cabinet-picker-button {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) 20px;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
  font-size: 16px;
  font-weight: 850;
}

.cabinet-picker-button:hover,
.cabinet-picker.open .cabinet-picker-button {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 18%, transparent);
  background: color-mix(in srgb, var(--field-bg) 56%, transparent);
  box-shadow: 0 10px 24px rgba(31, 35, 42, 0.06);
}

#cabinetPickerLabel {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-transform: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cabinet-picker-arrow {
  position: relative;
  width: 18px;
  height: 18px;
}

.cabinet-picker-arrow::before,
.cabinet-picker-arrow::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease;
}

.cabinet-picker-arrow::before {
  left: 2px;
  transform: rotate(45deg);
}

.cabinet-picker-arrow::after {
  right: 2px;
  transform: rotate(-45deg);
}

.cabinet-picker.open .cabinet-picker-arrow::before {
  transform: rotate(-45deg);
}

.cabinet-picker.open .cabinet-picker-arrow::after {
  transform: rotate(45deg);
}

.cabinet-picker-menu {
  position: absolute;
  z-index: 130;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  gap: 5px;
  max-height: 230px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.74)),
    color-mix(in srgb, var(--field-bg) 86%, white);
  box-shadow: 0 18px 40px rgba(31, 35, 42, 0.16);
  backdrop-filter: blur(18px);
}

.cabinet-picker.open .cabinet-picker-menu {
  display: grid;
}

.cabinet-picker-option {
  width: 100%;
  min-height: 38px;
  justify-content: flex-start;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
  font-size: 14px;
  font-weight: 760;
}

.cabinet-picker-option:hover,
.cabinet-picker-option.active {
  transform: none;
  background: color-mix(in srgb, var(--accent-2) 42%, white);
  color: color-mix(in srgb, var(--accent) 76%, var(--ink));
}

.account-quick-actions,
.account-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.account-actions {
  flex-wrap: wrap;
}

.account-action-btn,
.account-actions button,
.account-actions .link-button {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.account-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.account-action-icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.copy-icon::before,
.copy-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.copy-icon::before {
  left: 1px;
  top: 6px;
  opacity: 0.55;
}

.copy-icon::after {
  right: 1px;
  top: 1px;
}

.site-icon {
  border: 2px solid currentColor;
  border-radius: 5px;
}

.site-icon::before,
.site-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.site-icon::before {
  right: -1px;
  top: 2px;
  width: 9px;
  height: 2px;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.site-icon::after {
  right: -1px;
  top: -1px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  background: transparent;
}

.account-collapse-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 42%, white), color-mix(in srgb, var(--field-bg) 76%, white));
  color: var(--ink);
}

.account-toggle-mark {
  position: relative;
  width: 18px;
  height: 18px;
  transition: transform 0.22s ease;
}

.account-toggle-mark::before,
.account-toggle-mark::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.account-toggle-mark::before {
  left: 1px;
  transform: rotate(45deg);
}

.account-toggle-mark::after {
  right: 1px;
  transform: rotate(-45deg);
}

.app.account-bar-expanded .account-toggle-mark {
  transform: rotate(180deg);
}

.account-details {
  display: none;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-top: 8px;
  padding: 13px 4px 2px;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.app.account-bar-expanded .account-details {
  display: grid;
}

.toast {
  position: fixed;
  z-index: 600;
  left: 50%;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72)),
    color-mix(in srgb, var(--field-bg) 82%, white);
  color: var(--ink);
  box-shadow: 0 18px 46px rgba(31, 35, 42, 0.18);
  font-size: 14px;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 448px);
  gap: 22px;
  align-items: start;
  overflow: visible;
}

.editor,
.preview {
  min-width: 0;
}

.panel,
.preview {
  border: 1px solid rgba(226, 221, 213, 0.86);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel {
  display: none;
  padding: 22px;
  overflow: visible;
}

.panel.active {
  display: grid;
  gap: 18px;
}

.panel-head {
  display: grid;
  gap: 6px;
}

.panel-head h3,
.preview-top h3 {
  font-size: 21px;
  letter-spacing: 0;
}

.panel-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.row-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: 1fr 1fr;
}

.grid.three {
  grid-template-columns: 1fr 1fr 1fr;
}

.time-settings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.time-stepper {
  display: grid;
  grid-template-columns: minmax(130px, 0.48fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  align-content: start;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.time-stepper > span {
  min-height: auto;
  display: flex;
  align-items: center;
  line-height: 1.22;
}

.stepper-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  grid-template-rows: 1fr 1fr;
  min-height: 50px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stepper-control:focus-within {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent);
}

.stepper-control input {
  grid-row: 1 / span 2;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 640;
}

.stepper-control input::-webkit-inner-spin-button,
.stepper-control input::-webkit-calendar-picker-indicator {
  display: none;
}

.stepper-btn {
  width: 32px;
  height: auto;
  min-height: 0;
  padding: 0;
  border-left: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 0;
  background: color-mix(in srgb, var(--accent-2) 34%, white);
  color: color-mix(in srgb, var(--accent) 82%, #111);
  box-shadow: none;
  font-size: 15px;
  line-height: 1;
}

.time-stepper.compact > span {
  min-height: auto;
}

.stepper-btn:first-child {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
}

.stepper-btn:hover {
  transform: none;
  background: color-mix(in srgb, var(--accent) 12%, white);
}

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

.plans-grid,
.preset-picker,
.template-picker,
.inline-add {
  display: grid;
  gap: 12px;
}

.inline-add {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 12px;
}

.plans-grid {
  grid-template-columns: 1fr;
}

.plan-card,
.preset-card {
  display: grid;
  gap: 8px;
  height: auto;
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.plan-card {
  grid-template-columns: minmax(0, 1.1fr) minmax(160px, 0.9fr);
  grid-template-areas:
    "note name"
    "features price";
  column-gap: 26px;
  row-gap: 10px;
  align-items: center;
  min-height: 118px;
  padding: 20px 28px;
}

.plan-card.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--soft), rgba(255, 255, 255, 0.9));
}

.preset-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--soft), var(--shadow-soft);
}

.plan-card span,
.preset-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.plan-card strong,
.preset-card strong {
  font-size: 22px;
}

.plan-card strong {
  grid-area: name;
  max-width: 100%;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
}

.plan-card span {
  grid-area: note;
}

.plan-card small {
  grid-area: features;
  align-self: center;
}

.plan-card em {
  grid-area: price;
  color: var(--accent);
  font-style: normal;
  font-size: 18px;
  font-weight: 850;
  justify-self: start;
  max-width: 100%;
  line-height: 1.1;
  text-align: left;
  overflow-wrap: normal;
  word-break: normal;
}

.plan-card small,
.preset-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.preset-picker {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.preset-card {
  min-height: 136px;
  align-content: end;
  justify-items: start;
  overflow: hidden;
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.preset-card.active::after {
  content: "Выбрано";
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.preset-card strong {
  max-width: 100%;
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.preset-card span {
  max-width: 100%;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

@media (min-width: 1181px) {
  .preset-card[data-copy]:not([data-copy="0"]) {
    display: none;
  }
}

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

.template-chip {
  display: grid;
  gap: 4px;
  height: auto;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.template-chip.active {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background: var(--soft);
}

.template-chip.inactive {
  border-color: color-mix(in srgb, var(--muted) 24%, var(--line));
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), color-mix(in srgb, var(--line) 56%, white));
  color: color-mix(in srgb, var(--muted) 86%, var(--ink));
  opacity: 0.72;
}

.template-chip.inactive span,
.template-chip.inactive strong {
  color: color-mix(in srgb, var(--muted) 84%, var(--ink));
}

.template-chip span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
}

.template-chip strong {
  font-size: 13px;
  line-height: 1.25;
}

.specialty-picker,
.theme-picker,
.cover-picker {
  display: grid;
  gap: 9px;
}

.specialty-picker {
  grid-template-columns: 1fr;
}

.specialty-group {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
}

.specialty-group h4 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
}

.specialty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-picker {
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
}

.cover-picker {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.check-chip,
.mini-check {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  cursor: pointer;
}

.check-chip {
  justify-content: center;
  height: auto;
  min-height: 38px;
  padding: 9px 13px;
  font-size: clamp(12px, 1.35vw, 14px);
  line-height: 1.18;
  text-align: center;
  white-space: normal;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: none;
}

.check-chip.active {
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 10%, transparent);
}

.mini-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.theme-choice,
.cover-choice {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.theme-choice {
  display: block;
  height: 46px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 10px 22px rgba(31, 35, 42, 0.055);
}

.theme-choice.active,
.cover-choice.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent), var(--shadow-soft);
}

.theme-gradient {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 0 rgba(31, 35, 42, 0.08);
}

.custom-theme {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
}

.custom-theme p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.custom-theme-preview {
  height: 44px;
  border: 1px solid rgba(31, 35, 42, 0.08);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 22px rgba(31, 35, 42, 0.08);
}

.color-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.color-fields label {
  position: relative;
  gap: 8px;
}

.color-fields label:has(.custom-color-menu.open) {
  z-index: 75;
}

.color-fields .custom-color-value {
  display: none;
}

.custom-color-button {
  display: grid;
  width: 100%;
  height: 46px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 22px rgba(31, 35, 42, 0.06);
}

.custom-color-button:hover,
.custom-color-button.open {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent),
    0 12px 26px rgba(31, 35, 42, 0.08);
}

.custom-color-swatch {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(31, 35, 42, 0.12);
  border-radius: 10px;
}

.custom-color-menu {
  position: absolute;
  z-index: 220;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72)),
    color-mix(in srgb, var(--soft) 82%, white);
  box-shadow: 0 18px 40px rgba(31, 35, 42, 0.16);
  backdrop-filter: blur(16px);
}

.custom-color-menu.open {
  display: grid;
}

.custom-color-menu.above {
  top: auto;
  bottom: calc(100% + 8px);
}

.custom-color-menu.floating {
  position: fixed;
  left: var(--picker-left, 16px);
  right: auto;
  top: var(--picker-top, 120px);
  bottom: auto;
  width: var(--picker-width, min(420px, calc(100vw - 32px)));
}

.custom-color-plane,
.custom-color-hue {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: none;
  border: 1px solid color-mix(in srgb, var(--line) 72%, white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 10px 22px rgba(31, 35, 42, 0.08);
}

.custom-color-plane {
  height: 130px;
  border-radius: 16px;
  background:
    linear-gradient(0deg, #000, transparent),
    linear-gradient(90deg, #fff, hsl(var(--picker-hue, 170) 88% 50%));
}

.custom-color-hue {
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #f04438,
    #f59e0b,
    #facc15,
    #22c55e,
    #14b8a6,
    #3b82f6,
    #8b5cf6,
    #ec4899,
    #f04438
  );
}

.custom-color-marker {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(31, 35, 42, 0.28);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.custom-color-hue .custom-color-marker {
  top: 50%;
}

.custom-color-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.custom-color-current {
  height: 38px;
  border: 1px solid rgba(31, 35, 42, 0.1);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.custom-color-eyedropper {
  height: 38px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 12px;
  box-shadow: none;
}

.text-tone {
  display: grid;
  gap: 8px;
}

.text-tone > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.segmented button {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 840;
}

.segmented [data-text-tone="dark"] {
  background: color-mix(in srgb, var(--field-bg) 86%, white);
  color: #171b20;
}

.segmented [data-text-tone="light"] {
  background: color-mix(in srgb, var(--accent) 74%, #171b20);
  color: #fff;
}

.segmented button.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.upload-field {
  gap: 9px;
}

.upload-box {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.56)),
    color-mix(in srgb, var(--field-bg) 72%, white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 28px rgba(31, 35, 42, 0.06);
  cursor: pointer;
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-button {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, var(--accent-2)));
  color: #fff;
  font-size: 13px;
  font-weight: 820;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--accent) 18%, transparent);
}

.upload-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-library {
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.56)),
    color-mix(in srgb, var(--field-bg) 72%, white);
  box-shadow: var(--shadow-soft);
}

.cover-library-preview {
  display: grid;
  align-items: end;
  min-height: 146px;
  padding: 12px;
  border-radius: 14px;
  background-position: center;
  background-size: cover;
  color: #fff;
  overflow: hidden;
}

.cover-library-preview-empty,
.photo-library-image-empty {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--field-bg) 92%, #fff), color-mix(in srgb, var(--accent-2) 22%, #fff));
}

.cover-library-preview span {
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(18, 21, 27, 0.42);
  font-size: 12px;
  font-weight: 780;
}

.cover-library-copy {
  display: grid;
  gap: 9px;
  align-content: center;
}

.cover-library-copy strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}

.cover-library-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.library-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.library-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-2) 36%, white);
  color: color-mix(in srgb, var(--accent) 72%, #111);
  font-size: 11px;
  font-weight: 760;
}

.cover-library button:disabled {
  cursor: default;
  opacity: 0.62;
}

.photo-library-modal {
  position: fixed;
  z-index: 620;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.photo-library-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 28, 0.36);
  backdrop-filter: blur(8px);
}

.photo-library-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: hidden;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)),
    color-mix(in srgb, var(--field-bg) 86%, white);
  box-shadow: 0 28px 80px rgba(20, 22, 28, 0.24);
}

.photo-library-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.photo-library-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.photo-library-close {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: none;
  font-size: 24px;
  line-height: 1;
}

.photo-library-close:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.photo-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.photo-library-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 30px rgba(31, 35, 42, 0.08);
}

.photo-library-image {
  min-height: 150px;
  border-radius: 14px;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.photo-library-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.photo-library-card a {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-height: 32px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-2) 38%, white);
  color: color-mix(in srgb, var(--accent) 72%, var(--ink));
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
}

.cover-choice {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 112px;
  padding: 11px;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.58);
}

.crop-tools {
  display: none;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    var(--panel-2);
  box-shadow:
    0 20px 50px rgba(28, 31, 36, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.crop-tools.visible {
  display: grid;
}

.crop-tools .panel-head h3 {
  font-size: 23px;
}

.crop-tools .panel-head p {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.55;
}

.crop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.crop-control {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  min-height: 118px;
  padding: 4px 0 0;
  color: var(--ink);
}

.crop-control + .crop-control {
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding-top: 18px;
}

.crop-label {
  min-height: auto;
  color: var(--ink);
  font-size: 16px;
  font-weight: 620;
  line-height: 1.2;
}

.crop-value {
  color: color-mix(in srgb, var(--accent) 68%, #78908a);
  font-size: 18px;
  font-weight: 560;
}

.hill-slider {
  --progress: 0;
  position: relative;
  align-self: end;
  display: block;
  width: 100%;
  height: 42px;
  overflow: visible;
  cursor: pointer;
  touch-action: none;
}

.hill-slider:focus-visible {
  outline: 0;
}

.hill-slider:focus-visible .hill-track {
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent),
    inset 0 1px 2px rgba(31, 35, 42, 0.1);
}

.hill-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 10px;
  border-radius: 999px;
  background: #eef1ef;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.05);
  overflow: visible;
}

.hill-fill {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: calc(var(--progress) * 100%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 70%, var(--accent-2)),
    var(--accent)
  );
}

.hill-dot {
  position: absolute;
  z-index: 2;
  left: calc(var(--progress) * 100%);
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  translate: 0 -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.48), transparent 30%),
    color-mix(in srgb, var(--accent) 72%, var(--accent-2));
  box-shadow:
    0 6px 14px color-mix(in srgb, var(--accent) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.schedule-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), color-mix(in srgb, var(--field-bg) 72%, white));
}

.employee-schedules {
  display: grid;
  gap: 18px;
}

.employee-schedule-card {
  padding: 18px;
}

.employee-schedule-card.collapsed {
  gap: 0;
}

.employee-schedule-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.employee-schedule-head h4 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.schedule-collapse-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--field-bg) 72%, white);
  color: color-mix(in srgb, var(--accent) 78%, #111);
  box-shadow: none;
  font-size: 13px;
  font-weight: 860;
}

.employee-time-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.employee-time-stepper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
}

.employee-time-stepper .stepper-control {
  width: 100%;
  min-width: 0;
}

.employee-time-stepper .stepper-control input {
  min-width: 0;
}

.employee-manual-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
}

.employee-manual-form > button {
  flex: 0 0 auto;
  width: auto;
  min-width: 168px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  white-space: nowrap;
}

.employee-manual-field {
  display: grid;
  gap: 6px;
  flex: 1 1 140px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.employee-service-field {
  flex: 1 1 260px;
  min-width: 220px;
}

.employee-manual-date {
  flex-basis: 155px;
}

.employee-manual-time {
  flex-basis: 132px;
}

.employee-manual-capacity {
  flex: 0 1 104px;
}

.employee-manual-field input,
.employee-manual-field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 760;
}

.employee-picker-field {
  position: relative;
}

.employee-picker-button,
.employee-time-input-wrap {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), color-mix(in srgb, var(--field-bg) 72%, white));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 15px;
  font-weight: 760;
}

.employee-picker-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 14px;
  text-align: left;
}

.employee-picker-button:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), color-mix(in srgb, var(--field-bg) 78%, white));
}

.employee-picker-button strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 760;
}

.picker-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: color-mix(in srgb, var(--accent) 82%, var(--ink));
}

.calendar-mini-icon {
  border: 2px solid currentColor;
  border-radius: 5px;
}

.calendar-mini-icon::before,
.calendar-mini-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.calendar-mini-icon::before {
  left: 4px;
}

.calendar-mini-icon::after {
  right: 4px;
}

.clock-mini-icon {
  border: 2px solid currentColor;
  border-radius: 999px;
}

.clock-mini-icon::before,
.clock-mini-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: bottom center;
}

.clock-mini-icon::before {
  height: 7px;
  transform: translate(-50%, -100%);
}

.clock-mini-icon::after {
  height: 6px;
  transform: translate(-50%, -100%) rotate(110deg);
}

.employee-time-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px 34px;
  align-items: stretch;
  overflow: hidden;
}

.employee-time-input-wrap input {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 0 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  font-weight: 760;
}

.employee-time-input-wrap input:focus {
  outline: none;
}

.employee-time-input-wrap .clock-mini-icon {
  align-self: center;
  justify-self: center;
}

.employee-time-buttons {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-left: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
  background: color-mix(in srgb, var(--field-bg) 64%, rgba(255, 255, 255, 0.68));
}

.employee-time-buttons button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--accent) 82%, var(--ink));
  box-shadow: none;
  font-size: 15px;
  font-weight: 860;
  line-height: 1;
}

.employee-time-buttons button + button {
  border-top: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line));
}

.employee-time-buttons button:hover {
  transform: none;
  background: color-mix(in srgb, var(--accent-2) 44%, white);
}

.employee-date-popover {
  position: absolute;
  z-index: 360;
  left: 0;
  top: calc(100% + 8px);
  width: min(360px, calc(100vw - 42px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--field-bg) 86%, white));
  box-shadow: 0 22px 58px rgba(32, 28, 24, 0.14);
}

.employee-date-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.employee-date-head strong {
  color: var(--ink);
  text-align: center;
  font-size: 14px;
}

.employee-date-head button {
  height: 34px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  box-shadow: none;
  font-size: 22px;
  font-weight: 520;
}

.employee-date-head button:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent-2) 38%, white);
}

.employee-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.employee-date-weekday,
.employee-date-day {
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 10px;
  font-size: 12px;
}

.employee-date-weekday {
  color: var(--muted);
  font-weight: 820;
}

.employee-date-day {
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-weight: 720;
}

.employee-date-day:hover:not(:disabled) {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
  background: color-mix(in srgb, var(--accent-2) 38%, white);
}

.employee-date-day.active {
  background: var(--accent);
  color: #fff;
}

.employee-date-day.today {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
}

.employee-date-day.outside {
  color: var(--muted);
  opacity: 0.58;
}

.employee-date-day:disabled {
  color: var(--muted);
  opacity: 0.34;
  cursor: not-allowed;
}

.employee-manual-field select {
  padding-right: 38px;
  appearance: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), color-mix(in srgb, var(--field-bg) 70%, white)),
    linear-gradient(45deg, transparent 50%, var(--accent) 50%) right 18px center / 8px 8px no-repeat;
}

.employee-service-field .admin-select {
  width: 100%;
}

.employee-service-field .admin-select-button {
  min-height: 48px;
  padding: 0 42px 0 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 760;
}

.employee-service-field .admin-select-menu {
  z-index: 320;
  min-width: min(420px, calc(100vw - 42px));
  max-height: 230px;
}

.employee-service-field .admin-select-option {
  min-height: 42px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.schedule-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.schedule-employee-switch label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.schedule-employee-switch select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 18px;
  appearance: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), color-mix(in srgb, var(--field-bg) 70%, white)),
    linear-gradient(45deg, transparent 50%, var(--accent) 50%) right 20px center / 8px 8px no-repeat;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 16px;
  font-weight: 820;
}

.schedule-employee-switch .admin-select {
  width: 100%;
}

.schedule-employee-switch .admin-select-button {
  min-height: 52px;
  padding-inline: 18px 46px;
  border-radius: 18px;
  border-color: color-mix(in srgb, var(--accent) 14%, var(--line));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), color-mix(in srgb, var(--field-bg) 72%, white));
  font-size: 16px;
}

.schedule-employee-switch .admin-select-menu {
  z-index: 260;
  max-height: 220px;
}

.schedule-employee-switch .admin-select-option {
  min-height: 42px;
  overflow-wrap: anywhere;
}

.schedule-planner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.weekday-rule {
  display: grid;
  gap: 8px;
}

.weekday-picker {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.weekday-chip {
  height: 36px;
  min-width: 48px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  font-size: 13px;
}

.weekday-chip.work {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--field-bg) 78%, white);
  color: color-mix(in srgb, var(--accent) 72%, #111);
}

.weekday-chip.off {
  border-color: color-mix(in srgb, var(--line) 84%, white);
  background: color-mix(in srgb, var(--line) 48%, white);
  color: var(--muted);
}

.month-rule {
  display: grid;
  gap: 9px;
}

.schedule-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.schedule-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.schedule-legend i {
  width: 16px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background: color-mix(in srgb, var(--field-bg) 78%, white);
}

.schedule-legend span + span i {
  border-color: color-mix(in srgb, var(--line) 84%, white);
  background: color-mix(in srgb, var(--line) 48%, white);
}

.schedule-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.month-rule-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
}

.month-rule-head strong {
  color: var(--ink);
  text-align: center;
  font-size: 14px;
}

.month-rule-head button {
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: none;
  font-size: 22px;
  font-weight: 520;
}

.schedule-month-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.schedule-weekday {
  display: grid;
  place-items: center;
  min-height: 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.schedule-day {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40px;
  height: auto;
  padding: 6px 4px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  box-shadow: none;
  cursor: pointer;
  line-height: 1.1;
}

.schedule-day:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}

.schedule-day strong {
  font-size: 13px;
}

.schedule-day.off {
  border-color: color-mix(in srgb, var(--line) 84%, white);
  background: color-mix(in srgb, var(--line) 48%, white);
  color: color-mix(in srgb, var(--muted) 90%, #111);
}

.schedule-day.work {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background: color-mix(in srgb, var(--field-bg) 78%, white);
  color: color-mix(in srgb, var(--accent) 72%, #111);
}

.schedule-day.has-slots {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--field-bg) 82%, white);
  color: color-mix(in srgb, var(--accent) 76%, #111);
}

.schedule-day.has-slots::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.schedule-day.manual {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent);
}

.schedule-day.today {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
}

.schedule-day.outside {
  opacity: 0.45;
}

.manual-slot-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.manual-slot-form > button {
  width: fit-content;
  min-width: 148px;
}

.employee-manual-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
}

.employee-manual-form > button {
  flex: 0 0 auto;
  width: auto;
  min-width: 168px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  white-space: nowrap;
}

.manual-slots {
  display: grid;
  gap: 8px;
}

.manual-slots-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.manual-slots-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--field-bg) 50%, rgba(255, 255, 255, 0.72));
}

.manual-slots-actions small {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
}

.clear-day-btn {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-2) 34%, white);
  color: color-mix(in srgb, var(--accent) 82%, #111);
  box-shadow: none;
  font-size: 12px;
  font-weight: 860;
  white-space: nowrap;
}

.clear-day-btn:hover {
  transform: none;
  background: var(--accent);
  color: #fff;
}

.manual-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 8px 7px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.day-slot-chip.manual {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  background: color-mix(in srgb, var(--accent-2) 42%, white);
}

.day-slot-chip.hidden {
  opacity: 0.5;
  text-decoration: line-through;
}

.day-slot-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.day-slot-chip button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, white);
  color: color-mix(in srgb, var(--accent) 80%, #111);
  box-shadow: none;
  font-size: 15px;
  line-height: 1;
}

.day-slot-chip button:hover {
  transform: none;
  background: var(--accent);
  color: #fff;
}

.list-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 9px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft);
}

.list-row.service {
  position: relative;
  align-items: stretch;
  padding-left: 54px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    color-mix(in srgb, var(--soft) 42%, transparent);
}

.list-row.service.inactive {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5)),
    color-mix(in srgb, var(--line) 44%, white);
  opacity: 0.78;
}

.list-row.service.inactive::before {
  content: "Отключена";
  position: absolute;
  right: 58px;
  bottom: 14px;
  color: color-mix(in srgb, var(--muted) 90%, var(--ink));
  font-size: 11px;
  font-weight: 850;
}

.service-price-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.54)),
    color-mix(in srgb, var(--soft) 32%, transparent);
  cursor: pointer;
}

.service-price-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.service-price-toggle-track {
  position: relative;
  width: 48px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 6px rgba(28, 31, 36, 0.08);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.service-price-toggle-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 82%, #fff);
  box-shadow: 0 5px 12px rgba(31, 35, 42, 0.16);
  transition: transform 0.18s ease, background 0.18s ease;
}

.service-price-toggle input:checked + .service-price-toggle-track {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  background: color-mix(in srgb, var(--accent-2) 54%, white);
}

.service-price-toggle input:checked + .service-price-toggle-track::after {
  transform: translateX(20px);
  background: color-mix(in srgb, var(--accent) 72%, #fff);
}

.service-price-toggle:focus-within {
  outline: 2px solid color-mix(in srgb, var(--accent) 24%, transparent);
  outline-offset: 3px;
}

.service-price-toggle strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.service-price-toggle small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
}

.list-row.service > :nth-child(1) {
  grid-column: span 3;
}

.list-row.service > :nth-child(2) {
  grid-column: span 5;
}

.list-row.service > :nth-child(3),
.list-row.service > :nth-child(4),
.list-row.service > :nth-child(5),
.list-row.service > :nth-child(6) {
  grid-column: span 2;
}

.list-row.service > :nth-child(7) {
  grid-column: span 1;
}

.service-drag-handle {
  position: absolute;
  left: 15px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 38px;
  min-height: 38px;
  padding: 0;
  grid-column: auto !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 86%, var(--ink));
  box-shadow: none;
  cursor: grab;
  opacity: 0.82;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.service-drag-handle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.service-drag-handle:hover {
  transform: none;
  color: color-mix(in srgb, var(--accent) 58%, var(--ink));
  opacity: 1;
}

.section[data-panel="services"] .list-row.service > .service-drag-handle {
  grid-column: auto !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
}

body.service-drag-active {
  cursor: grabbing;
  user-select: none;
}

.service-dragging {
  box-shadow:
    0 22px 56px rgba(31, 35, 42, 0.18),
    0 0 0 1px color-mix(in srgb, var(--accent) 24%, var(--line));
  cursor: grabbing;
  opacity: 0.96;
  transition: none !important;
  will-change: transform;
}

.service-drag-placeholder {
  border: 1px dashed color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.22)),
    color-mix(in srgb, var(--soft) 32%, transparent);
  box-shadow: none;
}

.service-drag-placeholder-quick {
  min-height: 64px;
  border-radius: 14px;
}

.template-chip.active[data-service-sort-index] {
  cursor: pointer;
}

.template-picker.service-touch-sort-mode .template-chip.active[data-service-sort-index] {
  cursor: grab;
  touch-action: none;
}

.template-picker.service-touch-sort-mode .template-chip.active[data-service-sort-index]:not(.service-dragging) {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 8%, transparent);
}

.template-chip.service-drag-armed {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}

.template-picker.service-sort-active .template-chip.active[data-service-sort-index] {
  cursor: grabbing;
}

.list-row.employee {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px 74px 18px 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    color-mix(in srgb, var(--soft) 38%, transparent);
}

.list-row input,
.list-row select {
  min-width: 0;
}

.admin-select {
  position: relative;
  min-width: 0;
}

.admin-select-button {
  position: relative;
  width: 100%;
  min-height: 46px;
  padding: 12px 38px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    color-mix(in srgb, var(--soft) 34%, white);
  color: var(--ink);
  box-shadow: none;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-select-button::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  color: color-mix(in srgb, var(--accent) 76%, var(--ink));
}

.admin-select.open .admin-select-button {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}

.admin-select.open .admin-select-button::after {
  transform: translateY(-35%) rotate(225deg);
}

.admin-select-menu {
  position: absolute;
  z-index: 170;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  max-height: 240px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    color-mix(in srgb, var(--soft) 78%, white);
  box-shadow: 0 18px 38px rgba(31, 35, 42, 0.16);
  backdrop-filter: blur(14px);
}

.admin-select.open .admin-select-menu {
  display: grid;
  gap: 4px;
}

.admin-select-option {
  min-height: 38px;
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
  text-align: left;
}

.admin-select-option:hover,
.admin-select-option.active {
  transform: none;
  background: color-mix(in srgb, var(--accent-2) 28%, white);
  color: color-mix(in srgb, var(--accent) 74%, var(--ink));
}

.mini-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-check {
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.2;
}

.mini-check:has(input:checked) {
  border-color: var(--accent);
  background: var(--soft);
}

.mini-note {
  color: var(--muted);
  font-size: 12px;
}

.employee-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.employee-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.employee-field span,
.employee-choice-block > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.employee-choice-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.employee-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.employee-chip {
  min-height: 38px;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--accent-2));
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    color-mix(in srgb, var(--field) 68%, white);
  color: var(--ink);
  box-shadow: none;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-align: left;
}

.employee-chip.active {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.22)),
    color-mix(in srgb, var(--accent-2) 72%, white);
  color: color-mix(in srgb, var(--accent) 78%, var(--ink));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 8px 18px color-mix(in srgb, var(--accent) 9%, transparent);
}

.employee-chip:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  color: color-mix(in srgb, var(--accent) 82%, var(--ink));
}

.employee-delete {
  position: absolute;
  top: 18px;
  right: 18px;
}

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

.staff-access-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--accent-2));
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    color-mix(in srgb, var(--soft) 30%, white);
  box-shadow: none;
}

.staff-access-card.connected {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
    color-mix(in srgb, var(--accent-2) 30%, white);
}

.staff-access-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.staff-access-copy h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.staff-access-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
}

.staff-access-status {
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-2) 36%, white);
  color: color-mix(in srgb, var(--accent) 78%, var(--ink));
  font-size: 10px;
  font-weight: 880;
  line-height: 1.1;
}

.staff-access-card.connected .staff-access-status {
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: color-mix(in srgb, var(--accent) 86%, var(--ink));
}

.staff-access-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.staff-access-meta span {
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.staff-access-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.staff-access-link-btn {
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 12px;
}

.staff-access-disconnect-btn {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 11px;
  background: color-mix(in srgb, #fff 86%, #eadfdf);
  color: color-mix(in srgb, #8d3228 72%, var(--ink));
  font-size: 12px;
  white-space: normal;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
    color-mix(in srgb, var(--accent-2) 46%, white);
  color: color-mix(in srgb, var(--accent) 88%, var(--ink));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 10px 22px color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 17px;
  line-height: 1;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.icon-button:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5)),
    color-mix(in srgb, var(--accent) 18%, white);
  color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 28px color-mix(in srgb, var(--accent) 16%, transparent);
}

.message-grid {
  display: grid;
  gap: 12px;
}

.channel-summary {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 14px;
  background: var(--soft);
}

.channel-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.channel-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--accent);
  font-size: 18px;
}

.channel-summary p {
  color: color-mix(in srgb, var(--accent) 58%, #293038);
  font-size: 13px;
  line-height: 1.42;
}

.channels-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.channel-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
  opacity: 0.72;
}

.channel-card.enabled {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: rgba(255, 255, 255, 0.86);
  opacity: 1;
}

.channel-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.channel-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.channel-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.channel-card input:disabled {
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
}

.channel-status {
  display: grid;
  gap: 3px;
  min-height: 58px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
}

.channel-status span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.channel-status strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
}

.preview {
  position: sticky;
  top: 18px;
  padding: 14px;
}

.preview-rail {
  display: none;
  position: sticky;
  top: 120px;
  align-self: start;
  writing-mode: vertical-rl;
  min-height: 164px;
  width: 42px;
  padding: 12px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.layout.preview-hidden {
  grid-template-columns: minmax(0, 1fr) 48px;
}

.layout.preview-hidden .preview {
  display: none;
}

.layout.preview-hidden .preview-rail {
  display: grid;
  place-items: center;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 5px 14px;
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-toggle {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  font-size: 12px;
}

.status-pill {
  border-radius: 999px;
  padding: 8px 11px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.client-card {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(28, 31, 36, 0.1);
}

.client-card label {
  position: relative;
  z-index: 1;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, white);
  border-radius: 14px;
  background: color-mix(in srgb, var(--field-bg) 78%, white);
  color: var(--field-muted);
}

.client-card label select,
.client-card label input {
  margin-top: 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  height: 30px;
  color: var(--field-ink);
}

.client-card label:has(.pretty-select.open) {
  z-index: 30;
}

.client-card label select {
  display: none;
}

.pretty-select {
  position: relative;
  margin-top: 7px;
}

.pretty-select-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--field-ink);
  box-shadow: none;
  text-align: left;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

.pretty-select-button:hover,
.pretty-select.open .pretty-select-button {
  transform: none;
  box-shadow: none;
}

.pretty-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pretty-select-arrow {
  position: relative;
  width: 18px;
  height: 18px;
}

.pretty-select-arrow::before,
.pretty-select-arrow::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease;
}

.pretty-select-arrow::before {
  left: 2px;
  transform: rotate(45deg);
}

.pretty-select-arrow::after {
  right: 2px;
  transform: rotate(-45deg);
}

.pretty-select.open .pretty-select-arrow::before {
  transform: rotate(-45deg);
}

.pretty-select.open .pretty-select-arrow::after {
  transform: rotate(45deg);
}

.pretty-select-menu {
  position: absolute;
  z-index: 40;
  left: -11px;
  right: -11px;
  top: calc(100% + 10px);
  display: none;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68)),
    color-mix(in srgb, var(--field-bg) 90%, white);
  box-shadow: 0 18px 40px rgba(31, 35, 42, 0.16);
  backdrop-filter: blur(16px);
}

.pretty-select.open .pretty-select-menu {
  display: grid;
}

.pretty-select-option {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--field-ink);
  box-shadow: none;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

.pretty-select-option:hover {
  transform: none;
  background: color-mix(in srgb, var(--accent-2) 42%, white);
}

.pretty-select-option.active {
  background: transparent;
  color: var(--field-ink);
}

.date-field {
  position: relative;
}

.date-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  cursor: pointer;
}

.date-input-wrap input {
  grid-column: 1 / -1;
  grid-row: 1;
  padding-right: 46px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.date-input-wrap input::-webkit-calendar-picker-indicator {
  opacity: 0;
  display: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  pointer-events: none;
}

.date-input-wrap input::-webkit-inner-spin-button,
.date-input-wrap input::-webkit-clear-button {
  display: none;
  -webkit-appearance: none;
}

.calendar-toggle {
  grid-column: 2;
  grid-row: 1;
  place-self: stretch;
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--field-ink);
  box-shadow: none;
}

.calendar-toggle:hover {
  transform: none;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.calendar-toggle span {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.calendar-toggle span::before,
.calendar-toggle span::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.calendar-toggle span::before {
  left: 4px;
}

.calendar-toggle span::after {
  right: 4px;
}

.date-popover {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--field-bg) 92%, white);
}

.date-popover[hidden] {
  display: none;
}

.calendar-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.calendar-head strong {
  color: var(--field-ink);
  font-size: 14px;
  text-align: center;
}

.calendar-head button {
  height: 34px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--field-bg) 74%, white);
  color: var(--field-ink);
  box-shadow: none;
  font-size: 22px;
  font-weight: 520;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-weekday,
.calendar-day {
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 10px;
  font-size: 12px;
}

.calendar-weekday {
  color: var(--field-muted);
  font-weight: 780;
}

.calendar-day {
  border: 1px solid transparent;
  background: transparent;
  color: var(--field-ink);
  box-shadow: none;
  height: 32px;
  padding: 0;
  font-weight: 650;
}

.calendar-day:hover:not(:disabled) {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  background: color-mix(in srgb, var(--accent-2) 38%, white);
}

.calendar-day.outside {
  color: var(--field-muted);
  opacity: 0.62;
}

.calendar-day.off:not(.active) {
  border-color: color-mix(in srgb, var(--line) 58%, transparent);
  background: color-mix(in srgb, var(--field-bg) 62%, white);
  color: color-mix(in srgb, var(--field-muted) 78%, white);
  opacity: 0.48;
}

.calendar-day.off:not(.active):hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--field-bg) 72%, white);
}

.calendar-day.today {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
}

.calendar-day.active {
  background: var(--accent);
  color: #fff;
}

.calendar-day.off.active {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: color-mix(in srgb, var(--field-bg) 72%, white);
  color: color-mix(in srgb, var(--field-muted) 78%, white);
  opacity: 0.58;
}

.calendar-day:disabled {
  color: var(--field-muted);
  opacity: 0.36;
  cursor: not-allowed;
}

.cover {
  position: relative;
  height: 164px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--field-bg) 86%, #fff), color-mix(in srgb, var(--accent-2) 28%, #fff));
  background-position: center;
  background-size: cover;
}

.cover.cover-empty {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--field-bg) 92%, #fff), color-mix(in srgb, var(--accent-2) 20%, #fff));
}

.client-content {
  display: grid;
  gap: 13px;
  padding: 24px 18px 18px;
}

.public-address-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--accent));
  border-radius: 18px;
  background: color-mix(in srgb, var(--field-bg) 74%, white);
}

.public-address-field {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, white);
  color: var(--muted);
  font-size: 15px;
  font-weight: 760;
}

.public-address-field input {
  min-width: 0;
  height: 50px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.public-address-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.public-address-actions button {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 13px;
  font-size: 13px;
}

.public-address-status {
  min-height: 1.4em;
  margin: 0;
}

.public-address-status[data-tone="ok"] {
  color: color-mix(in srgb, #3f8f63 68%, var(--muted));
}

.public-address-status[data-tone="warn"] {
  color: color-mix(in srgb, #a65f5f 72%, var(--muted));
}

@media (max-width: 720px) {
  .public-address-card {
    padding: 12px;
    border-radius: 16px;
  }

  .public-address-field {
    grid-template-columns: auto minmax(86px, 1fr);
    gap: 0;
    font-size: 14px;
  }

  .public-address-field span:last-child {
    grid-column: 1 / -1;
    padding: 0 0 12px;
  }

  .public-address-actions {
    grid-template-columns: 1fr;
  }
}

.profile-location {
  display: grid;
  gap: 11px;
}

.profile-location .mini-note {
  margin: -2px 0 0;
  line-height: 1.42;
}

.profession {
  color: var(--accent);
  font-weight: 850;
  line-height: 1.35;
}

#previewDescription,
.address {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.address::before {
  content: "Адрес: ";
  color: var(--ink);
  font-weight: 780;
}

.address[hidden],
.route-link[hidden] {
  display: none !important;
}

.route-link {
  display: inline-grid;
  justify-self: start;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--field-bg) 78%, white);
  color: color-mix(in srgb, var(--accent) 74%, var(--ink));
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.route-link:hover,
.route-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: color-mix(in srgb, var(--field-bg) 88%, white);
  color: var(--ink);
}

.label-like {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.slot {
  display: grid;
  place-items: center;
  gap: 1px;
  min-height: 42px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--field-bg) 42%, white);
  color: var(--field-ink);
  font-size: 13px;
  box-shadow: none;
}

.slot small {
  color: var(--field-muted);
  font-size: 10px;
  line-height: 1;
}

.slot.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 24%, transparent);
}

.slot.active small {
  color: rgba(255, 255, 255, 0.78);
}

.slot.busy {
  opacity: 0.42;
  text-decoration: line-through;
  cursor: not-allowed;
}

.booking-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--field-bg) 76%, white);
}

.client-card .booking-form input {
  color: var(--ink);
  caret-color: var(--accent);
}

.client-card .booking-form input::placeholder {
  color: var(--muted);
}

.booking-result {
  min-height: 46px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, white);
  border-radius: 10px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--field-bg) 82%, white),
      color-mix(in srgb, var(--accent-2) 48%, white)
    );
  color: var(--field-ink);
  font-size: 13px;
  line-height: 1.4;
}

.booking-result.has-action {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 10%, transparent);
}

.booking-result a {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.booking-result a:hover,
.booking-result a:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px color-mix(in srgb, var(--accent) 26%, transparent);
}

.booking-result-note {
  color: var(--field-ink);
  font-size: inherit;
  line-height: inherit;
}

body.public-site-page {
  min-height: 100vh;
  padding: 28px;
  overflow: auto;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--field-bg) 66%, white), rgba(255, 255, 255, 0.68)),
    var(--field-bg);
}

.public-site-shell {
  width: min(520px, 100%);
  margin: 0 auto;
}

.public-site-preview {
  position: static;
  top: auto;
  max-height: none;
  overflow: visible;
  padding: 16px;
  border-radius: 24px;
}

.public-site-preview .preview-top {
  padding: 4px 4px 14px;
}

.public-site-preview .client-card {
  border-radius: 22px;
}

.public-site-preview .cover {
  height: auto;
  aspect-ratio: 2.32 / 1;
  border-radius: 20px 20px 0 0;
  background-repeat: no-repeat;
}

.public-site-preview .client-content {
  gap: 14px;
  padding: 24px 18px 18px;
}

.public-site-preview .booking-form {
  margin-top: 4px;
}

.public-site-preview .booking-result {
  margin-top: 2px;
}

.public-date-popover {
  z-index: 90;
  box-shadow: 0 18px 42px rgba(31, 35, 42, 0.14);
}

.public-site-footer {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

body.staff-schedule-page {
  min-height: 100vh;
  padding: 24px;
  overflow: auto;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--field-bg) 70%, white), rgba(255, 255, 255, 0.74)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    var(--field-bg);
}

.staff-schedule-shell {
  display: grid;
  width: min(880px, 100%);
  gap: 14px;
  margin: 0 auto;
}

.staff-schedule-hero,
.staff-schedule-panel {
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--accent-2));
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56)),
    color-mix(in srgb, var(--soft) 78%, white);
  box-shadow: 0 20px 54px rgba(32, 28, 24, 0.09);
}

.staff-schedule-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 24px;
}

.staff-schedule-hero h1 {
  margin: 4px 0 4px;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

.staff-schedule-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.staff-schedule-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
}

.staff-schedule-summary span {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.staff-schedule-summary strong {
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.staff-range-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 2px 4px;
  scroll-behavior: smooth;
}

.staff-range-nav a {
  display: inline-grid;
  min-width: max-content;
  min-height: 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--accent-2));
  border-radius: 15px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.staff-range-nav a.active {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 42%, white), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.staff-schedule-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.staff-day-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-gutter: stable;
}

.staff-day-button {
  display: grid;
  min-width: 86px;
  min-height: 58px;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
  color: var(--ink);
  text-align: left;
}

.staff-day-button:hover,
.staff-day-button:focus-visible {
  transform: none;
  filter: none;
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  outline: none;
}

.staff-day-button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: lowercase;
}

.staff-day-button strong {
  font-size: 18px;
  line-height: 1.1;
}

.staff-day-button.active {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 54%, white), rgba(255, 255, 255, 0.74));
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}

.staff-day-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 3px;
}

.staff-day-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.staff-day-heading strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.staff-schedule-list {
  display: grid;
  gap: 10px;
}

.staff-booking-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5)),
    color-mix(in srgb, var(--soft) 68%, white);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(32, 28, 24, 0.06);
}

.staff-booking-card[hidden] {
  display: none;
}

.staff-booking-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.staff-booking-card.is-muted {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.42)),
    color-mix(in srgb, var(--field-bg) 82%, white);
}

.staff-booking-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.staff-booking-date {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.staff-booking-top strong {
  display: block;
  color: var(--ink);
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1;
  letter-spacing: 0;
}

.staff-status {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--accent-2) 48%, white);
  color: color-mix(in srgb, var(--accent) 74%, #20232a);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.staff-status-canceled-client,
.staff-status-canceled-master,
.staff-status-no-show {
  background: rgba(244, 239, 241, 0.88);
  color: var(--muted);
}

.staff-status-completed {
  background: rgba(241, 244, 239, 0.92);
  color: #5f756b;
}

.staff-booking-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: 0;
}

.staff-booking-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.35;
}

.staff-booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.staff-booking-meta span {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.staff-schedule-empty {
  margin: 0;
  padding: 24px 14px;
  border: 1px dashed color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 18px;
  color: var(--muted);
  font-weight: 780;
  text-align: center;
}

@media (max-width: 680px) {
  body.staff-schedule-page {
    padding: 12px;
  }

  .staff-schedule-shell {
    gap: 11px;
  }

  .staff-schedule-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
    border-radius: 22px;
  }

  .staff-schedule-hero h1 {
    font-size: clamp(36px, 13vw, 54px);
  }

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

  .staff-schedule-panel {
    padding: 13px;
    border-radius: 22px;
  }

  .staff-day-heading {
    display: grid;
    align-items: start;
  }

  .staff-booking-card {
    padding: 14px;
    border-radius: 18px;
  }

  .staff-booking-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .staff-status {
    justify-self: start;
  }

  .staff-booking-card h2 {
    font-size: 23px;
  }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.metric-card {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid rgba(226, 221, 213, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.metric-card:hover,
.metric-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  outline: none;
  transform: translateY(-1px);
}

.metrics strong {
  font-size: 23px;
}

.metrics span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.metrics-detail {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58)),
    color-mix(in srgb, var(--field-bg) 74%, white);
}

.metrics-detail[hidden] {
  display: none;
}

.metrics-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metrics-detail-head strong {
  color: var(--ink);
  font-size: 14px;
}

.metrics-detail-head button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  color: var(--muted);
}

.booking-list {
  display: grid;
  gap: 8px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 3px;
}

.booking-list-item {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.booking-list-item strong {
  color: var(--ink);
  font-size: 13px;
}

.booking-list-item span,
.booking-list-item small,
.metrics-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.metrics-empty {
  margin: 0;
}

.bookings-agenda {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding-bottom: 8px;
}

.bookings-week-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
}

.bookings-week-head > div {
  min-width: 0;
}

.bookings-week-head strong {
  display: block;
  overflow: hidden;
  min-height: 23px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-nav {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 14px;
  font-size: 28px;
  line-height: 1;
}

.bookings-week {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 8px;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.bookings-day-tab {
  position: relative;
  display: grid;
  flex: 0 0 104px;
  min-height: 88px;
  gap: 4px;
  align-content: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  box-shadow: none;
  text-align: left;
}

.bookings-day-tab em {
  position: absolute;
  top: 9px;
  right: 10px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.66;
  text-transform: lowercase;
}

.bookings-day-tab span {
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.bookings-day-tab strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.bookings-day-tab small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bookings-day-tab.today {
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
}

.bookings-day-tab.has-bookings small {
  color: var(--accent);
}

.bookings-day-tab.active {
  border-color: var(--accent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--soft) 74%, white), rgba(255, 255, 255, 0.92));
  color: var(--accent);
}

.bookings-day-tab.active strong {
  color: var(--accent);
}

.bookings-day-tab.active em {
  color: var(--accent);
  opacity: 0.86;
}

.bookings-filter {
  display: grid;
  gap: 8px;
}

.bookings-employee-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bookings-employee-filter button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
  color: var(--ink);
}

.bookings-employee-filter button span {
  overflow: hidden;
  max-width: 210px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bookings-employee-filter button small {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--field-bg) 78%, white);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.bookings-employee-filter button.active {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  background: color-mix(in srgb, var(--soft) 72%, white);
  color: var(--accent);
}

.bookings-employee-filter button.active small {
  background: var(--accent);
  color: #fff;
}

.bookings-day {
  display: grid;
  gap: 16px;
  min-width: 0;
  container-type: inline-size;
}

.booking-agenda-card {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 14px 14px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  appearance: none;
  box-shadow: var(--shadow-soft);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.booking-agenda-card:hover {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  box-shadow: 0 16px 38px rgba(31, 33, 40, 0.08);
  transform: translateY(-1px);
}

.booking-agenda-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 3px;
}

.booking-agenda-time,
.booking-agenda-body {
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
}

.booking-agenda-time {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  margin: 0 0 12px;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, white);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.booking-agenda-time strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.booking-agenda-time span,
.booking-agenda-body small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.booking-agenda-body > strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 17px;
}

.booking-agenda-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.booking-agenda-title strong {
  flex: 1 1 160px;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.18;
}

.booking-status {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--soft) 68%, white);
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.booking-status-new {
  background: color-mix(in srgb, var(--soft) 70%, white);
  color: var(--accent);
}

.booking-status-confirmed {
  background: color-mix(in srgb, var(--accent) 13%, white);
  color: color-mix(in srgb, var(--accent) 78%, #111820);
}

.booking-status-completed {
  background: color-mix(in srgb, #76b98f 18%, white);
  color: #43765a;
}

.booking-status-canceled {
  background: color-mix(in srgb, #d7b8b0 32%, white);
  color: #8a5a51;
}

.booking-agenda-body > span {
  overflow-wrap: anywhere;
  word-break: normal;
  color: var(--accent);
  font-weight: 850;
  line-height: 1.22;
}

.booking-agenda-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.booking-agenda-meta span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--soft) 58%, white);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-agenda-duration {
  height: 8px;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 58%, white);
}

.booking-agenda-duration span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

@container (max-width: 680px) {
  .booking-agenda-card {
    padding: 13px;
  }
}

.section[data-panel="bookings"].active {
  overflow: visible;
}

.agenda-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--soft) 42%, white);
}

.booking-action-open {
  overflow: hidden;
}

.booking-action-modal[hidden] {
  display: none;
}

.booking-action-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.booking-action-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(23, 25, 31, 0.34);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.booking-action-dialog {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(22, 24, 31, 0.22);
}

.booking-action-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--field-bg) 76%, white);
  color: var(--ink);
  font-size: 25px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.booking-action-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding-right: 54px;
}

.booking-action-head h3 {
  margin: 2px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 0.98;
}

.booking-action-summary {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--field-bg) 78%, white);
}

.booking-action-summary strong {
  color: var(--ink);
  font-size: 24px;
}

.booking-action-summary span {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.booking-action-contact,
.booking-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.booking-action-contact button,
.booking-action-grid button,
.booking-action-form button {
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--soft) 58%, white);
  color: var(--accent);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.booking-action-contact button:hover,
.booking-action-grid button:hover {
  background: color-mix(in srgb, var(--soft) 76%, white);
}

.booking-action-section {
  margin-top: 20px;
}

.booking-action-section h4,
.booking-action-panel h4 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

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

.booking-action-panel {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.booking-history-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  color: var(--muted);
  font-weight: 820;
}

.booking-history-summary strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.booking-history-list {
  display: grid;
  gap: 8px;
  max-height: min(328px, 44vh);
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.booking-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  height: auto;
  min-height: 70px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 64%),
    color-mix(in srgb, var(--field-bg) 72%, #fff);
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}

.booking-history-item:hover,
.booking-history-item:focus-visible {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), transparent 64%),
    color-mix(in srgb, var(--field-bg) 86%, #fff);
}

.booking-history-item.current {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 9%, transparent);
}

.booking-history-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.booking-history-main strong,
.booking-history-main span,
.booking-history-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-history-main strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.booking-history-main span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.booking-history-main small {
  color: color-mix(in srgb, var(--muted) 76%, var(--ink));
  font-size: 11px;
  font-weight: 820;
}

.booking-history-item .booking-status {
  min-height: 28px;
  padding: 5px 10px;
  font-size: 12px;
}

.booking-action-panel-head h4 {
  margin: 0;
}

.booking-action-hint {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.booking-action-form {
  display: grid;
  gap: 12px;
}

.booking-action-form-inline {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
}

.booking-action-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.booking-action-form input,
.booking-action-form select,
.booking-action-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--field-bg) 78%, white);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.booking-action-form input,
.booking-action-form select {
  min-height: 50px;
  padding: 0 14px;
}

.booking-action-native-select {
  display: none !important;
}

.booking-form-select {
  position: relative;
  min-width: 0;
}

.booking-form-select-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--field-bg) 78%, white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.booking-form-select-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
  outline-offset: 3px;
}

.booking-form-select-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-form-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 12;
  display: none;
  max-height: 230px;
  overflow: auto;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 54px rgba(31, 33, 40, 0.16);
}

.booking-form-select.open .booking-form-select-menu {
  display: grid;
  gap: 4px;
}

.booking-form-select-option {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.booking-form-select-option:hover,
.booking-form-select-option.active {
  background: color-mix(in srgb, var(--soft) 72%, white);
  color: var(--accent);
}

.booking-action-form textarea {
  padding: 14px;
  resize: vertical;
}

.booking-action-form button {
  background: var(--accent);
  color: #fff;
}

.booking-action-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, #e6b9ae 34%, white);
  color: #8a4d43;
  font-weight: 850;
}

.agenda-empty strong {
  color: var(--ink);
}

.agenda-empty span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
}


@media (max-width: 1080px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-column: 1;
    grid-row: auto;
    min-height: auto;
  }

  .workspace {
    grid-column: 1;
    grid-row: auto;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .preview {
    position: static;
  }
}

@media (min-width: 1181px) {
  body {
    overflow: hidden;
  }

  .app {
    height: 100vh;
    min-height: 0;
  }

  .workspace {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .topbar {
    flex: 0 0 auto;
  }

  .layout {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
  }

  .editor {
    min-height: 0;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-gutter: stable;
  }

  .preview {
    position: relative;
    top: auto;
    align-self: stretch;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  body.public-site-page {
    overflow: auto;
  }

  .public-site-page .public-site-preview {
    position: static;
    align-self: auto;
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .section[data-panel="bookings"] .booking-agenda-card {
    padding: 13px;
  }
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .preview {
    position: static;
  }
}

@media (max-width: 900px) {
  .plan-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "note"
      "name"
      "price"
      "features";
    padding-right: 22px;
  }

  .plan-card em {
    justify-self: start;
  }

  .color-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .crop-grid {
    grid-template-columns: 1fr;
  }

  .crop-control {
    min-height: 118px;
    padding: 0;
  }

  .crop-control + .crop-control {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    padding-top: 18px;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .list-row.service > :nth-child(1),
  .list-row.service > :nth-child(2) {
    grid-column: span 6;
  }

  .list-row.service > :nth-child(3),
  .list-row.service > :nth-child(4),
  .list-row.service > :nth-child(5),
  .list-row.service > :nth-child(6) {
    grid-column: span 3;
  }

  .list-row.service > :nth-child(7) {
    grid-column: span 12;
    width: 40px;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .app,
  .app.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .workspace,
  .sidebar {
    padding: 15px;
  }

  .topbar,
  .row-head {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .actions,
  .manual-slot-form,
  .time-stepper,
  .grid.two,
  .grid.three,
  .plans-grid,
  .preset-picker,
  .template-picker,
  .inline-add,
  .specialty-picker,
  .theme-picker,
  .cover-picker,
  .channels-list,
  .channel-summary,
  .list-row,
  .list-row.employee {
    grid-template-columns: 1fr;
  }

  .actions {
    display: grid;
  }

  .topbar h2 {
    font-size: 28px;
  }

  .panel,
  .preview {
    border-radius: 18px;
  }

  .theme-picker,
  .cover-picker,
  .preset-picker,
  .template-picker {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .theme-choice,
  .cover-choice,
  .preset-card,
  .template-chip {
    flex: 0 0 168px;
    scroll-snap-align: start;
  }

  .theme-choice {
    flex-basis: 132px;
  }

  .preset-card {
    flex-basis: 226px;
  }

  .cover-choice {
    flex-basis: 186px;
  }

  .crop-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .crop-control {
    min-height: 136px;
    padding: 0;
  }

  .crop-control + .crop-control {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    padding-top: 18px;
  }

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

}

@media (max-width: 1180px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background-size: auto;
  }

  .app,
  .app.sidebar-collapsed {
    display: block;
    min-width: 0;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 8px;
    left: 8px;
    right: 8px;
    z-index: 80;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 12px;
    gap: 12px;
    border-radius: 0 0 20px 20px;
    transform: translate3d(0, 0, 0);
    transform-origin: top center;
    transition:
      transform 0.3s cubic-bezier(0.22, 0.8, 0.24, 1),
      border-radius 0.24s ease,
      opacity 0.2s ease,
      box-shadow 0.22s ease;
    will-change: transform;
  }

  .sidebar > * {
    transition:
      opacity 0.18s ease,
      transform 0.22s cubic-bezier(0.2, 0.72, 0.22, 1);
  }

  .app.mobile-nav-compact .sidebar {
    z-index: 80;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 12px;
    gap: 0;
    overflow: visible;
    border-radius: 0 0 16px 16px;
    opacity: 0.86;
    transform: translate3d(0, calc(-100% + 18px), 0);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(23, 27, 32, 0.12);
  }

  .app.mobile-nav-expanded .sidebar {
    z-index: 80;
    transform: translate3d(0, 0, 0);
    box-shadow: 0 18px 42px rgba(23, 27, 32, 0.2);
  }

  .app.mobile-nav-compact .sidebar > * {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }

  .app.mobile-nav-compact .sidebar::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transform: translateX(-50%);
  }

  .brand {
    gap: 10px;
    align-items: center;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .brand h1 {
    font-size: 17px;
  }

  .brand p {
    max-width: 260px;
    font-size: 11px;
    line-height: 1.25;
  }

  .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 1px 6px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 96px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
  }

  .plan-box {
    display: none;
  }

  .workspace {
    width: 100%;
    max-width: 100vw;
    padding: 230px 10px 28px;
    overflow: hidden;
  }

  .topbar {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .topbar h2 {
    max-width: 100%;
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.08;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .account-bar {
    gap: 10px;
    margin: 0 0 14px;
    padding: 9px;
    border-radius: 18px;
  }

  .account-quick {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .cabinet-picker {
    width: 100%;
  }

  .cabinet-picker-button {
    width: 100%;
    min-height: 40px;
    font-size: 14px;
  }

  .account-quick-actions {
    gap: 6px;
  }

  .account-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .cabinet-picker-menu {
    max-height: 210px;
  }

  .account-action-btn,
  .account-actions button,
  .account-actions .link-button {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .account-action-btn {
    width: auto;
  }

  .account-action-btn span:last-child {
    display: none;
  }

  .account-collapse-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .account-details {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .toast {
    bottom: 14px;
    font-size: 13px;
  }

  .actions button {
    width: 100%;
  }

  .layout,
  .layout.preview-hidden {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .editor,
  .preview {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .panel,
  .preview {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(28, 31, 36, 0.08);
  }

  .panel {
    padding: 16px;
    overflow: hidden;
  }

  .section[data-panel="bookings"].active {
    overflow: visible;
  }

  .panel.active {
    gap: 15px;
  }

  .panel-head h3,
  .preview-top h3 {
    font-size: 20px;
  }

  .panel-head p {
    font-size: 13px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .grid.two,
  .grid.three,
  .inline-add,
  .manual-slot-form,
  .list-row,
  .list-row.employee,
  .list-row.service,
  .time-stepper {
    grid-template-columns: minmax(0, 1fr);
  }

  .inline-add {
    display: grid;
    width: 100%;
  }

  input,
  select,
  textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  label {
    min-width: 0;
  }

  .theme-picker,
  .template-picker {
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 0 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .theme-picker {
    gap: 8px;
    padding: 2px 1px 10px;
  }

  .theme-picker::-webkit-scrollbar,
  .template-picker::-webkit-scrollbar {
    display: none;
  }

  .theme-choice,
  .template-chip {
    flex: 0 0 min(74vw, 320px);
    max-width: min(74vw, 320px);
    scroll-snap-align: start;
  }

  .theme-choice {
    flex-basis: min(68vw, 260px);
    max-width: min(68vw, 260px);
    height: 38px;
    padding: 4px;
    border-radius: 999px;
  }

  .theme-gradient {
    border-radius: 999px;
  }

  .custom-theme {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 13px;
    gap: 11px;
    overflow: hidden;
  }

  .custom-theme p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .custom-theme-preview {
    width: 100%;
    max-width: 100%;
    height: 40px;
    border-radius: 999px;
  }

  .color-fields {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .color-fields label {
    min-width: 0;
  }

  .color-fields input[type="color"] {
    width: 100%;
    min-width: 0;
    height: 38px;
    min-height: 38px;
    border-radius: 13px;
  }

  .segmented {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .segmented button {
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 13px;
  }

  .template-chip {
    flex-basis: min(76vw, 260px);
    max-width: min(76vw, 260px);
  }

  .list-row.service {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .service-drag-handle {
    display: none !important;
  }

  .list-row.service > :nth-child(1),
  .list-row.service > :nth-child(2),
  .list-row.service > :nth-child(7) {
    grid-column: 1 / -1;
  }

  .list-row.service > :nth-child(3),
  .list-row.service > :nth-child(4),
  .list-row.service > :nth-child(5),
  .list-row.service > :nth-child(6) {
    grid-column: span 1;
  }

  .list-row.service > :nth-child(7) {
    justify-self: end;
  }

  .staff-access-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
  }

  .staff-access-copy h4 {
    font-size: 15px;
  }

  .staff-access-link-btn,
  .staff-access-disconnect-btn {
    width: 100%;
    min-width: 0;
  }

  .staff-access-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .preset-picker {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: min(520px, 72vh);
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 92px 0;
    border-radius: 26px;
    scroll-snap-type: y mandatory;
    overscroll-behavior: contain;
    overflow-anchor: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(
      180deg,
      transparent 0,
      rgba(0, 0, 0, 0.06) 8%,
      rgba(0, 0, 0, 0.42) 18%,
      #000 31%,
      #000 76%,
      rgba(0, 0, 0, 0.42) 90%,
      transparent 100%
    );
  }

  .preset-picker::-webkit-scrollbar {
    display: none;
  }

  .preset-card {
    flex: 0 0 172px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 172px;
    border-radius: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transform: scale(0.9);
    opacity: 0.62;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    background-size: cover !important;
    background-repeat: no-repeat;
  }

  .preset-card.wheel-focus,
  .preset-card.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 18px 38px rgba(28, 31, 36, 0.16);
  }

  .preset-card.active::after {
    display: none;
  }

  .preset-card strong {
    font-size: 24px;
  }

  .preset-card span {
    display: none;
  }

  .preset-card {
    min-height: 172px;
    padding: 16px;
  }

  .preset-card strong {
    font-size: 24px;
  }

  .preset-card span {
    display: none;
  }

  .specialty-group {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    overflow: hidden;
  }

  .specialty-row {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    padding: 0;
    gap: 7px;
  }

  .check-chip {
    flex: 0 1 auto;
    min-height: 34px;
    padding: 8px 11px;
    font-size: 12px;
    white-space: nowrap;
  }

  .cover-library {
    grid-template-columns: 1fr;
  }

  .photo-library-modal {
    padding: 12px;
  }

  .photo-library-dialog {
    max-height: calc(100vh - 24px);
    padding: 14px;
    border-radius: 20px;
  }

  .photo-library-grid {
    grid-template-columns: 1fr;
  }

  .photo-library-image {
    min-height: 170px;
  }

  .crop-grid {
    grid-template-columns: 1fr;
  }

  .crop-control {
    min-height: 116px;
    padding: 0;
  }

  .crop-control + .crop-control {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    padding-top: 16px;
  }

  .preview {
    position: static;
    padding: 12px;
  }

  .preview-rail {
    display: none;
  }

  .layout.preview-hidden .preview {
    display: none;
  }

  .app[data-active-section="plans"] .preview,
  .app[data-active-section="plans"] .preview-rail,
  .app[data-active-section="team"] .preview,
  .app[data-active-section="team"] .preview-rail,
  .app[data-active-section="bookings"] .preview,
  .app[data-active-section="bookings"] .preview-rail,
  .app[data-active-section="channels"] .preview,
  .app[data-active-section="channels"] .preview-rail,
  .app[data-active-section="messages"] .preview,
  .app[data-active-section="messages"] .preview-rail {
    display: none;
  }

  .app[data-active-section="plans"] .topbar {
    display: none;
  }

  .preview-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    padding: 0 0 10px;
  }

  .preview-actions {
    display: flex;
    gap: 7px;
  }

  .preview-toggle {
    height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
  }

  .bookings-week-head {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .bookings-week-head strong {
    font-size: 15px;
  }

  .week-nav {
    width: 38px;
    min-height: 38px;
    border-radius: 13px;
    font-size: 24px;
  }

  .bookings-week {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 1px 1px 6px;
  }

  .bookings-day-tab {
    flex: 0 0 92px;
    min-height: 78px;
  }

  .bookings-employee-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .bookings-employee-filter button {
    flex: 0 0 auto;
  }

  .booking-agenda-card {
    padding: 13px;
  }

  .booking-agenda-title {
    align-items: flex-start;
  }

  .booking-status {
    max-width: 128px;
    text-align: center;
  }

  .booking-action-modal {
    align-items: end;
    padding: 0;
  }

  .booking-action-dialog {
    width: 100%;
    max-height: 88vh;
    padding: 20px;
    border-radius: 28px 28px 0 0;
  }

  .booking-action-head {
    padding-right: 48px;
  }

  .booking-action-contact,
  .booking-action-grid,
  .secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-action-form-inline {
    grid-template-columns: 1fr 1fr;
  }

  .booking-action-form-inline button {
    grid-column: 1 / -1;
  }

  .client-card {
    border-radius: 18px;
  }

  body.public-site-page {
    padding: 12px;
  }

  .public-site-preview {
    padding: 12px;
    border-radius: 20px;
  }

  .client-hero {
    min-height: 178px;
  }

  .client-content {
    padding: 16px;
  }

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

  .schedule-month-grid {
    gap: 5px;
  }

  .schedule-day {
    min-height: 34px;
    padding: 4px 2px;
    border-radius: 11px;
  }

  .schedule-card {
    gap: 11px;
    padding: 12px;
    border-radius: 16px;
  }

  .employee-time-settings,
  .employee-manual-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .employee-service-field,
  .employee-manual-date,
  .employee-manual-time,
  .employee-manual-capacity {
    min-width: 0;
    flex-basis: auto;
  }

  .employee-manual-form > button {
    width: 100%;
  }

  .employee-date-popover {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(32, 28, 24, 0.1);
  }

  .employee-date-grid {
    gap: 4px;
  }

  .employee-date-weekday,
  .employee-date-day {
    min-height: 30px;
    border-radius: 10px;
    font-size: 11px;
  }

  .employee-time-input-wrap {
    grid-template-columns: minmax(0, 1fr) 34px 38px;
  }

  .manual-slots-head {
    display: grid;
    gap: 4px;
  }

  .manual-slots-actions {
    display: grid;
    gap: 6px;
    padding: 8px;
  }

  .clear-day-btn {
    width: fit-content;
  }

  .employee-schedule-head {
    display: grid;
    gap: 10px;
  }

  .employee-schedule-head h4 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .schedule-collapse-btn {
    width: fit-content;
    min-height: 38px;
    padding: 0 14px;
  }

  .schedule-planner {
    gap: 9px;
    padding: 10px;
    border-radius: 15px;
  }

  .weekday-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .weekday-chip {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 8px;
  }

  .month-rule-head {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }

  .month-rule-head button {
    height: 34px;
    border-radius: 12px;
  }

  .schedule-legend {
    gap: 9px;
    font-size: 11px;
  }

  .schedule-hint {
    font-size: 11px;
  }

  .schedule-weekday {
    min-height: 19px;
    font-size: 10px;
  }

  .schedule-day strong {
    font-size: 12px;
  }

  .date-popover {
    max-width: calc(100vw - 46px);
    padding: 10px;
    border-radius: 18px;
  }

  .calendar-grid {
    gap: 4px;
  }

  .calendar-grid button {
    min-height: 34px;
    border-radius: 11px;
    font-size: 12px;
  }
}

@media (max-width: 1180px) {
  .section[data-panel="design"].active,
  .section[data-panel="services"].active {
    width: 100%;
    max-width: calc(100vw - 20px);
    overflow: hidden;
  }

  .section[data-panel="design"] .panel-head,
  .section[data-panel="services"] .panel-head {
    min-width: 0;
  }

  .section[data-panel="design"] .panel-head h3,
  .section[data-panel="services"] .panel-head h3 {
    font-size: clamp(21px, 7vw, 28px);
    line-height: 1.08;
  }

  .section[data-panel="design"] .panel-head p,
  .section[data-panel="services"] .panel-head p {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .section[data-panel="design"] .theme-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .section[data-panel="design"] .theme-choice {
    width: 100%;
    max-width: 100%;
    flex: none;
    height: 42px;
    padding: 5px;
  }

  .section[data-panel="design"] .custom-theme {
    width: 100%;
    max-width: 100%;
    padding: 12px;
  }

  .section[data-panel="design"] .custom-theme-preview,
  .section[data-panel="design"] .color-fields,
  .section[data-panel="design"] .text-tone,
  .section[data-panel="design"] .upload-field,
  .section[data-panel="design"] .crop-tools {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .section[data-panel="design"] .color-fields {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section[data-panel="design"] .segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .section[data-panel="services"] .row-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section[data-panel="services"] .row-head .secondary {
    width: 100%;
  }

  .section[data-panel="services"] .template-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .section[data-panel="services"] .template-chip {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .section[data-panel="services"] .list,
  .section[data-panel="services"] .list-row.service {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .section[data-panel="services"] .list-row.service {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section[data-panel="services"] .list-row.service > * {
    grid-column: 1 / -1 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .section[data-panel="services"] .list-row.service > .icon-button {
    width: 42px;
    justify-self: end;
  }

  .section[data-panel="employees"] .list-row.employee {
    padding: 16px;
    padding-bottom: 72px;
    width: 100%;
    max-width: 100%;
  }

  .section[data-panel="employees"] .employee-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .section[data-panel="employees"] .employee-chip-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .section[data-panel="employees"] .employee-chip {
    justify-content: start;
    width: 100%;
  }

  .section[data-panel="employees"] .employee-delete {
    top: auto;
    right: 16px;
    bottom: 16px;
  }
}

/* Current account shell */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.actions {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app.is-dirty .actions {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  margin: -6px 0 16px;
  padding: 8px 10px 8px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, #fff 88%, var(--soft));
  box-shadow: 0 16px 38px rgba(31, 35, 42, 0.08);
}

.account-bar[hidden] {
  display: none;
}

.account-cabinet {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 540px;
}

.cabinet-picker {
  width: 100%;
}

.account-quick-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.account-action-btn,
.account-icon-btn {
  min-height: 42px;
  border-radius: 14px;
}

.account-action-btn {
  min-width: auto;
  padding: 0 14px;
  gap: 8px;
}

.account-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
}

.account-action-icon,
.gear-icon,
.support-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.gear-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.gear-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.gear-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 4px;
  height: 28px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 999px transparent;
  transform: translateX(-50%);
  opacity: 0.9;
}

.support-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.support-icon::before {
  content: "?";
  position: absolute;
  inset: -3px 0 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.account-settings {
  position: relative;
}

.account-settings-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 700;
  width: min(370px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, #fff 92%, var(--soft));
  box-shadow: 0 24px 62px rgba(31, 35, 42, 0.16);
  backdrop-filter: blur(18px);
}

.account-settings-menu[hidden] {
  display: none;
}

.settings-section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.settings-section + .settings-section {
  margin-top: 8px;
}

.settings-section h4 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  font-size: 13px;
}

.settings-row span {
  color: var(--muted);
  font-weight: 750;
}

.settings-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-note {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.28;
}

.client-bot-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, #fff 78%, var(--soft));
}

.client-bot-switch label {
  position: relative;
  margin: 0;
}

.client-bot-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.client-bot-switch span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.client-bot-switch input:checked + span {
  background: color-mix(in srgb, var(--soft) 62%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 32%, var(--line));
  color: var(--ink);
}

.client-bot-switch input:focus-visible + span,
.client-bot-token-field input:focus-visible,
.client-bot-token-field button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 44%, transparent);
  outline-offset: 2px;
}

.client-bot-token {
  display: grid;
  gap: 6px;
}

.client-bot-token[hidden] {
  display: none;
}

.client-bot-token > label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.client-bot-token-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.client-bot-token-field input {
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  box-shadow: none;
}

.client-bot-token-field button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, #fff 82%, var(--soft));
  box-shadow: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.client-bot-warning {
  padding: 9px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--soft) 54%, #fff);
}

.settings-link {
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  background: color-mix(in srgb, #fff 82%, var(--soft));
  box-shadow: none;
  color: var(--ink);
  font-size: 13px;
}

.settings-link.danger {
  color: color-mix(in srgb, #8d3228 76%, var(--accent));
}

.settings-cabinets-list {
  display: grid;
  gap: 6px;
}

.settings-cabinet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-cabinet.active {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: color-mix(in srgb, var(--soft) 42%, #fff);
  color: var(--ink);
}

.toast {
  top: 18px;
  bottom: auto;
  z-index: 900;
  transform: translate(-50%, -12px) scale(0.98);
}

.toast.visible {
  transform: translate(-50%, 0) scale(1);
}

@media (max-width: 720px) {
  .app.is-dirty .actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    position: fixed;
    top: max(10px, calc(env(safe-area-inset-top, 0px) + 10px));
    left: 12px;
    right: 12px;
    z-index: 780;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel) 86%, transparent);
    box-shadow: 0 18px 52px rgba(34, 30, 26, 0.16);
    backdrop-filter: blur(18px);
  }

  .app.is-dirty .actions button {
    min-height: 48px;
    border-radius: 14px;
  }

  .account-bar {
    align-items: stretch;
    gap: 8px;
    margin: 0 0 14px;
    padding: 8px;
    border-radius: 18px;
  }

  .account-cabinet {
    max-width: none;
  }

  .account-quick-actions {
    gap: 6px;
  }

  .account-action-btn {
    width: 42px;
    padding: 0;
  }

  .account-site-btn span:last-child {
    display: none;
  }

  .account-settings-menu {
    position: fixed;
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 96px);
    overflow: auto;
  }

  .toast {
    top: 12px;
    bottom: auto;
    max-width: calc(100vw - 28px);
    font-size: 13px;
  }
}

/* Final polish: compact cabinet strip and readable booking cards. */
.account-bar {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: -4px 0 14px;
  padding: 8px 9px 8px 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.74)),
    color-mix(in srgb, var(--field-bg) 56%, #fff);
  box-shadow: 0 14px 34px rgba(31, 35, 42, 0.07);
}

.account-cabinet {
  max-width: none;
}

.cabinet-picker-button {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.56);
}

#cabinetPickerLabel {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-quick-actions {
  gap: 7px;
  flex-wrap: nowrap;
}

.account-action-btn,
.account-icon-btn {
  min-height: 40px;
  border-radius: 13px;
}

.account-action-btn {
  padding: 0 13px;
}

.account-icon-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
}

.account-settings-menu {
  z-index: 950;
  max-height: min(72vh, 620px);
  overflow: auto;
}

.booking-agenda-card {
  display: grid;
  gap: 10px;
  overflow: visible;
  padding: 12px;
  border-color: color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.66)),
    color-mix(in srgb, var(--field-bg) 28%, #fff);
  box-shadow: 0 16px 42px rgba(31, 35, 42, 0.06);
}

.booking-agenda-time {
  margin: 0;
  min-height: 48px;
  padding: 9px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.booking-agenda-time strong {
  font-size: 18px;
  letter-spacing: 0;
}

.booking-agenda-time span {
  justify-self: end;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--field-bg) 58%, #fff);
  color: var(--muted);
  white-space: nowrap;
}

.booking-agenda-body {
  gap: 7px;
  padding: 0 2px 2px;
}

.booking-agenda-title {
  align-items: center;
}

.booking-agenda-title strong {
  flex-basis: 180px;
  font-size: 18px;
}

.booking-status,
.booking-status-new,
.booking-status-confirmed,
.booking-status-completed,
.booking-status-canceled {
  border: 1px solid color-mix(in srgb, var(--line) 64%, transparent);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

.booking-agenda-body > span {
  color: var(--ink);
  font-size: 16px;
}

.booking-agenda-meta span {
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.booking-agenda-duration {
  height: 6px;
  background: color-mix(in srgb, var(--line) 44%, #fff);
}

.booking-agenda-duration span {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 58%, #fff), color-mix(in srgb, var(--accent-2) 42%, #fff));
}

@media (max-width: 980px) {
  .account-site-btn span:last-child {
    display: none;
  }
}

@media (max-width: 720px) {
  .account-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px;
  }

  .cabinet-picker-button {
    min-height: 38px;
    padding-inline: 10px;
  }

  .account-quick-actions {
    gap: 6px;
  }

  .account-action-btn,
  .account-icon-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .account-action-btn {
    padding: 0;
  }

  .account-settings-menu {
    top: 70px;
    right: 10px;
    left: 10px;
    max-height: calc(100vh - 88px);
  }

  .booking-agenda-card {
    gap: 9px;
    padding: 11px;
    border-radius: 18px;
  }

  .booking-agenda-time {
    min-height: 46px;
    border-radius: 15px;
  }

  .booking-agenda-title strong {
    flex-basis: 150px;
    font-size: 17px;
  }

  .booking-agenda-body > span {
    font-size: 15px;
  }
}

/* Final stable pass: compact top controls and single-piece booking cards. */
.account-bar:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  margin: -2px 0 16px;
  padding: 9px 10px 9px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    color-mix(in srgb, var(--field-bg) 38%, #fff);
  box-shadow: 0 16px 38px rgba(31, 35, 42, 0.07);
}

.account-cabinet,
.cabinet-picker {
  min-width: 0;
}

.cabinet-picker-button {
  width: 100%;
  min-height: 44px;
  padding: 0 12px 0 14px;
  border-color: transparent;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.cabinet-picker-button:hover,
.cabinet-picker-button:focus-visible {
  background: rgba(255, 255, 255, 0.58);
}

.cabinet-picker-arrow {
  width: 11px;
  height: 11px;
  border-width: 0 2px 2px 0;
}

.account-quick-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
  flex-wrap: nowrap;
}

.account-action-btn,
.account-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)),
    color-mix(in srgb, var(--field-bg) 28%, #fff);
  box-shadow: 0 10px 24px rgba(31, 35, 42, 0.05);
}

.account-action-btn {
  gap: 10px;
  padding: 0 18px;
}

.account-icon-btn {
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
}

.account-icon-btn .account-action-icon,
.account-icon-btn .gear-icon,
.account-icon-btn .support-icon {
  position: relative;
  z-index: 1;
}

.account-icon-btn::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--field-bg) 66%, #fff);
  opacity: 0.72;
}

.gear-icon {
  position: relative;
  width: 23px;
  height: 23px;
  border: 0;
  background: none;
}

.gear-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 12px 0 var(--ink);
}

.gear-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 5px;
  height: 5px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow:
    10px 6px 0 -2px #fff,
    10px 6px 0 0 var(--ink),
    3px 12px 0 -2px #fff,
    3px 12px 0 0 var(--ink);
}

.bookings-day {
  display: grid;
  gap: 14px;
  align-items: start;
  overflow: visible;
}

.booking-agenda-card,
.booking-agenda-card * {
  box-sizing: border-box;
}

.booking-agenda-card {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 12px !important;
  width: 100%;
  min-height: 178px;
  height: auto !important;
  padding: 17px 18px 15px !important;
  overflow: hidden !important;
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--accent) 20%);
  border-radius: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--field-bg) 28%, #fff), rgba(255, 255, 255, 0.82) 58%),
    #fff;
  box-shadow: 0 18px 46px rgba(31, 35, 42, 0.07);
  text-align: left;
  isolation: isolate;
}

.booking-agenda-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 16%, color-mix(in srgb, var(--field-bg) 70%, transparent), transparent 26%),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%);
  opacity: 0.45;
  z-index: -1;
}

.booking-agenda-card > * {
  position: relative !important;
  inset: auto !important;
  min-width: 0;
  transform: none !important;
}

.booking-agenda-time {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.booking-agenda-time strong {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(26px, 2.4vw, 34px) !important;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}

.booking-agenda-time span {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px !important;
  border-radius: 999px;
  background: color-mix(in srgb, var(--field-bg) 60%, #fff);
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.booking-agenda-body {
  position: relative !important;
  display: grid !important;
  gap: 9px !important;
  min-width: 0;
  padding: 0 !important;
  transform: none !important;
}

.booking-agenda-title {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.booking-agenda-title strong {
  flex: 1 1 auto !important;
  min-width: 0;
  max-width: none;
  color: var(--ink);
  font-size: clamp(21px, 1.75vw, 28px) !important;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.booking-status {
  flex: 0 0 auto;
  max-width: 42%;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--field-bg) 62%, #fff);
  color: color-mix(in srgb, var(--accent) 50%, var(--muted));
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.booking-agenda-body > span {
  display: block;
  min-width: 0;
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  font-size: clamp(17px, 1.4vw, 21px) !important;
  font-weight: 800;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.booking-agenda-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.booking-agenda-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-agenda-duration {
  width: 100%;
  height: 7px !important;
  margin-top: 1px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 42%, #fff);
}

.booking-agenda-duration span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 58%, #fff), color-mix(in srgb, var(--accent-2) 42%, #fff));
}

@media (min-width: 980px) {
  .section[data-panel="bookings"] .booking-agenda-card {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .account-bar:not([hidden]) {
    gap: 8px;
    min-height: 50px;
    margin: 0 0 12px;
    padding: 7px;
    border-radius: 18px;
  }

  .cabinet-picker-button {
    min-height: 40px;
    padding-inline: 10px;
  }

  .account-quick-actions {
    gap: 6px;
  }

  .account-action-btn,
  .account-icon-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }

  .account-site-btn span:last-child {
    display: none;
  }

  .booking-agenda-card {
    min-height: 162px;
    padding: 14px !important;
    border-radius: 22px;
  }

  .booking-agenda-time {
    min-height: 52px !important;
    gap: 10px;
  }

  .booking-agenda-time strong {
    font-size: 25px !important;
  }

  .booking-agenda-time span {
    min-height: 31px;
    padding: 6px 10px !important;
    font-size: 13px;
  }

  .booking-agenda-title {
    align-items: center;
  }

  .booking-agenda-title strong {
    font-size: 20px !important;
  }

  .booking-status {
    max-width: 48%;
    padding: 7px 10px;
    font-size: 13px;
  }

  .booking-agenda-body > span {
    font-size: 16px !important;
  }
}

/* 20260614 final: compact cabinet bar and stable booking cards */
.account-bar[hidden] {
  display: none !important;
}

.account-bar:not([hidden]) {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  margin: 0 0 18px;
  padding: 10px 12px 10px 20px;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--line) 82%, #fff);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 48px rgba(31, 35, 42, 0.08);
  backdrop-filter: blur(16px);
}

.account-cabinet,
.cabinet-picker {
  min-width: 0;
}

.cabinet-picker-button {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  width: min(100%, 520px);
  min-height: 44px !important;
  padding: 0 46px 0 14px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink);
  font-size: clamp(20px, 1.7vw, 28px) !important;
  font-weight: 900 !important;
  line-height: 1.05;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cabinet-picker-button:hover {
  background: color-mix(in srgb, var(--field-bg) 34%, transparent) !important;
}

.cabinet-picker-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateY(-68%) rotate(45deg);
  opacity: 0.86;
}

.account-quick-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}

.account-action-btn.account-site-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 46px !important;
  padding: 0 18px !important;
  border: 1px solid var(--line) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: var(--ink) !important;
  box-shadow: 0 10px 24px rgba(31, 35, 42, 0.04) !important;
  font-size: clamp(17px, 1.15vw, 22px) !important;
  font-weight: 900 !important;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.account-icon-btn {
  position: relative;
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 10px 24px rgba(31, 35, 42, 0.04) !important;
  color: var(--ink) !important;
}

.account-icon-btn::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 0;
  border-radius: 11px;
  background: color-mix(in srgb, var(--field-bg) 70%, #fff);
  opacity: 0.9;
}

.account-icon-btn > span,
.account-action-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 24px;
  height: 24px;
  color: currentColor;
}

.site-icon {
  border: 3px solid currentColor;
  border-radius: 5px;
}

.site-icon::before {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 12px;
  height: 12px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.site-icon::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 1px;
  width: 15px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.copy-icon::before,
.copy-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.copy-icon::before {
  left: 4px;
  top: 6px;
}

.copy-icon::after {
  left: 8px;
  top: 2px;
  background: color-mix(in srgb, var(--field-bg) 74%, #fff);
}

.gear-icon {
  background:
    linear-gradient(currentColor, currentColor) 2px 5px / 20px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 2px 11px / 20px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 2px 17px / 20px 3px no-repeat;
}

.gear-icon::before,
.gear-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 3px solid currentColor;
  border-radius: 999px;
  background: color-mix(in srgb, var(--field-bg) 82%, #fff);
}

.gear-icon::before {
  left: 6px;
  top: 1px;
  box-shadow: 9px 12px 0 -3px color-mix(in srgb, var(--field-bg) 82%, #fff),
    9px 12px 0 0 currentColor;
}

.gear-icon::after {
  right: 6px;
  top: 7px;
}

.support-icon {
  border: 3px solid currentColor;
  border-radius: 999px;
}

.support-icon::before {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.cabinet-picker-menu,
.account-settings-menu {
  z-index: 50;
}

.section[data-panel="bookings"] .booking-agenda {
  overflow: visible !important;
}

.section[data-panel="bookings"] .bookings-day {
  display: grid !important;
  gap: 14px !important;
  align-items: start !important;
  overflow: visible !important;
}

.section[data-panel="bookings"] .booking-agenda-card {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  gap: 14px !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 16px 18px !important;
  overflow: hidden !important;
  border: 1px solid color-mix(in srgb, var(--line) 74%, var(--accent) 12%) !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--field-bg) 18%, #fff), rgba(255, 255, 255, 0.92) 62%) !important;
  box-shadow: 0 14px 36px rgba(31, 35, 42, 0.06) !important;
  color: var(--ink);
  text-align: left;
  transform: none !important;
}

.section[data-panel="bookings"] .booking-agenda-card::before,
.section[data-panel="bookings"] .booking-agenda-card::after {
  display: none !important;
}

.booking-card-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--field-bg) 62%, #fff);
}

.booking-card-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 3px solid color-mix(in srgb, var(--accent) 38%, var(--muted));
  border-radius: 999px;
}

.booking-card-icon::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 14px;
  width: 8px;
  height: 10px;
  border-left: 3px solid color-mix(in srgb, var(--accent) 38%, var(--muted));
  border-bottom: 3px solid color-mix(in srgb, var(--accent) 38%, var(--muted));
  transform-origin: left bottom;
}

.booking-card-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.booking-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.booking-card-time {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(25px, 2.4vw, 36px);
  font-weight: 900;
  line-height: 1.03;
  white-space: nowrap;
}

.booking-card-badges {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 52%;
}

.booking-card-duration,
.booking-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--field-bg) 58%, #fff);
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}

.booking-card-badges .booking-status {
  flex: 0 1 auto;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
}

.booking-status-new {
  color: color-mix(in srgb, var(--accent) 62%, var(--muted));
}

.booking-status-confirmed {
  color: #4f8f67;
}

.booking-status-waiting {
  color: #b67722;
}

.booking-status-cancelled {
  color: #c85164;
}

.booking-card-client {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: clamp(19px, 1.55vw, 25px);
  font-weight: 900;
  line-height: 1.13;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  min-width: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.booking-card-meta span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-card-meta span + span::before {
  content: "";
  width: 1px;
  height: 15px;
  margin-right: 12px;
  background: color-mix(in srgb, var(--line) 80%, var(--muted));
}

.booking-card-chevron {
  width: 12px;
  height: 12px;
  border-right: 3px solid color-mix(in srgb, var(--muted) 72%, var(--ink));
  border-bottom: 3px solid color-mix(in srgb, var(--muted) 72%, var(--ink));
  transform: rotate(45deg);
  justify-self: center;
}

.booking-agenda-duration {
  display: block !important;
  width: 100%;
  height: 7px !important;
  margin-top: 2px !important;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 42%, #fff) !important;
}

.booking-agenda-duration span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 58%, #fff), color-mix(in srgb, var(--accent-2) 42%, #fff)) !important;
}

@media (max-width: 900px) {
  .account-bar:not([hidden]) {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .account-quick-actions {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 720px) {
  .account-bar:not([hidden]) {
    min-height: 50px;
    margin: 0 0 12px;
    border-radius: 18px;
  }

  .cabinet-picker-button {
    width: 100%;
    min-height: 40px !important;
    font-size: 18px !important;
  }

  .account-action-btn.account-site-btn,
  .account-icon-btn {
    min-height: 40px !important;
    height: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    border-radius: 13px !important;
  }

  .account-action-btn.account-site-btn {
    width: auto !important;
    min-width: 40px !important;
    padding: 0 12px !important;
    font-size: 0 !important;
  }

  .account-action-btn.account-site-btn span:last-child {
    display: none;
  }

  .section[data-panel="bookings"] .booking-agenda-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px !important;
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .booking-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .booking-card-icon::before {
    width: 17px;
    height: 17px;
    border-width: 2px;
  }

  .booking-card-icon::after {
    left: 19px;
    top: 13px;
    width: 7px;
    height: 8px;
    border-width: 2px;
  }

  .booking-card-top {
    align-items: flex-start;
    gap: 8px;
  }

  .booking-card-time {
    font-size: 24px;
  }

  .booking-card-badges {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    max-width: 42%;
  }

  .booking-card-duration,
  .booking-status {
    min-height: 27px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .booking-card-client {
    font-size: 20px;
  }

  .booking-card-meta {
    gap: 6px 10px;
    font-size: 13px;
  }

  .booking-card-meta span + span::before {
    height: 13px;
    margin-right: 10px;
  }

  .booking-card-chevron {
    display: none;
  }
}

/* 20260614 polish: final account icons and booking-card layout */
.gear-icon::before,
.gear-icon::after {
  display: none !important;
}

.gear-icon {
  width: 25px !important;
  height: 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 7px 5px, color-mix(in srgb, var(--field-bg) 86%, #fff) 0 3px, currentColor 3.4px 5.3px, transparent 5.8px),
    radial-gradient(circle at 17px 11px, color-mix(in srgb, var(--field-bg) 86%, #fff) 0 3px, currentColor 3.4px 5.3px, transparent 5.8px),
    radial-gradient(circle at 10px 17px, color-mix(in srgb, var(--field-bg) 86%, #fff) 0 3px, currentColor 3.4px 5.3px, transparent 5.8px),
    linear-gradient(currentColor, currentColor) 1px 5px / 22px 2.4px no-repeat,
    linear-gradient(currentColor, currentColor) 1px 11px / 22px 2.4px no-repeat,
    linear-gradient(currentColor, currentColor) 1px 17px / 22px 2.4px no-repeat !important;
}

.account-icon-btn,
.account-action-btn.account-site-btn,
.cabinet-picker-button {
  flex-shrink: 0;
}

.account-icon-btn:hover,
.account-action-btn.account-site-btn:hover,
.cabinet-picker-button:hover {
  transform: translateY(-1px);
}

.section[data-panel="bookings"] .bookings-day {
  display: grid !important;
  gap: 16px !important;
  align-items: stretch !important;
  overflow: visible !important;
}

.section[data-panel="bookings"] .booking-agenda-card {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 20px !important;
  gap: 14px !important;
  align-items: start !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 18px !important;
  overflow: hidden !important;
  contain: layout paint !important;
  isolation: isolate;
  text-align: left !important;
}

.section[data-panel="bookings"] .booking-agenda-card > * {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
}

.booking-card-main {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.booking-card-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.booking-card-time {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.booking-card-badges {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  gap: 8px !important;
  max-width: 48% !important;
}

.booking-card-client {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.booking-card-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px 12px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.booking-card-meta span {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: min(100%, 280px) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.booking-card-meta span + span::before {
  content: "" !important;
  flex: 0 0 auto !important;
}

.booking-card-stamp {
  display: inline-flex !important;
  justify-self: end !important;
  max-width: 100% !important;
  margin-top: -2px !important;
  overflow: hidden !important;
  color: color-mix(in srgb, var(--muted) 72%, var(--ink)) !important;
  font-size: 11px !important;
  font-weight: 820 !important;
  line-height: 1.15 !important;
  text-align: right !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  opacity: 0.74;
}

.section[data-panel="bookings"] .booking-agenda-duration {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: block !important;
  width: min(240px, 100%) !important;
  height: 7px !important;
  margin-top: 2px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
}

.section[data-panel="bookings"] .booking-agenda-duration span {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
}

.booking-card-chevron {
  position: relative !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  align-self: center !important;
  justify-self: center !important;
  opacity: 0.72;
}

.booking-card-chevron::before {
  content: "" !important;
  position: absolute !important;
  inset: 4px 3px 3px !important;
  border-right: 3px solid currentColor !important;
  border-bottom: 3px solid currentColor !important;
  transform: rotate(45deg) !important;
}

@media (max-width: 720px) {
  .account-bar:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .account-quick-actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .section[data-panel="bookings"] .booking-agenda-card {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 11px !important;
    padding: 14px !important;
  }

  .booking-card-top {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .booking-card-badges {
    max-width: 100% !important;
  }

  .booking-card-meta span {
    max-width: 100% !important;
  }

  .booking-card-stamp {
    justify-self: end !important;
    font-size: 10px !important;
  }

  .booking-card-chevron {
    display: none !important;
  }
}

/* 20260615 polish: compact top icons, booking glyphs, and popup stacking */
.account-bar {
  position: relative !important;
  z-index: 500 !important;
  overflow: visible !important;
}

.account-cabinet,
.account-quick-actions,
.account-settings,
.cabinet-picker {
  position: relative;
  overflow: visible !important;
}

.cabinet-picker-menu,
.account-settings-menu {
  z-index: 900 !important;
}

.account-icon-btn {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 14px !important;
}

.account-icon-btn::after {
  inset: 10px !important;
  border-radius: 10px !important;
}

.account-icon-btn > .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.account-icon-btn .account-action-icon,
.account-icon-btn .gear-icon,
.account-icon-btn .support-icon {
  width: 19px !important;
  height: 19px !important;
}

.account-action-btn.account-site-btn .account-action-icon {
  width: 20px !important;
  height: 20px !important;
}

.site-icon {
  border-width: 2.2px !important;
  border-radius: 4px !important;
}

.site-icon::before {
  right: -2px !important;
  top: -2px !important;
  width: 9px !important;
  height: 9px !important;
  border-top-width: 2.2px !important;
  border-right-width: 2.2px !important;
}

.site-icon::after {
  right: -1px !important;
  top: 2px !important;
  width: 12px !important;
  height: 2.2px !important;
}

.copy-icon::before,
.copy-icon::after {
  width: 11px !important;
  height: 11px !important;
  border-width: 2.2px !important;
  border-radius: 3px !important;
}

.copy-icon::before {
  left: 3px !important;
  top: 6px !important;
}

.copy-icon::after {
  left: 7px !important;
  top: 2px !important;
}

.gear-icon {
  width: 21px !important;
  height: 18px !important;
  background:
    radial-gradient(circle at 6px 4px, color-mix(in srgb, var(--field-bg) 88%, #fff) 0 2.4px, currentColor 2.8px 4.3px, transparent 4.7px),
    radial-gradient(circle at 15px 9px, color-mix(in srgb, var(--field-bg) 88%, #fff) 0 2.4px, currentColor 2.8px 4.3px, transparent 4.7px),
    radial-gradient(circle at 9px 14px, color-mix(in srgb, var(--field-bg) 88%, #fff) 0 2.4px, currentColor 2.8px 4.3px, transparent 4.7px),
    linear-gradient(currentColor, currentColor) 1px 4px / 19px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 1px 9px / 19px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 1px 14px / 19px 2px no-repeat !important;
}

.support-icon {
  border-width: 2.4px !important;
}

.support-icon::before {
  inset: -1px 0 0 !important;
  font-size: 13px !important;
}

.booking-card-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
}

.booking-card-icon::before {
  position: absolute !important;
  width: 21px !important;
  height: 21px !important;
  border-width: 2.4px !important;
  border-color: color-mix(in srgb, var(--accent) 34%, var(--muted)) !important;
}

.booking-card-icon::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 11px !important;
  height: 11px !important;
  border: 0 !important;
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 34%, var(--muted)), color-mix(in srgb, var(--accent) 34%, var(--muted))) 50% 0 / 2.4px 8px no-repeat,
    linear-gradient(color-mix(in srgb, var(--accent) 34%, var(--muted)), color-mix(in srgb, var(--accent) 34%, var(--muted))) 50% 50% / 7px 2.4px no-repeat;
  border-radius: 0 !important;
  transform: translate(-42%, -62%) !important;
  transform-origin: center !important;
}

.booking-card-chevron {
  width: 15px !important;
  height: 15px !important;
  color: color-mix(in srgb, var(--muted) 74%, var(--ink));
}

.booking-card-chevron::before {
  inset: 4px 3px 3px !important;
  border-right-width: 2.6px !important;
  border-bottom-width: 2.6px !important;
}

.booking-action-dialog {
  z-index: 1;
}

.booking-action-modal {
  z-index: 1600 !important;
}

.booking-action-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.booking-action-close {
  font-size: 0 !important;
}

.booking-action-close::before,
.booking-action-close::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.booking-action-close::before {
  transform: rotate(45deg);
}

.booking-action-close::after {
  transform: rotate(-45deg);
}

@media (max-width: 720px) {
  .account-icon-btn {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  .booking-card-icon {
    width: 34px !important;
    height: 34px !important;
  }

  .booking-card-icon::before {
    width: 18px !important;
    height: 18px !important;
  }
}

/* 20260615 polish: booking cards without edge icons */
.section[data-panel="bookings"] .booking-agenda-card {
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 18px 22px !important;
}

.booking-card-icon,
.booking-card-chevron {
  display: none !important;
}

.booking-card-main {
  width: 100% !important;
}

.booking-card-top {
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 12px !important;
}

.booking-card-time {
  flex: 0 0 auto !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.booking-card-badges {
  max-width: 100% !important;
  margin-left: auto !important;
}

.section[data-panel="bookings"] .booking-agenda-duration {
  width: min(420px, 100%) !important;
}

@media (max-width: 720px) {
  .section[data-panel="bookings"] .booking-agenda-card {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 14px 16px !important;
  }

  .booking-card-badges {
    justify-content: flex-start !important;
    margin-left: 0 !important;
  }

  .booking-card-badges .booking-status {
    font-size: 13px !important;
  }

  .booking-history-item {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .booking-history-item .booking-status {
    justify-self: start;
  }
}

/* 20260615 polish: quieter top account bar */
.account-bar:not([hidden]) {
  min-height: 58px !important;
  padding: 8px 10px 8px 18px !important;
  gap: 12px !important;
}

.cabinet-picker-button {
  min-height: 38px !important;
  padding: 0 34px 1px 10px !important;
  font-size: clamp(18px, 1.38vw, 24px) !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
}

#cabinetPickerLabel {
  display: block;
  padding-bottom: 1px;
}

.cabinet-picker-arrow {
  right: 14px !important;
  top: 50% !important;
  width: 16px !important;
  height: 16px !important;
  border: 0 !important;
  opacity: 0.72 !important;
  transform: translateY(-50%) !important;
}

.cabinet-picker-arrow::before {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 3px !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  border-radius: 1px !important;
  background: transparent !important;
  transform: rotate(45deg) !important;
}

.cabinet-picker-arrow::after {
  display: none !important;
}

.cabinet-picker.open .cabinet-picker-arrow::before {
  transform: rotate(225deg) translate(-2px, -2px) !important;
}

.account-quick-actions {
  gap: 8px !important;
}

.account-action-btn.account-site-btn {
  min-height: 40px !important;
  padding: 0 18px !important;
  gap: 0 !important;
  border-radius: 14px !important;
  font-size: clamp(15px, 1vw, 18px) !important;
  font-weight: 850 !important;
}

.account-site-btn .site-icon,
.account-site-btn .account-action-icon {
  display: none !important;
}

.account-icon-btn {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 13px !important;
}

.account-icon-btn::after {
  inset: 10px !important;
  border-radius: 9px !important;
  opacity: 0.72 !important;
}

.account-icon-btn .account-action-icon,
.account-icon-btn .gear-icon,
.account-icon-btn .support-icon {
  width: 16px !important;
  height: 16px !important;
}

.copy-icon::before,
.copy-icon::after {
  width: 9px !important;
  height: 9px !important;
  border-width: 2px !important;
  border-radius: 3px !important;
}

.copy-icon::before {
  left: 2px !important;
  top: 6px !important;
}

.copy-icon::after {
  left: 6px !important;
  top: 2px !important;
}

.gear-icon {
  width: 18px !important;
  height: 15px !important;
  background:
    radial-gradient(circle at 5px 3.5px, color-mix(in srgb, var(--field-bg) 88%, #fff) 0 2px, currentColor 2.4px 3.7px, transparent 4.1px),
    radial-gradient(circle at 13px 7.5px, color-mix(in srgb, var(--field-bg) 88%, #fff) 0 2px, currentColor 2.4px 3.7px, transparent 4.1px),
    radial-gradient(circle at 8px 12px, color-mix(in srgb, var(--field-bg) 88%, #fff) 0 2px, currentColor 2.4px 3.7px, transparent 4.1px),
    linear-gradient(currentColor, currentColor) 1px 3.5px / 16px 1.8px no-repeat,
    linear-gradient(currentColor, currentColor) 1px 7.5px / 16px 1.8px no-repeat,
    linear-gradient(currentColor, currentColor) 1px 12px / 16px 1.8px no-repeat !important;
}

.support-icon {
  border-width: 2.2px !important;
}

.support-icon::before {
  inset: -1px 0 0 !important;
  font-size: 11px !important;
}

@media (max-width: 720px) {
  .cabinet-picker-button {
    font-size: 18px !important;
  }

  .account-action-btn.account-site-btn {
    min-width: auto !important;
    padding: 0 14px !important;
    font-size: 15px !important;
  }
}

/* 20260615 polish: shrink cabinet selector to its title */
.account-bar:not([hidden]) {
  grid-template-columns: minmax(0, auto) max-content !important;
  justify-content: space-between !important;
}

.account-cabinet,
.cabinet-picker {
  width: fit-content !important;
  max-width: min(760px, calc(100vw - 420px)) !important;
}

.cabinet-picker-button {
  width: fit-content !important;
  max-width: min(760px, calc(100vw - 420px)) !important;
}

#cabinetPickerLabel {
  max-width: min(690px, calc(100vw - 480px)) !important;
  overflow: hidden !important;
  margin-right: 8px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.cabinet-picker-menu {
  width: max-content !important;
  min-width: 100% !important;
  max-width: min(760px, calc(100vw - 80px)) !important;
}

.cabinet-picker-option {
  max-width: min(720px, calc(100vw - 110px)) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .account-bar:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .account-cabinet,
  .cabinet-picker,
  .cabinet-picker-button {
    width: 100% !important;
    max-width: 100% !important;
  }

  #cabinetPickerLabel {
    max-width: calc(100vw - 112px) !important;
  }
}

/* 20260615 messages: automation scenarios */
.message-helper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.message-helper strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--field-bg) 62%, #fff);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

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

.message-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(31, 35, 42, 0.05);
}

.message-card.disabled {
  opacity: 0.56;
}

.message-card-head,
.broadcast-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.message-card h4,
.broadcast-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.12;
}

.message-card p,
.broadcast-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.message-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--field-bg) 54%, #fff);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.message-switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.message-timing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.message-timing > span:first-child {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0;
}

.message-delay-value,
.message-delay-unit,
.message-instant {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 850;
}

.message-delay-value {
  width: 72px;
  padding: 0 10px;
}

.message-delay-unit {
  width: 86px;
  padding: 0 10px;
}

.message-instant {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}

.message-card textarea,
.broadcast-text textarea {
  min-height: 108px;
  resize: vertical;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.42;
}

.broadcast-card {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.58)),
    color-mix(in srgb, var(--field-bg) 44%, #fff);
}

.broadcast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.broadcast-schedule {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.broadcast-schedule input {
  width: 100%;
}

.broadcast-picker-field {
  position: static;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.broadcast-picker-field input[type="hidden"] {
  display: none;
}

.broadcast-picker-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), color-mix(in srgb, var(--field-bg) 74%, white));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  font: inherit;
  text-align: left;
}

.broadcast-picker-button:hover,
.broadcast-picker-button:focus-visible {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--field-bg) 82%, white));
}

.broadcast-picker-button strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broadcast-picker-button.empty strong {
  color: var(--muted);
}

.broadcast-date-popover,
.broadcast-time-popover {
  position: absolute;
  z-index: 430;
  left: 0;
  top: calc(100% + 8px);
  width: min(540px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), color-mix(in srgb, var(--field-bg) 88%, white));
  box-shadow: 0 22px 58px rgba(32, 28, 24, 0.15);
}

.broadcast-date-popover[hidden],
.broadcast-time-popover[hidden] {
  display: none;
}

.broadcast-date-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.broadcast-date-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.broadcast-date-head button {
  min-height: 38px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  box-shadow: none;
  font-size: 24px;
  font-weight: 520;
}

.broadcast-date-head button:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent-2) 38%, white);
}

.broadcast-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.broadcast-date-weekday,
.broadcast-date-day {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 10px;
  font-size: 13px;
}

.broadcast-date-weekday {
  color: var(--muted);
  font-weight: 850;
}

.broadcast-date-day {
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-weight: 800;
}

.broadcast-date-day:hover:not(:disabled) {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
  background: color-mix(in srgb, var(--accent-2) 40%, white);
}

.broadcast-date-day.active,
.broadcast-time-option.active {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  background: var(--accent);
  color: #fff;
}

.broadcast-date-day.today:not(.active) {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
}

.broadcast-date-day.outside {
  color: var(--muted);
  opacity: 0.58;
}

.broadcast-date-day:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.34;
}

.broadcast-time-popover {
  right: 0;
  left: auto;
  width: min(420px, 100%);
  max-height: 284px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.broadcast-time-option {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: none;
  font-size: 14px;
  font-weight: 850;
}

.broadcast-time-option:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent-2) 38%, white);
}

.broadcast-text {
  display: grid;
  gap: 8px;
}

.broadcast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.broadcast-actions button {
  min-height: 44px;
}

.broadcast-status {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.broadcast-status strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.broadcast-status small {
  color: var(--muted);
  font-size: 12px;
}

.broadcast-status-ok {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, #fff);
}

.broadcast-status-warn,
.broadcast-status-error {
  border-color: color-mix(in srgb, #c09a65 32%, var(--line));
  background: color-mix(in srgb, #f2dfc2 22%, #fff);
}

.broadcast-history-block {
  display: grid;
  gap: 10px;
}

.broadcast-history-block h5 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.broadcast-history {
  display: grid;
  gap: 8px;
}

.broadcast-history > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.broadcast-history-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.broadcast-history-item:has(.broadcast-history-remove) {
  padding-right: 42px;
}

.broadcast-history-item > div:not(.broadcast-history-actions) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.broadcast-history-item strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.broadcast-history-item span,
.broadcast-history-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.broadcast-history-item .broadcast-history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.broadcast-history-remove {
  position: absolute;
  top: 9px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-2) 24%, rgba(255, 255, 255, 0.72));
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  box-shadow: none;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.broadcast-history-remove:hover {
  transform: none;
  background: color-mix(in srgb, var(--accent-2) 48%, white);
  color: color-mix(in srgb, var(--accent) 66%, var(--ink));
}

@media (max-width: 720px) {
  .message-card-head,
  .broadcast-head {
    display: grid;
  }

  .message-switch {
    width: fit-content;
  }

  .broadcast-grid,
  .broadcast-schedule {
    grid-template-columns: minmax(0, 1fr);
  }

  .broadcast-date-popover,
  .broadcast-time-popover {
    width: 100%;
    max-width: 100%;
  }

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

  .broadcast-actions {
    display: grid;
  }

  .broadcast-history-item {
    display: grid;
  }

  .broadcast-history-item .broadcast-history-actions {
    justify-content: space-between;
  }
}

/* 20260615 messages: soft selects */
.soft-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.soft-select {
  position: relative;
  z-index: 3;
  width: 100%;
}

.message-timing .soft-select {
  width: 86px;
  flex: 0 0 auto;
}

.soft-select-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68)),
    color-mix(in srgb, var(--field-bg) 44%, #fff);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(31, 35, 42, 0.04);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.1;
  text-align: left;
}

.message-timing .soft-select-button {
  min-height: 34px;
  border-radius: 12px;
  font-size: 13px;
}

.soft-select-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soft-select-button i {
  width: 9px;
  height: 9px;
  justify-self: center;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: translateY(-2px) rotate(45deg);
}

.soft-select.open .soft-select-button {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 11%, transparent);
}

.soft-select.open .soft-select-button i {
  transform: translateY(2px) rotate(225deg);
}

.soft-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  display: none;
  overflow: hidden;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    color-mix(in srgb, var(--field-bg) 72%, #fff);
  box-shadow: 0 20px 48px rgba(31, 35, 42, 0.16);
  backdrop-filter: blur(16px);
}

.soft-select.open .soft-select-menu {
  display: grid;
}

.message-timing .soft-select-menu {
  min-width: 112px;
}

.soft-select-option {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.soft-select-option:hover,
.soft-select-option.active {
  transform: none;
  background: color-mix(in srgb, var(--accent-2) 48%, #fff);
  color: color-mix(in srgb, var(--accent) 72%, var(--ink));
}

/* 20260616 in-cabinet notifications */
.account-notifications {
  position: relative;
  z-index: 1900;
}

.notification-bell-btn {
  position: relative;
  cursor: pointer;
}

.notification-bell-btn .notification-bell-icon {
  width: 18px !important;
  height: 18px !important;
}

.notification-bell-icon {
  position: relative;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-bell-icon::before,
.notification-bell-icon::after {
  content: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.notification-bell-icon path {
  vector-effect: non-scaling-stroke;
}

.notification-bell-icon::before {
  top: 1px;
  width: 9px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 5px 5px;
}

.notification-bell-icon::after {
  top: 10px;
  width: 12px;
  height: 5px;
  border-top: 2px solid currentColor;
  border-radius: 0 0 9px 9px;
  box-shadow: 0 3px 0 -1px currentColor;
}

.notification-badge {
  position: absolute;
  right: -7px;
  top: -7px;
  z-index: 5;
  width: auto !important;
  min-width: 19px !important;
  max-width: none !important;
  height: 19px !important;
  min-height: 19px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid color-mix(in srgb, var(--field-bg) 84%, #fff);
  border-radius: 999px;
  background: #df4f5d !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(223, 79, 93, 0.28);
  font-size: 10px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-align: center;
  white-space: nowrap;
}

.account-icon-btn > .notification-badge {
  position: absolute !important;
  display: inline-flex !important;
  width: auto !important;
  color: #fff !important;
}

.notifications-panel[hidden],
.notification-badge[hidden] {
  display: none !important;
}

.notifications-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 1910 !important;
  width: min(396px, calc(100vw - 28px));
  max-height: min(480px, calc(100vh - 128px));
  overflow: hidden;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62)),
    color-mix(in srgb, var(--field-bg) 58%, #fff);
  box-shadow: 0 28px 70px rgba(31, 35, 42, 0.16);
  backdrop-filter: blur(18px);
}

.notifications-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.notifications-panel-head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.notifications-panel-head strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.notifications-panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notifications-panel-head button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
}

.notifications-list {
  display: grid;
  gap: 8px;
  max-height: min(374px, calc(100vh - 214px));
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.notification-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: 102px;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 7%, var(--line));
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), transparent 62%),
    rgba(255, 255, 255, 0.64);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(14px) saturate(112%);
}

.notification-list-item:hover,
.notification-list-item:focus-visible {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), transparent 62%),
    rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 14px 30px color-mix(in srgb, var(--accent) 7%, transparent);
}

.notification-list-item.unread {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 44%, transparent), transparent 62%),
    color-mix(in srgb, var(--accent) 15%, rgba(250, 247, 250, 0.58));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent),
    0 14px 34px color-mix(in srgb, var(--accent) 10%, transparent);
}

.notification-list-item.unread .notification-list-copy strong {
  color: color-mix(in srgb, var(--accent) 52%, var(--ink));
}

.notification-list-item.unread .notification-list-copy span,
.notification-list-item.unread .notification-list-copy small {
  color: color-mix(in srgb, var(--accent) 26%, var(--muted));
}

.notification-list-item.spotlight {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.notification-list-copy,
.notification-toast-copy {
  display: grid;
  min-width: 0;
}

.notification-list-copy {
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.notification-list-copy strong,
.notification-toast-copy strong {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.12;
}

.notification-list-copy span,
.notification-toast-copy span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.22;
  text-overflow: ellipsis;
}

.notification-list-copy span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.notification-list-copy small,
.notification-toast-copy small {
  color: color-mix(in srgb, var(--muted) 78%, var(--ink));
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
}

.notifications-empty {
  margin: 12px 0 2px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.notification-toast-stack {
  position: fixed;
  top: 126px;
  right: 30px;
  z-index: 1500;
  display: grid;
  align-content: start;
  gap: 10px;
  width: min(390px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 148px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  scrollbar-width: none;
}

.notification-toast-stack::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.notification-toast-stack::-webkit-scrollbar-thumb {
  background: transparent;
}

.notification-toast {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  width: 100%;
  height: 106px;
  min-height: 106px;
  padding: 13px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 66%),
    rgba(250, 247, 250, 0.11) !important;
  background-clip: padding-box;
  color: var(--ink);
  box-shadow: 0 16px 42px rgba(31, 35, 42, 0.075);
  backdrop-filter: blur(7px) saturate(110%);
  pointer-events: auto;
  cursor: pointer;
  animation: notificationEnter 260ms ease both;
}

.notification-toast:hover,
.notification-toast:focus-visible {
  transform: none;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 66%),
    rgba(250, 247, 250, 0.14) !important;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--accent) 7%, rgba(31, 35, 42, 0.095));
}

.notification-toast.leaving {
  animation: notificationLeave 240ms ease forwards;
}

.notification-toast > .notification-glyph {
  display: none;
}

.notification-toast-copy {
  gap: 5px;
  justify-items: center;
  text-align: center;
}

.notification-toast-copy span {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.notification-glyph {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 24%, color-mix(in srgb, currentColor 18%, transparent), transparent 45%),
    color-mix(in srgb, var(--field-bg) 72%, transparent);
  color: color-mix(in srgb, var(--accent) 68%, var(--ink));
}

.notification-glyph::before,
.notification-glyph::after {
  content: "";
  position: absolute;
}

.notification-glyph-new::before {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.82;
}

.notification-glyph-new::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.notification-glyph-reschedule {
  color: color-mix(in srgb, var(--accent) 56%, #9b7a4d);
}

.notification-glyph-reschedule::before,
.notification-glyph-reschedule::after {
  width: 15px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.78;
}

.notification-glyph-reschedule::before {
  top: 9px;
  left: 7px;
  box-shadow: -3px 0 0 -1px currentColor;
}

.notification-glyph-reschedule::after {
  right: 7px;
  bottom: 9px;
  opacity: 0.5;
  box-shadow: 3px 0 0 -1px currentColor;
}

.notification-glyph-cancel {
  color: color-mix(in srgb, #b66f75 72%, var(--accent));
}

.notification-glyph-cancel::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.62;
}

.notification-glyph-cancel::after {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-42deg);
  opacity: 0.76;
}

.notification-glyph-info::before {
  width: 5px;
  height: 14px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
}

.notification-glyph-info::after {
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

@keyframes notificationEnter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notificationLeave {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-toast,
  .notification-toast.leaving {
    animation: none;
  }

  .notification-list-item,
  .notification-toast {
    transition: none;
  }
}

@media (max-width: 900px) {
  .notifications-panel {
    right: -92px;
    width: min(386px, calc(100vw - 22px));
  }

  .notification-toast-stack {
    top: 98px;
    right: 14px;
    width: calc(100vw - 28px);
  }
}

@media (max-width: 540px) {
  .notifications-panel {
    position: fixed;
    left: 11px;
    right: 11px;
    top: 86px;
    width: auto;
    max-height: calc(100vh - 104px);
  }

  .notifications-list {
    max-height: calc(100vh - 204px);
  }

  .notification-toast {
    height: 98px;
    min-height: 98px;
    border-radius: 16px;
  }
}

/* 20260616 mobile account bar + notifications */
@media (max-width: 720px) and (pointer: coarse) {
  .account-bar:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-content: stretch !important;
    gap: 12px !important;
    padding: 22px 18px !important;
  }

  .account-cabinet,
  .cabinet-picker,
  .cabinet-picker-button {
    width: 100% !important;
    max-width: 100% !important;
  }

  .cabinet-picker-button {
    min-height: 58px !important;
    padding: 0 42px 1px 22px !important;
    font-size: clamp(23px, 7vw, 32px) !important;
  }

  #cabinetPickerLabel {
    max-width: calc(100vw - 132px) !important;
    margin-right: 12px !important;
  }

  .account-quick-actions {
    justify-content: flex-end !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .account-action-btn.account-site-btn {
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    font-size: 0 !important;
  }

  .account-action-btn.account-site-btn span:last-child {
    display: none !important;
  }

  .account-action-btn.account-site-btn::before {
    content: "Сайт";
    position: relative;
    z-index: 1;
    color: currentColor;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
  }

  .account-icon-btn,
  .account-action-btn.account-site-btn {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--ink) !important;
  }

  .account-icon-btn::after {
    display: none !important;
  }

  .account-icon-btn .account-action-icon,
  .account-icon-btn .gear-icon,
  .account-icon-btn .support-icon {
    width: 15px !important;
    height: 15px !important;
  }

  .gear-icon {
    width: 17px !important;
    height: 15px !important;
    background:
      radial-gradient(circle at 4px 3px, currentColor 0 1.9px, transparent 2.2px),
      radial-gradient(circle at 13px 7.5px, currentColor 0 1.9px, transparent 2.2px),
      radial-gradient(circle at 7px 12px, currentColor 0 1.9px, transparent 2.2px),
      linear-gradient(currentColor, currentColor) 1px 3px / 15px 1.7px no-repeat,
      linear-gradient(currentColor, currentColor) 1px 7.5px / 15px 1.7px no-repeat,
      linear-gradient(currentColor, currentColor) 1px 12px / 15px 1.7px no-repeat !important;
  }

  .notifications-panel {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.4)),
      color-mix(in srgb, var(--field-bg) 34%, #fff) !important;
  }

  .notification-list-item {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 60%),
      rgba(255, 255, 255, 0.5) !important;
  }

  .notification-list-item.unread {
    background:
      linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 34%, rgba(255, 255, 255, 0.18)), transparent 62%),
      color-mix(in srgb, var(--accent) 12%, rgba(255, 255, 255, 0.7)) !important;
  }
}


