/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root,
[data-theme="night"] {
  --bg: #1a1a2e;
  --panel: #16213e;
  --panel2: #0f3460;
  --text: #eaeaea;
  --muted: #a0a0b8;
  --line: #2a2a45;
  --accent: #e94560;
  --accent-dim: #c73d54;
  --success: #4ecca3;
  --sidebar-width: 240px;
  --sidebar-width-collapsed: 72px;
  --sidebar-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-duration: 0.28s;
  --crm-bg-opacity: 1;
  --crm-surface-opacity: 0.92;
  --crm-calendar-event-opacity: 1;
}

[data-theme="day"] {
  --bg: #e8ecf4;
  --panel: #ffffff;
  --panel2: #dce4f5;
  --text: #1a1a2e;
  --muted: #5c5c78;
  --line: #c8d0e0;
  --accent: #d63851;
  --accent-dim: #b82f45;
  --success: #2d9a72;
}

[data-theme="vampire"] {
  --bg: #0a0306;
  --panel: #1a0810;
  --panel2: #2d0f1a;
  --text: #f5e6ea;
  --muted: #b8909a;
  --line: #3d1828;
  --accent: #c41e3a;
  --accent-dim: #9a1830;
  --success: #6b8f71;
}

[data-theme="anime"] {
  --bg: #12082a;
  --panel: #1e1045;
  --panel2: #2a1860;
  --text: #fff5ff;
  --muted: #c9b8e8;
  --line: #4a3080;
  --accent: #ff6bcb;
  --accent-dim: #e055b0;
  --success: #5eead4;
}

[data-theme="custom"] {
  --bg: #1a1a2e;
  --panel: #16213e;
  --panel2: #0f3460;
  --text: #eaeaea;
  --muted: #a0a0b8;
  --line: #2a2a45;
  --accent: #e94560;
  --accent-dim: #c73d54;
  --success: #4ecca3;
}

html[data-crm-appearance] body {
  position: relative;
  background: var(--bg);
}

html[data-crm-appearance][data-crm-has-bg] .login-page,
html[data-crm-appearance][data-crm-has-bg] .booking-page {
  background: transparent;
}

.crm-studio-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

html[data-crm-appearance] .crm-shell {
  position: relative;
  z-index: 1;
}

html[data-crm-appearance] .crm-sidebar,
html[data-crm-appearance] .crm-topbar,
html[data-crm-appearance] .crm-card,
html[data-crm-appearance] .crm-search,
html[data-crm-appearance] .login-card,
html[data-crm-appearance] .booking-card {
  background: color-mix(in srgb, var(--panel) calc(var(--crm-surface-opacity, 0.92) * 100%), transparent);
}

html[data-crm-appearance] .crm-nav a.active,
html[data-crm-appearance] .crm-nav a:hover {
  background: color-mix(in srgb, var(--panel2) calc(var(--crm-surface-opacity, 0.92) * 100%), transparent);
}

* {
  box-sizing: border-box;
}

html {
  font-size: var(--crm-font-size, 14px);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--crm-font-default, "Segoe UI", system-ui, sans-serif);
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
}

.btn-primary,
.btn-ghost,
.calendar-toolbar button {
  font-family: var(--crm-font-buttons, var(--crm-font-default, "Segoe UI", system-ui, sans-serif));
  font-size: var(--crm-font-size-buttons, var(--crm-font-size, 14px));
}

.crm-nav a,
.crm-nav-label,
.crm-link-muted {
  font-family: var(--crm-font-menu, var(--crm-font-default, "Segoe UI", system-ui, sans-serif));
  font-size: var(--crm-font-size-menu, var(--crm-font-size, 14px));
}

.crm-calendar-event:not(.cal-list-card),
.event-pill,
.cal-list-card-title {
  font-family: var(--crm-font-calendar-events, var(--crm-font-default, "Segoe UI", system-ui, sans-serif));
}

.cal-list-card,
.crm-record-content,
.modal.modal-appointment {
  font-family: var(--crm-font-record-content, var(--crm-font-default, "Segoe UI", system-ui, sans-serif));
}

.modal.crm-record-content {
  font-size: var(--crm-font-size-record-content, var(--crm-font-size, 14px));
}

a {
  color: inherit;
  text-decoration: none;
}

.crm-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  transition: grid-template-columns var(--sidebar-duration) var(--sidebar-ease);
}

.crm-shell.is-sidebar-collapsed {
  --sidebar-width: var(--sidebar-width-collapsed);
}

.crm-sidebar {
  position: relative;
  z-index: 10001;
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: padding var(--sidebar-duration) var(--sidebar-ease);
}

.crm-shell.is-sidebar-collapsed .crm-sidebar {
  padding: 20px 8px;
}

.crm-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 24px;
  min-height: 32px;
}

