﻿:root {
  --text-color: #cfd7e1;
  --success-color: #76b448;
  --danger-color: #e46321;
  --cream-bg-color: #202936;
  --vs-green-color: #d4d947;
  --vs-blue-color: #6b98bf;
  --grey-border-color: rgba(255, 255, 255, 0.12);
  --surface-color: #2b3644;
  --surface-muted: #334152;
  --title-color: #ffffff;
  --panel-radius: 6px;
  --control-radius: 4px;
  --panel-shadow: 0 24px 48px rgba(6, 10, 16, 0.34);
}

@media (min-width: 961px) {
  .kanban-column {
    height: auto !important;
    max-height: none !important;
    align-self: start;
  }

  .kanban-column-body {
    height: auto !important;
    max-height: none !important;
    min-height: 0;
    overflow: visible !important;
    overscroll-behavior: auto;
    padding-right: 0 !important;
  }

  .kanban-card,
  .task-plan-card {
    height: auto;
    min-height: 0;
  }
}

/* 2026-07-10 final desktop CRM refresh */
@media (min-width: 961px) {
  body[data-theme="dark"] .page-shell.page-shell-wide {
    max-width: min(1760px, calc(100vw - 28px));
  }

  body[data-theme="dark"] .form-panel {
    border-radius: 18px;
    padding: 18px 22px 22px;
    background:
      linear-gradient(180deg, rgba(74, 88, 109, 0.98), rgba(61, 74, 94, 0.99)) !important;
    box-shadow:
      0 20px 56px rgba(8, 11, 18, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  body[data-theme="dark"] .form-header {
    margin: -18px -22px 16px;
    padding: 16px 22px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  }

  body[data-theme="dark"] .section-head {
    margin-bottom: 14px;
  }

  body[data-theme="dark"] .section-head h1 {
    font-size: 26px;
    line-height: 1.08;
    letter-spacing: 0;
  }

  body[data-theme="dark"] .funnel-nav-shell {
    margin: 12px 0 16px;
  }

  body[data-theme="dark"] .funnel-strip {
    min-height: 40px;
    padding: 3px;
    border-radius: 12px;
    background: rgba(42, 52, 67, 0.46);
  }

  body[data-theme="dark"] .funnel-strip-link {
    min-height: 34px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
  }

  body[data-theme="dark"] .view-switcher {
    min-height: 42px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(40, 49, 63, 0.58) !important;
    border-color: rgba(255, 255, 255, 0.08);
  }

  body[data-theme="dark"] .view-option {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
  }

  body[data-theme="dark"] .mobile-filter-bar,
  body[data-theme="dark"] .tasks-toolbar-bar {
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
  }

  body[data-theme="dark"] .mobile-filter-bar .primary-button,
  body[data-theme="dark"] .mobile-filter-bar .secondary-button,
  body[data-theme="dark"] .tasks-toolbar-bar .primary-button,
  body[data-theme="dark"] .tasks-toolbar-bar .secondary-button,
  body[data-theme="dark"] .tasks-toolbar-bar .import-routing-button,
  body[data-theme="dark"] .tasks-toolbar-bar .create-entity-button {
    min-height: 42px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
  }

  body[data-theme="dark"] .tasks-toolbar-bar .create-entity-button,
  body[data-theme="dark"] .mobile-filter-bar .create-entity-button {
    background: linear-gradient(180deg, #7fc97c, #5ea95e) !important;
    border-color: rgba(89, 158, 89, 0.76) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(63, 124, 69, 0.2);
  }

  body[data-theme="dark"] .summary-grid {
    gap: 10px;
    margin-bottom: 14px;
  }

  body[data-theme="dark"] .summary-card {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    display: grid;
    text-align: left;
    background: linear-gradient(180deg, rgba(56, 68, 86, 0.9), rgba(48, 59, 76, 0.95)) !important;
    border-color: rgba(138, 187, 235, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  body[data-theme="dark"] .summary-card::before {
    margin: 0;
    width: 16px;
    height: 16px;
  }

  body[data-theme="dark"] .summary-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    padding-left: 10px;
  }

  body[data-theme="dark"] .summary-value {
    font-size: 24px;
    justify-self: end;
  }

  body[data-theme="dark"] .kanban-board {
    gap: 14px;
    align-items: start;
  }

  body[data-theme="dark"] .kanban-column {
    border-radius: 14px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(62, 75, 94, 0.82), rgba(56, 68, 86, 0.92)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 12px 28px rgba(9, 13, 20, 0.12);
  }

  body[data-theme="dark"] .kanban-column-head {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: -12px -12px 12px;
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--kanban-stage-color, #6B98BF) 34%, rgba(75, 90, 112, 0.98)),
        color-mix(in srgb, var(--kanban-stage-color, #6B98BF) 18%, rgba(68, 82, 102, 0.9))
      ) !important;
    backdrop-filter: blur(10px);
  }

  body[data-theme="dark"] .kanban-column-title-text {
    font-size: 15px;
    font-weight: 800;
  }

  body[data-theme="dark"] .kanban-column-count {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--kanban-stage-color, #6B98BF) 22%, rgba(255, 255, 255, 0.08));
    border-color: color-mix(in srgb, var(--kanban-stage-color, #6B98BF) 38%, rgba(255, 255, 255, 0.16));
    font-size: 16px;
    font-weight: 800;
  }

  body[data-theme="dark"] .kanban-column-body {
    gap: 12px;
    padding-right: 2px;
  }

  body[data-theme="dark"] .kanban-card {
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(91, 106, 127, 0.96), rgba(81, 97, 118, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow:
      0 12px 28px rgba(7, 12, 19, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  body[data-theme="dark"] .kanban-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 16px 34px rgba(7, 12, 19, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  body[data-theme="dark"] .kanban-card-head {
    align-items: start;
    gap: 10px;
    margin-bottom: 10px;
  }

  body[data-theme="dark"] .kanban-card-head-actions {
    align-items: start;
  }

  body[data-theme="dark"] .kanban-card-name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.12;
  }

  body[data-theme="dark"] .kanban-card-route {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(236, 241, 247, 0.72);
  }

  body[data-theme="dark"] .kanban-card-contact,
  body[data-theme="dark"] .kanban-card-meta,
  body[data-theme="dark"] .kanban-card-note {
    font-size: 12px;
    line-height: 1.45;
    color: rgba(241, 245, 250, 0.74);
  }

  body[data-theme="dark"] .kanban-card-grid {
    gap: 8px;
  }

  body[data-theme="dark"] .kanban-card-stat {
    min-height: 60px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  body[data-theme="dark"] .kanban-card-label {
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(232, 238, 246, 0.54);
  }

  body[data-theme="dark"] .kanban-card-value {
    font-size: 14px;
    line-height: 1.22;
    font-weight: 800;
    color: #ffffff;
  }

  body[data-theme="dark"] .kanban-card-actions {
    margin-top: 10px;
  }

  body[data-theme="dark"] .shift-application-card .kanban-card-stat,
  body[data-theme="dark"] .task-plan-card .kanban-card-stat {
    min-height: 58px;
  }

  body[data-theme="dark"] .dialog-card {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(82, 97, 118, 0.99), rgba(66, 80, 100, 0.99)) !important;
    box-shadow: 0 28px 60px rgba(7, 12, 19, 0.34);
  }

  body[data-theme="dark"] .dialog-head {
    background: linear-gradient(180deg, rgba(86, 101, 123, 0.98), rgba(75, 90, 112, 0.94)) !important;
  }

  body[data-theme="dark"] .kanban-card,
  body[data-theme="dark"] .kanban-card-head,
  body[data-theme="dark"] .kanban-card-head-actions,
  body[data-theme="dark"] .kanban-card-identity,
  body[data-theme="dark"] .kanban-card-grid,
  body[data-theme="dark"] .kanban-card-stat,
  body[data-theme="dark"] .kanban-card-actions {
    min-width: 0;
  }

  body[data-theme="dark"] .kanban-card {
    overflow-x: hidden;
  }

  body[data-theme="dark"] .kanban-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body[data-theme="dark"] .kanban-card-head-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
  }

  body[data-theme="dark"] .kanban-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="dark"] .kanban-card-value,
  body[data-theme="dark"] .kanban-card-route,
  body[data-theme="dark"] .kanban-card-contact,
  body[data-theme="dark"] .kanban-card-meta,
  body[data-theme="dark"] .kanban-card-note {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body[data-theme="dark"] .shift-application-card .kanban-card-actions,
  body[data-theme="dark"] .task-plan-card .kanban-card-actions {
    min-width: 0 !important;
  }

  body[data-theme="dark"] .shift-application-card .status-menu-wrap,
  body[data-theme="dark"] .task-plan-card .status-menu-wrap {
    width: auto;
    max-width: 100%;
  }

  body[data-theme="dark"] .shift-application-card .status-chip,
  body[data-theme="dark"] .shift-application-card .status-chip-button,
  body[data-theme="dark"] .task-plan-card .status-chip,
  body[data-theme="dark"] .task-plan-card .status-chip-button {
    max-width: 100%;
    min-width: 0;
  }

  body[data-theme="dark"] #applicationsView #kanbanBoard {
    grid-auto-columns: minmax(320px, 320px);
    overflow-x: auto;
    overflow-y: hidden;
    align-items: start;
    padding-bottom: 10px;
  }

  body[data-theme="dark"] #applicationsView .kanban-column {
    min-width: 320px;
  }

  body[data-theme="dark"] #applicationsView .shift-application-card {
    width: 100%;
    min-width: 0;
  }

  body[data-theme="dark"] #applicationsView .shift-application-card .kanban-card-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body[data-theme="dark"] #applicationsView .shift-application-card .kanban-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="dark"] #applicationsView .shift-application-card .kanban-card-actions {
    flex-direction: column;
    align-items: flex-end;
    width: auto;
  }

  body[data-theme="dark"] #tasksView #kanbanBoard {
    grid-auto-columns: minmax(350px, 350px);
    overflow-x: auto;
    overflow-y: hidden;
    align-items: start;
    padding-bottom: 10px;
  }

  body[data-theme="dark"] #tasksView .kanban-column {
    min-width: 350px;
  }

  body[data-theme="dark"] #tasksView .task-plan-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  body[data-theme="dark"] #tasksView .task-plan-card .kanban-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body[data-theme="dark"] #tasksView .task-plan-card .kanban-card-head-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  body[data-theme="dark"] #tasksView .task-plan-card .kanban-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="dark"] #tasksView .task-plan-card .kanban-card-stat {
    min-width: 0;
  }

  body[data-theme="dark"] #tasksView .task-plan-card .kanban-card-value,
  body[data-theme="dark"] #tasksView .task-plan-card .kanban-card-note,
  body[data-theme="dark"] #tasksView .task-plan-card .kanban-card-meta {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* 2026-07-10 strict radius normalization */
/* UI baseline locked on 2026-07-10.
   Current visual direction:
   - clean CRM-like desktop layout
   - restrained gradients and shadows
   - tight geometry with small radii
   - consistent kanban behavior across all funnels
   - cards must remain fully visible without internal clipping
*/
:root {
  --panel-radius: 3px;
  --control-radius: 3px;
}

.form-panel,
.form-header,
.brand-logo-stack,
.menu-toggle,
.header-nav-panel,
.header-link,
.header-profile-panel,
.header-profile-action,
.theme-switcher,
.theme-option,
.funnel-strip,
.funnel-strip-link,
.view-switcher,
.view-option,
.summary-card,
.filter-panel,
.filter-close-button,
.mobile-filter-button,
.mobile-search-control,
.primary-button,
.secondary-button,
.create-entity-button,
.import-routing-button,
.status-pill,
.status-pill-compact,
.status-chip,
.status-chip-button,
.kanban-board,
.kanban-column,
.kanban-column-count,
.kanban-card,
.kanban-card-stat,
.dialog-card,
.user-modal-summary,
.filter-field,
.filter-field input,
.filter-field select,
.filter-field textarea,
.admin-card,
.admin-card-item,
.user-card,
.user-action-button,
.auth-card,
.auth-badge,
.auth-status,
.pagination-button,
.scroll-top-button,
.task-approved-application-card,
.dialog-inline-panel,
.tasks-placeholder-card {
  border-radius: 3px !important;
}

.kanban-column-swatch,
.status-pill-glyph-api,
.status-pill-glyph-api::after,
.summary-card::before,
.user-delete-button,
.task-circle-meter,
.task-circle-meter-track,
.task-circle-meter-progress {
  border-radius: 3px !important;
}

.kanban-column-count,
.summary-card,
.status-chip,
.status-chip-button,
.auth-badge {
  border-radius: 3px !important;
}

@media (min-width: 961px) {
  .page-shell-wide {
    max-width: min(1700px, calc(100vw - 36px));
  }

  .form-panel {
    border-radius: 18px;
    padding: 22px 26px 26px;
    background:
      radial-gradient(circle at top right, rgba(212, 217, 71, 0.08), transparent 26%),
      linear-gradient(180deg, rgba(78, 94, 116, 0.96), rgba(63, 78, 99, 0.98));
    box-shadow:
      0 18px 44px rgba(8, 12, 19, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .form-panel::before {
    height: 4px;
  }

  .form-header {
    margin: -22px -26px 18px;
    padding: 18px 26px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  }

  .section-head {
    margin-bottom: 18px;
  }

  .section-head h1 {
    font-size: 28px;
    line-height: 1.08;
    margin-bottom: 6px;
  }

  .section-copy {
    max-width: 720px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(226, 233, 243, 0.72);
  }

  .funnel-nav-shell {
    gap: 10px;
    margin: 12px 0 18px;
  }

  .funnel-strip {
    min-height: 42px;
    border-radius: 11px;
    background: rgba(47, 58, 75, 0.54);
  }

  .funnel-strip-link {
    min-height: 42px;
    font-size: 14px;
    letter-spacing: 0;
  }

  .view-switcher {
    min-height: 44px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(39, 50, 65, 0.52);
  }

  .view-option {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 13px;
    gap: 8px;
  }

  .summary-grid {
    gap: 10px;
    margin-bottom: 14px;
  }

  .summary-card {
    min-height: 76px;
    padding: 12px 14px;
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(75, 92, 116, 0.58), rgba(57, 71, 90, 0.7));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .summary-label {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .summary-value {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
  }

  .filter-panel {
    padding: 16px 18px;
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(72, 88, 109, 0.72), rgba(59, 72, 91, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .kanban-board {
    gap: 14px;
    align-items: start;
  }

  .kanban-column {
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.07);
    background:
      linear-gradient(180deg, rgba(71, 87, 108, 0.72), rgba(60, 73, 92, 0.84));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 10px 24px rgba(7, 11, 18, 0.08);
  }

  .kanban-column-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -14px -14px 12px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(74, 90, 111, 0.96), rgba(67, 82, 102, 0.88));
    backdrop-filter: blur(8px);
  }

  .kanban-column-title-text {
    font-size: 14px;
    font-weight: 700;
  }

  .kanban-column-count {
    width: 32px;
    height: 32px;
    font-size: 15px;
    font-weight: 800;
  }

  .kanban-column-body {
    gap: 10px;
    padding-right: 2px;
  }

  .kanban-card {
    border-radius: 12px;
    padding: 12px;
    background:
      linear-gradient(180deg, rgba(86, 102, 124, 0.74), rgba(70, 84, 104, 0.9));
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow:
      0 10px 22px rgba(10, 14, 22, 0.09),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .kanban-card:hover {
    transform: translateY(-1px);
    box-shadow:
      0 14px 28px rgba(8, 12, 18, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .kanban-card-name {
    font-size: 17px;
    line-height: 1.15;
  }

  .kanban-card-route,
  .kanban-card-contact,
  .kanban-card-note,
  .kanban-card-meta {
    font-size: 12px;
    line-height: 1.45;
  }

  .kanban-card-grid {
    gap: 7px;
  }

  .kanban-card-stat {
    min-height: 58px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.07);
  }

  .kanban-card-label {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .kanban-card-value {
    font-size: 14px;
    line-height: 1.22;
  }

  .dialog-card {
    width: min(100%, 980px);
    padding: 0;
    border-radius: 18px;
    background:
      radial-gradient(circle at top right, rgba(212, 217, 71, 0.08), transparent 28%),
      linear-gradient(180deg, rgba(80, 95, 115, 0.98), rgba(64, 78, 98, 0.99));
    box-shadow: 0 26px 58px rgba(7, 12, 18, 0.34);
    overflow: hidden;
  }

  .dialog-card-wide {
    width: min(100%, 1120px);
  }

  .dialog-head {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0;
    padding: 22px 24px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(78, 94, 115, 0.98), rgba(73, 88, 109, 0.94));
    backdrop-filter: blur(10px);
  }

  .dialog-head h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .dialog-scroll-body,
  .dialog-form-grid,
  .dialog-field-grid,
  .dialog-rate-grid,
  .user-modal-stack {
    padding-left: 24px;
    padding-right: 24px;
  }

  .dialog-form-grid,
  .user-modal-stack {
    padding-top: 16px;
  }

  .dialog-form-grid {
    gap: 14px;
  }

  .dialog-card .filter-field {
    gap: 8px;
    padding: 10px 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(28, 37, 48, 0.14);
  }

  .dialog-card .filter-field .label-text {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: rgba(233, 238, 247, 0.7);
  }

  .dialog-card input,
  .dialog-card select,
  .dialog-card textarea {
    border-radius: 10px;
    background: rgba(32, 41, 53, 0.78);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .dialog-card textarea {
    min-height: 120px;
  }

  .user-modal-summary {
    margin-left: 24px;
    margin-right: 24px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(31, 40, 52, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .user-modal-name {
    font-size: 21px;
    line-height: 1.12;
  }

  .dialog-actions {
    margin-top: 0;
    padding: 16px 24px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(59, 72, 91, 0.12), rgba(35, 45, 58, 0.24));
  }
}

body[data-theme="light"] .form-panel {
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(244, 247, 252, 0.99));
  box-shadow:
    0 18px 48px rgba(24, 46, 82, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body[data-theme="light"] .form-header {
  background: linear-gradient(180deg, rgba(241, 246, 252, 0.92), rgba(255, 255, 255, 0));
}

body[data-theme="light"] .section-copy {
  color: rgba(42, 58, 82, 0.68);
}

body[data-theme="light"] .view-switcher {
  background: rgba(223, 231, 242, 0.74);
}

body[data-theme="light"] .summary-card,
body[data-theme="light"] .kanban-column {
  background:
    linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(238, 244, 251, 0.99));
  box-shadow:
    0 10px 26px rgba(40, 61, 100, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body[data-theme="light"] .kanban-column-head {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--kanban-stage-color, #6B98BF) 22%, rgba(249, 251, 255, 0.98)),
      color-mix(in srgb, var(--kanban-stage-color, #6B98BF) 10%, rgba(238, 244, 251, 0.94))
    );
}

body[data-theme="light"] .kanban-column-count {
  background: color-mix(in srgb, var(--kanban-stage-color, #6B98BF) 16%, rgba(255, 255, 255, 0.94));
  border-color: color-mix(in srgb, var(--kanban-stage-color, #6B98BF) 42%, rgba(173, 188, 210, 0.46));
  color: #18324f;
}

body[data-theme="light"] .kanban-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 253, 0.99));
  box-shadow:
    0 12px 24px rgba(39, 60, 96, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body[data-theme="light"] .kanban-card-stat,
body[data-theme="light"] .user-modal-summary,
body[data-theme="light"] .dialog-card .filter-field {
  background: rgba(240, 245, 252, 0.88);
}

body[data-theme="light"] .dialog-card {
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(252, 253, 255, 0.99), rgba(243, 247, 252, 0.99));
  box-shadow: 0 26px 56px rgba(28, 50, 84, 0.16);
}

body[data-theme="light"] .dialog-head {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(241, 246, 252, 0.94));
}

body[data-theme="light"] .dialog-actions {
  background: linear-gradient(180deg, rgba(242, 247, 252, 0.78), rgba(234, 241, 249, 0.94));
}

/* CRM refresh: calmer Bitrix-like admin without touching behavior */
@media (min-width: 961px) {
  .page-shell-wide {
    max-width: min(1680px, calc(100vw - 40px));
  }

  .form-panel {
    padding: 22px 28px 28px;
    border-radius: 18px;
    background:
      radial-gradient(circle at top right, rgba(212, 217, 71, 0.05), transparent 24%),
      linear-gradient(180deg, #445264 0%, #394757 44%, #334252 100%);
    box-shadow: 0 18px 36px rgba(16, 24, 34, 0.16);
  }

  .form-panel::before {
    height: 4px;
    opacity: 0.92;
  }

  .form-header {
    margin: 0 -28px 22px;
    padding: 18px 28px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  }

  .section-head {
    gap: 14px;
    margin-bottom: 16px;
  }

  .section-head h1 {
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.04;
  }

  .section-copy {
    margin-top: 8px;
    max-width: 58ch;
    color: rgba(220, 229, 239, 0.72);
    font-size: 14px;
    line-height: 1.45;
  }

  .funnel-nav-shell {
    margin-bottom: 16px;
  }

  .funnel-strip {
    gap: 8px;
  }

  .funnel-strip-link {
    min-height: 42px;
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .view-switcher {
    padding: 5px;
    border-radius: 12px;
    background: rgba(16, 23, 31, 0.22);
  }

  .view-option {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .admin-toolbar-row {
    gap: 10px;
    align-items: center;
  }

  .admin-toolbar-row .summary-grid {
    gap: 8px;
  }

  .admin-toolbar-row .summary-card {
    min-height: 56px;
    gap: 5px;
    padding: 10px 14px;
    border-radius: 12px;
    justify-items: start;
    text-align: left;
  }

  .admin-toolbar-row .summary-card::before {
    opacity: 0.86;
  }

  .summary-label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .summary-value {
    font-size: 28px;
    line-height: 0.96;
  }

  .filter-panel {
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(10, 16, 22, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .kanban-board {
    gap: 12px;
  }

  .kanban-column {
    gap: 10px;
    min-height: 260px;
    padding: 12px;
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .kanban-column-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -2px -2px 0;
    padding: 2px 2px 10px;
    background: linear-gradient(180deg, rgba(55, 68, 85, 0.96), rgba(55, 68, 85, 0.76) 76%, rgba(55, 68, 85, 0));
  }

  .kanban-column-title-text {
    font-size: 14px;
    letter-spacing: 0.01em;
  }

  .kanban-column-count {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .kanban-column-body {
    gap: 8px;
  }

  .kanban-card {
    gap: 8px;
    padding: 10px 10px 11px;
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(86, 99, 116, 0.95), rgba(68, 80, 96, 0.96));
    box-shadow:
      0 8px 18px rgba(12, 18, 26, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .kanban-card:hover {
    transform: translateY(-1px);
    box-shadow:
      0 12px 22px rgba(12, 18, 26, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .kanban-card-name {
    font-size: 15px;
    line-height: 1.15;
  }

  .kanban-card-route {
    font-size: 12px;
  }

  .kanban-card-contact,
  .kanban-card-meta,
  .kanban-card-note {
    font-size: 12px;
    line-height: 1.38;
  }

  .kanban-card-grid {
    gap: 6px;
  }

  .kanban-card-stat {
    padding: 8px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.065);
  }

  .kanban-card-label {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .kanban-card-value {
    font-size: 13px;
    line-height: 1.22;
  }

  .dialog-card {
    width: min(100%, 960px);
    padding: 0;
    border-radius: 18px;
    background:
      radial-gradient(circle at top right, rgba(212, 217, 71, 0.05), transparent 24%),
      linear-gradient(180deg, rgba(69, 82, 99, 0.985), rgba(54, 68, 84, 0.985));
    box-shadow: 0 28px 60px rgba(8, 14, 22, 0.34);
  }

  .dialog-card-wide {
    width: min(100%, 1080px);
  }

  .dialog-head {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0;
    padding: 22px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(71, 84, 101, 0.98), rgba(67, 80, 96, 0.95));
  }

  .dialog-head h2 {
    font-size: 30px;
    line-height: 1.04;
  }

  .dialog-form-grid,
  .dialog-field-grid,
  .user-modal-stack,
  .dialog-scroll-body {
    padding: 18px 24px 0;
    margin-right: 0;
  }

  .dialog-form-grid {
    gap: 14px;
  }

  .dialog-card .filter-field {
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(15, 21, 29, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  }

  .dialog-card .filter-field .label-text {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .dialog-card input,
  .dialog-card select,
  .dialog-card textarea {
    border-radius: 10px;
    background: rgba(19, 26, 35, 0.48);
    box-shadow: none;
  }

  .dialog-card textarea {
    min-height: 120px;
  }

  .user-modal-summary {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(15, 21, 29, 0.18);
  }

  .user-modal-name {
    font-size: 20px;
  }

  .dialog-actions {
    gap: 10px;
    margin-top: 0;
    padding: 16px 24px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(52, 64, 79, 0.38), rgba(52, 64, 79, 0.12));
  }
}

body[data-theme="light"] .form-panel {
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(251, 253, 255, 0.985), rgba(241, 246, 251, 0.985));
  box-shadow: 0 18px 34px rgba(27, 44, 61, 0.1);
}

body[data-theme="light"] .form-header {
  background: linear-gradient(180deg, rgba(88, 126, 167, 0.06), rgba(88, 126, 167, 0.01));
}

body[data-theme="light"] .section-copy {
  color: #61707f;
}

body[data-theme="light"] .view-switcher {
  background: rgba(107, 152, 191, 0.08);
}

body[data-theme="light"] .summary-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body[data-theme="light"] .kanban-column {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 252, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 12px 24px rgba(31, 51, 70, 0.06);
}

body[data-theme="light"] .kanban-column-head {
  background: linear-gradient(180deg, rgba(246, 249, 252, 0.98), rgba(246, 249, 252, 0.78) 78%, rgba(246, 249, 252, 0));
}

body[data-theme="light"] .kanban-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.98));
  box-shadow:
    0 8px 18px rgba(31, 51, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body[data-theme="light"] .kanban-card-stat {
  background: rgba(107, 152, 191, 0.08);
}

body[data-theme="light"] .dialog-card {
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.04), transparent 24%),
    linear-gradient(180deg, rgba(252, 254, 255, 0.99), rgba(241, 246, 251, 0.99));
  box-shadow: 0 28px 54px rgba(27, 44, 61, 0.18);
}

body[data-theme="light"] .dialog-head {
  border-bottom-color: rgba(47, 61, 78, 0.08);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(243, 247, 251, 0.96));
}

body[data-theme="light"] .dialog-card .filter-field,
body[data-theme="light"] .user-modal-summary {
  border-color: rgba(47, 61, 78, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .dialog-actions {
  border-top-color: rgba(47, 61, 78, 0.08);
  background: linear-gradient(180deg, rgba(241, 246, 251, 0.7), rgba(241, 246, 251, 0.3));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-color);
  background:
    radial-gradient(circle at top left, rgba(107, 152, 191, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.08), transparent 24%),
    linear-gradient(180deg, #2c3642 0, #1f2732 100%),
    var(--cream-bg-color);
}

body.is-funnel-animating {
  overflow-x: clip;
}

body[data-theme="light"] {
  --text-color: #5f6772;
  --grey-border-color: rgba(47, 61, 78, 0.12);
  --surface-color: #f5f7fb;
  --surface-muted: #ffffff;
  --title-color: #1f2c3a;
  --panel-shadow: 0 24px 48px rgba(29, 46, 64, 0.12);
  background:
    radial-gradient(circle at top left, rgba(107, 152, 191, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.08), transparent 24%),
    linear-gradient(180deg, #eef2f7 0, #dfe5ee 100%);
}

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

.page-shell {
  width: min(1080px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.page-shell-wide {
  width: min(1440px, calc(100vw - 40px));
}

.form-panel {
  position: relative;
  overflow: hidden;
  padding: 0 30px 30px;
  border: 1px solid rgba(29, 46, 64, 0.18);
  border-radius: var(--panel-radius);
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.09), transparent 26%),
    linear-gradient(135deg, #3f4d5f 0%, #2e3949 58%, #263240 100%);
  box-shadow: 0 18px 40px rgba(29, 46, 64, 0.2);
}

.form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--vs-blue-color), var(--vs-green-color));
}

.form-header {
  margin: 0 -30px 26px;
  padding: 24px 30px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.panel-page {
  display: block;
  position: relative;
  animation: pageFadeIn 220ms ease;
}

.auth-view {
  display: grid;
  min-height: min(62vh, 560px);
  align-items: center;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  gap: 28px;
  align-items: stretch;
}

.auth-intro,
.auth-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(10, 15, 21, 0.18));
  box-shadow: 0 18px 34px rgba(6, 10, 16, 0.2);
}

.auth-intro {
  display: grid;
  align-content: center;
  gap: 0;
}

.auth-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(107, 152, 191, 0.24);
  border-radius: 999px;
  background: rgba(107, 152, 191, 0.12);
  color: #dcecff;
  font-size: 12px;
  font-weight: 600;
}

.auth-card {
  width: 100%;
}

.auth-title {
  margin: 0;
  color: var(--title-color);
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.04;
}

.auth-copy {
  margin: 12px 0 0;
  color: rgba(207, 215, 225, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}

.auth-card-kicker {
  margin: 0 0 8px;
  color: rgba(207, 215, 225, 0.68);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-card-title {
  margin: 0;
  color: var(--title-color);
  font-size: 28px;
  line-height: 1.08;
}

.auth-lock {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(107, 152, 191, 0.16), rgba(107, 152, 191, 0) 68%),
    rgba(255, 255, 255, 0.04);
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto, 18px 18px;
  box-shadow: inset 0 0 0 1px rgba(107, 152, 191, 0.08);
}

.auth-lock::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(220,236,255,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.auth-password-wrap {
  position: relative;
  display: block;
}

.auth-password-wrap input {
  padding-right: 52px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.auth-password-toggle::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(220,236,255,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.auth-password-toggle:hover,
.auth-password-toggle.is-active {
  border-color: rgba(107, 152, 191, 0.26);
  background: rgba(107, 152, 191, 0.16);
}

.auth-password-toggle.is-active::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(220,236,255,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18'/%3E%3Cpath d='M10.58 10.58a2 2 0 1 0 2.83 2.83'/%3E%3Cpath d='M9.88 5.09A11 11 0 0 1 12 5c6.5 0 10 7 10 7a17.6 17.6 0 0 1-4.17 4.87'/%3E%3Cpath d='M6.61 6.61C3.64 8.36 2 12 2 12a17.4 17.4 0 0 0 7.38 5.43'/%3E%3C/svg%3E");
}

.auth-status {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(207, 215, 225, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.auth-status.ok {
  border-color: rgba(118, 180, 72, 0.28);
  background: rgba(118, 180, 72, 0.12);
  color: #e3f7d5;
}

.auth-status.error {
  border-color: rgba(228, 99, 33, 0.28);
  background: rgba(228, 99, 33, 0.12);
  color: #ffd8c5;
}

.auth-submit {
  width: 100%;
}

.brand-lockup {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.header-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.header-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  border-color: rgba(107, 152, 191, 0.32);
  background: rgba(107, 152, 191, 0.16);
  color: #ffffff;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.menu-toggle-icon {
  position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-icon::before {
  top: -5px;
}

.menu-toggle-icon::after {
  top: 5px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  transform: translateY(-5px) rotate(-45deg);
}

.header-nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  min-width: 208px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(49, 57, 74, 0.96);
  box-shadow: 0 18px 40px rgba(4, 10, 18, 0.28);
  backdrop-filter: blur(14px);
}

.header-nav-panel[hidden] {
  display: none;
}

.header-nav {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.header-nav-group {
  display: grid;
  gap: 8px;
}

.header-nav-group-title {
  margin: 2px 4px 0;
  color: rgba(207, 215, 225, 0.52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.header-nav-divider {
  height: 1px;
  margin: 2px 4px;
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-profile-panel {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.header-profile-panel[hidden] {
  display: none;
}

.header-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 260px;
  height: 100%;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.header-profile-link:hover {
  background: rgba(107, 152, 191, 0.12);
}

.header-profile-link.is-static {
  cursor: default;
}

.header-profile-link.is-static:hover {
  background: transparent;
}

.header-profile-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  opacity: 0.92;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.header-profile-content {
  display: grid;
  min-width: 0;
  text-align: left;
}

.header-profile-label {
  color: rgba(207, 215, 225, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
}

.header-profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.header-profile-action {
  width: 42px;
  min-width: 42px;
  height: 100%;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-profile-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(207, 215, 225, 0.82);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  width: 100%;
}

.header-link-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  opacity: 0.9;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.header-link-icon-candidates {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cpath d='M20 8v6'/%3E%3Cpath d='M23 11h-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cpath d='M20 8v6'/%3E%3Cpath d='M23 11h-6'/%3E%3C/svg%3E");
}

.header-link-icon-employees {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cpath d='M20 8l2 2 3-3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cpath d='M20 8l2 2 3-3'/%3E%3C/svg%3E");
}

.header-link-icon-tasks {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M9 9h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M9 9h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E");
}

.header-link-icon-users {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cpath d='M20 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cpath d='M20 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.header-link-icon-guide {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}

.header-link:hover {
  border-color: rgba(107, 152, 191, 0.28);
  background: rgba(107, 152, 191, 0.12);
  color: #ffffff;
}

.header-link.is-active {
  border-color: rgba(107, 152, 191, 0.32);
  background: rgba(107, 152, 191, 0.18);
  color: #ffffff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
}

.brand-logo-stack {
  position: relative;
  width: min(320px, 100%);
}

.brand-logo-stack .brand-logo {
  width: 100%;
}

.brand-logo-light {
  display: none;
}

.brand-logo-dark {
  display: block;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.theme-switcher {
  display: inline-flex;
  padding: 4px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(14, 19, 26, 0.2);
  gap: 4px;
}

.theme-option {
  width: 36px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-option:hover {
  color: rgba(255, 255, 255, 0.94);
}

.theme-option.is-active {
  background: rgba(107, 152, 191, 0.2);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(107, 152, 191, 0.22);
}

.logout-theme-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.theme-icon {
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.theme-icon-sun {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.92)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}

.theme-icon-moon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.92)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9z'/%3E%3C/svg%3E");
}

.theme-icon-logout {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.92)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

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

.eyebrow {
  margin: 0 0 10px;
  color: #d4d947;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-head h1 {
  margin: 0;
  color: var(--title-color);
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.02;
}

.funnel-head {
  display: grid;
  gap: 0;
  width: 100%;
}

.funnel-nav-shell {
  margin: 0 0 18px;
  touch-action: pan-y;
}

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

.funnel-strip-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(207, 215, 225, 0.72);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
}

.funnel-strip-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0.9;
}

.funnel-strip-link-candidates::before {
  background: linear-gradient(90deg, #6b98bf, #8bb2d3);
}

.funnel-strip-link-employees::before {
  background: linear-gradient(90deg, #9db94b, #d4d947);
}

.funnel-strip-link-tasks::before {
  background: linear-gradient(90deg, #e59a45, #e46321);
}

.funnel-strip-link.is-active {
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.funnel-strip-link-candidates.is-active {
  border-color: rgba(107, 152, 191, 0.32);
  background: rgba(107, 152, 191, 0.14);
}

.funnel-strip-link-employees.is-active {
  border-color: rgba(181, 202, 88, 0.34);
  background: rgba(181, 202, 88, 0.14);
}

.funnel-strip-link-tasks.is-active {
  border-color: rgba(228, 99, 33, 0.34);
  background: rgba(228, 99, 33, 0.14);
}

.is-funnel-panel {
  will-change: transform, opacity, filter;
}

body.is-funnel-leaving-left .is-funnel-panel {
  animation: funnelSlideOutLeft 210ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

body.is-funnel-leaving-right .is-funnel-panel {
  animation: funnelSlideOutRight 210ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

body.is-funnel-entering-right .is-funnel-panel {
  animation: funnelSlideInRight 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-funnel-entering-left .is-funnel-panel {
  animation: funnelSlideInLeft 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.funnel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.funnel-switcher-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.section-copy {
  margin: 12px 0 0;
  max-width: 42ch;
  color: rgba(207, 215, 225, 0.74);
  font-size: 15px;
  line-height: 1.55;
}

.status-stack {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.status-stack-compact {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  max-width: 100%;
  flex-wrap: nowrap;
  align-self: flex-start;
}

.single-status {
  grid-template-columns: 1fr;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.status-pill-compact {
  min-height: 42px;
  min-width: 0;
  padding: 0 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.status-pill-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill-glyph {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
}

.status-pill-glyph-api {
  border-radius: 999px;
  box-shadow: inset 0 0 0 3px currentColor;
  position: relative;
}

.status-pill-glyph-api::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: currentColor;
}

.status-pill-glyph-results {
  position: relative;
  background-color: transparent;
}

.status-pill-glyph-results::before,
.status-pill-glyph-results::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.status-pill-glyph-results::before {
  top: 1px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.status-pill-glyph-results::after {
  bottom: 1px;
  width: 12px;
  height: 7px;
  border-radius: 7px 7px 4px 4px;
}

.status-pill.ok {
  border-color: var(--vs-blue-color);
  background: rgba(107, 152, 191, 0.18);
  color: #dcecff;
}

#apiStatus.ok {
  border-color: rgba(118, 180, 72, 0.36);
  background: rgba(118, 180, 72, 0.16);
  color: #e3f7d5;
}

.status-pill.error {
  border-color: var(--danger-color);
  background: rgba(228, 99, 33, 0.16);
  color: #ffd8c5;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-bottom: 18px;
}

.summary-card::before {
  content: "";
  display: none;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  opacity: 0.92;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.summary-card-total::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
}

.summary-card-new::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='12' y1='8' x2='12' y2='16'/%3E%3Cline x1='8' y1='12' x2='16' y2='12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cline x1='12' y1='8' x2='12' y2='16'/%3E%3Cline x1='8' y1='12' x2='16' y2='12'/%3E%3C/svg%3E");
}

.summary-card-interview::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Ccircle cx='12' cy='15' r='2.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Ccircle cx='12' cy='15' r='2.5'/%3E%3C/svg%3E");
}

.summary-card-confirmed::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
}

.view-switcher {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-toolbar-row .view-switcher {
  margin: 0;
}

.view-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(207, 215, 225, 0.74);
  font-size: 13px;
  font-weight: 700;
}

.view-option.is-active {
  border-color: rgba(107, 152, 191, 0.28);
  background: rgba(107, 152, 191, 0.16);
  color: #ffffff;
}

.view-option-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  opacity: 0.9;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.view-option-icon-list {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
}

.view-option-icon-kanban {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='6' height='16' rx='1'/%3E%3Crect x='14' y='4' width='7' height='10' rx='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='6' height='16' rx='1'/%3E%3Crect x='14' y='4' width='7' height='10' rx='1'/%3E%3C/svg%3E");
}

.kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 152, 191, 0.92) rgba(20, 28, 38, 0.46);
}

.kanban-board::-webkit-scrollbar {
  height: 10px;
}

.kanban-board::-webkit-scrollbar-track {
  background: rgba(20, 28, 38, 0.46);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.kanban-board::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(107, 152, 191, 0.94), rgba(201, 225, 74, 0.74));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.kanban-board::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(132, 178, 219, 0.98), rgba(214, 233, 99, 0.82));
}

.kanban-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 280px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(107, 152, 191, 0.06), transparent 28%),
    rgba(255, 255, 255, 0.04);
}

.kanban-column.is-drop-target {
  border-color: rgba(107, 152, 191, 0.34);
  box-shadow: inset 0 0 0 1px rgba(107, 152, 191, 0.16);
}

.kanban-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--kanban-stage-color, #6B98BF) 45%, rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.kanban-column-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.kanban-column-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 12px;
}

.kanban-column-title-text {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.kanban-column-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(12, 18, 26, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(10, 16, 24, 0.18);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.kanban-column-body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 160px;
}

.kanban-column-body::-webkit-scrollbar {
  width: 10px;
}

.kanban-column-body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(20, 28, 38, 0.46);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.kanban-column-body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(20, 28, 38, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(107, 152, 191, 0.94), rgba(159, 196, 94, 0.92));
}

.kanban-column-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(129, 169, 204, 0.98), rgba(186, 218, 105, 0.96));
}

.kanban-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(67, 81, 98, 0.92), rgba(52, 65, 80, 0.94));
  box-shadow:
    0 10px 20px rgba(10, 16, 24, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: grab;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.kanban-card:hover {
  border-color: rgba(107, 152, 191, 0.26);
  box-shadow:
    0 14px 28px rgba(10, 16, 24, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.kanban-card.is-dragging {
  opacity: 0.82;
  transform: rotate(1deg);
  cursor: grabbing;
}

.kanban-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.kanban-card-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.kanban-card-name {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.08;
}

.kanban-card-identity {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.kanban-card-route {
  color: rgba(207, 215, 225, 0.82);
  font-size: 12px;
  line-height: 1.35;
}

.kanban-card-contact {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.kanban-card-contacts {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.kanban-card-phone {
  margin-top: 0;
}

.contact-links-kanban {
  margin-top: 0;
}

.kanban-card-meta,
.kanban-card-note {
  color: rgba(207, 215, 225, 0.8);
  font-size: 13px;
  line-height: 1.45;
}

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

.kanban-card-stat {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.kanban-card-label {
  color: rgba(207, 215, 225, 0.54);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kanban-card-value {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.kanban-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shift-application-card {
  gap: 12px;
}

.shift-application-card .kanban-card-head {
  align-items: flex-start;
  gap: 12px;
}

.shift-application-card .kanban-card-actions {
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 94px;
}

.shift-application-card .status-chip,
.shift-application-card .status-chip-button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
  max-width: 100%;
}

.shift-application-card .kanban-edit-button {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.shift-application-card .status-menu-wrap {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.shift-application-card .status-chip,
.shift-application-card .status-chip-button {
  justify-content: center;
}

.shift-application-card .kanban-card-grid {
  gap: 7px;
}

.shift-application-card .kanban-card-stat {
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.07);
}

.shift-application-card .kanban-card-note {
  margin-top: -2px;
  padding-top: 2px;
  font-size: 12px;
}

.shift-application-card .kanban-card-note.is-empty {
  color: rgba(207, 215, 225, 0.58);
}

.kanban-edit-button {
  width: 32px;
  height: 32px;
  padding: 0;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.kanban-edit-button:hover,
.kanban-edit-button:focus-visible {
  border-color: rgba(107, 152, 191, 0.3);
  background: rgba(107, 152, 191, 0.12);
  transform: translateY(-1px);
}

.kanban-edit-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(107, 152, 191, 0.18);
}

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

.kanban-empty {
  display: grid;
  place-items: center;
  min-height: 108px;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(207, 215, 225, 0.54);
  font-size: 13px;
  text-align: center;
}

body[data-theme="light"] .view-switcher {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

body[data-theme="light"] .view-option {
  color: #5f6772;
}

body[data-theme="light"] .view-option.is-active {
  border-color: rgba(107, 152, 191, 0.24);
  background: rgba(107, 152, 191, 0.14);
  color: #1f2c3a;
}

body[data-theme="light"] .kanban-column {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    radial-gradient(circle at top right, rgba(107, 152, 191, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.92);
}

body[data-theme="light"] .kanban-column.is-drop-target {
  border-color: rgba(107, 152, 191, 0.34);
  box-shadow: inset 0 0 0 1px rgba(107, 152, 191, 0.14);
}

body[data-theme="light"] .kanban-column-title-text,
body[data-theme="light"] .kanban-card-name,
body[data-theme="light"] .kanban-card-value {
  color: #1f2c3a;
}

body[data-theme="light"] .kanban-column-count,
body[data-theme="light"] .kanban-card-meta,
body[data-theme="light"] .kanban-card-note,
body[data-theme="light"] .kanban-empty {
  color: #5f6772;
}

body[data-theme="light"] .kanban-column-count {
  border-color: rgba(47, 61, 78, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 240, 247, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(47, 61, 78, 0.08);
  color: #1f2c3a;
}

body[data-theme="light"] .kanban-card {
  border-color: rgba(47, 61, 78, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(246, 249, 253, 0.98));
  box-shadow:
    0 10px 22px rgba(29, 46, 64, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

body[data-theme="light"] .kanban-card:hover {
  border-color: rgba(107, 152, 191, 0.28);
  box-shadow:
    0 14px 28px rgba(29, 46, 64, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.96);
}

body[data-theme="light"] .kanban-column-body {
  scrollbar-color: rgba(107, 152, 191, 0.9) rgba(188, 202, 219, 0.38);
}

body[data-theme="light"] .kanban-board {
  scrollbar-color: rgba(107, 152, 191, 0.9) rgba(188, 202, 219, 0.38);
}

body[data-theme="light"] .kanban-board::-webkit-scrollbar-track {
  background: rgba(188, 202, 219, 0.38);
  box-shadow: inset 0 0 0 1px rgba(47, 61, 78, 0.08);
}

body[data-theme="light"] .kanban-board::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(107, 152, 191, 0.9), rgba(173, 204, 91, 0.72));
  border-color: rgba(255, 255, 255, 0.7);
}

body[data-theme="light"] .kanban-board::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(90, 138, 183, 0.94), rgba(160, 195, 79, 0.78));
}

body[data-theme="light"] .kanban-column-body::-webkit-scrollbar-track {
  background: rgba(188, 202, 219, 0.38);
  box-shadow: inset 0 0 0 1px rgba(47, 61, 78, 0.08);
}

body[data-theme="light"] .kanban-column-body::-webkit-scrollbar-thumb {
  border-color: rgba(188, 202, 219, 0.22);
  background: linear-gradient(180deg, rgba(107, 152, 191, 0.96), rgba(175, 204, 97, 0.94));
}

body[data-theme="light"] .kanban-column-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(124, 166, 200, 0.98), rgba(189, 214, 112, 0.96));
}

body[data-theme="light"] .kanban-card-stat {
  border-color: rgba(47, 61, 78, 0.12);
  background: linear-gradient(180deg, rgba(107, 152, 191, 0.07), rgba(255, 255, 255, 0.94));
}

body[data-theme="light"] .kanban-card-route {
  color: rgba(49, 65, 79, 0.72);
}

body[data-theme="light"] .kanban-card-contact {
  color: #17324d;
}

body[data-theme="light"] .shift-application-card .kanban-card-stat {
  background: linear-gradient(180deg, rgba(107, 152, 191, 0.06), rgba(255, 255, 255, 0.96));
}

body[data-theme="light"] .shift-application-card .kanban-card-note.is-empty {
  color: rgba(49, 65, 79, 0.52);
}

body[data-theme="light"] .kanban-card-label {
  color: rgba(49, 65, 79, 0.56);
}

body[data-theme="light"] .kanban-edit-button {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(107, 152, 191, 0.08);
  color: #27435f;
}

body[data-theme="light"] .kanban-edit-button:hover,
body[data-theme="light"] .kanban-edit-button:focus-visible {
  border-color: rgba(107, 152, 191, 0.24);
  background: rgba(107, 152, 191, 0.16);
}

body[data-theme="light"] .kanban-empty {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(107, 152, 191, 0.04);
}

.summary-card {
  display: grid;
  min-width: 0;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--control-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(10, 15, 21, 0.2));
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.summary-card:hover {
  transform: translateY(-1px);
}

.summary-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(151, 193, 231, 0.28);
}

.summary-card.is-active {
  transform: translateY(-1px);
  border-width: 2px;
  box-shadow: 0 12px 26px rgba(7, 13, 21, 0.18);
}

.summary-card-total.is-active {
  border-color: rgba(151, 193, 231, 0.96);
}

.summary-card-new.is-active {
  border-color: rgba(151, 193, 231, 0.96);
}

.summary-card-confirmed.is-active {
  border-color: rgba(170, 214, 112, 0.96);
}

.summary-card-interview.is-active {
  border-color: rgba(241, 210, 102, 0.96);
}

.summary-card-total {
  border-color: rgba(107, 152, 191, 0.24);
  background: linear-gradient(180deg, rgba(107, 152, 191, 0.16), rgba(10, 15, 21, 0.2));
}

.summary-card-new {
  border-color: rgba(107, 152, 191, 0.28);
  background: linear-gradient(180deg, rgba(107, 152, 191, 0.18), rgba(10, 15, 21, 0.2));
}

.summary-card-confirmed {
  border-color: rgba(118, 180, 72, 0.28);
  background: linear-gradient(180deg, rgba(118, 180, 72, 0.18), rgba(10, 15, 21, 0.2));
}

.summary-card-interview {
  border-color: rgba(214, 170, 68, 0.28);
  background: linear-gradient(180deg, rgba(214, 170, 68, 0.18), rgba(10, 15, 21, 0.2));
}

.summary-label {
  display: block;
  color: rgba(207, 215, 225, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-value {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

.users-panel {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--control-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
}

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

.users-panel-head h2,
.users-card-head h3 {
  margin: 0;
  color: var(--title-color);
  font-size: 22px;
  line-height: 1.1;
}

.users-grid {
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 18px;
}

.user-create-card,
.user-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.018)),
    rgba(14, 19, 26, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.user-create-card {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 18px;
  box-shadow: 0 16px 30px rgba(6, 10, 16, 0.12);
}

.users-list-panel {
  display: grid;
  gap: 14px;
}

.users-list-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 0;
}

.user-panel-kicker {
  margin: 0 0 6px;
  color: var(--accent-lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-create-copy,
.users-list-copy {
  margin: 0;
  color: rgba(207, 215, 225, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.users-list-title {
  margin: 0 0 6px;
  color: var(--title-color);
  font-size: 24px;
  line-height: 1.1;
}

.single-status {
  align-self: flex-start;
}

.user-create-stack {
  display: grid;
  gap: 12px;
  margin: 14px 0 16px;
}

.user-create-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(207, 215, 225, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.users-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.users-list {
  display: grid;
  gap: 14px;
}

.users-submit {
  width: 100%;
}

.user-card {
  padding: 14px;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 28px rgba(6, 10, 16, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.user-card:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 171, 214, 0.18);
  box-shadow: 0 16px 34px rgba(6, 10, 16, 0.14);
}

.user-card-top {
  margin-bottom: 0;
}

.user-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.user-card-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.user-card-name {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
}

.user-card-login,
.user-modal-login {
  color: rgba(207, 215, 225, 0.64);
  font-size: 12px;
  line-height: 1.4;
}

.user-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(212, 217, 71, 0.18);
  border-radius: 999px;
  background: rgba(212, 217, 71, 0.08);
  color: #f3f6bb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.user-card-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.user-card-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.user-card-contact-item {
  display: inline-flex;
  align-items: center;
}

.user-scope-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(123, 171, 214, 0.22);
  border-radius: 999px;
  background: rgba(107, 152, 191, 0.1);
  color: #dbeaf9;
  font-size: 12px;
  font-weight: 700;
}

.user-card-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.user-card-meta-item {
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(8, 12, 18, 0.16);
}

.user-card-meta-label {
  color: rgba(207, 215, 225, 0.54);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.user-card-meta-value {
  color: rgba(245, 248, 252, 0.94);
  font-size: 12px;
  line-height: 1.35;
}

.user-card-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  color: rgba(207, 215, 225, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.user-section-head {
  display: grid;
  gap: 4px;
}

.user-section-title {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-section-copy {
  color: rgba(207, 215, 225, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.user-password-input {
  min-width: 0;
}

.user-card-actions .user-action-button {
  min-width: 32px;
  width: 32px;
  max-width: 32px;
  height: 32px;
  max-height: 32px;
  padding: 0;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  min-height: 32px;
  font-size: 0;
}

.user-edit-button {
  border-color: rgba(123, 171, 214, 0.24);
  background: rgba(107, 152, 191, 0.1);
  color: #e7f1fc;
}

.user-delete-button {
  border-color: rgba(228, 99, 33, 0.22);
  background: rgba(228, 99, 33, 0.08);
  color: #ffd8c5;
}

.user-edit-button:hover:not(:disabled),
.user-edit-button:focus-visible {
  border-color: rgba(123, 171, 214, 0.38);
  background: rgba(107, 152, 191, 0.18);
  color: #ffffff;
}

.user-delete-button:hover:not(:disabled),
.user-delete-button:focus-visible {
  border-color: rgba(228, 99, 33, 0.34);
  background: rgba(228, 99, 33, 0.16);
  color: #fff0e6;
}

.user-edit-button:focus-visible,
.user-delete-button:focus-visible {
  outline: none;
}

.user-edit-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(107, 152, 191, 0.2);
}

.user-delete-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(228, 99, 33, 0.18);
}

.user-action-icon {
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.user-edit-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(231,241,252,0.96)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 1 1 3 3L7 19l-4 1 1-4 12.5-12.5Z'/%3E%3C/svg%3E");
}

.user-delete-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,216,197,0.96)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
}

.user-action-button:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

body[data-theme="light"] .user-edit-button {
  border-color: rgba(107, 152, 191, 0.2);
  background: rgba(107, 152, 191, 0.08);
  color: #31506d;
}

body[data-theme="light"] .user-edit-button:hover:not(:disabled),
body[data-theme="light"] .user-edit-button:focus-visible {
  border-color: rgba(107, 152, 191, 0.32);
  background: rgba(107, 152, 191, 0.14);
  color: #26425d;
}

body[data-theme="light"] .user-edit-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(107, 152, 191, 0.12);
}

body[data-theme="light"] .user-delete-button {
  border-color: rgba(228, 99, 33, 0.2);
  background: rgba(228, 99, 33, 0.08);
  color: #b45830;
}

body[data-theme="light"] .user-delete-button:hover:not(:disabled),
body[data-theme="light"] .user-delete-button:focus-visible {
  border-color: rgba(228, 99, 33, 0.32);
  background: rgba(228, 99, 33, 0.14);
  color: #8f4527;
}

body[data-theme="light"] .user-delete-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(228, 99, 33, 0.12);
}

body[data-theme="light"] .user-delete-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(180,88,48,0.96)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
}

body[data-theme="light"] .user-edit-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(49,80,109,0.96)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 1 1 3 3L7 19l-4 1 1-4 12.5-12.5Z'/%3E%3C/svg%3E");
}

.users-empty-state {
  padding: 24px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.03);
}

.admin-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 240px;
  margin: 0 0 14px;
}

.toolbar-action-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.toolbar-action-group .create-entity-button,
.toolbar-action-group .secondary-button {
  width: auto;
  min-width: 0;
  padding-inline: 16px;
  white-space: nowrap;
}

.import-routing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.import-routing-button::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-color: currentColor;
  opacity: 0.9;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

.mobile-filter-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  width: auto;
  padding: 10px 14px;
  white-space: nowrap;
}

.mobile-filter-button::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  opacity: 0.9;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/%3E%3C/svg%3E");
}

.mobile-filter-button.is-active {
  border-color: rgba(107, 152, 191, 0.34);
  background: rgba(107, 152, 191, 0.16);
  color: #ffffff;
}

.mobile-filter-hint {
  color: rgba(207, 215, 225, 0.72);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.create-entity-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  border-color: rgba(118, 180, 72, 0.42);
  background: linear-gradient(180deg, rgba(118, 180, 72, 0.26), rgba(82, 139, 48, 0.22));
  color: #f7ffe9;
  box-shadow: 0 10px 24px rgba(63, 102, 34, 0.18);
}

.create-entity-button::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.create-entity-button:hover,
.create-entity-button:focus-visible {
  border-color: rgba(133, 197, 82, 0.56);
  background: linear-gradient(180deg, rgba(133, 197, 82, 0.32), rgba(92, 154, 54, 0.28));
  color: #ffffff;
}

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

.mobile-search-field {
  display: grid;
  gap: 8px;
}

.mobile-search-control {
  position: relative;
  display: block;
}

.mobile-search-control input {
  padding-right: 48px;
}

.mobile-search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.mobile-search-clear:hover {
  background: rgba(107, 152, 191, 0.18);
  color: #ffffff;
}

.filter-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 961px) {
  :root {
    --admin-toolbar-control-height: 42px;
  }

  body:not(.filters-open-desktop) .filter-panel.desktop-collapsible-filter {
    display: none;
  }

  .page-shell {
    width: min(1180px, calc(100vw - 28px));
    padding: 18px 0 28px;
  }

  .page-shell-wide {
    width: min(1520px, calc(100vw - 32px));
  }

  .form-panel {
    padding: 0 22px 22px;
  }

  .form-panel::before {
    height: 4px;
  }

  .form-header {
    margin: 0 -22px 18px;
    padding: 18px 22px 14px;
  }

  .header-nav-panel {
    min-width: 220px;
  }

  .theme-toggle-group,
  .theme-control-group {
    min-height: 40px;
  }

  .theme-toggle-button,
  .theme-icon-button,
  .menu-toggle {
    min-width: 40px;
    min-height: 40px;
    height: 40px;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 16px;
  }

  .eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
  }

  .section-head h1 {
    font-size: clamp(24px, 3vw, 36px);
  }

  .funnel-nav-shell {
    margin: 0 0 14px;
  }

  .funnel-strip {
    gap: 8px;
  }

  .funnel-strip-link,
  .funnel-switcher-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .view-switcher {
    gap: 6px;
    padding: 4px;
    border-radius: 10px;
    min-height: var(--admin-toolbar-control-height);
    height: var(--admin-toolbar-control-height);
    box-sizing: border-box;
  }

  .view-option {
    min-height: 32px;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .admin-toolbar-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 12px;
  }

  .admin-toolbar-row .view-switcher {
    align-self: stretch;
  }

  .admin-toolbar-row .summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    margin: 0;
    align-items: stretch;
  }

  .admin-toolbar-row .summary-card {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;
    min-height: var(--admin-toolbar-control-height);
    height: var(--admin-toolbar-control-height);
    padding: 6px 12px;
    gap: 8px;
    text-align: left;
  }

  .admin-toolbar-row .summary-card::before {
    display: block;
  }

  .admin-toolbar-row .summary-label {
    flex: initial;
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
  }

  .admin-toolbar-row .summary-value {
    flex: initial;
    margin: 0;
    font-size: 14px;
    line-height: 1;
  }

  .mobile-filter-bar {
    justify-content: flex-end;
    flex: 0 0 auto;
    margin: 0;
    align-items: stretch;
  }

  .toolbar-action-group {
    align-items: stretch;
  }

  .toolbar-action-group .create-entity-button,
  .toolbar-action-group .secondary-button,
  .mobile-filter-bar .create-entity-button,
  .mobile-filter-bar .secondary-button,
  .admin-toolbar-row .primary-button,
  .admin-toolbar-row .secondary-button,
  .mobile-filter-button {
    min-height: var(--admin-toolbar-control-height);
    height: var(--admin-toolbar-control-height);
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
  }

  .mobile-filter-button {
    min-width: 40px;
    min-height: var(--admin-toolbar-control-height);
    height: var(--admin-toolbar-control-height);
    padding: 0 12px;
  }

  .mobile-filter-hint {
    display: inline-flex;
    align-items: center;
    max-width: 150px;
    min-height: var(--admin-toolbar-control-height);
    text-align: left;
    font-size: 11px;
    line-height: 1.2;
  }

  .status-pill {
    gap: 6px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .status-pill-compact {
    min-height: 36px;
    padding: 0 10px;
  }

  .status-pill-text {
    font-size: 11px;
  }

  .users-panel,
  .filter-panel {
    margin-bottom: 12px;
    padding: 14px;
  }

  .users-panel-head,
  .users-card-head {
    margin-bottom: 12px;
  }

  .users-panel-head h2,
  .users-card-head h3 {
    font-size: 18px;
  }

  .users-grid {
    gap: 14px;
  }

  .user-create-card,
  .user-card {
    padding: 14px;
  }

  .user-card-name {
    font-size: 16px;
  }

  .user-card-meta {
    font-size: 12px;
  }

  .label-text,
  .admin-card-label {
    font-size: 11px;
  }

  input,
  select,
  textarea {
    font-size: 14px;
  }

  input,
  select {
    padding: 11px 12px;
  }

  .dialog-card textarea {
    min-height: 92px;
    padding: 10px 12px;
  }

  .primary-button,
  .secondary-button {
    min-width: 132px;
    padding: 11px 16px;
    font-size: 14px;
  }

  .filter-grid {
    gap: 10px;
  }

  th,
  td {
    padding: 10px 10px;
    font-size: 13px;
  }

  th {
    font-size: 11px;
  }

  .pagination {
    gap: 10px;
    margin-top: 12px;
  }

  .pagination-button {
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .pagination-info {
    font-size: 13px;
  }

  .admin-card {
    gap: 12px;
    padding: 13px;
  }

  .admin-card + .admin-card {
    margin-top: 10px;
  }

  .admin-card-person {
    gap: 4px;
  }

  .admin-card-title-row {
    gap: 10px;
  }

  .admin-card-name {
    font-size: 20px;
  }

  .admin-card-phone {
    font-size: 13px;
  }

  .status-chip {
    min-height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }

  .status-menu {
    min-width: 200px;
    padding: 6px;
  }

  .status-menu-item {
    padding: 8px 10px;
    font-size: 13px;
  }

  .admin-card-grid {
    gap: 8px;
  }

  .admin-card-item {
    padding: 8px 10px;
  }

  .admin-card-value {
    font-size: 13px;
  }

  .admin-card-note,
  .admin-card-note-body,
  .admin-card-money,
  .admin-card-date {
    font-size: 12px;
  }

  .kanban-board {
    gap: 10px;
    align-items: start;
  }

  .kanban-column {
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    gap: 10px;
    min-height: 240px;
    max-height: min(72vh, calc(100vh - 220px));
    padding: 12px;
  }

  .kanban-column-title-text {
    font-size: 14px;
  }

  .kanban-column-count {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 15px;
  }

  .kanban-column-body {
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 152, 191, 0.92) rgba(20, 28, 38, 0.46);
  }

  .kanban-card {
    gap: 8px;
    padding: 10px;
  }

  .kanban-card-name {
    font-size: 16px;
  }

  .kanban-card-route {
    font-size: 11px;
  }

  .kanban-card-contact {
    font-size: 12px;
  }

  .kanban-card-meta,
  .kanban-card-note {
    font-size: 12px;
  }

  .kanban-card-grid {
    gap: 6px;
  }

  .kanban-card-stat {
    gap: 3px;
    padding: 7px 8px;
  }

  .kanban-card-label {
    font-size: 9px;
  }

  .kanban-card-value {
    font-size: 13px;
  }

  .kanban-edit-button {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .shift-application-card .kanban-card-actions {
    gap: 5px;
    min-width: 82px;
  }

  .shift-application-card .status-chip,
  .shift-application-card .status-chip-button {
    min-height: 26px;
    padding: 0 8px;
    font-size: 10px;
  }

  .dialog-card {
    width: min(100%, 400px);
    padding: 16px;
  }

  .dialog-card-wide {
    width: min(100%, 680px);
  }

  .dialog-form-grid,
  .dialog-field-grid {
    gap: 10px;
  }

  .dialog-rate-grid {
    gap: 8px;
  }

  .dialog-rate-option-label {
    min-height: 52px;
    padding: 8px 10px;
  }

  .dialog-rate-option-title {
    font-size: 13px;
  }

  .dialog-rate-option-meta {
    font-size: 11px;
  }

  .dialog-head {
    margin-bottom: 12px;
  }

  .dialog-head h2 {
    font-size: 21px;
  }

  .dialog-actions {
    gap: 8px;
    margin-top: 12px;
  }

  .filter-panel {
    margin-bottom: 14px;
    padding: 14px;
  }

  .filter-grid {
    gap: 12px;
  }
}

.filter-sheet-head {
  display: none;
}

.filter-sheet-head h2 {
  margin: 0;
  color: var(--title-color);
  font-size: 22px;
  line-height: 1.1;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.filter-field,
.admin-status-field {
  display: grid;
  gap: 8px;
}

.label-text,
.admin-card-label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--control-radius);
  background: rgba(14, 19, 26, 0.32);
  color: var(--text-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select {
  color-scheme: dark;
}

select option,
select optgroup {
  background: #2b3644;
  color: #ffffff;
}

input::placeholder {
  color: rgba(207, 215, 225, 0.5);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--vs-blue-color);
  box-shadow: 0 0 0 4px rgba(107, 152, 191, 0.12);
  background: rgba(14, 19, 26, 0.48);
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.primary-button,
.secondary-button {
  min-width: 160px;
  padding: 14px 20px;
  border-radius: var(--control-radius);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--vs-blue-color) 0%, #7da5cb 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(94, 131, 191, 0.24);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(94, 131, 191, 0.28);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
}

.secondary-button:hover {
  transform: translateY(-1px);
  border-color: rgba(107, 152, 191, 0.28);
  background: rgba(107, 152, 191, 0.12);
}

.filter-close-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.filter-overlay {
  display: none;
}

.scroll-top-button {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(43, 54, 68, 0.94);
  box-shadow: 0 12px 24px rgba(6, 10, 16, 0.26);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.scroll-top-button:hover {
  background: rgba(107, 152, 191, 0.92);
}

.scroll-top-button[hidden] {
  display: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: rgba(207, 215, 225, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tr:last-child td {
  border-bottom: 0;
}

.cell-sub {
  margin-top: 6px;
  color: rgba(207, 215, 225, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  gap: 6px;
  border: 1px solid rgba(107, 152, 191, 0.18);
  border-radius: 999px;
  background: rgba(107, 152, 191, 0.1);
  color: #dcecff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.contact-link:hover {
  background: rgba(107, 152, 191, 0.18);
}

.contact-link-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(207, 215, 225, 0.88);
  min-height: 0;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.contact-link-phone:hover {
  background: transparent;
  color: #ffffff;
}

.contact-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.contact-icon-phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(220,236,255,0.96)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.79.61 2.65a2 2 0 0 1-.45 2.11L8 9.99a16 16 0 0 0 6 6l1.51-1.27a2 2 0 0 1 2.11-.45c.86.28 1.75.49 2.65.61A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.contact-icon-telegram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(220,236,255,0.96)'%3E%3Cpath d='M21.5 4.5 18.4 19c-.2 1-1 1.3-1.8.8l-4.1-3-2 2c-.2.2-.4.4-.8.4l.3-4.3 7.9-7.1c.3-.3-.1-.5-.5-.3l-9.8 6.2-4.2-1.3c-.9-.3-.9-.9.2-1.3L19.6 4c.8-.3 1.5.2 1.9.5Z'/%3E%3C/svg%3E");
}

.contact-icon-instagram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(220,236,255,0.96)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
}

.admin-contact-links {
  margin-top: 10px;
}

.admin-cards {
  display: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.pagination-button:disabled {
  cursor: default;
  opacity: 0.45;
  transform: none;
}

.pagination-info {
  flex: 0 1 auto;
  min-width: 0;
  color: rgba(207, 215, 225, 0.72);
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}

.admin-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.05);
}

.admin-card + .admin-card {
  margin-top: 12px;
}

.admin-card-head {
  display: block;
}

.admin-card-person {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-card-title-row {
  display: flex;
  align-items: start;
  gap: 12px;
}

.status-menu-wrap {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
}

.admin-card-name {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.05;
  min-width: 0;
}

.admin-card-phone {
  color: rgba(207, 215, 225, 0.76);
  font-size: 14px;
}

.admin-card-subtitle {
  color: rgba(207, 215, 225, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(212, 217, 71, 0.18);
  border-radius: 999px;
  background: rgba(212, 217, 71, 0.08);
  color: #f3f6bb;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-chip-button {
  cursor: pointer;
}

.status-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 15;
  display: grid;
  gap: 6px;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(31, 39, 50, 0.98);
  box-shadow: 0 18px 34px rgba(6, 10, 16, 0.28);
}

.status-menu[hidden] {
  display: none;
}

.status-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(207, 215, 225, 0.92);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.status-menu-item:hover {
  border-color: rgba(107, 152, 191, 0.22);
  background: rgba(107, 152, 191, 0.12);
}

.status-menu-item.is-active {
  border-color: rgba(107, 152, 191, 0.28);
  background: rgba(107, 152, 191, 0.16);
}

.status-menu-swatch {
  width: 12px;
  height: 12px;
  min-height: 12px;
  padding: 0;
  border-radius: 999px;
  flex: 0 0 12px;
}

.admin-delete-button {
  min-width: 0;
  margin-top: 10px;
  border-color: rgba(228, 99, 33, 0.28);
  background: rgba(228, 99, 33, 0.12);
  color: #ffd6c2;
}

.admin-delete-button:hover {
  border-color: rgba(228, 99, 33, 0.34);
  background: rgba(228, 99, 33, 0.2);
}

.employee-promote-button,
.employee-linked-badge {
  min-width: 0;
  margin-top: 10px;
}

.employee-promote-button.is-compact,
.employee-linked-badge.is-compact {
  margin-top: 0;
}

.employee-promote-button {
  padding-inline: 12px;
}

.employee-linked-badge {
  text-decoration: none;
}

.status-chip-default,
.status-chip-new {
  border-color: rgba(107, 152, 191, 0.28);
  background: rgba(107, 152, 191, 0.14);
  color: #dcecff;
}

.status-chip-confirmed,
.status-chip-worked {
  border-color: rgba(118, 180, 72, 0.28);
  background: rgba(118, 180, 72, 0.14);
  color: #dff5c8;
}

.status-chip-cancelled {
  border-color: rgba(120, 132, 146, 0.24);
  background: rgba(120, 132, 146, 0.12);
  color: #dde3ea;
}

.status-chip-rejected {
  border-color: rgba(228, 99, 33, 0.28);
  background: rgba(228, 99, 33, 0.14);
  color: #ffd6c2;
}

.status-chip-no-show {
  border-color: rgba(214, 170, 68, 0.28);
  background: rgba(214, 170, 68, 0.14);
  color: #ffe6a7;
}

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

.admin-card-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--control-radius);
  background: rgba(14, 19, 26, 0.18);
}

.admin-card-note {
  grid-column: 1 / -1;
}

.table-inline-actions {
  margin-top: 10px;
}

.table-inline-button,
.admin-edit-button {
  min-width: 0;
}

.admin-card-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-card-actions-compact {
  flex-wrap: wrap;
  gap: 8px;
}

.admin-card-actions-start {
  justify-content: flex-start;
}

.admin-card-value {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.15;
}

.admin-card-date {
  white-space: nowrap;
}

.admin-card-money {
  color: rgba(207, 215, 225, 0.82);
  font-size: 14px;
  font-weight: 600;
}

.admin-card-note-body {
  color: rgba(207, 215, 225, 0.82);
  font-size: 14px;
  line-height: 1.5;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 18, 26, 0.72);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dialog-card {
  width: min(100%, 420px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-height: min(900px, calc(100dvh - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(61, 74, 91, 0.98), rgba(38, 50, 64, 0.98));
  box-shadow: 0 20px 44px rgba(5, 10, 18, 0.32);
}

.dialog-card-wide {
  width: min(100%, 720px);
}

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

.dialog-form-grid,
.dialog-field-grid,
.user-modal-stack,
.dialog-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  margin-right: -6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 152, 191, 0.92) rgba(20, 28, 38, 0.46);
}

.dialog-form-grid::-webkit-scrollbar,
.dialog-field-grid::-webkit-scrollbar,
.user-modal-stack::-webkit-scrollbar,
.dialog-scroll-body::-webkit-scrollbar {
  width: 10px;
}

.dialog-form-grid::-webkit-scrollbar-track,
.dialog-field-grid::-webkit-scrollbar-track,
.user-modal-stack::-webkit-scrollbar-track,
.dialog-scroll-body::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(20, 28, 38, 0.46);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dialog-form-grid::-webkit-scrollbar-thumb,
.dialog-field-grid::-webkit-scrollbar-thumb,
.user-modal-stack::-webkit-scrollbar-thumb,
.dialog-scroll-body::-webkit-scrollbar-thumb {
  border: 2px solid rgba(20, 28, 38, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(107, 152, 191, 0.94), rgba(159, 196, 94, 0.92));
}

.dialog-form-grid::-webkit-scrollbar-thumb:hover,
.dialog-field-grid::-webkit-scrollbar-thumb:hover,
.user-modal-stack::-webkit-scrollbar-thumb:hover,
.dialog-scroll-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(129, 169, 204, 0.98), rgba(186, 218, 105, 0.96));
}

.dialog-scroll-body {
  display: grid;
  gap: 12px;
}

.dialog-field-span-full {
  grid-column: 1 / -1;
}

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

.dialog-rate-option {
  position: relative;
  display: flex;
  align-items: stretch;
}

.dialog-rate-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dialog-rate-option-label {
  width: 100%;
  min-height: 60px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--control-radius);
  background: rgba(14, 19, 26, 0.32);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.dialog-rate-option-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.dialog-rate-option-meta {
  color: rgba(207, 215, 225, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.dialog-rate-option input:checked + .dialog-rate-option-label {
  border-color: rgba(212, 217, 71, 0.54);
  background: rgba(212, 217, 71, 0.12);
  box-shadow: 0 0 0 3px rgba(212, 217, 71, 0.12);
}

.dialog-rate-option input:focus-visible + .dialog-rate-option-label {
  border-color: rgba(107, 152, 191, 0.52);
  box-shadow: 0 0 0 3px rgba(107, 152, 191, 0.14);
}

.dialog-card textarea {
  width: 100%;
  min-height: 104px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--control-radius);
  background: rgba(14, 19, 26, 0.42);
  color: #ffffff;
  resize: vertical;
}

.dialog-card textarea::placeholder {
  color: rgba(207, 215, 225, 0.48);
}

.dialog-card textarea:focus {
  outline: none;
  border-color: rgba(107, 152, 191, 0.52);
  box-shadow: 0 0 0 3px rgba(107, 152, 191, 0.14);
}

.dialog-card .filter-field {
  min-width: 0;
}

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

.dialog-card input[type="date"],
.dialog-card input[type="time"] {
  display: block;
  width: 100%;
  inline-size: 100%;
  min-width: 0;
  max-width: 100%;
  max-inline-size: 100%;
  box-sizing: border-box;
}

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

.dialog-head h2 {
  margin: 0;
  color: var(--title-color);
  font-size: 24px;
  line-height: 1.1;
}

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

.dialog-close-button {
  flex: 0 0 auto;
  margin-left: auto;
}

.dialog-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

body.dialog-open {
  overflow: hidden;
}

.empty-state,
.empty-cell {
  color: rgba(207, 215, 225, 0.72);
}

.empty-state {
  padding: 22px 0;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes funnelSlideOutLeft {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
  }

  to {
    opacity: 0.28;
    transform: translate3d(-11%, 0, 0) scale(0.985);
    filter: saturate(0.9);
  }
}

@keyframes funnelSlideOutRight {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
  }

  to {
    opacity: 0.28;
    transform: translate3d(11%, 0, 0) scale(0.985);
    filter: saturate(0.9);
  }
}

@keyframes funnelSlideInRight {
  from {
    opacity: 0.4;
    transform: translate3d(14%, 0, 0) scale(0.99);
    filter: saturate(0.92);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
  }
}

@keyframes funnelSlideInLeft {
  from {
    opacity: 0.4;
    transform: translate3d(-14%, 0, 0) scale(0.99);
    filter: saturate(0.92);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-funnel-leaving-left .is-funnel-panel,
  body.is-funnel-leaving-right .is-funnel-panel,
  body.is-funnel-entering-right .is-funnel-panel,
  body.is-funnel-entering-left .is-funnel-panel {
    animation: none;
  }
}

body[data-theme="light"] .form-panel {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.12), transparent 26%),
    linear-gradient(180deg, #f9fbff 0, #eef2f7 100%);
  box-shadow: var(--panel-shadow);
}

body[data-theme="light"] .form-header {
  border-bottom-color: rgba(47, 61, 78, 0.08);
  background: linear-gradient(180deg, rgba(107, 152, 191, 0.08), rgba(255, 255, 255, 0));
}

body[data-theme="light"] .brand-badge {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(107, 152, 191, 0.08);
  color: #27435f;
}

body[data-theme="light"] .header-link {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #465160;
}

body[data-theme="light"] .menu-toggle {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: #31414f;
}

body[data-theme="light"] .menu-toggle:hover,
body[data-theme="light"] .menu-toggle[aria-expanded="true"] {
  border-color: rgba(107, 152, 191, 0.26);
  background: rgba(107, 152, 191, 0.14);
  color: #27435f;
}

body[data-theme="light"] .header-nav-panel {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(24, 39, 58, 0.14);
}

body[data-theme="light"] .header-nav-group-title {
  color: rgba(49, 65, 79, 0.56);
}

body[data-theme="light"] .header-nav-divider {
  background: rgba(47, 61, 78, 0.08);
}

body[data-theme="light"] .header-link:hover {
  border-color: rgba(107, 152, 191, 0.24);
  background: rgba(107, 152, 191, 0.08);
  color: #1f2c3a;
}

body[data-theme="light"] .header-link.is-active {
  border-color: rgba(107, 152, 191, 0.24);
  background: rgba(107, 152, 191, 0.14);
  color: #27435f;
}

body[data-theme="light"] .auth-card {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(29, 46, 64, 0.12);
}

body[data-theme="light"] .auth-intro {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(107, 152, 191, 0.12), rgba(255, 255, 255, 0.86));
}

body[data-theme="light"] .brand-logo-stack {
  display: block;
  align-self: flex-start;
  width: min(248px, 100%);
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid rgba(47, 61, 78, 0.12);
  border-radius: 4px;
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.18), transparent 34%),
    linear-gradient(135deg, #52657c 0%, #3f4f62 58%, #334252 100%);
  box-shadow: 0 10px 24px rgba(29, 46, 64, 0.16);
}

body[data-theme="light"] .brand-logo-dark {
  display: none;
}

body[data-theme="light"] .brand-logo-light {
  display: block;
}

body[data-theme="light"] .theme-switcher {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(47, 61, 78, 0.04);
}

body[data-theme="light"] .header-profile-panel {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(245, 248, 252, 0.96);
}

body[data-theme="light"] .header-profile-link {
  color: #223047;
}

body[data-theme="light"] .header-profile-link:hover {
  background: rgba(107, 152, 191, 0.12);
}

body[data-theme="light"] .header-profile-label {
  color: rgba(64, 79, 103, 0.6);
}

body[data-theme="light"] .header-profile-action {
  border-left-color: rgba(47, 61, 78, 0.12);
  color: #5f6772;
}

body[data-theme="light"] .header-profile-action:hover {
  background: rgba(107, 152, 191, 0.08);
  color: #1f2c3a;
}

body[data-theme="light"] .theme-option {
  color: #5f6772;
}

body[data-theme="light"] .theme-option:hover {
  color: #1f2c3a;
}

body[data-theme="light"] .theme-option.is-active {
  background: rgba(107, 152, 191, 0.14);
  color: #1f2c3a;
  box-shadow: inset 0 0 0 1px rgba(107, 152, 191, 0.18);
}

body[data-theme="light"] .logout-theme-option:hover {
  background: rgba(107, 152, 191, 0.08);
}

body[data-theme="light"] .theme-icon-sun {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(31,44,58,0.92)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.41 1.41'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}

body[data-theme="light"] .theme-icon-moon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(31,44,58,0.92)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9z'/%3E%3C/svg%3E");
}

body[data-theme="light"] .theme-icon-logout {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(31,44,58,0.92)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

body[data-theme="light"] .eyebrow {
  color: #d48a31;
}

body[data-theme="light"] .section-head h1,
body[data-theme="light"] .summary-value,
body[data-theme="light"] .admin-card strong {
  color: #1f2c3a;
}

body[data-theme="light"] .funnel-heading {
  border-color: rgba(47, 61, 78, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 253, 0.92));
}

body[data-theme="light"] .funnel-strip-link {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #5b6674;
}

body[data-theme="light"] .funnel-strip-link.is-active {
  color: #27435f;
}

body[data-theme="light"] .funnel-strip-link-candidates.is-active {
  border-color: rgba(107, 152, 191, 0.28);
  background: rgba(107, 152, 191, 0.14);
}

body[data-theme="light"] .funnel-strip-link-employees.is-active {
  border-color: rgba(181, 202, 88, 0.3);
  background: rgba(181, 202, 88, 0.16);
}

body[data-theme="light"] .funnel-strip-link-tasks.is-active {
  border-color: rgba(228, 99, 33, 0.26);
  background: rgba(228, 99, 33, 0.14);
}

.tasks-placeholder {
  display: grid;
  gap: 16px;
}

.tasks-toolbar-bar {
  justify-content: flex-start;
}

.tasks-toolbar-bar .mobile-filter-hint {
  flex: 1 1 180px;
}

.admin-cards-tasks {
  display: grid;
  gap: 14px;
}

.task-preview-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background:
    radial-gradient(circle at top right, rgba(107, 152, 191, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(10, 15, 21, 0.16));
}

.task-preview-card-empty {
  text-align: center;
  justify-items: center;
  padding-block: 28px;
}

.task-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-preview-head-main {
  min-width: 0;
}

.task-preview-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.task-preview-head h3 {
  margin: 4px 0 0;
  color: var(--title-color);
  font-size: 24px;
  line-height: 1.1;
}

.task-preview-kicker {
  color: #e59a45;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-preview-stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--task-stage-color, #6B98BF) 45%, rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  background: color-mix(in srgb, var(--task-stage-color, #6B98BF) 16%, rgba(255, 255, 255, 0.02));
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

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

.task-preview-stat {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.task-preview-label {
  color: rgba(207, 215, 225, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-preview-value {
  color: var(--title-color);
  font-size: 18px;
  line-height: 1.1;
}

.people-progress {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.people-progress-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.people-progress-ring {
  --people-progress: 0%;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background:
    conic-gradient(#9fc45e 0 var(--people-progress), rgba(255, 255, 255, 0.12) var(--people-progress) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.people-progress-ring-inner {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(43, 54, 68, 0.96);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.people-progress-meta {
  min-width: 0;
  display: block;
}

.people-progress-total {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.05;
}

.people-progress-caption {
  display: block;
  color: rgba(207, 215, 225, 0.72);
  font-size: 11px;
  line-height: 1.2;
}

.people-progress-kanban {
  width: 100%;
}

.people-progress-kanban .people-progress-main {
  gap: 7px;
}

.people-progress-kanban .people-progress-total {
  font-size: 16px;
  line-height: 1;
}

.people-progress-kanban .people-progress-caption {
  font-size: 10px;
  line-height: 1.15;
}

.people-progress-preview .people-progress-ring {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.people-progress-preview .people-progress-ring-inner {
  width: 22px;
  height: 22px;
}

.task-preview-note {
  margin: 0;
  color: rgba(207, 215, 225, 0.82);
  line-height: 1.6;
}

.task-preview-head-actions .user-action-button,
.kanban-card-head-actions .user-action-button {
  min-width: 32px;
  width: 32px;
  max-width: 32px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}

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

.dialog-inline-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--control-radius) - 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(13, 20, 29, 0.18);
}

.dialog-inline-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dialog-inline-panel-copy {
  margin: 6px 0 0;
  color: rgba(207, 215, 225, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.dialog-inline-panel-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(151, 193, 231, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(107, 152, 191, 0.18), rgba(10, 15, 21, 0.24));
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.task-approved-applications-list {
  display: grid;
  gap: 10px;
}

.task-approved-application-card {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--control-radius) - 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.task-approved-application-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-approved-application-name {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
}

.task-approved-application-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(207, 215, 225, 0.82);
  font-size: 13px;
  line-height: 1.4;
}

.task-approved-application-chip,
.task-approved-application-empty {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.task-approved-application-empty {
  color: rgba(207, 215, 225, 0.72);
  justify-content: center;
}

.task-approved-application-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--task-status-color, #97c1e7) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--task-status-color, #97c1e7) 16%, rgba(13, 20, 29, 0.45));
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.task-approved-application-status-control {
  display: inline-flex;
  min-width: 156px;
}

.task-approved-application-status-control select {
  width: 100%;
  min-height: 30px;
  padding: 4px 30px 4px 10px;
  border: 1px solid color-mix(in srgb, var(--task-status-color, #97c1e7) 60%, transparent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--task-status-color, #97c1e7) 16%, rgba(13, 20, 29, 0.7));
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.task-approved-application-status-control select:focus-visible {
  outline: 2px solid var(--task-status-color, #97c1e7);
  outline-offset: 2px;
}

.task-approved-application-status-control select:disabled {
  cursor: wait;
  opacity: 0.65;
}

.kanban-surface {
  position: relative;
  min-width: 0;
}

.kanban-edge-controls {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: block;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.kanban-edge-controls[hidden],
.kanban-board[hidden] + .kanban-edge-controls {
  display: none;
}

.kanban-surface:hover .kanban-edge-controls,
.kanban-edge-controls:focus-within {
  opacity: 1;
}

.kanban-edge-button {
  position: absolute;
  top: 50%;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(36, 53, 73, 0.56);
  box-shadow: 0 8px 20px rgba(9, 15, 23, 0.2);
  backdrop-filter: blur(5px);
  color: #ffffff;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.kanban-edge-button-prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.kanban-edge-button-next {
  right: 0;
  transform: translate(50%, -50%);
}

.kanban-edge-button:hover,
.kanban-edge-button:focus-visible {
  border-color: rgba(151, 193, 231, 0.86);
  background: rgba(62, 98, 134, 0.86);
  outline: none;
}

.kanban-edge-button[hidden] {
  visibility: hidden;
}

body[data-theme="light"] .kanban-edge-button {
  border-color: rgba(47, 61, 78, 0.22);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(47, 61, 78, 0.16);
  color: #26384d;
}

body[data-theme="light"] .kanban-edge-button:hover,
body[data-theme="light"] .kanban-edge-button:focus-visible {
  border-color: #6b98bf;
  background: rgba(233, 242, 250, 0.94);
}

.kanban-board {
  scroll-behavior: smooth;
}

@media (pointer: coarse), (max-width: 960px) {
  .kanban-edge-controls {
    display: none;
  }
}

body[data-theme="light"] .dialog-inline-panel {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    linear-gradient(180deg, rgba(107, 152, 191, 0.05), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body[data-theme="light"] .dialog-inline-panel-copy,
body[data-theme="light"] .task-approved-application-meta,
body[data-theme="light"] .task-approved-application-empty {
  color: #5f6772;
}

body[data-theme="light"] .dialog-inline-panel-count {
  border-color: rgba(107, 152, 191, 0.22);
  background: linear-gradient(180deg, rgba(107, 152, 191, 0.14), rgba(255, 255, 255, 0.94));
  color: #1f2c3a;
}

body[data-theme="light"] .task-approved-application-card {
  border-color: rgba(47, 61, 78, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.96));
}

body[data-theme="light"] .task-approved-application-name {
  color: #1f2c3a;
}

body[data-theme="light"] .task-approved-application-chip,
body[data-theme="light"] .task-approved-application-empty {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(107, 152, 191, 0.05);
}

body[data-theme="light"] .task-approved-application-status-control select {
  background: color-mix(in srgb, var(--task-status-color, #97c1e7) 12%, #ffffff);
  color: #1f2c3a;
}

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

.guide-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background:
    radial-gradient(circle at top right, rgba(107, 152, 191, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(10, 15, 21, 0.16));
}

.guide-card-wide {
  grid-column: 1 / -1;
}

.guide-kicker {
  color: #d4d947;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-card h2,
.guide-card h3 {
  margin: 0;
  color: var(--title-color);
  line-height: 1.15;
}

.guide-list,
.guide-steps {
  margin: 0;
  padding-left: 18px;
  color: rgba(207, 215, 225, 0.82);
  line-height: 1.6;
}

.guide-list li + li,
.guide-steps li + li {
  margin-top: 8px;
}

.status-pill-guide {
  min-width: 0;
}

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

.tasks-placeholder-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background:
    radial-gradient(circle at top right, rgba(228, 99, 33, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(10, 15, 21, 0.16));
}

.tasks-placeholder-kicker {
  color: #e59a45;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tasks-placeholder-card h2,
.tasks-placeholder-card h3 {
  margin: 0;
  color: var(--title-color);
  line-height: 1.15;
}

.tasks-placeholder-card p,
.tasks-placeholder-list {
  margin: 0;
  color: rgba(207, 215, 225, 0.8);
  line-height: 1.6;
}

.tasks-placeholder-list {
  padding-left: 18px;
}

body[data-theme="light"] .tasks-placeholder-card {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    radial-gradient(circle at top right, rgba(228, 99, 33, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.92);
}

body[data-theme="light"] .create-entity-button::before {
  background: rgba(255, 255, 255, 0.24);
}

body[data-theme="light"] .create-entity-button {
  border-color: rgba(104, 163, 61, 0.34);
  background: linear-gradient(180deg, rgba(128, 191, 80, 0.9), rgba(98, 158, 56, 0.88));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(98, 158, 56, 0.18);
}

body[data-theme="light"] .create-entity-button:hover,
body[data-theme="light"] .create-entity-button:focus-visible {
  border-color: rgba(104, 163, 61, 0.44);
  background: linear-gradient(180deg, rgba(137, 201, 87, 0.96), rgba(104, 168, 60, 0.94));
}

body[data-theme="light"] .task-preview-card {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    radial-gradient(circle at top right, rgba(107, 152, 191, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.94);
}

body[data-theme="light"] .task-preview-head h3,
body[data-theme="light"] .task-preview-value {
  color: #1f2c3a;
}

body[data-theme="light"] .people-progress-ring {
  background:
    conic-gradient(#86b94f 0 var(--people-progress), rgba(47, 61, 78, 0.14) var(--people-progress) 100%);
  box-shadow: inset 0 0 0 1px rgba(47, 61, 78, 0.1);
}

body[data-theme="light"] .people-progress-ring-inner {
  background: rgba(255, 255, 255, 0.98);
  color: #1f2c3a;
}

body[data-theme="light"] .people-progress-total {
  color: #1f2c3a;
}

body[data-theme="light"] .people-progress-caption {
  color: rgba(95, 103, 114, 0.82);
}

body[data-theme="light"] .task-preview-note {
  color: #5f6772;
}

body[data-theme="light"] .task-preview-stat {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

body[data-theme="light"] .task-preview-label {
  color: rgba(95, 103, 114, 0.78);
}

body[data-theme="light"] .guide-card {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    radial-gradient(circle at top right, rgba(107, 152, 191, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.92);
}

body[data-theme="light"] .tasks-placeholder-card h2,
body[data-theme="light"] .tasks-placeholder-card h3 {
  color: #1f2c3a;
}

body[data-theme="light"] .tasks-placeholder-card p,
body[data-theme="light"] .tasks-placeholder-list {
  color: #5f6772;
}

body[data-theme="light"] .guide-list,
body[data-theme="light"] .guide-steps {
  color: #5f6772;
}

body[data-theme="light"] .guide-card h2,
body[data-theme="light"] .guide-card h3 {
  color: #1f2c3a;
}

body[data-theme="light"] .section-copy,
body[data-theme="light"] .auth-copy,
body[data-theme="light"] .cell-sub,
body[data-theme="light"] .empty-state,
body[data-theme="light"] .empty-cell {
  color: #5f6772;
}

body[data-theme="light"] .auth-badge {
  border-color: rgba(107, 152, 191, 0.2);
  background: rgba(107, 152, 191, 0.1);
  color: #27435f;
}

body[data-theme="light"] .auth-card-kicker {
  color: #7a8591;
}

body[data-theme="light"] .auth-lock {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    radial-gradient(circle at center, rgba(107, 152, 191, 0.16), rgba(107, 152, 191, 0) 68%),
    rgba(107, 152, 191, 0.06);
}

body[data-theme="light"] .auth-lock::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(39,67,95,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E");
}

body[data-theme="light"] .auth-password-toggle {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(107, 152, 191, 0.08);
}

body[data-theme="light"] .auth-password-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(39,67,95,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

body[data-theme="light"] .auth-password-toggle.is-active::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(39,67,95,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18'/%3E%3Cpath d='M10.58 10.58a2 2 0 1 0 2.83 2.83'/%3E%3Cpath d='M9.88 5.09A11 11 0 0 1 12 5c6.5 0 10 7 10 7a17.6 17.6 0 0 1-4.17 4.87'/%3E%3Cpath d='M6.61 6.61C3.64 8.36 2 12 2 12a17.4 17.4 0 0 0 7.38 5.43'/%3E%3C/svg%3E");
}

body[data-theme="light"] .icon-button::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(39,67,95,0.94)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

body[data-theme="light"] .contact-link {
  border-color: rgba(107, 152, 191, 0.18);
  background: rgba(107, 152, 191, 0.08);
  color: #27435f;
}

body[data-theme="light"] .contact-link-phone {
  background: transparent;
  color: #465160;
}

body[data-theme="light"] .contact-link-phone:hover {
  color: #1f2c3a;
}

body[data-theme="light"] .contact-icon-phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(39,67,95,0.96)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.79.61 2.65a2 2 0 0 1-.45 2.11L8 9.99a16 16 0 0 0 6 6l1.51-1.27a2 2 0 0 1 2.11-.45c.86.28 1.75.49 2.65.61A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

body[data-theme="light"] .contact-icon-telegram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(39,67,95,0.96)'%3E%3Cpath d='M21.5 4.5 18.4 19c-.2 1-1 1.3-1.8.8l-4.1-3-2 2c-.2.2-.4.4-.8.4l.3-4.3 7.9-7.1c.3-.3-.1-.5-.5-.3l-9.8 6.2-4.2-1.3c-.9-.3-.9-.9.2-1.3L19.6 4c.8-.3 1.5.2 1.9.5Z'/%3E%3C/svg%3E");
}

body[data-theme="light"] .contact-icon-instagram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(39,67,95,0.96)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
}

body[data-theme="light"] .status-pill {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: #465160;
}

body[data-theme="light"] .auth-status {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #465160;
}

body[data-theme="light"] .auth-status.ok {
  border-color: rgba(118, 180, 72, 0.28);
  background: rgba(118, 180, 72, 0.12);
  color: #436b24;
}

body[data-theme="light"] .auth-status.error {
  border-color: rgba(228, 99, 33, 0.18);
  background: rgba(228, 99, 33, 0.1);
  color: #9a4a29;
}

body[data-theme="light"] .status-pill.ok {
  border-color: rgba(107, 152, 191, 0.24);
  background: rgba(107, 152, 191, 0.14);
  color: #27435f;
}

body[data-theme="light"] #apiStatus.ok {
  border-color: rgba(118, 180, 72, 0.28);
  background: rgba(118, 180, 72, 0.12);
  color: #436b24;
}

body[data-theme="light"] .status-pill.error {
  border-color: rgba(228, 99, 33, 0.18);
  background: rgba(228, 99, 33, 0.1);
  color: #9a4a29;
}

body[data-theme="light"] .summary-card,
body[data-theme="light"] .users-panel,
body[data-theme="light"] .filter-panel,
body[data-theme="light"] .table-wrap,
body[data-theme="light"] .admin-card {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

body[data-theme="light"] .summary-card-total {
  border-color: rgba(107, 152, 191, 0.2);
  background: rgba(107, 152, 191, 0.1);
}

body[data-theme="light"] .summary-card-new {
  border-color: rgba(107, 152, 191, 0.24);
  background: rgba(107, 152, 191, 0.14);
}

body[data-theme="light"] .summary-card-confirmed {
  border-color: rgba(118, 180, 72, 0.24);
  background: rgba(118, 180, 72, 0.14);
}

body[data-theme="light"] .summary-card-interview {
  border-color: rgba(214, 170, 68, 0.24);
  background: rgba(214, 170, 68, 0.14);
}

body[data-theme="light"] .summary-card.is-active {
  border-width: 2px;
  box-shadow: 0 12px 24px rgba(24, 39, 58, 0.12);
}

body[data-theme="light"] .summary-card-total.is-active,
body[data-theme="light"] .summary-card-new.is-active {
  border-color: rgba(66, 114, 156, 0.78);
}

body[data-theme="light"] .summary-card-confirmed.is-active {
  border-color: rgba(90, 145, 45, 0.78);
}

body[data-theme="light"] .summary-card-interview.is-active {
  border-color: rgba(166, 122, 22, 0.82);
}

body[data-theme="light"] .dialog-card {
  border-color: rgba(47, 61, 78, 0.12);
  background:
    radial-gradient(circle at top right, rgba(212, 217, 71, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 250, 0.98));
  box-shadow: 0 20px 40px rgba(29, 46, 64, 0.18);
}

body[data-theme="light"] .dialog-backdrop {
  background: rgba(29, 46, 64, 0.24);
}

body[data-theme="light"] .user-create-card,
body[data-theme="light"] .user-card,
body[data-theme="light"] .users-empty-state {
  border-color: rgba(47, 61, 78, 0.1);
  background: rgba(107, 152, 191, 0.06);
}

body[data-theme="light"] .user-card-section,
body[data-theme="light"] .user-card-meta-item {
  border-color: rgba(47, 61, 78, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

body[data-theme="light"] .user-card {
  border-color: rgba(47, 61, 78, 0.1);
  box-shadow: 0 14px 28px rgba(29, 46, 64, 0.08);
}

body[data-theme="light"] .user-card:hover {
  border-color: rgba(107, 152, 191, 0.2);
  box-shadow: 0 18px 34px rgba(29, 46, 64, 0.12);
}

body[data-theme="light"] .user-create-note,
body[data-theme="light"] .users-list-copy,
body[data-theme="light"] .user-create-copy,
body[data-theme="light"] .user-section-copy {
  color: #66717e;
}

body[data-theme="light"] .user-card-name {
  color: #1f2c3a;
}

body[data-theme="light"] .user-scope-pill {
  border-color: rgba(107, 152, 191, 0.2);
  background: rgba(107, 152, 191, 0.1);
  color: #30506f;
}

body[data-theme="light"] .user-card-meta-label {
  color: #718091;
}

body[data-theme="light"] .user-card-meta-value {
  color: #243446;
}

body[data-theme="light"] .user-card-login,
body[data-theme="light"] .user-modal-login {
  color: #657487;
}

.user-modal-stack {
  display: grid;
  gap: 14px;
}

.user-modal-summary {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(12, 17, 24, 0.18);
}

.user-modal-name {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.user-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: rgba(207, 215, 225, 0.68);
  font-size: 13px;
}

.user-modal-section {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(12, 17, 24, 0.18);
}

.user-edit-dialog {
  width: min(760px, calc(100vw - 32px));
}

.user-edit-dialog .dialog-head {
  margin-bottom: 12px;
}

.user-edit-dialog .dialog-head h2 {
  font-size: 22px;
}

.user-edit-dialog .dialog-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .user-modal-summary,
body[data-theme="light"] .user-modal-section {
  border-color: rgba(47, 61, 78, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

body[data-theme="light"] .user-modal-meta {
  color: #66717e;
}

body[data-theme="light"] .user-edit-dialog .dialog-actions {
  border-top-color: rgba(47, 61, 78, 0.08);
}

body[data-theme="light"] .mobile-filter-hint {
  color: #5f6772;
}

body[data-theme="light"] .mobile-search-field input {
  background: rgba(255, 255, 255, 0.92);
}

body[data-theme="light"] .mobile-search-clear {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(107, 152, 191, 0.08);
  color: #27435f;
}

body[data-theme="light"] .scroll-top-button {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #27435f;
  box-shadow: 0 12px 24px rgba(29, 46, 64, 0.18);
}

body[data-theme="light"] .pagination-info {
  color: #5f6772;
}

body[data-theme="light"] .admin-card-item {
  border-color: rgba(47, 61, 78, 0.1);
  background: rgba(107, 152, 191, 0.06);
}

body[data-theme="light"] .summary-label,
body[data-theme="light"] .label-text,
body[data-theme="light"] .admin-card-label,
body[data-theme="light"] th {
  color: #5f6772;
}

body[data-theme="light"] .user-card-badge {
  border-color: rgba(107, 152, 191, 0.18);
  background: rgba(107, 152, 191, 0.08);
  color: #27435f;
}

body[data-theme="light"] .status-chip-default,
body[data-theme="light"] .status-chip-new {
  border-color: rgba(107, 152, 191, 0.28);
  background: rgba(107, 152, 191, 0.14);
  color: #27435f;
}

body[data-theme="light"] .status-chip-confirmed,
body[data-theme="light"] .status-chip-worked {
  border-color: rgba(118, 180, 72, 0.28);
  background: rgba(118, 180, 72, 0.16);
  color: #31541a;
}

body[data-theme="light"] .status-chip-cancelled {
  border-color: rgba(120, 132, 146, 0.22);
  background: rgba(120, 132, 146, 0.12);
  color: #495462;
}

body[data-theme="light"] .status-chip-rejected {
  border-color: rgba(228, 99, 33, 0.24);
  background: rgba(228, 99, 33, 0.12);
  color: #8d411d;
}

body[data-theme="light"] .status-chip-no-show {
  border-color: rgba(214, 170, 68, 0.26);
  background: rgba(214, 170, 68, 0.16);
  color: #7a5a12;
}

body[data-theme="light"] .employee-promote-button {
  border-color: rgba(107, 152, 191, 0.22);
  background: rgba(107, 152, 191, 0.12);
  color: #27435f;
}

body[data-theme="light"] .employee-promote-button:hover,
body[data-theme="light"] .employee-promote-button:focus-visible {
  border-color: rgba(107, 152, 191, 0.28);
  background: rgba(107, 152, 191, 0.18);
}

body[data-theme="light"] .status-menu {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(29, 46, 64, 0.18);
}

body[data-theme="light"] .status-menu-item {
  background: rgba(107, 152, 191, 0.04);
  color: #27435f;
}

body[data-theme="light"] .status-menu-item:hover {
  border-color: rgba(107, 152, 191, 0.22);
  background: rgba(107, 152, 191, 0.1);
}

body[data-theme="light"] .status-menu-item.is-active {
  border-color: rgba(107, 152, 191, 0.24);
  background: rgba(107, 152, 191, 0.14);
}

body[data-theme="light"] .dialog-card textarea {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #465160;
}

body[data-theme="light"] .dialog-form-grid,
body[data-theme="light"] .dialog-field-grid,
body[data-theme="light"] .user-modal-stack,
body[data-theme="light"] .dialog-scroll-body {
  scrollbar-color: rgba(107, 152, 191, 0.9) rgba(188, 202, 219, 0.38);
}

body[data-theme="light"] .dialog-form-grid::-webkit-scrollbar-track,
body[data-theme="light"] .dialog-field-grid::-webkit-scrollbar-track,
body[data-theme="light"] .user-modal-stack::-webkit-scrollbar-track,
body[data-theme="light"] .dialog-scroll-body::-webkit-scrollbar-track {
  background: rgba(188, 202, 219, 0.38);
  box-shadow: inset 0 0 0 1px rgba(47, 61, 78, 0.08);
}

body[data-theme="light"] .dialog-form-grid::-webkit-scrollbar-thumb,
body[data-theme="light"] .dialog-field-grid::-webkit-scrollbar-thumb,
body[data-theme="light"] .user-modal-stack::-webkit-scrollbar-thumb,
body[data-theme="light"] .dialog-scroll-body::-webkit-scrollbar-thumb {
  border-color: rgba(188, 202, 219, 0.22);
  background: linear-gradient(180deg, rgba(107, 152, 191, 0.96), rgba(175, 204, 97, 0.94));
}

body[data-theme="light"] .dialog-form-grid::-webkit-scrollbar-thumb:hover,
body[data-theme="light"] .dialog-field-grid::-webkit-scrollbar-thumb:hover,
body[data-theme="light"] .user-modal-stack::-webkit-scrollbar-thumb:hover,
body[data-theme="light"] .dialog-scroll-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(124, 166, 200, 0.98), rgba(189, 214, 112, 0.96));
}

body[data-theme="light"] .dialog-rate-option-label {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

body[data-theme="light"] .dialog-rate-option-title {
  color: #213043;
}

body[data-theme="light"] .dialog-rate-option-meta {
  color: rgba(95, 103, 114, 0.78);
}

body[data-theme="light"] .dialog-rate-option input:checked + .dialog-rate-option-label {
  border-color: rgba(212, 217, 71, 0.7);
  background: rgba(212, 217, 71, 0.14);
}

body[data-theme="light"] .dialog-card textarea::placeholder {
  color: rgba(95, 103, 114, 0.72);
}

body[data-theme="light"] .admin-delete-button {
  border-color: rgba(228, 99, 33, 0.24);
  background: rgba(228, 99, 33, 0.1);
  color: #8d411d;
}

body[data-theme="light"] .admin-delete-button:hover {
  border-color: rgba(228, 99, 33, 0.3);
  background: rgba(228, 99, 33, 0.16);
}

body[data-theme="light"] .admin-card-phone,
body[data-theme="light"] .admin-card-money,
body[data-theme="light"] .admin-card-note-body,
body[data-theme="light"] .user-card-meta {
  color: #5f6772;
}

body[data-theme="light"] input,
body[data-theme="light"] select {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #465160;
}

body[data-theme="light"] input::placeholder {
  color: rgba(95, 103, 114, 0.72);
}

body[data-theme="light"] input:focus,
body[data-theme="light"] select:focus {
  background: #ffffff;
}

body[data-theme="light"] select option,
body[data-theme="light"] select optgroup {
  background: #ffffff;
  color: #1f2c3a;
}

body[data-theme="light"] .secondary-button {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #27435f;
}

body[data-theme="light"] .secondary-button:hover {
  border-color: rgba(107, 152, 191, 0.28);
  background: rgba(107, 152, 191, 0.08);
}

body[data-theme="light"] .filter-close-button {
  border-color: rgba(47, 61, 78, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #27435f;
}

body[data-theme="light"] th,
body[data-theme="light"] td {
  border-bottom-color: rgba(47, 61, 78, 0.08);
}

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

  .users-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .admin-card-head {
    align-items: start;
  }

  .status-chip {
    align-self: start;
  }

  .status-menu {
    min-width: 200px;
  }

  .page-shell {
    width: 100%;
    padding: 0 0 24px;
  }

  .form-panel {
    padding: 18px 14px 22px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .form-header {
    margin: -18px -14px 22px;
    padding: 20px 14px 16px;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: start;
  }

  .header-controls {
    flex-direction: row;
    align-items: center;
  }

  .header-menu-wrap {
    flex: 0 0 auto;
  }

  .header-actions {
    margin-left: 0;
  }

  .header-profile-link {
    max-width: 100%;
  }

  .status-stack,
  .section-head,
  .admin-card-head {
    flex-direction: column;
    align-items: start;
  }

  .funnel-title-row {
    align-items: flex-start;
  }

  .tasks-placeholder-grid {
    grid-template-columns: 1fr;
  }

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

  .view-switcher {
    display: none;
  }

  .view-option {
    min-width: 0;
    padding: 0 10px;
    font-size: 12px;
  }

  .status-stack {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .status-stack.status-stack-compact {
    display: inline-grid;
    width: auto;
    max-width: 100%;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .status-pill,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .mobile-filter-bar .create-entity-button,
  .mobile-filter-bar .toolbar-action-group .secondary-button,
  .tasks-toolbar-bar .create-entity-button {
    width: auto;
    min-width: 0;
    padding-inline: 14px;
  }

  .mobile-filter-bar .toolbar-action-group {
    width: auto;
  }

  .task-preview-grid {
    grid-template-columns: 1fr;
  }

  .people-progress {
    gap: 4px;
  }

  .people-progress-ring {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .people-progress-ring-inner {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .people-progress-total {
    font-size: 16px;
  }

  .people-progress-caption {
    font-size: 10px;
  }

  .task-preview-head {
    flex-direction: column;
  }

  .status-stack .status-pill {
    width: auto;
    min-width: 0;
  }

  .status-stack.status-stack-compact .status-pill {
    width: fit-content;
    flex: 0 0 auto;
    min-width: 0;
  }

  .table-wrap {
    display: none;
  }

  .admin-cards {
    display: block;
  }

  .pagination {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .pagination-button {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .mobile-filter-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }

  .admin-toolbar-row {
    display: block;
    margin-bottom: 0;
  }

  .admin-toolbar-row .view-switcher {
    margin: 0 0 14px;
  }

  .mobile-search-bar {
    display: block;
    margin-bottom: 14px;
  }

  .mobile-filter-button {
    position: relative;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    text-indent: -9999px;
  }

  .mobile-filter-button::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    opacity: 0.9;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/%3E%3C/svg%3E");
  }

  .mobile-filter-hint {
    color: rgba(207, 215, 225, 0.72);
    font-size: 13px;
    line-height: 1.4;
  }

  .mobile-search-field input {
    padding: 13px 14px;
    background: rgba(14, 19, 26, 0.42);
  }

  .mobile-search-control input {
    padding-right: 50px;
  }

  .desktop-filter-field {
    display: none;
  }

  .scroll-top-button {
    right: 12px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .filter-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    margin: 0;
    max-height: calc(100vh - 110px);
    overflow: auto;
    padding: 16px;
    border-color: rgba(255, 255, 255, 0.14);
    background:
      radial-gradient(circle at top right, rgba(212, 217, 71, 0.08), transparent 34%),
      linear-gradient(180deg, rgba(55, 67, 82, 0.98), rgba(43, 54, 68, 0.99));
    box-shadow: 0 24px 48px rgba(6, 10, 16, 0.38);
    transform: translateY(18px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .filter-sheet-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(10, 14, 20, 0.74);
    backdrop-filter: blur(2px);
  }

  body.filters-open {
    overflow: hidden;
  }

  body.filters-open .filter-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.filters-open .filter-overlay {
    display: block;
  }

  .section-head h1 {
    font-size: 38px;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  .summary-card {
    display: grid;
    gap: 8px;
    align-content: center;
    justify-items: center;
    text-align: center;
    min-height: 88px;
    padding: 10px 8px;
  }

  .summary-label {
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
  }

  .summary-value {
    margin: 0;
    font-size: 20px;
    line-height: 1;
  }

  .kanban-board {
    grid-auto-columns: minmax(250px, 84vw);
    gap: 12px;
  }

  .kanban-column {
    min-height: 240px;
    padding: 12px;
  }

  .kanban-card {
    padding: 10px;
  }

  .kanban-card-grid {
    grid-template-columns: 1fr;
  }

  .dialog-card {
    width: 100%;
    max-width: 100%;
    padding: 16px 14px;
  }

  .dialog-backdrop {
    align-items: flex-start;
    padding: max(88px, calc(env(safe-area-inset-top) + 24px)) 16px 24px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(12, 18, 26, 0.84);
  }

  .dialog-head {
    margin-bottom: 12px;
  }

  .dialog-head h2 {
    font-size: 20px;
    line-height: 1.12;
  }

  .dialog-form-grid {
    grid-template-columns: 1fr;
  }

  .dialog-rate-grid {
    grid-template-columns: 1fr;
  }

  .dialog-field-grid {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 8px;
    align-items: end;
  }

  .dialog-card .filter-field {
    gap: 6px;
  }

  .dialog-card input[type="date"],
  .dialog-card input[type="time"] {
    width: 100%;
    inline-size: 100%;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 16px;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .admin-card {
    gap: 8px;
    padding: 10px;
  }

  .admin-card + .admin-card {
    margin-top: 8px;
  }

  .admin-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .admin-card-person {
    gap: 3px;
  }

  .admin-card-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: start;
  }

  .admin-card-name {
    font-size: 16px;
    line-height: 1.08;
  }

  .admin-card-item {
    gap: 3px;
    padding: 7px 8px;
    min-width: 0;
  }

  .admin-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  .admin-card-value {
    font-size: 13px;
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .admin-card-label {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .admin-card-phone,
  .admin-card-subtitle,
  .admin-card-note-body {
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .admin-card-money {
    font-size: 10px;
  }

  .admin-card-source-line {
    display: none;
  }

  .contact-links {
    gap: 6px;
    margin-top: 2px;
  }

  .contact-link {
    min-height: 22px;
    padding: 0 7px;
    font-size: 10px;
  }

  .status-chip {
    min-height: 24px;
    padding: 0 7px;
    font-size: 10px;
  }

  .admin-card-actions,
  .admin-card-actions-compact,
  .admin-card-actions-start {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
  }

  .admin-card-actions .secondary-button,
  .admin-card-actions .employee-promote-button,
  .admin-card-actions .employee-linked-badge,
  .admin-card-actions .admin-edit-button {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto;
    margin-top: 0;
  }

  .admin-edit-button {
    min-width: 0;
    width: auto;
    max-width: none;
    min-height: 30px;
    padding: 0 8px;
    gap: 5px;
    font-size: 11px;
    line-height: 1;
  }

  .admin-edit-button::before {
    content: none;
  }

  .employee-promote-button,
  .employee-linked-badge,
  .admin-delete-button {
    min-height: 30px;
    padding: 0 8px;
    gap: 5px;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
  }

  .employee-promote-button::before {
    content: none;
  }

  .employee-linked-badge::before {
    content: none;
  }

  .employee-promote-button.is-compact,
  .employee-linked-badge.is-compact,
  .admin-delete-button {
    margin-top: 0;
  }

  .admin-action-icon {
    display: none;
  }

  .admin-action-label {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
    font-size: 11px;
    line-height: 1;
  }

  .users-panel-head {
    flex-direction: column;
    align-items: start;
  }

  .user-create-card {
    position: static;
    top: auto;
  }

  .user-card-meta-grid {
    grid-template-columns: 1fr;
  }

  .user-delete-button {
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    justify-self: end;
  }

  .user-modal-meta {
    display: grid;
    gap: 6px;
  }

  .user-modal-meta {
    display: grid;
    gap: 6px;
  }

  body[data-theme="light"] .brand-logo-stack {
    width: min(228px, 100%);
    margin: 0 0 10px;
    padding: 8px 10px;
  }

  .auth-view {
    min-height: auto;
  }

  .auth-intro,
  .auth-card {
    width: 100%;
    padding: 18px 16px;
  }

  .auth-title {
    font-size: 32px;
  }

  .auth-card-title {
    font-size: 24px;
  }

  .auth-badges {
    gap: 8px;
    margin-top: 16px;
  }
}

@media (min-width: 961px) {
  :root {
    --kanban-column-height: clamp(520px, calc(100vh - 280px), 760px);
  }

  .kanban-board {
    align-items: stretch !important;
  }

  .kanban-column {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    height: var(--kanban-column-height) !important;
    min-height: var(--kanban-column-height) !important;
    max-height: var(--kanban-column-height) !important;
    align-self: stretch !important;
    overflow: hidden !important;
  }

  .kanban-column-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    align-content: stretch !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    padding-right: 4px !important;
  }

  .kanban-column-body > * {
    flex: 0 0 auto !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .kanban-card,
  .shift-application-card,
  .task-plan-card {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}

@media (min-width: 961px) {
  .kanban-board {
    grid-auto-columns: minmax(340px, 340px) !important;
  }

  .kanban-column {
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
  }

  .kanban-card,
  .shift-application-card,
  .task-plan-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .kanban-card-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 8px !important;
  }

  .kanban-card-identity {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
  }

  .kanban-card-name {
    min-width: 0;
    line-height: 1.15;
  }

  .kanban-card-head-actions {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    min-width: 32px;
    flex: 0 0 auto;
  }

  .kanban-card-head-actions .kanban-edit-button {
    margin-left: 0 !important;
  }
}

/* 2026-07-10 funnel switcher cleanup */
.funnel-nav-shell {
  margin: 10px 0 16px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(38, 48, 62, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 20px rgba(8, 12, 18, 0.12);
}

.funnel-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  min-height: 38px;
}

.funnel-strip-link,
.funnel-switcher-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: rgba(220, 228, 239, 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.funnel-strip-link::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  opacity: 0.95;
}

.funnel-strip-link:hover,
.funnel-switcher-link:hover {
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
}

.funnel-strip-link.is-active,
.funnel-switcher-link.is-active {
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.funnel-strip-link-candidates.is-active {
  border-color: rgba(107, 152, 191, 0.34);
  background:
    linear-gradient(180deg, rgba(107, 152, 191, 0.16), rgba(107, 152, 191, 0.11)),
    rgba(255, 255, 255, 0.03);
}

.funnel-strip-link-employees.is-active {
  border-color: rgba(181, 202, 88, 0.34);
  background:
    linear-gradient(180deg, rgba(181, 202, 88, 0.16), rgba(181, 202, 88, 0.11)),
    rgba(255, 255, 255, 0.03);
}

.funnel-strip-link-tasks.is-active {
  border-color: rgba(228, 99, 33, 0.34);
  background:
    linear-gradient(180deg, rgba(228, 99, 33, 0.15), rgba(228, 99, 33, 0.1)),
    rgba(255, 255, 255, 0.03);
}

body[data-theme="light"] .funnel-nav-shell {
  border-color: rgba(76, 94, 116, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(45, 64, 86, 0.05);
}

body[data-theme="light"] .funnel-strip {
  gap: 1px;
  padding: 0;
  min-height: 36px;
  background: rgba(85, 104, 126, 0.1);
  border-radius: 2px;
}

body[data-theme="light"] .funnel-strip-link,
body[data-theme="light"] .funnel-switcher-link {
  min-height: 36px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.88);
  color: #5f6f82;
  box-shadow: none;
}

body[data-theme="light"] .funnel-strip-link:hover,
body[data-theme="light"] .funnel-switcher-link:hover {
  background: rgba(255, 255, 255, 0.96);
  color: #24394f;
}

body[data-theme="light"] .funnel-strip-link.is-active,
body[data-theme="light"] .funnel-switcher-link.is-active {
  color: #203247;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body[data-theme="light"] .funnel-strip-link-candidates.is-active {
  border-color: rgba(107, 152, 191, 0.26);
  background:
    linear-gradient(180deg, rgba(107, 152, 191, 0.18), rgba(107, 152, 191, 0.1)),
    rgba(250, 252, 255, 0.98);
}

body[data-theme="light"] .funnel-strip-link-employees.is-active {
  border-color: rgba(181, 202, 88, 0.3);
  background:
    linear-gradient(180deg, rgba(181, 202, 88, 0.18), rgba(181, 202, 88, 0.1)),
    rgba(250, 252, 255, 0.98);
}

body[data-theme="light"] .funnel-strip-link-tasks.is-active {
  border-color: rgba(228, 99, 33, 0.24);
  background:
    linear-gradient(180deg, rgba(228, 99, 33, 0.14), rgba(228, 99, 33, 0.08)),
    rgba(250, 252, 255, 0.98);
}

@media (max-width: 960px) {
  .funnel-nav-shell {
    margin: 8px 0 14px;
    padding: 2px;
  }

  .funnel-strip {
    gap: 2px;
  }

  .funnel-strip-link,
  .funnel-switcher-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* Final mobile card overrides for live admin views. Keep these at the end so
   the real production pages cannot be overridden by earlier generic rules. */
@media (max-width: 960px) {
  #adminView .admin-card,
  #employeesView .admin-card,
  #applicationsView .admin-card {
    gap: 8px !important;
    padding: 10px !important;
  }

  #adminView .admin-card-head,
  #employeesView .admin-card-head,
  #applicationsView .admin-card-head,
  #tasksView .admin-card-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  #adminView .admin-card-person,
  #employeesView .admin-card-person,
  #applicationsView .admin-card-person,
  #tasksView .admin-card-person {
    gap: 3px !important;
  }

  #adminView .admin-card-title-row,
  #employeesView .admin-card-title-row,
  #applicationsView .admin-card-title-row,
  #tasksView .admin-card-title-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px !important;
    align-items: start !important;
  }

  #adminView .admin-card-name,
  #employeesView .admin-card-name,
  #applicationsView .admin-card-name,
  #tasksView .admin-card-name {
    font-size: 16px !important;
    line-height: 1.08 !important;
  }

  #adminView .admin-card-grid,
  #employeesView .admin-card-grid,
  #applicationsView .admin-card-grid,
  #tasksView .admin-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  #adminView .admin-card-item,
  #employeesView .admin-card-item,
  #applicationsView .admin-card-item,
  #tasksView .admin-card-item {
    min-width: 0 !important;
    gap: 3px !important;
    padding: 7px 8px !important;
  }

  #adminView .admin-card-note,
  #employeesView .admin-card-note,
  #applicationsView .admin-card-note,
  #tasksView .admin-card-note {
    grid-column: 1 / -1 !important;
  }

  #adminView .admin-card-label,
  #employeesView .admin-card-label,
  #applicationsView .admin-card-label,
  #tasksView .admin-card-label {
    font-size: 9px !important;
    letter-spacing: 0.04em !important;
  }

  #adminView .admin-card-value,
  #employeesView .admin-card-value,
  #applicationsView .admin-card-value,
  #tasksView .admin-card-value {
    font-size: 13px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  #adminView .admin-card-phone,
  #adminView .admin-card-subtitle,
  #adminView .admin-card-note-body,
  #employeesView .admin-card-phone,
  #employeesView .admin-card-subtitle,
  #employeesView .admin-card-note-body,
  #applicationsView .admin-card-phone,
  #applicationsView .admin-card-subtitle,
  #applicationsView .admin-card-note-body,
  #tasksView .admin-card-phone,
  #tasksView .admin-card-subtitle,
  #tasksView .admin-card-note-body {
    font-size: 11px !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  #adminView .admin-card-source-line,
  #employeesView .admin-card-source-line,
  #applicationsView .admin-card-source-line,
  #tasksView .admin-card-source-line {
    display: none !important;
  }

  #adminView .contact-links,
  #employeesView .contact-links,
  #applicationsView .contact-links,
  #tasksView .contact-links {
    gap: 6px !important;
    margin-top: 2px !important;
  }

  #adminView .contact-link,
  #employeesView .contact-link,
  #applicationsView .contact-link,
  #tasksView .contact-link {
    min-height: 22px !important;
    padding: 0 7px !important;
    font-size: 10px !important;
  }

  #adminView .status-chip,
  #employeesView .status-chip,
  #applicationsView .status-chip,
  #tasksView .status-chip,
  #tasksView .task-preview-stage {
    min-height: 24px !important;
    padding: 0 7px !important;
    font-size: 10px !important;
  }

  #adminView .admin-card-actions,
  #adminView .admin-card-actions-compact,
  #adminView .admin-card-actions-start,
  #employeesView .admin-card-actions,
  #employeesView .admin-card-actions-compact,
  #employeesView .admin-card-actions-start,
  #applicationsView .admin-card-actions,
  #applicationsView .admin-card-actions-compact,
  #applicationsView .admin-card-actions-start,
  #tasksView .admin-card-actions,
  #tasksView .admin-card-actions-compact,
  #tasksView .admin-card-actions-start {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  #adminView .admin-card-actions .secondary-button,
  #adminView .admin-card-actions .employee-promote-button,
  #adminView .admin-card-actions .employee-linked-badge,
  #adminView .admin-card-actions .admin-edit-button,
  #employeesView .admin-card-actions .secondary-button,
  #employeesView .admin-card-actions .employee-promote-button,
  #employeesView .admin-card-actions .employee-linked-badge,
  #employeesView .admin-card-actions .admin-edit-button,
  #applicationsView .admin-card-actions .secondary-button,
  #applicationsView .admin-card-actions .employee-promote-button,
  #applicationsView .admin-card-actions .employee-linked-badge,
  #applicationsView .admin-card-actions .admin-edit-button,
  #tasksView .admin-card-actions .secondary-button,
  #tasksView .admin-card-actions .employee-promote-button,
  #tasksView .admin-card-actions .employee-linked-badge,
  #tasksView .admin-card-actions .admin-edit-button {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    margin-top: 0 !important;
  }

  #adminView .admin-edit-button,
  #employeesView .admin-edit-button,
  #applicationsView .admin-edit-button,
  #tasksView .admin-edit-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 30px !important;
    padding: 0 8px !important;
  }

  #adminView .employee-promote-button,
  #adminView .employee-linked-badge,
  #adminView .admin-delete-button,
  #employeesView .employee-promote-button,
  #employeesView .employee-linked-badge,
  #employeesView .admin-delete-button,
  #applicationsView .employee-promote-button,
  #applicationsView .employee-linked-badge,
  #applicationsView .admin-delete-button,
  #tasksView .employee-promote-button,
  #tasksView .employee-linked-badge,
  #tasksView .admin-delete-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-height: 30px !important;
    padding: 0 8px !important;
    text-decoration: none !important;
  }

  #adminView .admin-action-icon,
  #employeesView .admin-action-icon,
  #applicationsView .admin-action-icon,
  #tasksView .admin-action-icon {
    display: none !important;
  }

  #adminView .admin-action-label,
  #employeesView .admin-action-label,
  #applicationsView .admin-action-label,
  #tasksView .admin-action-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
    border: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }
}

