/* JIVA HUB вЂ” РјРѕР±РёР»СЊРЅР°СЏ РІРµСЂСЃРёСЏ (в‰¤ 860px) */

.mob-tabbar {
  display: none;
}

/* Сводка карточки клиента — только для мобильной версии */
.m-summary {
  display: none;
}

.mob-only {
  display: none;
}

/* Плавающая кнопка создания — только мобильная версия */
.mob-fab {
  display: none;
}

.calendar-event__mob {
  display: none;
}

@media (max-width: 860px) {
  :root {
    --mob-header: 52px;
    --mob-tabbar: 56px;
    --mob-safe-b: env(safe-area-inset-bottom, 0px);
    --mob-safe-top: env(safe-area-inset-top, 0px);
    --mob-pad: 12px;
    --mob-touch: 44px;
    --mob-gap: 10px;
    --navbar-height: var(--mob-header);
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    padding-top: var(--mob-header);
    padding-bottom: calc(var(--mob-tabbar) + var(--mob-safe-b));
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
  }

  body::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    height: calc(var(--mob-tabbar) + var(--mob-safe-b));
    background: rgba(15, 14, 12, 0.97);
    border-top: 1px solid #2b2620;
    pointer-events: none;
  }

  body.mob-no-tabbar::after {
    display: none;
  }

  body.mob-no-tabbar {
    padding-bottom: var(--mob-safe-b);
  }

  main {
    padding-bottom: 0;
  }

  body.mob-no-tabbar main {
    padding-bottom: 0;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .container {
    padding: 0 var(--mob-pad);
    max-width: none;
  }

  /* ---------- РЁР°РїРєР° ---------- */

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 0;
    min-height: var(--mob-header);
    height: var(--mob-header);
    background: rgba(11, 11, 11, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #23201b;
  }

  .navbar__container {
    height: var(--mob-header);
    gap: 8px;
    padding: 0 var(--mob-pad);
    max-width: none;
  }

  .navbar__brand {
    font-size: 15px;
    gap: 7px;
    min-height: var(--mob-header);
  }

  .navbar__brand .brand__icon {
    width: 22px;
    height: 22px;
  }

  .navbar__brand .brand__icon::before {
    left: 50%;
    top: -3px;
    width: 17px;
    height: 8px;
    margin-left: -11px;
  }

  .navbar__brand .brand__icon::after {
    left: 50%;
    top: -6px;
    width: 5px;
    height: 5px;
  }

  .navbar__actions {
    margin-left: auto;
    gap: 6px;
  }

  .menu-toggle {
    display: none;
  }

  .user-badge {
    display: none;
  }

  .navbar__menu {
    display: none;
  }

  .snowfall {
    z-index: 210;
  }

  /* ---------- РќРёР¶РЅСЏСЏ РЅР°РІРёРіР°С†РёСЏ ---------- */

  .mob-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    height: calc(var(--mob-tabbar) + var(--mob-safe-b));
    padding-bottom: var(--mob-safe-b);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(15, 14, 12, 0.98);
    border-top: 1px solid #2b2620;
  }

  .mob-tabbar__a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #7a7267;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-tabbar__a svg {
    width: 21px;
    height: 21px;
    display: block;
  }

  .mob-tabbar__a.is-on {
    color: #f0a868;
  }

  .mob-tabbar__a.is-on::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: #f0a868;
  }

  .mob-tabbar__badge {
    position: absolute;
    top: 5px;
    left: calc(50% + 6px);
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 40px;
    background: #e05252;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mob-tabbar__badge[hidden] {
    display: none;
  }

  /* ---------- РњРµРЅСЋ СЂР°Р·РґРµР»Р° ---------- */

  .mob-menu-open .navbar__menu {
    display: block !important;
    position: fixed !important;
    top: var(--mob-header) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto;
    height: auto;
    max-height: none;
    z-index: 190;
    padding: 10px var(--mob-pad) 24px;
    background: #0b0b0b;
    border-top: 1px solid #23201b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
    visibility: visible;
    opacity: 1;
    transform: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    overscroll-behavior: contain;
  }

  body.mob-menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 185;
    background: transparent;
  }

  .mob-menu-open .menu__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .mob-menu-open .menu__item {
    width: 100%;
  }

  .mob-menu-open .menu__item--session {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid #2b2620;
  }

  .mob-menu-open .menu__item--session .menu__link {
    flex: 1 1 0;
    justify-content: center;
  }

  .mob-menu-open .menu__item--session .menu__link--logout {
    color: #ef9a9a;
  }

  .mob-menu-open .menu__link {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #23201b;
    background: #14120f;
    font-size: 15px;
    color: #f5efe7;
  }

  .mob-menu-open .menu__link.active {
    background: rgba(240, 168, 104, 0.12);
    border-color: rgba(240, 168, 104, 0.5);
    color: #f0a868;
  }

  .mob-menu-open .menu__item--dropdown {
    position: static;
  }

  .mob-menu-open .menu__link--dropdown {
    justify-content: space-between;
    gap: 8px;
  }

  .mob-menu-open .menu__chevron {
    margin-left: auto;
    width: 14px;
    height: 14px;
    transition: transform 0.18s ease;
  }

  .mob-menu-open .menu__item--dropdown.menu__item--open .menu__chevron {
    transform: rotate(180deg);
  }

  .mob-menu-open .menu__sublist {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    min-width: 0;
    margin: 6px 0 0;
    padding: 0 0 0 10px;
    background: transparent;
    border: none;
    border-left: 2px solid rgba(240, 168, 104, 0.35);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    grid-column: 1 / -1;
  }

  .mob-menu-open .menu__item--dropdown.menu__item--open .menu__sublist {
    display: grid;
  }

  .mob-menu-open .menu__sublink {
    justify-content: flex-start;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #23201b;
    border-radius: 10px;
    background: #14120f;
    font-size: 15px;
    color: #f5efe7;
  }

  .mob-menu-open .menu__sublink::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f0a868;
    flex-shrink: 0;
  }

  .mob-menu-open .menu__sublink:hover,
  .mob-menu-open .menu__sublink:active {
    color: #f0a868;
    border-color: rgba(240, 168, 104, 0.5);
    background: rgba(240, 168, 104, 0.1);
  }

  .mob-menu-open .menu__badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 40px;
    background: #f0a868;
    color: #0b0b0b;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .mob-menu-open .menu__badge[hidden] {
    display: none;
  }

  .menu-toggle.mob-open .toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.mob-open .toggle-line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.mob-open .toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* ---------- РљСѓРґР° РІС‹РІРѕРґРёС‚СЃСЏ РєРЅРѕРїРєР° РјРµРЅСЋ ---------- */

  .mob-menu-btn {
    position: fixed;
    top: 4px;
    right: 8px;
    z-index: 210;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #3b342c;
    background: #1a1714;
    cursor: pointer;
  }

  .mob-menu-btn.mob-open {
    background: #241f19;
  }

  /* ---------- Плавающая кнопка создания ---------- */

  .mob-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 16px;
    bottom: calc(var(--mob-tabbar) + var(--mob-safe-b) + 16px);
    z-index: 145;
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f0a868;
    color: #0b0b0b;
    box-shadow: 0 8px 22px rgba(240, 168, 104, 0.35), 0 2px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }

  .mob-fab:active {
    transform: scale(0.94);
    box-shadow: 0 4px 12px rgba(240, 168, 104, 0.3);
  }

  .mob-fab svg {
    width: 26px;
    height: 26px;
    display: block;
  }

  .mob-fab:focus-visible {
    outline: 2px solid #f5b87a;
    outline-offset: 3px;
  }

  .clients-sidebar__add,
  .employees-sidebar__add,
  #tasksNew {
    display: none !important;
  }

  /* ---------- Р Р°СЃРїРёСЃР°РЅРёРµ ---------- */

  .schedule-layout {
    padding: 8px var(--mob-pad) 0;
  }

  .dashboard-calendar {
    padding: 8px;
    border-radius: 14px;
    overflow: visible;
  }

  .dashboard-calendar__header {
    display: grid;
    grid-template-columns: var(--mob-touch) 1fr var(--mob-touch) var(--mob-touch);
    gap: 6px;
    margin-bottom: 8px;
  }

  .dashboard-calendar__nav,
  .dashboard-calendar__filters {
    position: static;
    transform: none;
  }

  .dashboard-calendar__nav {
    width: var(--mob-touch);
    height: var(--mob-touch);
    border-radius: 12px;
    border: 1px solid #2b2620;
    background: #14120f;
    color: #ddd4c7;
    align-items: center;
    justify-content: center;
  }

  .dashboard-calendar__nav svg {
    width: 20px;
    height: 20px;
  }

  .dashboard-calendar__title {
    min-width: 0;
    font-size: 17px;
    text-align: center;
    margin: 0;
  }

  .dashboard-calendar__filters {
    display: flex;
    margin: 0;
    width: 100%;
    order: 4;
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .calendar-status-select {
    width: 100%;
    min-height: var(--mob-touch);
    font-size: 15px;
    border-radius: 12px;
  }

  .dashboard-calendar__grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    grid-auto-flow: row;
  }

  .dashboard-calendar__grid > .calendar-cell--empty {
    display: none;
  }

  .dashboard-calendar__grid > .calendar-cell:not(.calendar-cell--empty):nth-child(8) {
    grid-column-start: var(--mob-first-day, 1);
  }

  .calendar-header {
    background: transparent;
    padding: 2px 0;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: #7a7267;
  }

  .calendar-cell {
    min-height: 64px;
    padding: 2px;
    gap: 1px;
    border: 1px solid #23201b;
    border-radius: 8px;
    background: #14120f;
    overflow: hidden;
    justify-content: flex-start;
  }

  .calendar-cell--empty {
    display: none;
  }

  .calendar-cell--empty .calendar-cell__date {
    display: none;
  }

  .calendar-cell--today {
    border-color: #f0a868;
  }

  .calendar-cell__date {
    font-size: 11px;
    font-weight: 600;
    color: #9e9487;
    padding: 0 1px 1px;
    border-bottom: none;
    line-height: 1;
    justify-content: flex-start;
    order: 0;
    margin-top: 0;
    flex-shrink: 0;
  }

  .calendar-cell__events {
    order: 1;
    flex: 1 1 auto;
  }

  .calendar-cell__date--today span:first-child {
    min-width: 16px;
    height: 16px;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
  }

  .calendar-cell__weekday {
    display: none;
  }

  .calendar-cell__events {
    gap: 1px;
  }

  .calendar-event {
    padding: 1px 2px;
    border-radius: 3px;
    border-left: 2px solid transparent;
    gap: 0;
    flex: 0 0 auto;
    min-height: 0;
  }

  .calendar-event:hover {
    transform: none;
    box-shadow: none;
  }

  .calendar-event .calendar-event__name {
    display: none;
  }

  .calendar-event .calendar-event__mob {
    display: block;
    min-width: 0;
    line-height: 1.1;
    overflow: hidden;
  }

  .calendar-event__mob-name {
    display: block;
    font-size: 9px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calendar-event__mob-time {
    display: block;
    font-size: 8px;
    font-weight: 500;
    opacity: 0.75;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    white-space: nowrap;
  }

  .calendar-event__compact {
    display: none;
  }

  .calendar-event__time {
    display: none;
  }

  .calendar-event__client,
  .calendar-event__service,
  .calendar-event__show,
  .calendar-event__staff,
  .calendar-event__cost {
    display: none;
  }

  .calendar-event__flag {
    width: 7px;
    height: 7px;
    top: 1px;
    right: 1px;
    font-size: 7px;
    opacity: 0.9;
  }

  .calendar-event--changed .calendar-event__name {
    padding-right: 0;
  }

  .calendar-event--changed .calendar-event__mob-name {
    padding-right: 6px;
  }

  .calendar-event__share {
    display: none !important;
  }

  .calendar-notice:empty {
    display: none;
  }

  /* ---------- РљР»РёРµРЅС‚С‹ ---------- */

  .clients-layout,
  .employees-layout,
  .money-layout {
    padding: 8px var(--mob-pad) 0;
    margin-left: 0;
    margin-right: 0;
    width: auto;
  }

  .clients-sidebar,
  .employees-sidebar,
  .money-sidebar {
    position: static;
    width: auto;
    max-height: none;
    margin: 0 0 10px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    gap: 8px;
  }

  .clients-title,
  .employees-title,
  .money-title {
    font-size: 20px;
    font-weight: 600;
    color: #f5efe7;
  }

  .clients-sidebar__add,
  .employees-sidebar__add {
    order: 9;
    width: 100%;
    min-height: 46px;
    justify-content: center;
    font-size: 15px;
  }

  .clients-filters,
  .employees-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .clients-sidebar .search-input,
  .clients-sidebar .filter-select,
  .clients-sidebar .city-filter,
  .employees-sidebar .search-input,
  .employees-sidebar .filter-select {
    width: 100%;
    min-height: var(--mob-touch);
    border-radius: 11px;
    font-size: 16px;
  }

  .city-filter {
    min-width: 0;
  }

  .clients-table-wrapper {
    overflow: visible;
  }

  .clients-table,
  .clients-table tbody {
    display: block;
    width: 100%;
  }

  .clients-table thead {
    display: none;
  }

  .clients-table tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "name name agency"
      "phone tg orders";
    grid-auto-rows: min-content;
    align-items: center;
    gap: 2px 8px;
    margin-bottom: 6px;
    padding: 8px 10px;
    border: 1px solid #2b2620;
    border-radius: 10px;
    background: #13110e;
    cursor: pointer;
  }

  .clients-table tbody tr.clients-table__row--high {
    background: #1a2f24;
    border-color: rgba(46, 125, 50, 0.55);
  }

  .clients-table tbody tr.clients-table__row--medium {
    background: #2f2513;
    border-color: rgba(230, 81, 0, 0.45);
  }

  .clients-table tbody tr.clients-table__row--low {
    background: #2f1b1b;
    border-color: rgba(224, 82, 82, 0.45);
  }

  .clients-table tbody td {
    display: none;
    padding: 0;
    border: 0 none !important;
    height: auto;
    width: auto !important;
    min-width: 0;
    max-width: none;
    white-space: normal;
    overflow-wrap: anywhere;
    background: transparent;
    box-shadow: none;
    outline: none;
    text-decoration: none;
    vertical-align: middle;
  }

  .clients-table tbody td.clients-table__name {
    grid-area: name;
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #f5efe7;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .clients-table tbody td.clients-table__phone {
    grid-area: phone;
    display: block;
    font-size: 12px;
    color: #9e9487;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .clients-table tbody td.clients-table__telegram {
    grid-area: tg;
    display: block;
    font-size: 12px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .clients-table tbody td.clients-table__telegram a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding: 0 10px;
    margin: -14px 0 -14px -10px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .clients-table tbody td.clients-table__agency {
    grid-area: agency;
    display: block;
    text-align: right;
    max-width: 38vw;
    font-size: 11px;
    color: #9e9487;
    background: transparent;
    border: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .clients-table tbody td.clients-table__cities {
    display: none;
  }

  .clients-table tbody td.clients-table__index {
    display: none;
  }

  .clients-table tbody td.clients-table__num {
    display: none;
  }

  .clients-table tbody td.clients-table__num[data-label="Р—Р°РєР°Р·С‹"] {
    display: inline-flex;
    grid-area: orders;
    justify-self: end;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #f0a868;
    white-space: nowrap;
  }

  .clients-table tbody td.clients-table__num[data-label="Р—Р°РєР°Р·С‹"]::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 400;
    color: #7a7267;
  }

  .clients-table tbody tr.clients-table__row--high td.clients-table__agency,
  .clients-table tbody tr.clients-table__row--medium td.clients-table__agency,
  .clients-table tbody tr.clients-table__row--low td.clients-table__agency {
    background: transparent;
  }

  .clients-table tbody tr:hover {
    filter: none;
  }

  /* ---------- РЎРѕС‚СЂСѓРґРЅРёРєРё ---------- */

  .employees-table,
  .employees-table tbody {
    display: block;
    width: 100%;
  }

  .employees-table thead {
    display: none;
  }

  .employees-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "who rate"
      "login login"
      "roles roles"
      "phone phone";
    grid-auto-rows: min-content;
    align-content: start;
    align-items: start;
    gap: 0 10px;
    margin-bottom: 6px;
    padding: 7px 10px 8px;
    border: 1px solid #2b2620;
    border-radius: 10px;
    background: #13110e;
    line-height: 1.2;
    cursor: pointer;
  }

  .employees-table tbody td {
    display: none;
    padding: 0 !important;
    border: 0 none !important;
    height: auto !important;
    width: auto !important;
    min-width: 0;
    white-space: normal;
    background: transparent;
    box-shadow: none;
  }

  .employees-table tbody td:nth-child(3)::before,
  .employees-table tbody td:nth-child(4)::before,
  .employees-table tbody td:nth-child(5)::before,
  .employees-table tbody td:nth-child(6)::before {
    content: none;
    display: none;
  }

  .employees-table tbody td:nth-child(2) {
    display: block;
    grid-area: who;
    align-self: center;
    overflow: hidden;
  }

  .employees-table tbody td:nth-child(3) {
    display: block;
    grid-area: login;
    font-size: 11px;
    color: #8f8579;
    align-self: start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .employees-table tbody td:nth-child(3)::before {
    content: '@';
    display: inline;
    color: #5f574d;
  }

  .employees-table tbody td:nth-child(4) {
    display: block;
    grid-area: roles;
    margin-top: 2px;
    font-size: 12px;
    color: #f0a868;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .employees-table tbody td:nth-child(5) {
    display: block;
    grid-area: phone;
    margin-top: 1px;
    font-size: 12px;
    color: #9e9487;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .employees-table tbody td:nth-child(5):empty,
  .employees-table tbody td:nth-child(4):empty,
  .employees-table tbody td:nth-child(3):empty,
  .employees-table tbody td:nth-child(6):empty {
    display: none !important;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
  }

  .employees-table tbody td:nth-child(6) {
    display: block;
    grid-area: rate;
    justify-self: end;
    align-self: center;
    font-size: 13px;
    font-weight: 600;
    color: #f0a868;
    white-space: nowrap;
  }

  .employees-table tbody td:nth-child(6)::before {
    content: none;
    display: none;
  }

  .employees-table tbody tr > td:first-child {
    display: none !important;
  }

  .employee-name-cell {
    gap: 0;
    line-height: 1.2;
  }

  .employee-name-cell__main {
    font-size: 14px;
    font-weight: 600;
    color: #f5efe7;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .employee-name-cell__sub {
    font-size: 11px;
    color: #7a7267;
    line-height: 1.15;
  }

  .employee-name-cell__main:empty,
  .employee-name-cell__sub:empty {
    display: none;
  }

  /* ---------- Р”РµРЅСЊРіРё ---------- */

  .money-tabs {
    flex-direction: row;
    gap: 2px;
    padding: 3px;
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .money-tabs::-webkit-scrollbar {
    display: none;
  }

  .money-tab {
    flex: 1 0 auto;
    width: auto;
    text-align: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 14px;
    white-space: nowrap;
  }

  .money-tab.active {
    background: #f0a868;
    color: #0b0b0b;
    font-weight: 600;
  }

  .money-searchbar__input {
    width: 100%;
    min-height: var(--mob-touch);
    border-radius: 11px;
    font-size: 16px;
  }

  .money-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .money-filter__control,
  .money-filter__input {
    min-height: var(--mob-touch);
    border-radius: 11px;
    font-size: 16px;
  }

  .money-filter__range {
    display: flex;
    gap: 8px;
  }

  .money-filter__row {
    flex: 1;
    min-width: 0;
  }

  .money-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .money-toolbar .money-searchbar {
    flex: 1 1 auto;
    min-width: 0;
  }

  .money-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: var(--mob-touch);
    padding: 0 12px;
    border-radius: 11px;
    border: 1px solid #2b2620;
    background: #14120f;
    color: #ddd4c7;
    font-size: 14px;
    cursor: pointer;
  }

  .money-filters-toggle svg {
    width: 16px;
    height: 16px;
  }

  .money-filters-toggle.is-on {
    border-color: rgba(240, 168, 104, 0.55);
    background: rgba(240, 168, 104, 0.12);
    color: #f0a868;
  }

  .money-filters-toggle__count {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 40px;
    background: #f0a868;
    color: #0b0b0b;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .money-filters-toggle.is-hidden {
    display: none;
  }

  .money-filters-toggle__count[hidden] {
    display: none;
  }

  .money-filter.is-collapsed {
    display: none;
  }

  .money-filters.is-payouts-mode {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
  }

  .money-filters.is-payouts-mode .money-filter {
    display: none;
  }

  .money-filters.is-payouts-mode .money-filters--payouts {
    display: flex;
  }

  .money-filters--payouts {
    padding: 0;
    border: none;
    background: transparent;
  }

  .money-filter.is-active {
    border-color: rgba(240, 168, 104, 0.45);
  }

  /* ---------- РСЃС‚РѕСЂРёСЏ РІС‹РїР»Р°С‚ ---------- */

  .pay-history__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name amount"
      "meta amount";
    gap: 1px 10px;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 4px;
    border: 1px solid #23201b;
    border-radius: 10px;
    background: #14120f;
    font-size: 14px;
  }

  .pay-history__date {
    display: none;
  }

  .pay-history__date {
    grid-area: date;
    font-size: 13px;
    align-self: center;
  }

  .pay-history__name {
    grid-area: name;
    align-self: end;
  }

  .pay-history__meta {
    grid-area: meta;
    font-size: 12px;
  }

  .pay-history__amount {
    grid-area: amount;
    align-self: center;
    white-space: nowrap;
    text-align: right;
    justify-self: end;
  }

  .pay-history__day {
    font-size: 11px;
    margin: 10px 0 2px;
  }

  /* ---------- РџСЂРѕС„РёР»СЊ ---------- */

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0 10px;
  }

  .profile-title {
    font-size: 22px;
  }

  .profile-subtitle {
    font-size: 13px;
  }

  .profile-logout-btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .profile-tabs {
    display: flex;
    gap: 2px;
    padding: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 12px;
    background: #0f0e0c;
    border: 1px solid #2b2620;
  }

  .profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .profile-tab-btn {
    flex: 1 0 auto;
    padding: 0 14px;
    min-height: 38px;
    border-radius: 9px;
    font-size: 14px;
    white-space: nowrap;
  }

  .profile-tab-btn.active {
    background: rgba(240, 168, 104, 0.14);
    color: #f0a868;
  }

  /* ---------- РЈСЃР»СѓРіРё ---------- */

  .services-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px var(--mob-pad) 0;
    margin-top: 0;
    height: auto;
    min-height: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }

  .services-tree,
  .services-content {
    min-width: 0 !important;
    flex: 0 0 auto;
    border: 1px solid #2b2620;
    border-radius: 12px;
    background: #13110e;
    overflow: hidden;
  }

  .services-tree {
    max-height: 300px;
    border-right: 1px solid #2b2620;
    border-bottom: 1px solid #2b2620;
  }

  .content-body {
    min-height: 220px;
  }

  .services-content {
    min-height: 300px;
  }

  .tree-header,
  .content-header {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .tree-header h3,
  .content-header h3 {
    font-size: 15px;
  }

  .tree-header .btn,
  .content-header .btn {
    min-height: 38px;
  }

  .tree-body {
    max-height: 260px;
    overflow-y: auto;
  }

  .tree-node {
    min-height: 44px;
  }

  /* ---------- Р§РµРє-Р»РёСЃС‚С‹ ---------- */

  .cl-header {
    padding-top: 8px;
  }

  .cl-header__top {
    gap: 8px;
  }

  .cl-title {
    font-size: 20px;
  }

  .cl-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cl-list {
    max-height: none;
    padding: 8px;
    border-radius: 12px;
  }

  .cl-list__item {
    min-height: 52px;
    justify-content: center;
  }

  .cl-editor {
    border-radius: 14px;
    padding: 12px;
    min-height: 200px;
  }

  /* ---------- Р—Р°РґР°С‡Рё ---------- */

  .tasks-page {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 4px 8px 0 !important;
    margin: 0 !important;
    gap: 8px;
    max-width: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .tasks-topbar,
  .tasks-shell,
  .tasks-side,
  .tasks-main,
  .tasks-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .tasks-side__tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tasks-side__tabs::-webkit-scrollbar {
    display: none;
  }

  .tasks-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
  }

  .tasks-topbar__left {
    gap: 8px;
  }

  .tasks-title {
    font-size: 20px;
  }

  .tasks-counter {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 40px;
    background: #f0a868;
    border-color: #f0a868;
    color: #0b0b0b;
    font-size: 12px;
    font-weight: 700;
  }

  .tasks-topbar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    justify-content: flex-end;
    order: 2;
  }

  .tasks-topbar__left {
    order: 1;
    margin-right: auto;
  }

  .tasks-search {
    flex: 1 1 100%;
    order: 3;
    min-width: 0;
    width: 100%;
    min-height: var(--mob-touch);
    padding: 0 12px;
    border-radius: 11px;
    gap: 8px;
  }

  .tasks-search svg {
    width: 16px;
    height: 16px;
  }

  .tasks-search input {
    font-size: 16px;
  }

  #tasksNew {
    order: 2;
    width: var(--mob-touch);
    height: var(--mob-touch);
    min-height: var(--mob-touch);
    padding: 0;
    border-radius: 12px;
    gap: 0;
    flex-shrink: 0;
  }

  #tasksNew .tasks-new__text {
    display: none;
  }

  #tasksNew svg {
    width: 20px;
    height: 20px;
  }

  .tasks-shell {
    display: block;
  }

  .tasks-side {
    border-radius: 12px;
    margin-bottom: 6px;
    background: transparent;
    border: none;
    overflow: visible;
  }

  .tasks-side__tabs {
    padding: 0;
    gap: 2px;
    border: 1px solid #2b2620;
    border-radius: 12px;
    padding: 3px;
    background: #0f0e0c;
    scrollbar-width: none;
  }

  .tasks-mode {
    flex: 1 0 auto;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 13px;
  }

  .tasks-mode.is-on {
    background: #f0a868;
    border-color: #f0a868;
    color: #0b0b0b;
    font-weight: 600;
  }

  .tasks-list {
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 6px;
  }

  .tasks-item {
    padding: 9px 10px;
    border: 1px solid #2b2620;
    border-radius: 10px;
    background: #13110e;
    border-left: 3px solid transparent;
    gap: 8px;
  }

  .tasks-item.is-on {
    border-color: rgba(240, 168, 104, 0.55);
    border-left-color: #f0a868;
  }

  .tasks-item__dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
  }

  .tasks-item__title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    -webkit-line-clamp: 3;
  }

  .tasks-item__meta {
    margin-top: 2px;
    gap: 5px;
    font-size: 12px;
    color: #7a7267;
  }

  .tasks-main {
    overflow: visible;
    padding-right: 0;
  }

  .tasks-card {
    max-width: none;
    padding: 10px;
    gap: 8px;
    border-radius: 12px;
  }

  .tasks-card__title {
    font-size: 18px;
  }

  .tasks-card__meta {
    font-size: 13px;
    gap: 6px;
  }

  .tasks-desc {
    font-size: 14px;
    padding: 10px 12px;
  }

  .tasks-block__k {
    font-size: 11px;
  }

  .tasks-person {
    font-size: 13px;
    padding: 3px 10px 3px 3px;
    min-height: 32px;
  }

  .t-ava {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .t-ava--sm {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .t-chip {
    font-size: 12px;
    padding: 0.1rem 0.6rem;
    min-height: 26px;
  }

  .tasks-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .t-act {
    min-height: var(--mob-touch);
    font-size: 14px;
    border-radius: 10px;
  }

  .tasks-comment {
    padding: 8px 10px;
    border-radius: 10px;
  }

  .tasks-comment p {
    font-size: 14px;
  }

  .tasks-add {
    gap: 8px;
    margin-top: 8px;
  }

  .tasks-add .t-input {
    min-height: var(--mob-touch);
    font-size: 16px;
    border-radius: 10px;
  }

  .tasks-add .btn {
    min-height: var(--mob-touch);
  }

  .tasks-card__foot {
    flex-direction: column;
    gap: 8px;
  }

  .tasks-card__foot .btn {
    width: 100%;
    min-height: var(--mob-touch);
  }

  .tasks-del {
    margin-left: 0;
  }

  .tasks-empty {
    padding: 24px 12px;
    font-size: 14px;
  }

  .tasks-editor {
    align-items: flex-end;
    padding: 0;
  }

  .tasks-editor__dialog {
    width: 100%;
    max-width: none;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
  }

  .tasks-editor__head {
    padding: 12px var(--mob-pad);
    position: sticky;
    top: 0;
    background: #13110e;
    z-index: 2;
  }

  .tasks-editor__title {
    font-size: 16px;
  }

  .t-icon-btn {
    width: 40px;
    height: 40px;
  }

  .tasks-editor__body {
    padding: 12px var(--mob-pad);
    gap: 12px;
  }

  .tasks-editor__foot {
    padding: 10px var(--mob-pad) calc(10px + var(--mob-safe-b));
    flex-wrap: wrap;
    background: #13110e;
    position: sticky;
    bottom: 0;
    z-index: 2;
  }

  .tasks-editor__foot .btn {
    flex: 1 1 0;
    min-height: var(--mob-touch);
  }

  .t-hint {
    flex: 1 1 100%;
    margin-right: 0;
    font-size: 12px;
  }

  .t-row {
    grid-template-columns: 1fr 1fr;
  }

  .t-row .t-field:first-child {
    grid-column: 1 / -1;
  }

  .t-field__k {
    font-size: 11px;
  }

  .t-input {
    min-height: var(--mob-touch);
    font-size: 16px;
    border-radius: 10px;
    padding: 0 12px;
  }

  .t-input--area {
    min-height: 96px;
    padding: 10px 12px;
  }

  .t-input[type="date"] {
    padding: 0 10px;
  }

  .t-picker__box {
    min-height: var(--mob-touch);
    border-radius: 10px;
    padding: 6px 8px;
    gap: 6px;
  }

  .t-picker__input {
    font-size: 16px;
  }

  .t-pick-chip {
    min-height: 30px;
    font-size: 13px;
    padding: 0.1rem 0.3rem 0.1rem 0.35rem;
  }

  .t-picker__drop {
    max-height: 42vh;
    overflow-y: auto;
  }

  .tasks-editor__dialog,
  .tasks-editor__body {
    overflow: visible;
  }

  .t-opt {
    min-height: var(--mob-touch);
    padding: 6px 10px;
  }

  .t-opt__who b {
    font-size: 15px;
  }

  /* ---------- РњРѕРґР°Р»СЊРЅС‹Рµ РѕРєРЅР° ---------- */

  .modal-overlay {
    align-items: flex-end;
    justify-content: stretch;
    padding: 0;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .modal {
    max-width: none;
    width: 100%;
    margin: 0;
    max-height: 90vh;
    max-height: calc(100dvh - var(--mob-safe-top) - 8px);
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .modal > .modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .modal__header {
    padding: 10px var(--mob-pad);
    position: sticky;
    top: 0;
    background: #13110e;
    z-index: 2;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }

  .modal__title {
    font-size: 16px;
  }

  .modal__close {
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    display: inline-flex;
  }

  .modal__body {
    padding: 12px var(--mob-pad);
    -webkit-overflow-scrolling: touch;
  }

  .modal__footer,
  .form-actions,
  .modal-actions {
    padding: 10px var(--mob-pad) calc(10px + var(--mob-safe-b));
    background: #13110e;
    position: sticky;
    bottom: 0;
    z-index: 2;
    gap: 8px;
  }

  .form-grid--2,
  .form-grid--3 {
    grid-template-columns: 1fr;
  }

  .form-input,
  .form-select,
  .form-textarea {
    min-height: var(--mob-touch);
    font-size: 16px;
    border-radius: 10px;
  }

  .btn {
    min-height: var(--mob-touch);
    font-size: 15px;
  }

  .btn-sm {
    min-height: 40px;
    font-size: 13px;
  }

  .modal--confirm {
    width: 100%;
    border-radius: 18px 18px 0 0;
  }

  .modal .modal__close,
  .modal .m-head .modal__close,
  .modal .p-head .modal__close {
    flex-shrink: 0;
    min-width: 40px;
    min-height: 40px;
  }

  /* ---------- РњРѕРґР°Р»СЊРЅРѕРµ РѕРєРЅРѕ Р·Р°РєР°Р·Р° ---------- */

  .modal--editor {
    width: 100%;
    max-width: none;
    height: calc(100vh - 40px);
    height: calc(100dvh - var(--mob-safe-top) - 8px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - var(--mob-safe-top) - 8px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .modal--editor .modal__header {
    flex-shrink: 0;
  }

  .modal--editor .modal__tabs {
    flex-shrink: 0;
    display: flex;
    gap: 3px;
    padding: 3px 8px;
    margin: 0;
    border-bottom: 1px solid #23201b;
    background: #13110e;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .modal--editor .modal__tabs::-webkit-scrollbar {
    display: none;
  }

  .modal--editor .modal__tabs-group {
    display: flex;
    gap: 3px;
    flex: 0 0 auto;
  }

  .modal--editor .modal__tabs-group--end {
    margin-left: 0;
  }

  .modal--editor .tab-btn {
    min-height: 36px;
    padding: 0 12px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #9e9487;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .modal--editor .tab-btn.active {
    background: rgba(240, 168, 104, 0.12);
    color: #f0a868;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(240, 168, 104, 0.45);
    border-bottom: none;
  }

  .modal--editor .tab-btn-wrap {
    display: flex;
  }

  .modal--editor .tab-badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .modal--editor .tab-btn[data-tab="extra"] {
    max-width: 128px;
    white-space: normal;
    line-height: 1.15;
    text-align: center;
    font-size: 12px;
    padding: 4px 10px;
  }

  .modal--editor .modal__tabs .tab-btn[data-tab="checklist"],
  .modal--editor .modal__tabs .tab-btn[data-tab="expenses"] {
    font-size: 12px;
  }

  .modal--editor .modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #0f0e0c;
  }

  .modal--editor .tab-content {
    display: none;
    overflow: visible;
    min-height: 0;
    padding: 0;
    flex: 0 0 auto;
  }

  .modal--editor .tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .modal--editor #tab-services.active,
  .modal--editor #tab-employees.active,
  .modal--editor #tab-expenses.active {
    display: flex;
    flex-direction: column;
  }

  .modal--editor .order-info-form,
  .modal--editor .order-show-tab,
  .modal--editor .order-show-panel,
  .modal--editor .order-show-list,
  .modal--editor .order-payment-tab,
  .modal--editor .order-checklist-tab,
  .modal--editor .order-expenses,
  .modal--editor .info-section__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    overflow: visible;
  }

  .modal--editor .order-show-card,
  .modal--editor .order-expense-card {
    background: #13110e;
    border: 1px solid #2b2620;
    border-radius: 12px;
    padding: 8px 10px;
  }

  .modal--editor .order-show-card__name {
    font-size: 14px;
    color: #f5efe7;
    overflow-wrap: anywhere;
  }

  .modal--editor .order-show-card__count,
  .modal--editor .order-show-staff {
    font-size: 12px;
    color: #9e9487;
  }

  .modal--editor .order-show-staff {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .modal--editor .employee-row,
  .modal--editor .employee-cell {
    font-size: 13px;
  }

  .modal--editor .services-table-wrapper,
  .modal--editor .services-catalog-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
  }

  .modal--editor .services-table-container,
  .modal--editor .employees-table-container {
    overflow: visible;
    max-height: none;
    flex: 0 0 auto;
  }

  .modal--editor .services-table-editor,
  .modal--editor .employees-table-editor {
    display: block;
    width: 100%;
    table-layout: auto;
  }

  .modal--editor .services-table-editor thead,
  .modal--editor .employees-table-editor thead {
    display: none;
  }

  .modal--editor .services-table-editor tbody,
  .modal--editor .employees-table-editor tbody {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .modal--editor .services-table-editor tbody tr,
  .modal--editor .employees-table-editor tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name remove"
      "meta meta";
    gap: 4px 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #23201b;
    border-radius: 10px;
    background: #14120f;
    box-shadow: none;
  }

  .modal--editor .services-table-editor tbody tr td,
  .modal--editor .employees-table-editor tbody tr td {
    display: block;
    padding: 0;
    border: none;
    color: #ddd4c7;
    font-size: 13px;
    min-width: 0;
  }

  .modal--editor .services-table-editor tbody tr td:nth-child(1),
  .modal--editor .employees-table-editor tbody tr td:nth-child(1) {
    grid-area: name;
    font-weight: 600;
    color: #f5efe7;
    overflow-wrap: anywhere;
  }

  .modal--editor .services-table-editor tbody tr td:nth-child(2),
  .modal--editor .services-table-editor tbody tr td:nth-child(3),
  .modal--editor .services-table-editor tbody tr td:nth-child(4),
  .modal--editor .employees-table-editor tbody tr td:nth-child(2),
  .modal--editor .employees-table-editor tbody tr td:nth-child(3) {
    grid-area: meta;
    display: inline-block;
    margin-right: 12px;
    color: #9e9487;
    font-size: 12px;
  }

  .modal--editor .services-table-editor tbody tr td:last-child,
  .modal--editor .employees-table-editor tbody tr td:last-child {
    grid-area: remove;
    justify-self: end;
    width: auto;
  }

  .modal--editor .services-table-editor .empty-row,
  .modal--editor .employees-table-editor .empty-row {
    display: block;
    background: transparent;
    border: none;
    padding: 0;
  }

  .modal--editor .services-catalog-list,
  .modal--editor .employees-list {
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal--editor .employees-container,
  .modal--editor .employees-container--in-show {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .modal--editor .employees-list-panel,
  .modal--editor .employees-container--in-show .employees-list-panel {
    width: 100%;
    min-width: 0;
    max-height: 260px;
    border-right: none;
    border: 1px solid #2b2620;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .modal--editor .employees-list-panel .panel-header {
    flex-shrink: 0;
    padding: 8px 10px;
  }

  .modal--editor .employees-list {
    flex: 1 1 auto;
    max-height: 200px;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 6px 6px;
  }

  .modal--editor .employees-table-wrapper,
  .modal--editor .employees-panel {
    width: 100%;
    min-width: 0;
    max-height: none;
    overflow: visible;
    border: 1px solid #2b2620;
    border-radius: 12px;
  }

  .modal--editor .show-tab {
    height: auto;
    gap: 8px;
    min-height: 0;
  }

  .modal--editor .show-tab__header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 10px;
    border: 1px solid #2b2620;
    border-radius: 12px;
    background: #13110e;
  }

  .modal--editor .show-unified-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border: 1px solid #2b2620;
    border-radius: 12px;
    background: #13110e;
  }

  .modal--editor .show-services-table__scroll {
    max-height: none;
    overflow: visible;
  }

  .modal--editor .show-services-table__table {
    display: block;
    width: 100%;
    table-layout: auto;
    font-size: 13px;
  }

  .modal--editor .show-services-table__table thead {
    display: none;
  }

  .modal--editor .show-services-table__table tbody {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .modal--editor .show-services-table__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #23201b;
    border-radius: 10px;
    background: #14120f;
  }

  .modal--editor .show-services-table__row td {
    display: block;
    padding: 0;
    border: none;
    font-size: 12px;
    color: #9e9487;
  }

  .modal--editor .show-services-table__row td:first-child {
    grid-column: 1;
    font-size: 14px;
    font-weight: 600;
    color: #f5efe7;
    overflow-wrap: anywhere;
  }

  .modal--editor .show-services-table__row td:last-child {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    color: #f0a868;
    font-weight: 600;
  }

  .modal--editor .show-services-table__row td:not(:first-child):not(:last-child) {
    grid-column: 1 / -1;
    display: inline-block;
    margin-right: 12px;
  }

  .modal--editor .info-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px 10px;
    margin: 0;
    border: 1px solid #2b2620;
    border-radius: 12px;
    background: #13110e;
  }

  .modal--editor .info-section__title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #f0a868;
    margin: 0;
    padding: 2px 0 4px;
    border-bottom: 1px solid #23201b;
  }

  .modal--editor .form-grid--2,
  .modal--editor .form-grid--3,
  .modal--editor .form-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
  }

  .modal--editor .form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    border-bottom: 1px solid #23201b;
    max-width: 100%;
    box-sizing: border-box;
  }

  .modal--editor .form-group:last-child,
  .modal--editor .form-group.detail-item--full:last-child {
    border-bottom: none;
  }

  .modal--editor .form-label {
    flex: 0 0 92px;
    font-size: 11px;
    font-weight: 400;
    color: #7a7267;
    margin: 0;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .modal--editor .form-group > .form-input,
  .modal--editor .form-group > .form-select,
  .modal--editor .form-group > .form-textarea,
  .modal--editor .form-group > .client-combobox,
  .modal--editor .form-group > .single-city-picker,
  .modal--editor .form-group > div:not(.form-label) {
    flex: 1 1 auto;
    min-width: 0;
  }

  .modal--editor .form-input,
  .modal--editor .form-select,
  .modal--editor .form-textarea {
    min-height: 40px;
    padding: 6px 10px;
    text-overflow: ellipsis;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #0f0e0c;
    font-size: 15px;
    color: #f5efe7;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .modal--editor .form-group .client-combobox,
  .modal--editor .form-group .single-city-picker,
  .modal--editor .form-group .manager-chips,
  .modal--editor .form-group .services-city-group {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }

  .modal--editor .form-group .client-combobox .form-input,
  .modal--editor .form-group .single-city-picker .form-input {
    flex: 1 1 auto;
  }

  .modal--editor .form-input:focus,
  .modal--editor .form-select:focus,
  .modal--editor .form-textarea:focus {
    border-color: #f0a868;
    background: rgba(240, 168, 104, 0.12);
  }

  .modal--editor .form-textarea {
    min-height: 64px;
    line-height: 1.45;
  }

  .modal--editor .form-hint {
    flex: 0 0 100%;
    font-size: 11px;
    color: #7a7267;
  }

  .modal--editor .form-group:has(.form-hint) {
    flex-wrap: wrap;
  }

  .modal--editor .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .modal--editor .checkbox-label {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 40px;
    border: 1px solid #2b2620;
    background: #14120f;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #ddd4c7;
  }

  .modal--editor .checkbox-label:has(input:checked) {
    border-color: rgba(240, 168, 104, 0.5);
    background: rgba(240, 168, 104, 0.12);
    color: #f0a868;
  }

  .modal--editor .services-city-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .modal--editor .panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .modal--editor .panel-header h3 {
    font-size: 13px;
    margin: 0;
    color: #ddd4c7;
  }

  .modal--editor .services-total {
    margin-left: auto;
    font-size: 13px;
    color: #9e9487;
  }

  .modal--editor .services-total__value {
    color: #f0a868;
    font-weight: 600;
  }

  .modal--editor .editor-footer,
  .modal--editor .js-editor-footer {
    flex-shrink: 0;
    padding: 8px var(--mob-pad) calc(8px + var(--mob-safe-b));
    border-top: 1px solid #3b342c;
    background: #13110e;
    gap: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .modal--editor .editor-footer .modal-footer-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0;
    border: none;
    position: static;
    background: transparent;
  }

  .modal--editor .editor-footer .modal-footer-actions__right {
    order: 1;
  }

  .modal--editor .editor-footer .modal-footer-actions__left {
    order: 2;
  }

  .modal--editor .editor-footer .modal-footer-actions__left,
  .modal--editor .editor-footer .modal-footer-actions__right {
    display: flex;
    gap: 6px;
    width: 100%;
    margin: 0;
    flex-direction: row;
  }

  .modal--editor .editor-footer .modal-footer-actions__left:empty {
    display: none;
  }

  .modal--editor .editor-footer .modal-footer-actions__right .btn,
  .modal--editor .editor-footer .modal-footer-actions__left .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 0 8px;
    justify-content: center;
    font-size: 13px;
    gap: 4px;
  }

  .modal--editor .editor-footer .modal-footer-actions__right .btn svg {
    width: 15px;
    height: 15px;
  }

  .modal--editor .editor-footer .modal-footer-actions__left .btn {
    min-height: 36px;
    font-size: 12px;
  }

  .modal--editor .editor-fill-count {
    font-size: 11px;
    color: #7a7267;
    white-space: nowrap;
    text-align: center;
  }

  .modal-overlay.active {
    align-items: flex-end;
  }

  /* ---- Карточка заказа (превью из календаря) ---- */

  .modal--event-card {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - var(--mob-safe-top) - 8px);
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .modal--event-card .cof-preview {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .modal--event-card .cof-head {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-shrink: 0;
    padding: 12px var(--mob-pad);
    border-radius: 0;
    align-items: center;
  }

  .modal--event-card .cof-head__title {
    font-size: 16px;
    line-height: 1.25;
    padding-right: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .modal--event-card .cof-head__x {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    color: #ddd4c7;
  }

  .modal--event-card .cof-preview__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 12px var(--mob-pad);
  }

  .modal--event-card .event-modal__footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 10px var(--mob-pad) calc(10px + var(--mob-safe-b));
    background: #13110e;
  }

  .modal--event-card .event-modal__actions {
    gap: 8px;
    justify-content: stretch;
  }

  .modal--event-card .event-modal__actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    min-height: var(--mob-touch);
  }

  /* ---- Создание заказа ---- */

  .modal--create-order {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - var(--mob-safe-top) - 8px);
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .modal--create-order .cof {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .modal--create-order .cof__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .modal--create-order .cof-write {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-right: none;
    overflow: hidden;
  }

  .modal--create-order .cof-write__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 10px var(--mob-pad) 12px;
  }

  .modal--create-order .cof-preview {
    display: none;
  }

  .modal--create-order .cof__foot {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 10px var(--mob-pad) calc(10px + var(--mob-safe-b));
    background: #13110e;
    border-top: 1px solid #23201b;
  }

  #createOrderPreview,
  .cof-preview__body,
  #eventModalPreviewBody {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .modal--create-order .cof-write__scroll,
  .modal--create-order .cof-card {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }

  .modal--create-order .cof-row {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
    max-width: 100%;
  }

  .modal--create-order .cof-row--service,
  .modal--create-order .cof-row--gap {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .modal--create-order .cof-row--service .cof-row__k,
  .modal--create-order .cof-row--gap .cof-row__k {
    text-align: left;
    padding-top: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7a7267;
  }

  .modal--create-order .cof-show-row,
  .modal--create-order .cof-repeat > * {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .modal--create-order .cof-show-row {
    grid-template-columns: 12px minmax(0, 1fr) 22px;
    grid-template-areas:
      "handle time remove"
      "handle main main";
    row-gap: 6px;
    align-items: center;
  }

  .modal--create-order .cof-show-row__handle {
    grid-area: handle;
    align-self: start;
  }

  .modal--create-order .cof-show-row__time {
    grid-area: time;
    width: 100%;
    max-width: 96px;
  }

  .modal--create-order .cof-show-row__main {
    grid-area: main;
    min-width: 0;
  }

  .modal--create-order .cof-show-row .cof-repeat__remove,
  .modal--create-order .cof-show-row > .cof-repeat__remove {
    grid-area: remove;
    align-self: start;
  }

  .modal--create-order .cof-repeat__row {
    grid-template-columns: 12px minmax(0, 1fr) 22px;
    gap: 6px;
  }

  .modal--create-order .cof-show-row__service {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }

  .modal--create-order .cof-row__k {
    font-size: 11px;
    padding-top: 12px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .modal--create-order .cof-row__v {
    min-width: 0;
    max-width: 100%;
  }

  .modal--create-order .cof-field,
  .modal--create-order .cof-clip__input,
  .modal--create-order .cof-card__title {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .modal--create-order .cof-clips {
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
  }

  .modal--create-order .cof-repeat,
  .modal--create-order .cof-checks,
  .modal--create-order .cof-pay-row {
    max-width: 100%;
    flex-wrap: wrap;
    box-sizing: border-box;
  }

  .modal--create-order .cof-pay-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .modal--create-order .cof-status {
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
  }

  .modal--create-order .cof-status__btn {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 0 8px;
  }

  .modal--create-order .cof__foot .cof-foot__left,
  .modal--create-order .cof__foot .cof-foot__right {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .modal--create-order .cof__foot .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  /* ---------- РљР°СЂС‚РѕС‡РєР° СЃРѕС‚СЂСѓРґРЅРёРєР° ---------- */

  .modal--employee-v1 {
    max-width: none;
    width: 100%;
    height: calc(100vh - 40px);
    height: calc(100dvh - var(--mob-safe-top) - 8px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - var(--mob-safe-top) - 8px);
    min-height: 0;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .modal--employee-v1 .modal__body {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
  }

  .modal--employee-v1 #empCardView {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
  }

  .p-head {
    display: block;
    position: sticky;
    top: 0;
    padding: 10px var(--mob-pad) 9px;
    flex-shrink: 0;
    z-index: 4;
    background: #16130f;
    border-bottom: 1px solid #23201b;
  }

  .p-head__main {
    min-width: 0;
  }

  .p-head__name {
    font-size: 17px;
    padding-right: 48px;
  }

  .p-head__sub {
    margin-top: 4px;
    gap: 5px;
    font-size: 12px;
  }

  .p-head__roles {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
    padding-top: 2px;
    margin-top: 6px;
  }

  .p-head > .modal__close,
  .p-head .modal__close,
  .p-head .p-close {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #1f1b17;
    color: #ddd4c7;
    border: 1px solid #3b342c;
    z-index: 5;
  }

  .p-head .p-close:active {
    background: #2a241e;
    color: #f5efe7;
  }

  .p-body {
    grid-template-columns: 1fr;
    padding: 10px var(--mob-pad);
    gap: 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
  }

  .p-card {
    padding: 8px 10px;
  }

  .p-row {
    padding: 2px 0;
  }

  .emp-foot {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px var(--mob-pad) calc(10px + var(--mob-safe-b));
    flex-shrink: 0;
  }

  .emp-foot__left {
    flex: 1 1 100%;
    order: 2;
  }

  .emp-foot__created {
    font-size: 11px;
  }

  .emp-foot__right {
    flex: 1 1 100%;
    display: flex;
    gap: 8px;
  }

  .emp-foot__right .btn {
    flex: 1 1 0;
    min-height: var(--mob-touch);
  }

  /* ---------- РљР°СЂС‚РѕС‡РєР° РєР»РёРµРЅС‚Р° ---------- */

  .modal--v6 {
    width: 100%;
    max-width: none;
    height: calc(100vh - 40px);
    height: calc(100dvh - var(--mob-safe-top) - 8px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - var(--mob-safe-top) - 8px);
    border-radius: 18px 18px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
  }

  .modal--v6.modal--add {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - var(--mob-safe-top) - 8px);
  }

  .m-head {
    padding: 10px var(--mob-pad);
    position: sticky;
    top: 0;
    z-index: 3;
    background: #13110e;
    flex-shrink: 0;
    border-bottom: 1px solid #23201b;
  }

  .m-head__title {
    font-size: 17px;
    margin-left: 0;
    padding: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .m-head .modal__close {
    flex-shrink: 0;
  }

  .m-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 var(--mob-pad) 8px;
    background: #13110e;
    flex-shrink: 0;
  }

  .m-summary[hidden] {
    display: none;
  }

  .m-summary .chip {
    min-height: 26px;
    padding: 2px 10px;
    border-radius: 40px;
    border: 1px solid #2b2620;
    background: #14120f;
    color: #ddd4c7;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
  }

  .m-summary .chip--ok {
    border-color: rgba(46, 125, 50, 0.6);
    background: rgba(46, 125, 50, 0.16);
    color: #a5d6a7;
  }

  .m-summary .chip--warn {
    border-color: rgba(230, 81, 0, 0.6);
    background: rgba(230, 81, 0, 0.16);
    color: #ffcc80;
  }

  .m-summary .chip--danger {
    border-color: rgba(224, 82, 82, 0.6);
    background: rgba(224, 82, 82, 0.14);
    color: #ef9a9a;
  }

  .m-body {
    grid-template-columns: 1fr;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .m-main,
  .m-side {
    padding: 8px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #0f0e0c;
  }

  .m-group {
    min-width: 0;
    margin: 0;
    padding: 8px 10px 10px;
    border: 1px solid #2b2620;
    border-radius: 12px;
    background: #13110e;
    overflow: hidden;
    box-sizing: border-box;
  }

  .m-group__title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #f0a868;
    padding: 2px 0 6px;
    margin: 0 0 2px;
    border-bottom: 1px solid #23201b;
  }

  .m-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    border-bottom: 1px solid #23201b;
    border-radius: 0;
    min-width: 0;
  }

  .m-row:last-child {
    border-bottom: none;
  }

  .m-key {
    flex: 0 0 92px;
    font-size: 11px;
    color: #7a7267;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    padding: 0;
    line-height: 1.2;
  }

  .m-row--type {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 6px 0;
  }

  .m-row--type .m-key {
    flex: none;
    padding-top: 2px;
  }

  .m-row--type .m-cell {
    width: 100%;
  }

  .m-cell {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    overflow: hidden;
  }

  .m-cell > .m-input,
  .m-cell > .m-note,
  .m-cell > .chips,
  .m-cell > .agency-combobox {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .m-cell > .chips {
    flex-wrap: wrap;
  }

  .m-val {
    font-size: 15px;
    min-height: 40px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    margin-left: 0;
    border-radius: 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #f5efe7;
    white-space: normal;
  }

  .m-val.chips-view {
    display: block;
    padding: 6px 0;
    margin-left: 0;
    white-space: normal;
    overflow: visible;
  }

  .m-val.m-editable--empty {
    flex: 1 1 auto;
  }

  .m-val a {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
  }

  .modal--v6 .m-editable,
  .modal--v6 .m-editable--empty,
  .modal--v6 .m-val {
    min-width: 0 !important;
    max-width: 100%;
    flex: 0 1 auto;
  }

  .modal--v6 .m-val.m-editable--empty,
  .modal--v6 .m-val.m-editable {
    display: inline-flex;
    align-items: center;
    border-bottom: none;
    white-space: nowrap;
  }

  .modal--v6 .m-val.chips-view {
    white-space: normal;
  }

  .modal--v6 .m-editable {
    min-height: 40px;
  }

  .modal--v6 .m-editable--empty {
    flex: 0 1 auto;
    min-height: 40px;
  }

  .modal--v6 .m-input,
  .modal--v6 .m-note .m-input,
  .modal--v6 .m-note .m-input--area {
    min-width: 0 !important;
    width: 100%;
  }

  .m-editable,
  .m-editable--empty {
    min-width: 0;
    min-height: 40px;
  }

  .m-editable--empty {
    flex: 1 1 auto;
  }

  .m-note {
    font-size: 14px;
    line-height: 1.45;
    padding: 10px 12px;
    border-left: 2px solid rgba(240, 168, 104, 0.5);
    border-radius: 0 8px 8px 0;
    background: rgba(240, 168, 104, 0.05);
    color: #ddd4c7;
  }

  .m-input,
  .m-note .m-input,
  .m-note .m-input--area {
    min-width: 0;
    min-height: 40px;
    font-size: 16px;
    padding: 8px 10px;
    border-radius: 9px;
    border: 1px solid #2b2620;
    background: #0f0e0c;
    color: #f5efe7;
    box-sizing: border-box;
  }

  .m-input:focus,
  .m-note .m-input:focus,
  .m-note .m-input--area:focus {
    border-color: #f0a868;
    background: rgba(240, 168, 104, 0.12);
    outline: none;
  }

  .m-input--area,
  .m-note .m-input--area {
    min-height: 72px;
  }

  .switch {
    display: flex;
    width: 100%;
    max-width: none;
    gap: 2px;
    padding: 3px;
    border-radius: 40px;
    border: 1px solid #2b2620;
    background: #0f0e0c;
  }

  .switch__btn {
    flex: 1 1 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 40px;
    color: #9e9487;
  }

  .switch__btn.is-on {
    background: rgba(240, 168, 104, 0.14);
    color: #f0a868;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(240, 168, 104, 0.45);
  }

  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 34px;
    align-items: center;
  }

  .chips .chip {
    min-height: 30px;
    padding: 3px 10px;
    border-radius: 40px;
    border: 1px solid #2b2620;
    background: #14120f;
    color: #ddd4c7;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .chip__x,
  .chips .chip__x {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 15px;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.7;
    cursor: pointer;
  }

  .m-actions {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #2b2620;
    border-radius: 12px;
    background: #13110e;
  }

  .m-actions .btn {
    flex: 1 1 0;
    min-height: 42px;
  }

  .m-side {
    gap: 8px;
  }

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

  .m-metric {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #2b2620;
    background: #13110e;
  }

  .m-metric span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7a7267;
  }

  .m-metric b {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    color: #f5efe7;
    overflow-wrap: anywhere;
  }

  .m-metric__money {
    color: #f0a868 !important;
  }

  .m-stream {
    border: 1px solid #2b2620;
    border-radius: 12px;
    background: #13110e;
    overflow: hidden;
  }

  .m-stream__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #f0a868;
    border-bottom: 1px solid #23201b;
  }

  .m-foot {
    padding: 8px var(--mob-pad) calc(8px + var(--mob-safe-b));
    border-top: 1px solid #23201b;
    font-size: 11px;
    color: #7a7267;
    flex-shrink: 0;
    background: #13110e;
  }

  .m-head__title.m-editable {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .toast-container {
    left: var(--mob-pad);
    right: var(--mob-pad);
    bottom: calc(var(--mob-tabbar) + var(--mob-safe-b) + 12px);
    transform: none;
    align-items: center;
  }

  .load-more {
    padding: 1rem 0 1.5rem;
  }

  /* ---------- РЎРєСЂРѕР»Р»Р±Р°СЂС‹ ---------- */

  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
}

@media (max-width: 380px) {
  .calendar-cell {
    min-height: 56px;
    padding: 2px;
  }

  .calendar-event__name,
  .calendar-event__time {
    font-size: 8px;
  }

  .mob-tabbar__a {
    font-size: 9px;
  }
}