.crm-shell.is-sidebar-collapsed .crm-sidebar-header {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.crm-logo {
  margin: 0 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1;
  overflow: hidden;
}

.crm-shell.is-sidebar-collapsed .crm-logo {
  margin: 0;
  flex: none;
  justify-content: center;
}

.crm-logo-full,
.crm-logo-short {
  white-space: nowrap;
  transition:
    opacity calc(var(--sidebar-duration) * 0.85) var(--sidebar-ease),
    max-width var(--sidebar-duration) var(--sidebar-ease);
}

.crm-logo-full {
  opacity: 1;
  max-width: 180px;
  overflow: hidden;
}

.crm-logo-short {
  display: none;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  font-size: 18px;
}

.crm-shell.is-sidebar-collapsed .crm-logo-full {
  display: none;
  opacity: 0;
  max-width: 0;
}

.crm-shell.is-sidebar-collapsed .crm-logo-short {
  display: block;
  opacity: 1;
  max-width: 48px;
}

.crm-sidebar-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform var(--sidebar-duration) var(--sidebar-ease);
}

.crm-sidebar-toggle:hover {
  background: var(--panel2);
  color: var(--text);
  border-color: var(--muted);
}

.crm-shell.is-sidebar-collapsed .crm-sidebar-toggle svg {
  transform: rotate(180deg);
}

.crm-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1;
}

.crm-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  min-height: 44px;
  transition:
    padding var(--sidebar-duration) var(--sidebar-ease),
    gap var(--sidebar-duration) var(--sidebar-ease),
    background 0.15s ease,
    color 0.15s ease;
}

.crm-shell.is-sidebar-collapsed .crm-nav a {
  justify-content: center;
  gap: 0;
  padding: 12px;
}

.crm-nav-label {
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
  max-width: 160px;
  transition:
    opacity calc(var(--sidebar-duration) * 0.75) var(--sidebar-ease),
    max-width var(--sidebar-duration) var(--sidebar-ease);
}

.crm-shell.is-sidebar-collapsed .crm-nav-label {
  opacity: 0;
  max-width: 0;
  pointer-events: none;
}

.crm-nav a:hover {
  background: var(--panel2);
  color: var(--text);
}

.crm-nav a.active {
  background: linear-gradient(90deg, var(--accent), #ff6b8a);
  color: #fff;
}

.crm-nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
}

.crm-nav-icon svg {
  display: block;
}

.crm-nav-beacon {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 0 2px var(--panel);
  animation: crm-nav-beacon-pulse 1.6s ease-in-out infinite;
}

.crm-nav-beacon--icon {
  position: absolute;
  top: -1px;
  right: -1px;
}

.crm-nav a.active .crm-nav-beacon {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.55);
}

@keyframes crm-nav-beacon-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.2);
  }
}

.crm-sidebar-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.crm-link-muted {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  min-height: 40px;
  transition:
    padding var(--sidebar-duration) var(--sidebar-ease),
    gap var(--sidebar-duration) var(--sidebar-ease),
    color 0.15s ease,
    background 0.15s ease;
}

.crm-link-muted:hover {
  background: var(--panel2);
  color: var(--text);
}

.crm-shell.is-sidebar-collapsed .crm-link-muted {
  justify-content: center;
  gap: 0;
  padding: 8px;
}

.crm-main {
  padding: 12px 16px 80px;
  position: relative;
}

.crm-main-content {
  position: relative;
}

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

.crm-breadcrumb {
  font-size: 14px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.crm-title {
  font-size: 26px;
  font-weight: 700;
  margin: 4px 0 0;
  color: var(--text);
}

.crm-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.crm-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crm-search {
  width: 220px;
  max-width: 40vw;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
}

.crm-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.crm-icon-btn:hover {
  color: var(--text);
}

.crm-user-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel2);
  font-size: 14px;
  font-weight: 600;
}

.crm-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(233, 69, 96, 0.45);
  z-index: 50;
  line-height: 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.crm-fab svg {
  display: block;
}

.crm-fab:hover {
  background: var(--accent-dim);
}

.crm-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.crm-page-loader-shell {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

html.crm-is-loading {
  overflow: hidden;
}

html.crm-is-loading body {
  overflow: hidden;
}

.crm-page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  padding: 32px 24px;
}

.crm-page-loader-label {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.crm-page-loader-bar {
  width: min(320px, 78%);
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
  overflow: hidden;
}

.crm-page-loader-bar-fill {
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim));
  animation: crm-page-loader-slide 1.35s ease-in-out infinite;
}

@keyframes crm-page-loader-slide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.calendar-toolbar button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
  min-height: 40px;
}

.calendar-toolbar button.active {
  background: var(--accent);
  border-color: var(--accent);
}

.calendar-grid {
  display: grid;
  grid-template-columns: 56px repeat(5, 1fr);
  overflow-x: auto;
}

.calendar-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 48px;
  padding: 4px;
  position: relative;
  background: var(--panel);
}

.calendar-cell.time {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  padding-right: 8px;
  background: #121228;
}

.day-head {
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 8px 4px;
}

.event-pill {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 8px;
  padding: 4px 8px;
  color: #fff;
  font-size: calc(11px * var(--crm-font-scale-calendar-events, var(--crm-font-scale, 1)));
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appt-sketch-thumb {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 120ms ease, box-shadow 120ms ease;
  transform-origin: bottom right;
  position: relative;
  z-index: 2;
}

.appt-sketch-thumb:hover {
  transform: scale(3);
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  padding: 16px;
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
}

.modal.modal-appointment {
  max-width: min(96vw, 1560px);
  font-size: var(--crm-font-size-record-content, var(--crm-font-size, 14px));
}

.modal.modal-appointment h2,
.modal.crm-record-content h2 {
  font-size: calc(20px * var(--crm-font-scale-record-content, var(--crm-font-scale, 1)));
}

.modal h2 {
  margin: 0 0 16px;
  font-size: calc(20px * var(--crm-font-scale, 1));
}

.form-row {
  margin-bottom: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.form-grid .form-row {
  margin-bottom: 0;
}

.form-row-full {
  grid-column: 1 / -1;
}

.form-row label {
  display: block;
  font-size: calc(12px * var(--crm-font-scale, 1));
  color: var(--muted);
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: calc(14px * var(--crm-font-scale, 1));
}

.crm-font-settings-panel .crm-font-settings-ui-label,
.crm-font-settings-panel .crm-font-settings-hint,
.crm-font-settings-panel .form-row > label:not(.btn-ghost) {
  font-family: "Segoe UI", system-ui, sans-serif !important;
}

.crm-font-settings-panel .crm-font-settings-ui-label,
.crm-font-settings-panel .form-row > label:not(.btn-ghost) {
  font-size: 0.93em;
}

.crm-font-settings-panel .crm-font-settings-hint {
  font-size: 0.86em;
}

.crm-font-settings-panel .crm-font-settings-preview-line {
  font-size: 1em;
}

.crm-font-settings-panel .form-row input,
.crm-font-settings-panel .form-row select {
  font-size: 1em;
}

.crm-calendar-event:not(.cal-list-card) {
  font-size: calc(10px * var(--crm-font-scale-calendar-events, var(--crm-font-scale, 1)));
}

.cal-list-card {
  font-size: var(--crm-font-size-record-content, var(--crm-font-size, 14px));
}

.cal-list-card-title {
  font-size: var(--crm-font-size-calendar-events, var(--crm-font-size, 14px));
}

.form-row textarea {
  min-height: 72px;
  resize: vertical;
}

.form-row input[type="checkbox"],
.form-row input[type="radio"] {
  width: auto;
  min-width: 16px;
  height: 16px;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

.form-check-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
}

.form-row .form-check-list > label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  margin-bottom: 0;
  font-size: calc(14px * var(--crm-font-scale, 1));
  color: var(--text);
  cursor: pointer;
}

.form-row .form-check-list > label:hover {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-primary {
  flex: 1 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.btn-primary:disabled,
.btn-ghost:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
}

@media (max-width: 1200px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

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

.appointment-meta-spoilers {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin: 14px 0 4px;
}

.appointment-spoiler {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}

.appointment-spoiler > summary {
  cursor: pointer;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.appointment-spoiler > summary::-webkit-details-marker {
  display: none;
}

.appointment-spoiler > summary::before {
  content: "▸ ";
  color: var(--muted);
  font-weight: 400;
}

.appointment-spoiler[open] > summary::before {
  content: "▾ ";
}

.appointment-spoiler-body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
}

.appointment-spoiler-muted {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.google-calendar-preview-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.google-calendar-preview-time {
  font-size: 13px;
}

.google-calendar-preview-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.google-calendar-preview-link:hover {
  text-decoration: underline;
}

.google-calendar-preview-desc {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  color: var(--text);
  max-height: 280px;
  overflow-y: auto;
}

.appointment-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.appointment-history-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.appointment-history-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.appointment-history-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.appointment-history-action {
  font-weight: 600;
}

.appointment-history-user {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.appointment-history-lines {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

.data-table tbody tr.clickable-row {
  cursor: pointer;
}

.data-table tbody tr.clickable-row:hover {
  background: rgba(233, 69, 96, 0.08);
}

.crm-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.crm-row-action:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.crm-row-action--danger:hover:not(:disabled) {
  background: rgba(233, 69, 96, 0.15);
  color: var(--accent);
}

.crm-row-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 30% 20%, #2a1f3d 0%, var(--bg) 50%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.login-card h1 {
  margin: 0 0 8px;
  color: var(--accent);
}

.login-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.login-error {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 12px;
}

.booking-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
}

.booking-card {
  width: 100%;
  max-width: 520px;
  padding: 28px 24px 32px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.booking-card--success h1 {
  color: var(--success);
}

.booking-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--accent);
}

.booking-logo {
  display: block;
  max-height: 56px;
  max-width: 200px;
  margin-bottom: 16px;
  object-fit: contain;
}

.booking-lead {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.booking-muted {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.booking-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.booking-error {
  color: var(--accent);
  font-size: 13px;
  margin: 0;
}

.booking-form {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  margin-top: 8px;
}

.booking-datetime {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 12px;
  gap: 12px;
}

.booking-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.booking-service-options {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.booking-service-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.booking-service-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.booking-service-option:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
}

@media (max-width: 480px) {
  .booking-datetime {
    grid-template-columns: 1fr;
  }
}

.booking-sketch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.booking-sketch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  grid-gap: 8px;
  gap: 8px;
  margin-top: 10px;
}

.booking-sketch-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.booking-sketch-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-sketch-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.booking-submit {
  width: 100%;
}

.booking-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.booking-link-row input {
  flex: 1 1;
  min-width: 200px;
  font-size: 13px;
}

.form-row .password-input-wrap {
  display: flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.form-row .password-input-wrap:focus-within {
  border-color: var(--accent);
}

.form-row .password-input-wrap input {
  flex: 1 1;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 10px 4px 10px 12px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.form-row .password-input-wrap input:focus {
  outline: none;
}

.password-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 2px 0 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.password-toggle svg {
  stroke: currentColor;
}

.remember-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.crm-icon-btn.vk-bell,
.crm-icon-btn.vk-chats-btn {
  position: relative;
}

.crm-icon-btn.vk-chats-btn.has-unread {
  box-shadow: 0 0 0 2px rgba(0, 119, 255, 0.35);
}

.crm-icon-btn.vk-bell.has-unread {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.25);
}

.vk-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.vk-inbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.vk-inbox-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.vk-inbox-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  z-index: 130;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.vk-inbox-drawer.open {
  transform: translateX(0);
}

.vk-inbox-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.vk-inbox-drawer-actions {
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

.vk-inbox-drawer-list {
  flex: 1 1;
  overflow-y: auto;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vk-inbox-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel2);
  padding: 12px;
  cursor: pointer;
  color: var(--text);
}

.vk-inbox-item.unread {
  border-color: var(--accent);
  background: rgba(233, 69, 96, 0.08);
}

.vk-inbox-item:hover {
  border-color: var(--accent-dim);
}

.vk-inbox-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.vk-chats-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(720px, 100vw);
  height: 100vh;
  z-index: 131;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.vk-chats-drawer.open {
  transform: translateX(0);
}

.vk-chats-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.vk-chats-drawer-head-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.vk-chats-drawer-hint {
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
}

.vk-chats-drawer-hint--error {
  color: var(--accent);
}

.vk-chats-drawer-body {
  flex: 1 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
}

@media (max-width: 640px) {
  .vk-chats-drawer-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(140px, 38vh) 1fr;
  }
}

.vk-chats-list {
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vk-chats-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  color: var(--text);
}

.vk-chats-list-item:hover {
  background: var(--panel2);
}

.vk-chats-list-item.active {
  background: rgba(0, 119, 255, 0.12);
  border-color: rgba(0, 119, 255, 0.35);
}

.vk-chats-list-item.unread strong {
  color: var(--accent);
}

.vk-chats-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.vk-chats-avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0077ff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.vk-chats-list-item-main {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vk-chats-list-item-top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: baseline;
}

.vk-chats-list-item-top strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vk-chats-list-item-date {
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}

.vk-chats-list-item-preview {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vk-chats-list-item-badge {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.vk-chats-thread {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.vk-chats-thread--empty {
  align-items: center;
  justify-content: center;
}

.vk-chats-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.vk-chats-thread-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.vk-chats-thread-link:hover {
  text-decoration: underline;
}

.vk-chats-messages {
  flex: 1 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vk-chat-bubble,
.vk-chats-bubble {
  max-width: 85%;
  align-self: flex-start;
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
}

.vk-chat-bubble.out,
.vk-chats-bubble.out {
  align-self: flex-end;
  background: rgba(0, 119, 255, 0.2);
}

.vk-chats-bubble-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.vk-chats-bubble.has-sticker,
.vk-chat-bubble.has-sticker {
  background: transparent;
  padding: 4px 0;
}

.vk-msg-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vk-msg-text {
  margin: 0;
  font-size: 14px;
  white-space: pre-wrap;
}

.vk-msg-text--empty,
.vk-msg-text--muted {
  color: var(--muted);
}

.vk-msg-sticker img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(180px, 70vw);
  max-height: 180px;
  filter: drop-shadow(0 0 0 3px #fff);
}

.vk-msg-sticker--loading {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  animation: vk-sticker-pulse 1.2s ease-in-out infinite;
}

@keyframes vk-sticker-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

.vk-msg-photo img {
  display: block;
  max-width: min(260px, 85vw);
  border-radius: 8px;
}

.vk-msg-link {
  font-size: 13px;
  color: var(--accent);
}

.vk-msg-attachment-label {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.vk-chats-compose {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.vk-chats-compose textarea {
  width: 100%;
  resize: vertical;
  min-height: 56px;
}

.vk-compose-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vk-compose-actions .btn-primary {
  margin-left: auto;
}

.vk-quick-replies-picker {
  position: relative;
}

.vk-quick-replies-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 8px 12px;
}

.vk-quick-replies-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 150;
  width: min(320px, calc(100vw - 32px));
  max-height: min(320px, 50vh);
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vk-quick-replies-menu-hint {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
}

.vk-quick-replies-menu-hint a {
  color: var(--accent);
}

.vk-quick-replies-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.vk-quick-replies-item:hover {
  background: var(--panel2);
}

.vk-quick-replies-item strong {
  font-size: 13px;
}

.vk-quick-replies-item span {
  font-size: 12px;
  color: var(--muted);
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vk-quick-replies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vk-quick-replies-list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
}

.vk-quick-replies-list-item {
  flex: 1 1;
  min-width: 0;
}

.vk-quick-replies-list-item strong {
  display: block;
  margin-bottom: 6px;
}

.vk-quick-replies-list-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  white-space: pre-wrap;
}

.vk-inbox-toasts {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}

.vk-inbox-toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  animation: vk-toast-in 0.25s ease;
}

@keyframes vk-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vk-inbox-toast-body {
  flex: 1 1;
  min-width: 0;
}

.vk-inbox-toast-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.vk-inbox-toast-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

@media (max-width: 900px) {
  .crm-shell {
    grid-template-columns: 1fr;
  }
  .crm-main {
    padding: 10px 12px 80px;
  }
  .crm-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .crm-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.mobile-template-page {
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-gap: 20px;
  gap: 20px;
  padding: 8px 16px 24px;
}

.mobile-phone {
  position: relative;
  background: #0f1014;
  border: 1px solid #272836;
  border-radius: 24px;
  overflow: hidden;
}

.mobile-top,
.mobile-date-row,
.mobile-master-row {
  padding: 14px 14px 0;
}

.mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-top h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
}

.mobile-top-icons,
.mobile-bottom {
  display: flex;
  gap: 10px;
}

.mobile-top-icons button,
.mobile-bottom button,
.icon-box {
  width: 34px;
  height: 34px;
  border: 1px solid #2d2f3f;
  border-radius: 10px;
  background: #171925;
  color: #d7d9e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-date-row {
  display: grid;
  grid-template-columns: 42px 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
}

.date-pill {
  border-radius: 14px;
  border: 1px solid #323449;
  background: #141623;
  color: #9ca0b7;
  font-weight: 700;
  padding: 10px 8px;
}

.date-pill.active {
  color: #bc94ff;
  border-color: #8e5de3;
}

.mobile-master-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
}

.master-chip {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #151723;
  border: 1px solid #252739;
  border-radius: 14px;
  padding: 8px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #953df6, #d58fff);
}

.master-chip strong {
  display: block;
  font-size: 12px;
}

.master-chip span {
  font-size: 11px;
  color: #959ab1;
}

.timeline {
  margin: 12px 14px 0;
  border: 1px solid #232536;
  border-radius: 14px;
  background: #0f1119;
  position: relative;
  height: 540px;
  overflow: hidden;
}

.time-row {
  height: 48px;
  border-bottom: 1px solid #1d1f2d;
  padding: 10px 12px;
  color: #8d92ac;
  font-size: 13px;
}

.visit-card {
  position: absolute;
  left: 56px;
  right: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.visit-card.green {
  background: linear-gradient(180deg, #1f6c40, #1a4c30);
}

.visit-card.violet {
  background: linear-gradient(180deg, #6b4d98, #513476);
}

.visit-card.gold {
  background: linear-gradient(180deg, #6a5a1f, #534615);
}

.visit-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.visit-card p {
  margin: 4px 0;
  font-size: 12px;
  color: #d6d8e7;
}

.service-tag {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 4px 7px;
  font-size: 12px;
}

.mobile-fab {
  position: absolute;
  right: 18px;
  bottom: 62px;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 999px;
  background: #ba90ff;
  color: #2f1f4f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.mobile-bottom {
  border-top: 1px solid #242637;
  background: #10121a;
  padding: 8px 14px;
  justify-content: space-around;
}

.mobile-bottom button.active {
  color: #bc94ff;
}

.mobile-kit {
  border: 1px solid #25283a;
  border-radius: 16px;
  background: #121420;
  padding: 18px;
  align-self: start;
}

.mobile-kit h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.kit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
}

.kit-input label {
  display: block;
  font-size: 12px;
  color: #9ea2b8;
  margin-bottom: 6px;
}

.kit-input button,
.kit-row {
  width: 100%;
  border: 1px solid #2f3143;
  border-radius: 12px;
  background: #191b27;
  color: #eceef8;
  padding: 12px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
}

.kit-row {
  margin-top: 10px;
}

.kit-row.muted {
  color: #a7abc2;
}

.kit-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.kit-footer span {
  color: #b8bcd2;
  font-size: 14px;
}

.kit-footer button {
  border: 0;
  border-radius: 12px;
  background: #b68ff9;
  color: #211731;
  padding: 12px 14px;
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 1200px) {
  .mobile-template-page {
    grid-template-columns: 1fr;
  }
}

.mt-suite {
  padding: 8px 16px 24px;
}

.mt-suite-head h1 {
  margin: 0;
  font-size: 28px;
}

.mt-suite-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.mt-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.mt-phone {
  border: 1px solid #2a2d3f;
  border-radius: 22px;
  overflow: hidden;
  background: #0e0f15;
  min-height: 720px;
  position: relative;
}

.mt-phone-title {
  padding: 8px 12px;
  border-bottom: 1px solid #25283a;
  color: #a9afc8;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.mt-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px 8px;
}

.mt-topbar h2,
.mt-screen-head h2 {
  margin: 0;
  font-size: 20px;
}

.mt-icons {
  display: inline-flex;
  gap: 10px;
}

.mt-icons svg {
  color: #d7daea;
}

.mt-dates {
  display: grid;
  grid-template-columns: 36px 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
  padding: 0 14px;
}

.mt-date-icon,
.mt-date,
.mt-field,
.mt-list-item,
.mt-sheet button,
.mt-check-row {
  border: 1px solid #2f3246;
  background: #171a26;
  color: #e6e9f6;
  border-radius: 12px;
}

.mt-date-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mt-date {
  padding: 10px 8px;
  font-weight: 700;
}

.mt-date.active {
  border-color: #9f75ea;
  color: #c69cff;
}

.mt-masters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px;
  padding: 10px 14px 0;
}

.mt-masters article,
.mt-staff-list article,
.mt-sheet-user {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8f40f0, #d39bff);
  flex-shrink: 0;
}

.mt-avatar.small {
  width: 30px;
  height: 30px;
}

.mt-masters strong,
.mt-staff-list strong {
  font-size: 12px;
  display: block;
}

.mt-masters small,
.mt-staff-list small,
.mt-sheet-user small {
  color: #99a0be;
  font-size: 11px;
}

.mt-timeline {
  margin: 10px 14px 0;
  border: 1px solid #24283a;
  border-radius: 12px;
  height: 470px;
  position: relative;
  overflow: hidden;
  background: #0f1119;
}

.mt-timeline.compact {
  height: 330px;
}

.mt-time {
  height: 36px;
  border-bottom: 1px solid #1f2332;
  color: #8f96b3;
  font-size: 12px;
  padding: 8px 10px;
}

.mt-visit {
  position: absolute;
  left: 50px;
  right: 8px;
  border-radius: 10px;
  padding: 8px 9px;
  color: #f4f6ff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.34);
}

.mt-visit.green { background: linear-gradient(180deg, #1f6a3f, #1a4a2f); }
.mt-visit.violet { background: linear-gradient(180deg, #6f4d99, #553678); }
.mt-visit.gold { background: linear-gradient(180deg, #73611d, #5a4b15); }

.mt-visit header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.mt-visit p {
  margin: 4px 0;
  font-size: 12px;
}

.mt-visit span {
  display: inline-block;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 7px;
  padding: 3px 6px;
  font-size: 11px;
}

.mt-fab {
  position: absolute;
  right: 16px;
  bottom: 58px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  background: #b88eff;
  color: #2b1a45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mt-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid #25293b;
  background: #11141f;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
}

.mt-tabbar button {
  border: 0;
  background: transparent;
  color: #8e95b2;
}

.mt-tabbar button.active,
.mt-tabbar a.active {
  color: #c79eff;
}

.mt-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #121420;
  border-top: 1px solid #2d3147;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 14px;
}

.mt-sheet h3 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 18px;
}

.mt-sheet.dark {
  background: #0f1118;
}

.mt-picker {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: #9aa1bd;
}

.mt-picker strong {
  color: #eceffd;
  background: #232635;
  border-radius: 8px;
  padding: 4px 8px;
}

.mt-sheet button,
.mt-primary,
.mt-warning {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  font-weight: 700;
}

.mt-sheet button,
.mt-primary {
  border: 0;
  border-radius: 12px;
  background: #b88eff;
  color: #281b42;
}

.mt-screen-head {
  padding: 14px;
  display: grid;
  grid-template-columns: 28px 1fr 40px;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
}

.mt-screen-head.muted {
  border-bottom: 1px solid #24283a;
  background: #171923;
}

.mt-screen-head button {
  border: 0;
  background: transparent;
  color: #d7d9e7;
  font-size: 22px;
  padding: 0;
}

.mt-form,
.mt-online {
  padding: 0 14px 14px;
}

.mt-form h3,
.mt-online h3 {
  margin: 12px 0 8px;
}

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

.mt-field {
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mt-field.wide {
  width: 100%;
  margin-bottom: 8px;
}

.mt-field.muted {
  color: #afb5cd;
}

.mt-summary {
  margin: 12px 0 8px;
  display: flex;
  justify-content: space-between;
  color: #bac0d8;
  font-size: 13px;
}

.mt-warning {
  border: 0;
  border-radius: 10px;
  background: #847321;
  color: #f4ebbd;
}

.mt-list {
  padding: 8px 14px 72px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.mt-list-item {
  padding: 12px;
  width: 100%;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.mt-staff-list {
  padding: 8px 14px 220px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

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

.mt-card-row {
  border: 1px solid #2e3246;
  border-radius: 12px;
  padding: 12px;
  background: #181b28;
}

.mt-card-row strong {
  display: block;
  margin-bottom: 4px;
}

.mt-card-row span {
  color: #a8afc9;
  font-size: 13px;
}

.mt-check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
}

.mt-check-row input {
  accent-color: #ba90ff;
}

.mt-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mt-switch input {
  display: none;
}

.mt-switch span {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #2f3248;
  position: relative;
}

.mt-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d6daf0;
}

.mt-switch input:checked + span {
  background: #aa84f3;
}

.mt-switch input:checked + span::after {
  left: 21px;
}

/* ——— Mobile app (live CRM) ——— */
.mobile-app {
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: #0e0f15;
  color: #e6e9f6;
  display: flex;
  flex-direction: column;
  position: relative;
}

.mobile-app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #25283a;
  background: #0e0f15;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
}

.mobile-app-brand {
  font-weight: 700;
  font-size: 15px;
}

.mobile-app-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-app-user {
  font-size: 12px;
  color: #99a0be;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-app-logout {
  color: #99a0be;
  display: inline-flex;
}

.mobile-app-main {
  flex: 1 1;
  overflow: auto;
  padding-bottom: 72px;
}

.mobile-screen {
  min-height: calc(100dvh - 120px);
  position: relative;
  background: #0e0f15;
}

.mobile-screen-scroll {
  padding-bottom: 24px;
}

.mobile-tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  z-index: 60;
  border-radius: 16px 16px 0 0;
}

.mobile-tabbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  padding: 10px;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mobile-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.mobile-sheet-form {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow: auto;
}

.mt-sheet a {
  display: block;
  text-align: center;
  padding: 12px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid #2f3246;
  background: #171a26;
  color: #e6e9f6;
  text-decoration: none;
}

.mobile-label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  color: #99a0be;
}

.mobile-textarea {
  min-height: 80px;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}

.mobile-picker-list {
  max-height: 220px;
  overflow: auto;
  margin: 8px 0;
}

.mobile-masters-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 4px;
  grid-template-columns: unset;
}

.mobile-masters-scroll article {
  min-width: 140px;
  flex-shrink: 0;
}

.mobile-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
  gap: 10px;
  padding: 0 14px 24px;
}

/* --- Desktop gallery ------------------------------------------------------- */

.gallery-page {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.gallery-header {
  padding: 18px 20px;
}

.gallery-header-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.gallery-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex: 1 1;
  justify-content: flex-end;
  min-width: 280px;
}

.gallery-upload-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.gallery-upload-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.gallery-upload-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(240px, 2fr);
  grid-gap: 12px;
  gap: 12px;
}

.gallery-upload-desc {
  margin-bottom: 0;
}

.gallery-upload-hint,
.gallery-upload-error {
  margin: 10px 0 0;
  font-size: 13px;
}

.gallery-upload-hint {
  color: var(--muted);
}

.gallery-upload-error {
  color: var(--accent);
}

.gallery-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.gallery-upload-drop-hint {
  font-size: 13px;
  color: var(--muted);
}

.gallery-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.gallery-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.gallery-search-wrap {
  position: relative;
  flex: 1 1;
  min-width: 240px;
  max-width: 420px;
}

.gallery-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.gallery-search {
  width: 100%;
  max-width: none;
  padding-left: 42px;
}

.gallery-suggested-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.gallery-suggested-tags--inline {
  margin-top: 12px;
}

.gallery-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  min-height: 28px;
}

.gallery-tag-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-gap: 16px;
  gap: 16px;
  align-items: start;
}

.gallery-main {
  min-width: 0;
}

.gallery-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.gallery-main-head h2 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--panel2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.gallery-show-all {
  font-size: 13px;
  padding: 6px 12px;
  min-height: 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.gallery-card {
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  position: relative;
}

.gallery-card.is-dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

.gallery-card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #111;
  cursor: -webkit-grab;
  cursor: grab;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-card-media:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.gallery-card-media img,
.gallery-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 13px;
  background: var(--panel2);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.gallery-card-media:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-body {
  padding: 12px 14px 14px;
}

.gallery-card-body strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.gallery-card-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.gallery-card:hover .gallery-card-delete {
  opacity: 1;
}

.gallery-card-delete:hover {
  background: var(--accent);
}

.gallery-sidebar {
  padding: 16px;
  position: -webkit-sticky;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.gallery-sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

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

.gallery-album-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.gallery-album-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.gallery-album-row .gallery-album-item {
  flex: 1 1;
  min-width: 0;
}

.gallery-album-delete {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.gallery-album-delete:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.gallery-album-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.gallery-album-item:hover {
  background: var(--panel2);
}

.gallery-album-item.is-active {
  background: color-mix(in srgb, var(--accent) 14%, var(--panel2));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.gallery-album-item.is-drop-target {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 20%, var(--panel2));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}

.gallery-album-cover {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel2);
  color: var(--muted);
}

.gallery-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-album-cover--all {
  background: color-mix(in srgb, var(--accent) 18%, var(--panel2));
  color: var(--accent);
}

.gallery-album-meta {
  min-width: 0;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.gallery-album-meta strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-album-meta small {
  font-size: 12px;
  color: var(--muted);
}

.gallery-empty {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  place-items: center;
  padding: 48px 24px;
  color: var(--muted);
  text-align: center;
}

.gallery-empty p {
  margin: 0;
  max-width: 360px;
  line-height: 1.5;
}

.gallery-lightbox-overlay {
  padding: 24px;
  align-items: stretch;
}

.gallery-lightbox {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 420px);
  grid-gap: 0;
  gap: 0;
  width: 100%;
  max-width: 1200px;
  max-height: 92vh;
  margin: auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}

.gallery-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
}

.gallery-lightbox-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a12;
  min-height: 320px;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
}

.gallery-lightbox-no-media {
  color: var(--muted);
  padding: 48px;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 44px;
  height: 64px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-nav--prev {
  left: 12px;
}

.gallery-lightbox-nav--next {
  right: 12px;
}

.gallery-lightbox-panel {
  padding: 24px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
}

.gallery-lightbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.gallery-lightbox-head h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.gallery-lightbox-album {
  font-size: 13px;
  color: var(--muted);
}

.gallery-lightbox-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.gallery-lightbox-desc {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.gallery-lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-lightbox-muted {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.gallery-lightbox-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.gallery-lightbox-links .btn-ghost {
  font-size: 13px;
  padding: 6px 12px;
  min-height: 32px;
  text-decoration: none;
}

.gallery-lightbox-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--accent) !important;
}

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

  .gallery-upload-grid {
    grid-template-columns: 1fr;
  }

  .gallery-sidebar {
    order: -1;
    position: static;
    max-height: none;
  }

  .gallery-album-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .gallery-lightbox {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }

  .gallery-lightbox-panel {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

.mobile-gallery-card {
  border: 1px solid #2a2d3f;
  border-radius: 12px;
  overflow: hidden;
  background: #171a26;
  padding: 8px;
}

.mobile-gallery-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
}

.mobile-gallery-card strong {
  font-size: 12px;
  display: block;
}

.mobile-gallery-card small {
  color: #99a0be;
  font-size: 11px;
}

@media (min-width: 900px) {
  .mobile-app {
    box-shadow: 0 0 0 1px #25283a;
  }
}

/* Calendar list view (desktop + mobile) */
.cal-list-card-btn {
  text-align: left;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.cal-list-card,
.crm-calendar-event {
  opacity: var(--crm-calendar-event-opacity, 1);
}

.cal-list-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  border: none;
}

.cal-list-card-title {
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.cal-list-day-head {
  font-size: calc(12px * var(--crm-font-scale-default, var(--crm-font-scale, 1)));
}

.cal-list-status-tile {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: calc(20px * var(--crm-font-scale-record-content, var(--crm-font-scale, 1)));
  line-height: calc(20px * var(--crm-font-scale-record-content, var(--crm-font-scale, 1)));
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.36);
}

.cal-list-status-tile[data-active="1"] {
  border-color: rgba(255, 255, 255, 0.46);
  color: rgba(255, 255, 255, 0.8);
}

.cal-list-status-tile[data-status-active="1"] {
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 255, 255, 0.22);
}

.cal-list-service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: calc(12px * var(--crm-font-scale-record-content, var(--crm-font-scale, 1)));
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.mobile-schedule-list {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 56px);
  padding-bottom: 72px;
}

.mobile-list-toolbar {
  flex-shrink: 0;
  padding: 10px 14px 12px;
  border-bottom: 1px solid #25283a;
  background: #0e0f15;
  transition: max-height 160ms ease, padding 160ms ease, opacity 160ms ease;
  max-height: 120px;
  overflow: hidden;
}

.mobile-list-toolbar.is-collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
  opacity: 0;
  pointer-events: none;
}

.mobile-list-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-list-toolbar-row h2 {
  margin: 0;
  font-size: 20px;
}

.mobile-list-nav {
  margin-top: 10px;
  flex-wrap: wrap;
}

.mobile-list-nav-btn {
  width: 40px;
  min-height: 40px;
  padding: 0;
}

.mobile-list-month {
  flex: 1 1;
  text-align: center;
  font-size: 14px;
  color: #99a0be;
  text-transform: capitalize;
}

.mobile-list-density {
  display: inline-flex;
  gap: 6px;
}

.mobile-list-density .btn-ghost {
  width: 34px;
  min-height: 34px;
  padding: 0;
  font-weight: 900;
}

.mobile-list-scroll {
  flex: 1 1;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.mobile-list-loading {
  padding: 24px;
  color: #99a0be;
  text-align: center;
}

