html {
    font-size: 75%;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f4f7fb;
}

a, .btn-link {
    color: #006bb7;
}

.page.theme-dark a,
.page.theme-dark .btn-link {
    color: var(--app-link);
}

.page.theme-bee a,
.page.theme-bee .btn-link {
    color: var(--app-link);
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
    color: var(--app-text);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.page.theme-dark .text-muted,
.page.theme-dark .finance-widget-subtitle,
.page.theme-dark .finance-summary-label,
.page.theme-dark .finance-period-caption,
.page.theme-dark .finance-y-axis-label,
.page.theme-dark .finance-axis-labels,
.page.theme-dark .finance-inline-legend,
.page.theme-dark .finance-kpi-label,
.page.theme-dark .home-summary-subtitle,
.page.theme-dark .home-summary-label,
.page.theme-dark .home-events-empty,
.page.theme-dark .app-news-summary,
.page.theme-dark .app-news-date,
.page.theme-dark .admin-user-meta,
.page.theme-dark .admin-news-item-meta,
.page.theme-dark .admin-news-item-summary,
.page.theme-dark .admin-subtitle,
.page.theme-dark .todo-item-client,
.page.theme-dark .todo-home-item-client,
.page.theme-dark .todo-summary-label,
.page.theme-dark .todo-item-note,
.page.theme-dark .todo-home-bucket-caption,
.page.theme-dark .todo-home-empty,
.page.theme-dark .contract-file-hint {
    color: var(--app-text-muted) !important;
}

.page.theme-dark .card,
.page.theme-dark .finance-widget,
.page.theme-dark .home-calendar-tile,
.page.theme-dark .home-summary-tile,
.page.theme-dark .profile-summary-card,
.page.theme-dark .admin-card,
.page.theme-dark .admin-user-card,
.page.theme-dark .admin-news-item,
.page.theme-dark .app-news-card,
.page.theme-dark .todo-summary-card,
.page.theme-dark .todo-form-card,
.page.theme-dark .todo-list-card,
.page.theme-dark .todo-item-card,
.page.theme-dark .todo-home-bucket,
.page.theme-dark .finance-summary-card,
.page.theme-dark .finance-kpi-card,
.page.theme-dark .home-summary-stat,
.page.theme-dark .home-event-item,
.page.theme-dark .contract-file-panel,
.page.theme-dark .contract-upload-box,
.page.theme-dark .contract-addendums-panel,
.page.theme-dark .contract-closing-documents-panel,
.page.theme-dark .contract-addendum-card,
.page.theme-dark .finance-empty,
.page.theme-dark .alert {
    background: var(--app-surface);
    border-color: var(--app-border);
    color: var(--app-text);
    box-shadow: var(--app-shadow);
}

.page.theme-dark .container,
.page.theme-dark .container-fluid,
.page.theme-dark .form-label,
.page.theme-dark .calendar-day-name,
.page.theme-dark .calendar-day-number,
.page.theme-dark .home-events-title,
.page.theme-dark .home-event-text,
.page.theme-dark .home-event-note,
.page.theme-dark .home-summary-title,
.page.theme-dark .app-news-title,
.page.theme-dark .admin-user-name,
.page.theme-dark .admin-news-item-title,
.page.theme-dark .todo-summary-value,
.page.theme-dark .todo-date-heading,
.page.theme-dark .todo-item-title,
.page.theme-dark .todo-home-bucket-title,
.page.theme-dark .todo-home-item-title,
.page.theme-dark .finance-widget-title,
.page.theme-dark .finance-legend-name,
.page.theme-dark .finance-kpi-amount,
.page.theme-dark .finance-summary-value,
.page.theme-dark .contract-file-label,
.page.theme-dark .contract-upload-copy,
.page.theme-dark .contract-file-name {
    color: var(--app-text);
}

.page.theme-dark .form-control,
.page.theme-dark .form-select,
.page.theme-dark .form-control:focus,
.page.theme-dark .form-select:focus {
    background: var(--app-input-bg);
    border-color: var(--app-input-border);
    color: var(--app-input-text);
}

.page.theme-dark .form-control::placeholder,
.page.theme-dark .form-select::placeholder,
.page.theme-dark textarea::placeholder {
    color: #9fb0c8;
    opacity: 1;
}

.page.theme-dark .input-group-text {
    background: var(--app-input-bg);
    border-color: var(--app-input-border);
    color: var(--app-text-muted);
}

.page.theme-dark input:-webkit-autofill,
.page.theme-dark input:-webkit-autofill:hover,
.page.theme-dark input:-webkit-autofill:focus,
.page.theme-dark textarea:-webkit-autofill,
.page.theme-dark textarea:-webkit-autofill:hover,
.page.theme-dark textarea:-webkit-autofill:focus,
.page.theme-dark select:-webkit-autofill,
.page.theme-dark select:-webkit-autofill:hover,
.page.theme-dark select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--app-input-text);
    box-shadow: 0 0 0 1000px var(--app-input-bg) inset;
    transition: background-color 9999s ease-out 0s;
    caret-color: var(--app-input-text);
}

.page.theme-dark .form-check-input {
    background-color: var(--app-input-bg);
    border-color: var(--app-input-border);
}

.page.theme-dark .btn-outline-secondary {
    color: var(--app-btn-soft-text);
    border-color: var(--app-btn-soft-border);
    background: var(--app-btn-soft-bg);
}

.page.theme-dark .btn-outline-secondary:hover {
    color: #ffffff;
    background: rgba(58, 86, 124, 0.92);
    border-color: rgba(112, 140, 179, 0.4);
}

.page.theme-dark .calendar-day-button {
    background: linear-gradient(180deg, rgba(18, 29, 48, 0.96) 0%, rgba(13, 22, 37, 0.98) 100%);
    border-color: rgba(112, 140, 179, 0.22);
}

.page.theme-dark .calendar-day-button.selected {
    background: linear-gradient(180deg, rgba(29, 57, 98, 0.98) 0%, rgba(19, 42, 73, 0.98) 100%);
    border-color: rgba(116, 167, 255, 0.65);
}

.page.theme-dark .calendar-day-button.today {
    border-color: rgba(116, 167, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(116, 167, 255, 0.8);
}

.page.theme-dark .calendar-day-button.has-events {
    border-color: rgba(89, 201, 146, 0.56);
}

.page.theme-dark .calendar-day-badge {
    background: rgba(32, 45, 65, 0.92);
    color: #9cb0c7;
    border-color: rgba(112, 140, 179, 0.24);
}

.page.theme-dark .calendar-day-button:hover {
    border-color: rgba(116, 167, 255, 0.5);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.page.theme-dark .finance-grid-line {
    stroke: rgba(150, 169, 197, 0.16);
}

.page.theme-dark .finance-line-dot {
    stroke: rgba(11, 19, 32, 0.88);
}

.page.theme-dark .modal-content {
    background: var(--app-surface);
    color: var(--app-text);
    border-color: var(--app-border);
}

.page.theme-dark .relation-block,
.page.theme-dark .relation-card,
.page.theme-dark .relation-expense-item,
.page.theme-dark .finance-status-section {
    background: linear-gradient(180deg, rgba(18, 29, 48, 0.96) 0%, rgba(13, 22, 37, 0.98) 100%);
    color: var(--app-text);
    box-shadow: none;
}

.page.theme-dark .relation-card {
    border: none;
}

.page.theme-dark .relation-card-header {
    background: transparent;
    border-bottom-color: rgba(112, 140, 179, 0.18);
    color: var(--app-text);
}

.page.theme-dark .relation-expense-item,
.page.theme-dark .relations-tile .input-group-text,
.page.theme-dark .relations-tile .form-control,
.page.theme-dark .relations-tile .form-select,
.page.theme-dark .relations-tile .border,
.page.theme-dark .relations-tile .rounded {
    border-color: rgba(112, 140, 179, 0.18) !important;
}

.page.theme-dark .modal-header,
.page.theme-dark .modal-footer {
    border-color: var(--app-border);
}

.page.theme-dark .table {
    color: var(--app-text);
}

.page.theme-dark .table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: var(--app-border);
    color: var(--app-text);
}

.page.theme-dark .list-group-item {
    background: linear-gradient(180deg, rgba(18, 29, 48, 0.96) 0%, rgba(13, 22, 37, 0.98) 100%);
    border-color: rgba(112, 140, 179, 0.22);
    color: var(--app-text);
}

.page.theme-dark .alert-danger {
    background: rgba(94, 28, 39, 0.82);
    border-color: rgba(235, 112, 131, 0.24);
    color: #ffd8df;
}

.page.theme-dark .profile-summary-label,
.page.theme-dark .profile-summary-hint {
    color: #95a6be !important;
}

.page.theme-dark .profile-summary-value {
    color: #d4e0ef !important;
}

.page.theme-dark .profile-summary-card {
    background: linear-gradient(180deg, rgba(18, 29, 48, 0.96) 0%, rgba(13, 22, 37, 0.98) 100%);
    border-color: rgba(112, 140, 179, 0.22);
    box-shadow: 0 24px 54px rgba(4, 10, 24, 0.34);
}

.page.theme-dark .todo-filter-chip {
    background: rgba(18, 29, 48, 0.88);
    border-color: rgba(112, 140, 179, 0.26);
    color: #c7d4e5;
}

.page.theme-dark .todo-filter-chip.active {
    background: linear-gradient(135deg, rgba(65, 111, 194, 0.34), rgba(36, 74, 136, 0.72));
    color: #f5f9ff;
    border-color: rgba(116, 167, 255, 0.44);
}

.page.theme-dark .todo-filter-caption,
.page.theme-dark .todo-pager-label,
.page.theme-dark .todo-date-range-label {
    color: #aab8ca;
}

.page.theme-dark .todo-meta-pill,
.page.theme-dark .todo-client-picker-selected,
.page.theme-dark .todo-home-item {
    background: rgba(20, 31, 49, 0.94);
    border-color: rgba(112, 140, 179, 0.2);
    color: #b8c7da;
}

.page.theme-dark .todo-item-overdue {
    border-color: rgba(112, 140, 179, 0.22);
    box-shadow: var(--app-shadow);
}

.page.theme-dark .app-news-badge,
.page.theme-dark .admin-user-status {
    box-shadow: none;
}

.page.theme-dark .home-event-birthday,
.page.theme-dark .status-suspended,
.page.theme-dark .todo-status-postponed,
.page.theme-dark .app-news-other {
    background: rgba(110, 86, 36, 0.26);
    color: #d8c089;
    border-color: rgba(167, 136, 74, 0.26);
}

.page.theme-dark .home-event-contract,
.page.theme-dark .status-first,
.page.theme-dark .todo-status-planned,
.page.theme-dark .app-news-plans {
    background: rgba(50, 80, 126, 0.28);
    color: #a9c2ea;
    border-color: rgba(97, 128, 177, 0.28);
}

.page.theme-dark .home-event-deal,
.page.theme-dark .status-active,
.page.theme-dark .todo-status-completed,
.page.theme-dark .admin-user-status.is-active,
.page.theme-dark .app-news-release {
    background: rgba(39, 91, 73, 0.28);
    color: #96d0b8;
    border-color: rgba(73, 133, 112, 0.28);
}

.page.theme-dark .home-event-insurance {
    background: rgba(94, 62, 111, 0.26);
    color: #d0b3ea;
    border-color: rgba(130, 96, 149, 0.26);
}

.page.theme-dark .home-event-todo-blue,
.page.theme-dark .todo-color-blue {
    background: rgba(55, 109, 207, 0.78);
    color: #dfeaff;
    border-color: rgba(93, 142, 232, 0.28);
}

.page.theme-dark .home-event-todo-emerald,
.page.theme-dark .todo-color-emerald {
    background: rgba(35, 122, 90, 0.76);
    color: #d7f7ea;
    border-color: rgba(70, 161, 126, 0.28);
}

.page.theme-dark .home-event-todo-amber,
.page.theme-dark .todo-color-amber {
    background: rgba(143, 103, 29, 0.76);
    color: #faebc8;
    border-color: rgba(177, 131, 53, 0.28);
}

.page.theme-dark .home-event-todo-rose,
.page.theme-dark .todo-color-rose {
    background: rgba(146, 53, 82, 0.76);
    color: #ffdbe4;
    border-color: rgba(180, 84, 113, 0.28);
}

.page.theme-dark .home-event-todo-violet,
.page.theme-dark .todo-color-violet {
    background: rgba(102, 72, 155, 0.76);
    color: #eadfff;
    border-color: rgba(132, 101, 186, 0.28);
}

.page.theme-dark .home-event-time {
    color: var(--app-text-muted);
}

.page.theme-dark .status-closed,
.page.theme-dark .status-failed,
.page.theme-dark .admin-user-status.is-inactive {
    background: rgba(110, 46, 56, 0.3);
    color: #f0b5bf;
    border-color: rgba(154, 79, 92, 0.28);
}

.page.theme-dark .status-default,
.page.theme-dark .status-archived,
.page.theme-dark .profile-subscription-badge {
    background: rgba(61, 78, 104, 0.24);
    color: #b7c5d8;
    border-color: rgba(104, 125, 154, 0.24);
}

.page.theme-dark .todo-empty-state,
.page.theme-dark .todo-home-empty,
.page.theme-dark .todo-home-loading {
    background: rgba(18, 29, 48, 0.96);
    border-color: rgba(112, 140, 179, 0.22);
    color: var(--app-text-muted);
}

.page.theme-dark .additional-finance-client,
.page.theme-dark .additional-finance-link,
.page.theme-dark .additional-finance-selected-client {
    background: rgba(18, 29, 48, 0.92);
    border-color: rgba(112, 140, 179, 0.22);
}

.page.theme-dark .additional-finance-card,
.page.theme-dark .additional-finance-loading-card,
.page.theme-dark .additional-finance-modal {
    background: linear-gradient(180deg, rgba(16, 24, 38, 0.99) 0%, rgba(18, 29, 48, 0.98) 100%);
    border-color: rgba(112, 140, 179, 0.22);
    color: var(--app-text-color);
}

.page.theme-dark .additional-finance-filter-card {
    background: linear-gradient(180deg, rgba(16, 24, 38, 0.99) 0%, rgba(18, 29, 48, 0.98) 100%);
    border-color: rgba(112, 140, 179, 0.22);
    color: var(--app-text-color);
}

.page.theme-dark .additional-finance-column-title {
    color: var(--app-text-color);
}

.page.theme-dark .additional-finance-month-filter-title {
    color: var(--app-text-color);
}

.page.theme-dark .additional-finance-column-count {
    background: rgba(84, 142, 255, 0.18);
    color: #bcd3ff;
}

.page.theme-dark .additional-finance-empty {
    background: rgba(18, 29, 48, 0.92);
    border-color: rgba(112, 140, 179, 0.22);
    color: var(--app-text-muted);
}

.page.theme-dark .additional-finance-pagination-info {
    color: var(--app-text-muted);
}

.page.theme-dark .additional-finance-back-btn {
    border-color: rgba(112, 140, 179, 0.28);
    color: #d8e2ef;
}

.page.theme-dark .additional-finance-back-btn:hover,
.page.theme-dark .additional-finance-back-btn:focus {
    background: rgba(53, 72, 100, 0.35);
    color: #f4f8fd;
}

.page.theme-dark .additional-finance-add-btn {
    background: linear-gradient(135deg, #4b8ef7 0%, #2f6fd6 100%);
    border-color: #2f6fd6;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =======================
   Client Status Badges
   ======================= */

.status-first {
    background: #e3f2fd;
    color: #0d6efd;
    border: 1px solid #b6d4fe;
}

.status-active {
    background: #e8f5e9;
    color: #198754;
    border: 1px solid #a3cfbb;
}

.status-suspended {
    background: #fff3cd;
    color: #b45309;
    border: 1px solid #ffe69c;
}

.status-closed {
    background: #198754;
    color: #ffffff;
}

.status-failed {
    background: #dc3545;
    color: #ffffff;
}

.status-default {
    background: #f8f9fa;
    color: #6c757d;
}

.status-archived {
    background: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.status-badge:hover {
    transform: translateY(-1px);
}

.client-status-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.client-deal-progress-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #c7d7fe;
}

.page.theme-dark .client-deal-progress-badge {
    background: rgba(59, 130, 246, 0.16);
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.28);
}

.page.theme-bee .client-deal-progress-badge {
    background: rgba(255, 214, 45, 0.26);
    color: #3f3200;
    border-color: rgba(83, 63, 0, 0.18);
}

.nav-icon {
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: #fff;
}

.btn-purple:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: #fff;
}

.btn-purple:focus,
.btn-purple:active {
    background-color: #4e2c8e;
    border-color: #4e2c8e;
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.5);
}

/* ========
   Calendar
   ======== */

.calendar-container {
    max-width: 600px;
    margin: 40px auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    padding: 6px 0;
}

.calendar-day {
    text-align: center;
    padding: 12px 0;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: 0.2s;
    cursor: pointer;
}

.calendar-day:hover {
    background-color: #e9ecef;
}

.calendar-day.today {
    background-color: #0d6efd;
    color: white;
    font-weight: bold;
}

.home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-calendar-card,
.home-events-card {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 22px;
    padding: 20px;
}

.home-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    gap: 20px;
}

.home-side-column {
    display: grid;
    gap: 20px;
    align-content: start;
}

.home-calendar-tile {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 22px;
    padding: 18px;
}

.home-summary-tile {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e6edf5;
    border-radius: 22px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-summary-header {
    margin-bottom: 18px;
}

.home-summary-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.home-summary-subtitle {
    color: #6c757d;
    margin-top: 4px;
}

.home-summary-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 22px;
}

.home-summary-stats {
    display: grid;
    gap: 12px;
}

.home-summary-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e9eef5;
}

.home-summary-label {
    color: #6c757d;
    font-weight: 600;
}

.home-summary-amount {
    font-weight: 700;
}

.calendar-grid-head {
    margin-top: 14px;
}

.calendar-grid-body {
    gap: 10px;
}

.calendar-day-empty {
    min-height: 62px;
}

.calendar-day-button {
    min-height: 62px;
    border: 1px solid #dbe7f4;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.calendar-grid-updating {
    opacity: 0.86;
}

.calendar-day-button:hover {
    transform: translateY(-1px);
    border-color: #a9c8ea;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.08);
}

.calendar-day-button.today {
    border-color: #0d6efd;
    box-shadow: inset 0 0 0 1px #0d6efd;
}

.calendar-day-button.selected {
    background: linear-gradient(180deg, #eaf3ff 0%, #dbeafe 100%);
    border-color: #5b9dff;
}

.calendar-day-button.has-events {
    border-color: #83b9ff;
}

.calendar-day-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2a37;
}

.calendar-day-badge {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #edf3fa;
    color: #71859d;
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid #dbe7f4;
}

.calendar-day-markers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
}

.calendar-day-marker,
.todo-color-dot {
    display: inline-flex;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.home-event-time {
    margin-top: 4px;
    font-size: 0.86rem;
    color: #6c757d;
    font-weight: 600;
}

.home-events-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.home-events-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e8eef5;
}

.home-events-empty {
    color: #6c757d;
    padding: 20px 0;
}

.home-events-loading {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-event-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e9eef5;
}

.home-event-content {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.home-event-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-event-actions .btn {
    white-space: nowrap;
}

.home-todo-status-select {
    min-width: 132px;
}

.home-event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.home-event-text {
    color: #1f2a37;
    line-height: 1.45;
}

.home-event-note {
    margin-top: 6px;
    color: #5b6778;
    font-size: 0.93rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.home-event-birthday {
    background: #fff3cd;
    color: #9a6700;
}

.home-event-contract {
    background: #dbeafe;
    color: #0b5ed7;
}

.home-event-deal {
    background: #d1fae5;
    color: #0f766e;
}

.home-event-insurance {
    background: #fce7f3;
    color: #be185d;
}

.home-event-default {
    background: #e9ecef;
    color: #495057;
}

.home-event-todo-blue,
.todo-color-blue {
    background: #3b82f6;
    color: #eff6ff;
}

.home-event-todo-emerald,
.todo-color-emerald {
    background: #10b981;
    color: #ecfdf5;
}

.home-event-todo-amber,
.todo-color-amber {
    background: #f59e0b;
    color: #fffbeb;
}

.home-event-todo-rose,
.todo-color-rose {
    background: #f43f5e;
    color: #fff1f2;
}

.home-event-todo-violet,
.todo-color-violet {
    background: #8b5cf6;
    color: #f5f3ff;
}

.fs-5-5 {
    font-size: 1.15rem;
    font-weight: bold;
}

/* ========
   Finance
   ======== */

.finance-page {
    position: relative;
}

.finance-add-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    z-index: 20;
}

.additional-finance-card {
    border-radius: 18px;
    border: 1px solid rgba(111, 124, 140, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 254, 0.98) 100%);
}

.additional-finance-loading-card,
.additional-finance-modal {
    border-radius: 20px;
    border: 1px solid rgba(111, 124, 140, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 254, 0.98) 100%);
}

.additional-finance-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.additional-finance-back-btn,
.additional-finance-add-btn {
    min-height: 42px;
}

.additional-finance-client,
.additional-finance-link,
.additional-finance-selected-client {
    border: 1px solid rgba(111, 124, 140, 0.18);
    border-radius: 16px;
    background: rgba(248, 251, 255, 0.88);
    padding: 14px 16px;
}

.additional-finance-filter-card {
    border-radius: 20px;
    border: 1px solid rgba(111, 124, 140, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 254, 0.98) 100%);
}

.additional-finance-month-filter {
    display: grid;
    gap: 16px;
}

.additional-finance-month-filter-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

.additional-finance-month-filter-title {
    font-size: 1rem;
    font-weight: 700;
    color: #17212b;
}

.additional-finance-month-filter-year {
    min-width: 140px;
}

.additional-finance-month-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.additional-finance-manual-range {
    padding-top: 4px;
}

.additional-finance-column {
    display: grid;
    gap: 16px;
}

.additional-finance-column-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.additional-finance-column-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #17212b;
}

.additional-finance-column-count {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(47, 116, 246, 0.12);
    color: #2157b8;
    font-weight: 800;
}

.additional-finance-list {
    display: grid;
    gap: 14px;
}

.additional-finance-empty {
    border: 1px dashed rgba(111, 124, 140, 0.28);
    border-radius: 18px;
    padding: 22px 18px;
    text-align: center;
    color: #6a7d92;
    background: rgba(248, 251, 255, 0.75);
}

.additional-finance-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

.additional-finance-pagination-info {
    color: #6a7d92;
    font-size: 0.95rem;
    font-weight: 600;
}

.finance-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.finance-filter-label {
    font-weight: 600;
    color: #495057;
}

.finance-filter-actions {
    flex-wrap: wrap;
}

.finance-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.finance-period-caption {
    color: #6c757d;
    font-size: 0.95rem;
}

.finance-summary-card {
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
    border: 1px solid #dce9f7;
    border-radius: 18px;
    padding: 18px 20px;
}

.finance-summary-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.finance-summary-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.finance-widget {
    border: 1px solid #e6edf5;
    border-radius: 20px;
}

.relations-tile {
    border: 1px solid #e6edf5;
    border-radius: 20px;
}

.relation-block {
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.relation-card {
    border: none;
    background: transparent;
    box-shadow: none;
}

.relation-card-header {
    padding: 0 0 0.9rem;
    background: transparent;
    border-bottom: 1px solid #e6edf5;
}

.relation-expense-item {
    border: none;
    border-radius: 14px;
    background: #f8fbff;
}

.finance-status-section {
    border: none !important;
    border-radius: 16px;
    background: #f8fbff;
}

.finance-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.finance-widget-subtitle {
    color: #6c757d;
    margin-top: 4px;
    line-height: 1.4;
}

.finance-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: #6c757d;
    background: #f8fafc;
    border-radius: 14px;
}

.finance-chart {
    width: 100%;
    height: 220px;
}

.finance-chart-layout {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.finance-chart-area {
    min-width: 0;
}

.finance-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 18px 0 24px;
}

.finance-y-axis-label {
    color: #6c757d;
    font-size: 0.78rem;
    line-height: 1;
    text-align: right;
}

.finance-grid-line {
    stroke: #e8eef5;
    stroke-width: 1;
}

.finance-line-chart {
    fill: none;
    stroke: #0d6efd;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.finance-line-dot {
    fill: #0d6efd;
    stroke: #ffffff;
    stroke-width: 2;
}

.finance-line-dot-hit {
    fill: transparent;
    pointer-events: all;
}

.finance-axis-labels {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    margin-left: calc(76px + 10px);
    width: calc(100% - 86px);
    color: #6c757d;
    font-size: 0.85rem;
    text-align: center;
}

.finance-axis-labels-dense {
    font-size: 0.72rem;
}

.finance-pie-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 220px;
}

.finance-pie-chart {
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.finance-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.finance-legend-item {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 10px;
    align-items: center;
}

.finance-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.finance-legend-name {
    color: #212529;
}

.finance-legend-value {
    color: #6c757d;
    font-weight: 600;
}

.finance-kpi-value {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.finance-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.finance-kpi-card {
    border-radius: 14px;
    background: #f8fafc;
    padding: 14px 16px;
}

.finance-kpi-label {
    color: #6c757d;
    margin-bottom: 6px;
}

.finance-kpi-amount {
    font-size: 1.2rem;
    font-weight: 700;
}

.finance-inline-legend {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    color: #6c757d;
}

.finance-bar-income {
    fill: #198754;
}

.finance-bar-expense {
    fill: #dc3545;
}

.finance-positive {
    color: #198754;
}

.finance-negative {
    color: #dc3545;
}

.contract-file-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    background: #f8fafc;
}

.contract-file-meta,
.contract-upload-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contract-file-label {
    font-weight: 600;
    color: #212529;
}

.contract-file-name {
    color: #0d6efd;
    word-break: break-word;
}

.contract-file-hint {
    color: #6c757d;
    font-size: 0.9rem;
}

.contract-file-button {
    white-space: nowrap;
}

.contract-upload-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px dashed #b9cadf;
    border-radius: 14px;
    background: #fbfdff;
}

.contract-addendums-panel {
    background: #f8fafc;
    border-color: #e6edf5 !important;
}

.contract-closing-documents-panel {
    background: #f8fafc;
    border-color: #e6edf5 !important;
}

.contract-addendum-card {
    background: #ffffff;
    border: 1px solid #e6edf5;
}

.profile-page {
    max-width: 1040px;
}

.profile-card {
    border: 1px solid #e6edf5;
    border-radius: 24px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.profile-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e2ebf5;
    border-radius: 18px;
    padding: 18px 20px;
}

.profile-summary-label {
    color: #6c757d;
    margin-bottom: 8px;
}

.profile-summary-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #17212b;
}

.profile-summary-hint {
    margin-top: 8px;
    color: #6c757d;
}

.profile-subscription-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
}

.profile-subscription-active {
    background: #e8f5e9;
    color: #198754;
    border: 1px solid #b7dfbe;
}

.profile-subscription-expired {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f1c2c0;
}

.profile-expired-warning {
    border-radius: 16px;
}

.profile-password-section {
    border-top: 1px solid #e6edf5;
}

.profile-tariffs-section {
    margin-top: 22px;
}

.profile-tariffs-section__head {
    margin-bottom: 16px;
}

.profile-tariffs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-tariff-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #dbe7f4;
    border-radius: 20px;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 36px rgba(35, 64, 140, 0.08);
}

.profile-tariff-card--featured {
    background: linear-gradient(180deg, rgba(241, 245, 255, 0.98), rgba(232, 239, 253, 0.96));
    border-color: rgba(59, 130, 246, 0.18);
}

.profile-tariff-card__flag {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 7px 14px;
    min-width: 124px;
    border-radius: 999px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #2150b9;
    background: rgba(59, 130, 246, 0.14);
}

.profile-tariff-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-right: 150px;
}

.profile-tariff-card__name {
    color: #182039;
    font-size: 1.15rem;
    font-weight: 760;
}

.profile-tariff-card__period {
    margin-top: 4px;
    color: #63718c;
    font-size: 0.93rem;
}

.profile-tariff-card__price-block,
.pricing-card__price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.profile-tariff-card__price-old,
.pricing-card__price-old {
    color: #8b98b5;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: line-through;
}

.profile-tariff-card__price,
.pricing-card__price {
    color: #2150b9;
    font-family: "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 1.55rem;
    font-weight: 780;
    white-space: nowrap;
}

.profile-tariff-card__discount-badge,
.pricing-card__discount-badge {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(38, 93, 214, 0.12);
    color: #2150b9;
    font-size: 0.8rem;
    font-weight: 800;
}

.profile-tariff-card__discount-note,
.landing-tariff-card__discount-note,
.pricing-card__discount-note {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(38, 93, 214, 0.08);
    color: #2150b9;
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.5;
}

.profile-tariff-card__actions {
    margin-top: auto;
    padding-top: 18px;
}

.profile-tariff-card__actions form {
    margin: 0;
}

.profile-tariff-card__button {
    width: 100%;
    border-radius: 14px;
    font-weight: 700;
}

.page.theme-dark .profile-tariffs-section__head .text-muted {
    color: #98a8c6 !important;
}

.page.theme-dark .profile-tariff-card {
    background: linear-gradient(180deg, rgba(19, 31, 53, 0.96) 0%, rgba(14, 25, 44, 0.98) 100%);
    border-color: rgba(88, 121, 183, 0.28);
    box-shadow: 0 18px 38px rgba(4, 10, 21, 0.34);
}

.page.theme-dark .profile-tariff-card--featured {
    background: linear-gradient(180deg, rgba(23, 42, 74, 0.98), rgba(16, 31, 56, 0.99));
    border-color: rgba(86, 131, 223, 0.4);
}

.page.theme-dark .profile-tariff-card__name,
.page.theme-dark .profile-tariff-card__price {
    color: #edf4ff;
}

.page.theme-dark .profile-tariff-card__period,
.page.theme-dark .profile-tariff-card__price-old {
    color: #95a6c8;
}

.page.theme-dark .profile-tariff-card__flag,
.page.theme-dark .profile-tariff-card__discount-badge {
    background: rgba(90, 141, 255, 0.18);
    color: #cfe0ff;
}

.page.theme-dark .profile-tariff-card__discount-note {
    background: rgba(90, 141, 255, 0.12);
    color: #cfe0ff;
}

.page.theme-dark .payment-result-card,
.page.theme-dark .payment-result-state {
    background: linear-gradient(180deg, rgba(18, 29, 48, 0.96) 0%, rgba(13, 22, 37, 0.98) 100%);
    border-color: rgba(112, 140, 179, 0.22);
    color: var(--app-text);
}

.page.theme-bee .profile-tariffs-section__head .text-muted {
    color: #7b6441 !important;
}

.page.theme-bee .profile-tariff-card {
    background: linear-gradient(180deg, rgba(255, 251, 242, 0.98) 0%, rgba(255, 247, 228, 0.98) 100%);
    border-color: rgba(223, 187, 106, 0.34);
    box-shadow: 0 16px 34px rgba(168, 125, 37, 0.16);
}

.page.theme-bee .profile-tariff-card--featured {
    background: linear-gradient(180deg, rgba(255, 246, 214, 0.99), rgba(255, 238, 186, 0.98));
    border-color: rgba(214, 167, 54, 0.46);
}

.page.theme-bee .profile-tariff-card__name {
    color: #4d3510;
}

.page.theme-bee .profile-tariff-card__period,
.page.theme-bee .profile-tariff-card__price-old {
    color: #8b6f43;
}

.page.theme-bee .profile-tariff-card__price {
    color: #b66a00;
}

.page.theme-bee .profile-tariff-card__flag,
.page.theme-bee .profile-tariff-card__discount-badge {
    background: rgba(255, 196, 68, 0.24);
    color: #8f4e00;
}

.page.theme-bee .profile-tariff-card__discount-note {
    background: rgba(255, 196, 68, 0.16);
    color: #7f4b05;
}

.page.theme-bee .payment-result-card,
.page.theme-bee .payment-result-state {
    background: linear-gradient(180deg, rgba(251, 244, 216, 0.96), rgba(246, 236, 198, 0.97));
    border-color: rgba(189, 138, 22, 0.18);
    color: #2d2410;
}

.payment-result-card {
    border-radius: 24px;
}

.payment-result-state {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #f8fafc;
}

.payment-result-state__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: #dbeafe;
    color: #1d4ed8;
}

.payment-result-state--error .payment-result-state__icon {
    background: #fee2e2;
    color: #dc2626;
}

.payment-result-state--success .payment-result-state__icon {
    background: #dcfce7;
    color: #16a34a;
}

.payment-result-state__content h3 {
    margin: 0;
    font-weight: 750;
}

.payment-result-state__content p {
    margin: 10px 0 0;
    color: #64748b;
    line-height: 1.65;
}

.payment-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.pricing-scenario + .pricing-scenario {
    margin-top: 34px;
}

.pricing-scenario__head {
    margin-bottom: 18px;
}

.pricing-scenario__head h2 {
    margin-bottom: 8px;
}

.todo-page {
    max-width: 1320px;
}

.todo-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.todo-summary-card,
.todo-form-card,
.todo-list-card,
.todo-home-bucket {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e6edf5;
    border-radius: 22px;
}

.todo-summary-card {
    padding: 18px 20px;
}

.todo-summary-label {
    color: #6c7b8f;
    margin-bottom: 8px;
}

.todo-summary-value {
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 800;
    color: #17212b;
}

.todo-layout {
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.todo-form-card,
.todo-list-card {
    padding: 22px;
}

.todo-form-card {
    position: sticky;
    top: 24px;
}

.todo-note-input {
    min-height: 118px;
    resize: vertical;
}

.todo-client-picker {
    display: grid;
    gap: 8px;
}

.todo-client-picker-selected {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #dce6f1;
    background: #f8fbff;
}

.todo-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.todo-filter-stack {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.todo-filter-chip {
    border: 1px solid #d7e3ef;
    border-radius: 999px;
    background: #f8fbff;
    color: #506176;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.18s ease;
}

.todo-filter-chip.active {
    background: linear-gradient(135deg, #2f74f6 0%, #2157b8 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(47, 116, 246, 0.2);
}

.todo-filter-caption {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6a7d92;
}

.todo-date-range-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: flex-end;
    gap: 10px;
}

.todo-date-range-input {
    display: grid;
    gap: 6px;
    min-width: 140px;
}

.todo-date-range-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #6a7d92;
}

.todo-groups {
    display: grid;
    gap: 18px;
}

.todo-date-group {
    display: grid;
    gap: 12px;
}

.todo-date-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d2a3a;
}

.todo-date-count {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef4fb;
    color: #58728f;
    font-size: 0.9rem;
}

.todo-items-list {
    display: grid;
    gap: 12px;
}

.todo-item-card {
    border: 1px solid #e6edf5;
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 12px 28px rgba(23, 33, 43, 0.05);
}

.todo-item-completed {
    opacity: 0.8;
}

.todo-item-overdue {
    border-color: #e6edf5;
    box-shadow: 0 12px 28px rgba(23, 33, 43, 0.05);
}

.todo-item-topline {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
}

.todo-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #182433;
}

.todo-item-note {
    margin-top: 6px;
    color: #65788f;
    line-height: 1.5;
}

.todo-item-client,
.todo-home-item-client {
    margin-top: 6px;
    color: #6b7f97;
    font-weight: 600;
}

.todo-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.todo-status-planned {
    background: #ebf3ff;
    color: #2765d9;
}

.todo-status-completed {
    background: #e9f8ef;
    color: #1b8a52;
}

.todo-status-postponed {
    background: #fff3dc;
    color: #bc7b04;
}

.todo-item-meta,
.todo-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.todo-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid #e2ebf5;
    padding: 7px 12px;
    color: #5f7288;
    background: #f8fbff;
    font-size: 0.92rem;
}

.todo-meta-overdue {
    color: #c1483a;
    border-color: #f0b6b0;
    background: #fff4f2;
}

.todo-empty-state,
.todo-home-empty,
.todo-home-loading {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6c7b8f;
    background: #f8fbff;
    border: 1px dashed #dce6f1;
    border-radius: 18px;
}

.todo-pager {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.todo-pager-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #5f7288;
}

.todo-home-buckets {
    display: grid;
    gap: 12px;
}

.todo-home-bucket {
    padding: 16px;
}

.todo-home-bucket-header {
    margin-bottom: 12px;
}

.todo-home-bucket-title {
    font-weight: 800;
    color: #1c2735;
}

.todo-home-bucket-caption {
    color: #6c7b8f;
    margin-top: 2px;
}

.todo-home-list {
    display: grid;
    gap: 10px;
}

.todo-home-item {
    border-radius: 16px;
    padding: 12px 14px;
    background: #f8fbff;
    border: 1px solid #e6edf5;
}

.todo-home-item-title {
    font-weight: 700;
    color: #1d2938;
}

.todo-home-item-meta {
    margin-top: 4px;
    color: #708096;
    font-size: 0.92rem;
}

.app-news-list,
.admin-news-list,
.admin-users-grid {
    display: grid;
    gap: 12px;
}

.app-news-card,
.admin-news-item,
.admin-user-card,
.admin-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e6edf5;
    border-radius: 22px;
}

.app-news-card {
    padding: 16px;
}

.app-news-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.app-news-badge,
.admin-user-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.84rem;
    font-weight: 700;
}

.app-news-plans {
    background: #eaf3ff;
    color: #275ed3;
}

.app-news-release {
    background: #e9f8ef;
    color: #1d8b56;
}

.app-news-other {
    background: #fff3dc;
    color: #bd7b03;
}

.app-news-date,
.admin-news-item-meta,
.admin-user-meta,
.admin-news-item-summary,
.admin-subtitle {
    color: #6e7f95;
}

.app-news-title,
.admin-news-item-title,
.admin-user-name {
    font-size: 1.04rem;
    font-weight: 700;
    color: #1d2938;
}

.app-news-summary {
    color: #68798f;
    line-height: 1.55;
}

.admin-page {
    max-width: 1340px;
}

.admin-layout {
    display: grid;
    gap: 20px;
}

.admin-card {
    padding: 22px;
}

.admin-card-header {
    margin-bottom: 18px;
}

.admin-news-options {
    display: grid;
    gap: 18px;
}

.admin-tariff-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.admin-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-textarea {
    min-height: 140px;
    resize: vertical;
}

.admin-textarea-short {
    min-height: 90px;
}

.admin-news-item {
    padding: 16px 18px;
}

.admin-news-item-head,
.admin-user-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
}

.admin-news-item-summary {
    margin-top: 8px;
    line-height: 1.55;
}

.admin-users-card {
    padding-bottom: 24px;
}

.admin-users-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-user-card {
    padding: 18px;
}

.admin-users-toolbar,
.admin-pager {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.admin-users-toolbar {
    margin-bottom: 16px;
}

.admin-users-search {
    width: min(100%, 420px);
}

.admin-users-pagination-info,
.admin-pager-label {
    color: #6e7f95;
    font-weight: 600;
}

.admin-pager {
    margin-top: 16px;
}

.admin-user-subscription {
    margin-top: 12px;
    margin-bottom: 14px;
}

.admin-user-status.is-active {
    background: #e9f8ef;
    color: #1c8b55;
}

.admin-user-status.is-inactive {
    background: #fff1ef;
    color: #ca4c3c;
}

@media (max-width: 991.98px) {
    .home-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .todo-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .todo-layout {
        grid-template-columns: 1fr;
    }

    .todo-form-card {
        position: static;
    }

    .todo-filter-stack {
        width: 100%;
        justify-items: start;
    }

    .todo-date-range-row {
        justify-content: flex-start;
    }

    .todo-date-range-input {
        min-width: min(100%, 180px);
    }

    .todo-pager {
        align-items: flex-start;
    }

    .admin-users-grid {
        grid-template-columns: 1fr;
    }

    .admin-users-toolbar,
    .admin-pager {
        flex-direction: column;
        align-items: stretch;
    }

    .finance-summary {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-tariffs-grid {
        grid-template-columns: 1fr;
    }

    .finance-pie-layout {
        grid-template-columns: 1fr;
    }

    .finance-chart-layout {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .finance-axis-labels {
        margin-left: calc(58px + 10px);
        width: calc(100% - 68px);
    }

    .contract-file-panel,
    .contract-upload-box {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 767.98px) {
    .todo-summary-grid {
        grid-template-columns: 1fr;
    }

    .todo-item-topline {
        flex-direction: column;
    }

    .admin-news-item-head,
    .admin-user-head,
    .app-news-headline {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========
   Analytics
   ======== */

.analytics-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.analytics-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e6edf5;
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 12px 28px rgba(23, 33, 43, 0.05);
}

.analytics-summary-label,
.analytics-summary-hint,
.analytics-table-meta {
    color: #6c7b8f;
}

.analytics-summary-value {
    margin-top: 8px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #17212b;
}

.analytics-forecast-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.analytics-forecast-presets .todo-filter-chip {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.analytics-forecast-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-top: 12px;
}

.analytics-forecast-date {
    display: flex;
    align-items: end;
}

.analytics-forecast-separator {
    align-self: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #6c7b8f;
    padding-bottom: 6px;
}

.analytics-forecast-actions {
    display: flex;
    align-items: end;
}

.analytics-inline-loader {
    min-height: 52px;
    display: flex;
    align-items: center;
}

.analytics-summary-hint {
    margin-top: 8px;
    font-size: 0.92rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.analytics-funnel {
    display: grid;
    gap: 14px;
}

.analytics-funnel-stage {
    display: grid;
    gap: 8px;
}

.analytics-funnel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.analytics-funnel-label,
.analytics-table-title {
    font-weight: 700;
    color: #1d2938;
}

.analytics-funnel-count,
.analytics-amount {
    font-weight: 800;
    color: #17212b;
}

.analytics-funnel-track {
    height: 12px;
    border-radius: 999px;
    background: #edf3fa;
    overflow: hidden;
}

.analytics-funnel-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #2f74f6 0%, #7b4dff 100%);
    box-shadow: 0 10px 24px rgba(66, 116, 246, 0.28);
}

.analytics-table {
    display: grid;
    gap: 12px;
}

.analytics-table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e6edf5;
}

.analytics-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    background: #eef4ff;
    border: 1px solid #d9e6ff;
    color: #215bc0;
    font-weight: 700;
}

.analytics-details-btn {
    align-self: flex-start;
}

.analytics-stale-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e6edf5;
    border-radius: 22px;
    padding: 18px 20px;
    box-shadow: 0 12px 28px rgba(23, 33, 43, 0.05);
}

.analytics-stale-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.analytics-stale-list {
    display: grid;
    gap: 12px;
}

.analytics-stale-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e6edf5;
}

.analytics-stale-name {
    font-weight: 700;
    color: #1d2938;
    margin-bottom: 4px;
}

.analytics-stale-link {
    flex: 0 0 auto;
}

.page.theme-dark .analytics-summary-card,
.page.theme-dark .analytics-table-row,
.page.theme-dark .analytics-stale-panel,
.page.theme-dark .analytics-stale-item {
    background: linear-gradient(180deg, rgba(18, 29, 48, 0.96) 0%, rgba(13, 22, 37, 0.98) 100%);
    border-color: rgba(112, 140, 179, 0.22);
    color: var(--app-text);
    box-shadow: var(--app-shadow);
}

.page.theme-dark .analytics-summary-label,
.page.theme-dark .analytics-summary-hint,
.page.theme-dark .analytics-table-meta {
    color: var(--app-text-muted);
}

.page.theme-dark .analytics-summary-value,
.page.theme-dark .analytics-funnel-label,
.page.theme-dark .analytics-funnel-count,
.page.theme-dark .analytics-table-title,
.page.theme-dark .analytics-amount,
.page.theme-dark .analytics-stale-name {
    color: var(--app-text);
}

.page.theme-dark .analytics-funnel-track {
    background: rgba(59, 77, 107, 0.35);
}

.page.theme-dark .analytics-funnel-fill {
    background: linear-gradient(135deg, rgba(74, 132, 255, 0.95) 0%, rgba(151, 94, 255, 0.95) 100%);
    box-shadow: 0 12px 24px rgba(74, 132, 255, 0.22);
}

.page.theme-dark .analytics-pill {
    background: rgba(50, 80, 126, 0.28);
    color: #a9c2ea;
    border-color: rgba(97, 128, 177, 0.28);
}

@media (max-width: 991.98px) {
    .analytics-summary-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .analytics-stale-panel-head,
    .analytics-stale-item {
        flex-direction: column;
        align-items: stretch;
    }
}

.clients-page .text-muted {
    color: var(--muted-foreground) !important;
}

.clients-filter-card,
.clients-table-card {
    border: 1px solid var(--border-color);
    border-radius: 22px;
    box-shadow: var(--card-shadow);
    background: var(--surface-color);
}

.clients-filter-card .card-body {
    padding: 1.1rem 1.2rem;
}

.clients-table thead th {
    background: color-mix(in srgb, var(--surface-color) 82%, var(--accent-color) 18%);
    color: var(--foreground-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    white-space: nowrap;
}

.clients-table tbody td {
    vertical-align: middle;
    border-color: var(--border-color);
}

.clients-table tbody tr:last-child td {
    border-bottom: none;
}

.clients-table-card .card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 0.95rem 1.2rem;
}

body.theme-dark .clients-table thead th,
.page.theme-dark .clients-table thead th {
    background: color-mix(in srgb, var(--surface-color) 88%, white 12%);
}

.admin-analytics-card {
    grid-column: 1 / -1;
}

.admin-analytics-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.admin-analytics-kpi {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-color) 92%, white 8%) 0%, var(--surface-color) 100%);
}

.admin-analytics-kpi-label {
    color: var(--muted-foreground);
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.admin-analytics-kpi-value {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--foreground-color);
}

.admin-analytics-kpi-hint {
    margin-top: 8px;
    color: var(--muted-foreground);
    font-size: 0.86rem;
}

.admin-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-analytics-panel {
    border-radius: 22px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-color) 94%, white 6%) 0%, var(--surface-color) 100%);
    padding: 18px;
}

.admin-analytics-panel-wide {
    grid-column: 1 / -1;
}

.admin-analytics-panel-head {
    margin-bottom: 14px;
}

.admin-analytics-panel-head .text-muted {
    color: var(--muted-foreground) !important;
}

.admin-analytics-bars {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 220px;
}

.admin-analytics-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.admin-analytics-bar-track {
    height: 140px;
    width: 100%;
    min-width: 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-color) 84%, var(--accent-color) 16%);
    padding: 6px;
    display: flex;
    align-items: flex-end;
}

.admin-analytics-bar-fill {
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #6a8cff 0%, #7a4dff 100%);
    box-shadow: 0 10px 18px rgba(106, 140, 255, 0.26);
}

.admin-analytics-bar-value {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--foreground-color);
}

.admin-analytics-bar-label {
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.admin-analytics-list {
    display: grid;
    gap: 12px;
}

.admin-analytics-list-item {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--surface-color) 90%, white 10%);
}

.admin-analytics-list-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    color: var(--foreground-color);
}

.admin-analytics-list-meta {
    margin-top: 8px;
    font-size: 0.84rem;
    color: var(--muted-foreground);
}

.admin-analytics-progress {
    height: 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-color) 82%, var(--accent-color) 18%);
    overflow: hidden;
}

.admin-analytics-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3385ff 0%, #7a4dff 100%);
}

.admin-analytics-progress-usage .admin-analytics-progress-fill {
    background: linear-gradient(90deg, #0ea5a4 0%, #3385ff 100%);
}

body.theme-dark .admin-analytics-kpi,
body.theme-dark .admin-analytics-panel,
body.theme-dark .admin-analytics-list-item,
.page.theme-dark .admin-analytics-kpi,
.page.theme-dark .admin-analytics-panel,
.page.theme-dark .admin-analytics-list-item {
    background: linear-gradient(180deg, rgba(18, 29, 48, 0.96) 0%, rgba(13, 22, 37, 0.98) 100%);
    border-color: rgba(112, 140, 179, 0.22);
    box-shadow: var(--app-shadow);
}

body.theme-dark .admin-analytics-kpi-label,
body.theme-dark .admin-analytics-kpi-hint,
body.theme-dark .admin-analytics-bar-label,
body.theme-dark .admin-analytics-list-meta,
.page.theme-dark .admin-analytics-kpi-label,
.page.theme-dark .admin-analytics-kpi-hint,
.page.theme-dark .admin-analytics-bar-label,
.page.theme-dark .admin-analytics-list-meta {
    color: var(--app-text-muted);
}

body.theme-dark .admin-analytics-kpi-value,
body.theme-dark .admin-analytics-bar-value,
body.theme-dark .admin-analytics-list-head,
.page.theme-dark .admin-analytics-kpi-value,
.page.theme-dark .admin-analytics-bar-value,
.page.theme-dark .admin-analytics-list-head {
    color: var(--app-text);
}

body.theme-dark .admin-analytics-bar-track,
body.theme-dark .admin-analytics-progress,
.page.theme-dark .admin-analytics-bar-track,
.page.theme-dark .admin-analytics-progress {
    background: rgba(59, 77, 107, 0.35);
}

@media (max-width: 1199.98px) {
    .admin-analytics-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .admin-analytics-grid {
        grid-template-columns: 1fr;
    }

    .admin-analytics-panel-wide {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .admin-analytics-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-analytics-bars {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        row-gap: 14px;
    }
}
.page.theme-bee .text-muted,
.page.theme-bee .finance-widget-subtitle,
.page.theme-bee .finance-summary-label,
.page.theme-bee .finance-period-caption,
.page.theme-bee .finance-y-axis-label,
.page.theme-bee .finance-axis-labels,
.page.theme-bee .finance-inline-legend,
.page.theme-bee .finance-kpi-label,
.page.theme-bee .home-summary-subtitle,
.page.theme-bee .home-summary-label,
.page.theme-bee .home-events-empty,
.page.theme-bee .app-news-summary,
.page.theme-bee .app-news-date,
.page.theme-bee .admin-user-meta,
.page.theme-bee .admin-news-item-meta,
.page.theme-bee .admin-news-item-summary,
.page.theme-bee .admin-subtitle,
.page.theme-bee .todo-item-client,
.page.theme-bee .todo-home-item-client,
.page.theme-bee .todo-summary-label,
.page.theme-bee .todo-item-note,
.page.theme-bee .todo-home-bucket-caption,
.page.theme-bee .todo-home-empty,
.page.theme-bee .contract-file-hint,
.page.theme-bee .analytics-summary-label,
.page.theme-bee .analytics-summary-hint,
.page.theme-bee .analytics-table-meta,
.page.theme-bee .admin-analytics-kpi-label,
.page.theme-bee .admin-analytics-kpi-hint,
.page.theme-bee .admin-analytics-bar-label,
.page.theme-bee .admin-analytics-list-meta {
    color: var(--app-text-muted) !important;
}

.page.theme-bee .card,
.page.theme-bee .finance-widget,
.page.theme-bee .home-calendar-tile,
.page.theme-bee .home-summary-tile,
.page.theme-bee .profile-summary-card,
.page.theme-bee .admin-card,
.page.theme-bee .admin-user-card,
.page.theme-bee .admin-news-item,
.page.theme-bee .app-news-card,
.page.theme-bee .todo-summary-card,
.page.theme-bee .todo-form-card,
.page.theme-bee .todo-list-card,
.page.theme-bee .todo-item-card,
.page.theme-bee .todo-home-bucket,
.page.theme-bee .finance-summary-card,
.page.theme-bee .finance-kpi-card,
.page.theme-bee .home-summary-stat,
.page.theme-bee .home-event-item,
.page.theme-bee .contract-file-panel,
.page.theme-bee .contract-upload-box,
.page.theme-bee .contract-addendums-panel,
.page.theme-bee .contract-closing-documents-panel,
.page.theme-bee .contract-addendum-card,
.page.theme-bee .finance-empty,
.page.theme-bee .alert,
.page.theme-bee .analytics-summary-card,
.page.theme-bee .analytics-table-row,
.page.theme-bee .admin-analytics-kpi,
.page.theme-bee .admin-analytics-panel,
.page.theme-bee .admin-analytics-list-item {
    background: var(--app-surface);
    border-color: var(--app-border);
    color: var(--app-text);
    box-shadow: var(--app-shadow);
}

.page.theme-bee .container,
.page.theme-bee .container-fluid,
.page.theme-bee .form-label,
.page.theme-bee .calendar-day-name,
.page.theme-bee .calendar-day-number,
.page.theme-bee .home-events-title,
.page.theme-bee .home-event-text,
.page.theme-bee .home-event-note,
.page.theme-bee .home-summary-title,
.page.theme-bee .app-news-title,
.page.theme-bee .admin-user-name,
.page.theme-bee .admin-news-item-title,
.page.theme-bee .todo-summary-value,
.page.theme-bee .todo-date-heading,
.page.theme-bee .todo-item-title,
.page.theme-bee .todo-home-bucket-title,
.page.theme-bee .todo-home-item-title,
.page.theme-bee .finance-widget-title,
.page.theme-bee .finance-legend-name,
.page.theme-bee .finance-kpi-amount,
.page.theme-bee .finance-summary-value,
.page.theme-bee .contract-file-label,
.page.theme-bee .contract-upload-copy,
.page.theme-bee .contract-file-name,
.page.theme-bee .analytics-summary-value,
.page.theme-bee .analytics-funnel-label,
.page.theme-bee .analytics-funnel-count,
.page.theme-bee .analytics-table-title,
.page.theme-bee .analytics-amount,
.page.theme-bee .admin-analytics-kpi-value,
.page.theme-bee .admin-analytics-bar-value,
.page.theme-bee .admin-analytics-list-head {
    color: var(--app-text);
}

.page.theme-bee .form-control,
.page.theme-bee .form-select,
.page.theme-bee .form-control:focus,
.page.theme-bee .form-select:focus,
.page.theme-bee input[type="password"] {
    background: var(--app-input-bg);
    border-color: rgba(33, 33, 33, 0.18);
    color: var(--app-input-text);
    box-shadow: 0 0 0 0.15rem rgba(255, 214, 10, 0.16);
}

.page.theme-bee .input-group-text {
    background: rgba(255, 245, 194, 0.9);
    border-color: rgba(33, 33, 33, 0.14);
    color: #5d5600;
}

.page.theme-bee .form-check-input {
    background-color: #fffef8;
    border-color: rgba(33, 33, 33, 0.24);
}

.page.theme-bee .btn-outline-secondary {
    color: #242424;
    border-color: rgba(33, 33, 33, 0.18);
    background: rgba(255, 221, 61, 0.18);
}

.page.theme-bee .btn-outline-secondary:hover {
    color: #111111;
    background: rgba(255, 214, 10, 0.34);
    border-color: rgba(33, 33, 33, 0.28);
}

.page.theme-bee .btn-primary {
    color: #171717;
    background-color: #ffd62d;
    border-color: #f0c400;
}

.page.theme-bee .btn-primary:hover,
.page.theme-bee .btn-primary:focus,
.page.theme-bee .btn-primary:active {
    color: #101010;
    background-color: #ffc90a;
    border-color: #e0b300;
}

.page.theme-bee .btn-purple {
    background-color: #1d1d1d;
    border-color: #1d1d1d;
    color: #fff6ba;
}

.page.theme-bee .btn-purple:hover,
.page.theme-bee .btn-purple:focus,
.page.theme-bee .btn-purple:active {
    background-color: #000000;
    border-color: #000000;
    color: #ffe66d;
}

.page.theme-bee .btn-outline-primary {
    color: #282100;
    border-color: rgba(42, 35, 0, 0.22);
    background: rgba(255, 214, 10, 0.12);
}

.page.theme-bee .btn-outline-primary:hover,
.page.theme-bee .btn-outline-primary:focus,
.page.theme-bee .btn-outline-primary:active {
    color: #111111;
    border-color: rgba(42, 35, 0, 0.32);
    background: rgba(255, 214, 10, 0.28);
}

.page.theme-bee .btn-outline-warning {
    color: #231f00;
    border-color: rgba(74, 61, 0, 0.22);
    background: rgba(255, 196, 0, 0.12);
}

.page.theme-bee .btn-outline-warning:hover,
.page.theme-bee .btn-outline-warning:focus,
.page.theme-bee .btn-outline-warning:active {
    color: #111111;
    border-color: rgba(74, 61, 0, 0.3);
    background: rgba(255, 196, 0, 0.28);
}

.page.theme-bee .btn-outline-danger {
    color: #3f2d00;
    border-color: rgba(78, 59, 0, 0.2);
    background: rgba(255, 214, 10, 0.1);
}

.page.theme-bee .btn-outline-danger:hover,
.page.theme-bee .btn-outline-danger:focus,
.page.theme-bee .btn-outline-danger:active {
    color: #111111;
    border-color: rgba(78, 59, 0, 0.3);
    background: rgba(255, 196, 0, 0.26);
}

.page.theme-bee .calendar-day-button {
    background: linear-gradient(180deg, rgba(255, 252, 238, 0.98) 0%, rgba(250, 245, 216, 0.98) 100%);
    border-color: rgba(27, 27, 27, 0.12);
}

.page.theme-bee .calendar-day-button.selected {
    background: linear-gradient(180deg, rgba(255, 223, 72, 0.92) 0%, rgba(255, 209, 20, 0.88) 100%);
    border-color: rgba(27, 27, 27, 0.36);
}

.page.theme-bee .calendar-day-button.today {
    border-color: rgba(17, 17, 17, 0.5);
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.4);
}

.page.theme-bee .calendar-day-button.has-events {
    border-color: rgba(255, 196, 0, 0.75);
}

.page.theme-bee .calendar-day-badge {
    background: rgba(29, 29, 29, 0.08);
    color: #6a6400;
    border-color: rgba(27, 27, 27, 0.08);
}

.page.theme-bee .calendar-day-button:hover {
    border-color: rgba(27, 27, 27, 0.24);
    box-shadow: 0 16px 34px rgba(26, 26, 26, 0.1);
}

.page.theme-bee .finance-grid-line {
    stroke: rgba(32, 32, 32, 0.09);
}

.page.theme-bee .finance-line-dot {
    stroke: rgba(255, 248, 221, 0.92);
}

.page.theme-bee .modal-content {
    background: var(--app-surface);
    color: var(--app-text);
    border-color: var(--app-border);
}

.page.theme-bee .relation-block,
.page.theme-bee .relation-card,
.page.theme-bee .relation-expense-item,
.page.theme-bee .finance-status-section {
    background: linear-gradient(180deg, rgba(255, 252, 238, 0.98) 0%, rgba(249, 243, 212, 0.98) 100%);
    color: var(--app-text);
    box-shadow: none;
}

.page.theme-bee .relation-card-header {
    background: transparent;
    border-bottom-color: rgba(27, 27, 27, 0.12);
    color: var(--app-text);
}

.page.theme-bee .relation-expense-item,
.page.theme-bee .relations-tile .input-group-text,
.page.theme-bee .relations-tile .form-control,
.page.theme-bee .relations-tile .form-select,
.page.theme-bee .relations-tile .border,
.page.theme-bee .relations-tile .rounded {
    border-color: rgba(27, 27, 27, 0.12) !important;
}

.page.theme-bee .table,
.page.theme-bee .table > :not(caption) > * > * {
    color: var(--app-text);
    border-bottom-color: var(--app-border);
}

.page.theme-bee .list-group-item {
    background: linear-gradient(180deg, rgba(255, 252, 238, 0.98) 0%, rgba(249, 243, 212, 0.98) 100%);
    border-color: rgba(27, 27, 27, 0.12);
    color: var(--app-text);
}

.page.theme-bee .alert-danger {
    background: rgba(139, 28, 28, 0.08);
    border-color: rgba(139, 28, 28, 0.18);
    color: #7f1d1d;
}

.page.theme-bee .profile-summary-label,
.page.theme-bee .profile-summary-hint {
    color: #6a6253 !important;
}

.page.theme-bee .profile-summary-value {
    color: #1e1e1e !important;
}

.page.theme-bee .todo-filter-chip {
    background: rgba(255, 252, 238, 0.94);
    border-color: rgba(27, 27, 27, 0.14);
    color: #4f4a41;
}

.page.theme-bee .todo-filter-chip.active {
    background: linear-gradient(135deg, rgba(255, 215, 46, 0.94), rgba(255, 193, 7, 0.92));
    color: #171717;
    border-color: rgba(27, 27, 27, 0.22);
}

.page.theme-bee .todo-filter-caption,
.page.theme-bee .todo-pager-label,
.page.theme-bee .todo-date-range-label {
    color: #625a4d;
}

.page.theme-bee .todo-meta-pill,
.page.theme-bee .todo-client-picker-selected,
.page.theme-bee .todo-home-item {
    background: rgba(255, 248, 221, 0.96);
    border-color: rgba(27, 27, 27, 0.12);
    color: #575043;
}

.page.theme-bee .home-event-birthday,
.page.theme-bee .status-suspended,
.page.theme-bee .todo-status-postponed,
.page.theme-bee .app-news-other {
    background: rgba(82, 82, 82, 0.14);
    color: #343434;
    border-color: rgba(82, 82, 82, 0.14);
}

.page.theme-bee .home-event-contract,
.page.theme-bee .status-first,
.page.theme-bee .todo-status-planned,
.page.theme-bee .app-news-plans {
    background: rgba(255, 219, 77, 0.32);
    color: #413500;
    border-color: rgba(73, 61, 0, 0.16);
}

.page.theme-bee .home-event-deal,
.page.theme-bee .status-active,
.page.theme-bee .todo-status-completed,
.page.theme-bee .admin-user-status.is-active,
.page.theme-bee .app-news-release {
    background: rgba(24, 24, 24, 0.94);
    color: #ffe77c;
    border-color: rgba(24, 24, 24, 0.94);
}

.page.theme-bee .home-event-insurance {
    background: rgba(70, 70, 70, 0.14);
    color: #2f2f2f;
    border-color: rgba(70, 70, 70, 0.14);
}

.page.theme-bee .status-closed,
.page.theme-bee .status-failed,
.page.theme-bee .admin-user-status.is-inactive {
    background: rgba(95, 95, 95, 0.14);
    color: #353535;
    border-color: rgba(95, 95, 95, 0.14);
}

.page.theme-bee .status-default,
.page.theme-bee .status-archived,
.page.theme-bee .profile-subscription-badge {
    background: rgba(255, 250, 224, 0.92);
    color: #4d483e;
    border-color: rgba(27, 27, 27, 0.12);
}

.page.theme-bee .todo-empty-state,
.page.theme-bee .todo-home-empty,
.page.theme-bee .todo-home-loading {
    background: rgba(255, 252, 238, 0.98);
    border-color: rgba(27, 27, 27, 0.12);
    color: var(--app-text-muted);
}

.page.theme-bee .additional-finance-client,
.page.theme-bee .additional-finance-link,
.page.theme-bee .additional-finance-selected-client {
    background: rgba(255, 248, 216, 0.92);
    border-color: rgba(27, 27, 27, 0.12);
}

.page.theme-bee .additional-finance-card,
.page.theme-bee .additional-finance-loading-card,
.page.theme-bee .additional-finance-modal {
    background: linear-gradient(180deg, rgba(255, 252, 238, 0.99) 0%, rgba(255, 245, 204, 0.98) 100%);
    border-color: rgba(27, 27, 27, 0.12);
}

.page.theme-bee .additional-finance-filter-card {
    background: linear-gradient(180deg, rgba(255, 252, 238, 0.99) 0%, rgba(255, 245, 204, 0.98) 100%);
    border-color: rgba(27, 27, 27, 0.12);
}

.page.theme-bee .additional-finance-column-title {
    color: var(--app-text);
}

.page.theme-bee .additional-finance-month-filter-title {
    color: var(--app-text);
}

.page.theme-bee .additional-finance-column-count {
    background: rgba(214, 152, 11, 0.16);
    color: #8a6200;
}

.page.theme-bee .additional-finance-empty {
    background: rgba(255, 248, 216, 0.92);
    border-color: rgba(27, 27, 27, 0.12);
    color: var(--app-text-muted);
}

.page.theme-bee .additional-finance-pagination-info {
    color: var(--app-text-muted);
}

.page.theme-bee .additional-finance-back-btn {
    border-color: rgba(27, 27, 27, 0.18);
    color: #1f1f1f;
    background: rgba(255, 250, 226, 0.98);
}

.page.theme-bee .additional-finance-back-btn:hover,
.page.theme-bee .additional-finance-back-btn:focus {
    background: rgba(255, 223, 84, 0.42);
    color: #111;
}

.page.theme-bee .form-control::placeholder,
.page.theme-bee .form-select::placeholder,
.page.theme-bee textarea::placeholder {
    color: #6b6049;
    opacity: 1;
}

.page.theme-bee .additional-finance-add-btn {
    background: linear-gradient(135deg, #ffd62d 0%, #ffbf00 100%);
    border-color: #d9a800;
    color: #1b1b1b;
}

.page.theme-bee .analytics-funnel-track,
.page.theme-bee .admin-analytics-bar-track,
.page.theme-bee .admin-analytics-progress {
    background: rgba(34, 34, 34, 0.08);
}

.page.theme-bee .analytics-funnel-fill,
.page.theme-bee .admin-analytics-bar-fill {
    background: linear-gradient(90deg, #ffd62d 0%, #ffbf00 100%);
}

.page.theme-bee .analytics-pill {
    background: rgba(255, 205, 24, 0.3);
    color: #403400;
    border-color: rgba(64, 52, 0, 0.14);
}

.page.theme-bee .analytics-stale-panel,
.page.theme-bee .analytics-stale-item {
    background: linear-gradient(180deg, rgba(255, 252, 236, 0.98) 0%, rgba(246, 239, 206, 0.98) 100%);
    border-color: rgba(20, 20, 20, 0.14);
    color: var(--app-text);
    box-shadow: 0 18px 38px rgba(20, 20, 20, 0.08);
}

.page.theme-bee .analytics-stale-name {
    color: #181818;
}

.page.theme-bee .clients-table thead th {
    background: rgba(255, 205, 24, 0.22);
    color: #191919;
    border-bottom-color: rgba(26, 26, 26, 0.14);
}

.page.theme-bee .home-event-todo-blue,
.page.theme-bee .todo-color-blue,
.page.theme-bee .home-event-todo-violet,
.page.theme-bee .todo-color-violet {
    background: rgba(48, 48, 48, 0.88);
    color: #ffe781;
    border-color: rgba(48, 48, 48, 0.88);
}

.page.theme-bee .home-event-todo-emerald,
.page.theme-bee .todo-color-emerald {
    background: rgba(255, 200, 0, 0.72);
    color: #181818;
    border-color: rgba(90, 74, 0, 0.16);
}

.page.theme-bee .home-event-todo-amber,
.page.theme-bee .todo-color-amber {
    background: rgba(255, 219, 77, 0.78);
    color: #1b1b1b;
    border-color: rgba(90, 74, 0, 0.14);
}

.page.theme-bee .home-event-todo-rose,
.page.theme-bee .todo-color-rose {
    background: rgba(115, 115, 115, 0.18);
    color: #2f2f2f;
    border-color: rgba(115, 115, 115, 0.18);
}

.page.theme-bee .finance-chart-line,
.page.theme-bee .finance-bar-fill,
.page.theme-bee .finance-area-fill {
    stroke: #1c1c1c;
    fill: rgba(255, 205, 24, 0.28);
}

.page.theme-bee .finance-accent,
.page.theme-bee .analytics-accent,
.page.theme-bee .todo-color-dot {
    color: #1b1b1b;
    background-color: #ffc90a;
}

.page.theme-bee .page-link,
.page.theme-bee .pagination .page-link {
    color: #2a2200;
    background: rgba(255, 252, 241, 0.98);
    border-color: rgba(26, 26, 26, 0.14);
}

.page.theme-bee .page-link:hover,
.page.theme-bee .pagination .page-link:hover,
.page.theme-bee .page-item.active .page-link {
    color: #111111;
    background: rgba(255, 209, 20, 0.34);
    border-color: rgba(26, 26, 26, 0.2);
}

/* Final bee-theme polish: remove leftover blue/purple accents and strengthen the palette. */
.page.theme-bee .text-primary,
.page.theme-bee .spinner-border.text-primary,
.page.theme-bee .spinner-grow.text-primary,
.page.theme-bee .link-primary,
.page.theme-bee .nav-link.text-primary,
.page.theme-bee .form-check-input:checked,
.page.theme-bee .form-check-input[type=checkbox]:indeterminate {
    color: #111111 !important;
    border-color: #151515 !important;
}

.page.theme-bee .spinner-border.text-primary,
.page.theme-bee .spinner-grow.text-primary,
.page.theme-bee .form-check-input:checked,
.page.theme-bee .form-check-input[type=checkbox]:indeterminate {
    background-color: #ffcf1a !important;
}

.page.theme-bee .btn-primary,
.page.theme-bee .auth-btn.btn-primary,
.page.theme-bee .btn-purple,
.page.theme-bee .auth-btn.btn-purple {
    background: linear-gradient(135deg, #ffd21f 0%, #ffbf00 100%) !important;
    border-color: rgba(20, 20, 20, 0.24) !important;
    color: #111111 !important;
    box-shadow: 0 14px 28px rgba(255, 191, 0, 0.18);
}

.page.theme-bee .btn-primary:hover,
.page.theme-bee .btn-primary:focus,
.page.theme-bee .btn-primary:active,
.page.theme-bee .auth-btn.btn-primary:hover,
.page.theme-bee .auth-btn.btn-primary:focus,
.page.theme-bee .auth-btn.btn-primary:active,
.page.theme-bee .btn-purple:hover,
.page.theme-bee .btn-purple:focus,
.page.theme-bee .btn-purple:active,
.page.theme-bee .auth-btn.btn-purple:hover,
.page.theme-bee .auth-btn.btn-purple:focus,
.page.theme-bee .auth-btn.btn-purple:active {
    background: linear-gradient(135deg, #ffdc52 0%, #ffc107 100%) !important;
    border-color: rgba(20, 20, 20, 0.28) !important;
    color: #111111 !important;
}

.page.theme-bee .btn-outline-primary,
.page.theme-bee .btn-outline-secondary,
.page.theme-bee .btn-outline-warning,
.page.theme-bee .btn-outline-danger {
    color: #161616 !important;
    border-color: rgba(20, 20, 20, 0.18) !important;
    background: rgba(255, 249, 225, 0.9) !important;
}

.page.theme-bee .btn-outline-primary:hover,
.page.theme-bee .btn-outline-primary:focus,
.page.theme-bee .btn-outline-primary:active,
.page.theme-bee .btn-outline-secondary:hover,
.page.theme-bee .btn-outline-secondary:focus,
.page.theme-bee .btn-outline-secondary:active,
.page.theme-bee .btn-outline-warning:hover,
.page.theme-bee .btn-outline-warning:focus,
.page.theme-bee .btn-outline-warning:active,
.page.theme-bee .btn-outline-danger:hover,
.page.theme-bee .btn-outline-danger:focus,
.page.theme-bee .btn-outline-danger:active {
    color: #111111 !important;
    background: rgba(255, 210, 31, 0.22) !important;
    border-color: rgba(20, 20, 20, 0.22) !important;
}

.page.theme-bee .status-badge,
.page.theme-bee .home-event-badge,
.page.theme-bee .todo-status-pill,
.page.theme-bee .profile-subscription-badge,
.page.theme-bee .analytics-pill,
.page.theme-bee .todo-meta-pill {
    box-shadow: none;
}

.page.theme-bee .home-event-birthday,
.page.theme-bee .status-suspended,
.page.theme-bee .todo-status-postponed,
.page.theme-bee .app-news-other {
    background: rgba(74, 74, 74, 0.16) !important;
    color: #242424 !important;
    border-color: rgba(46, 46, 46, 0.12) !important;
}

.page.theme-bee .home-event-badge.home-event-birthday,
.page.theme-bee .calendar-day-marker.home-event-birthday {
    background: #f59e0b !important;
    color: #fff7ed !important;
    border-color: #d97706 !important;
}

.page.theme-bee .home-event-contract,
.page.theme-bee .status-first,
.page.theme-bee .todo-status-planned,
.page.theme-bee .app-news-plans {
    background: rgba(255, 209, 31, 0.36) !important;
    color: #322800 !important;
    border-color: rgba(50, 40, 0, 0.18) !important;
}

.page.theme-bee .home-event-deal,
.page.theme-bee .status-active,
.page.theme-bee .todo-status-completed,
.page.theme-bee .admin-user-status.is-active,
.page.theme-bee .app-news-release {
    background: #1a1a1a !important;
    color: #ffe06a !important;
    border-color: #1a1a1a !important;
}

.page.theme-bee .home-event-insurance,
.page.theme-bee .status-default,
.page.theme-bee .status-archived,
.page.theme-bee .status-closed,
.page.theme-bee .status-failed,
.page.theme-bee .admin-user-status.is-inactive {
    background: rgba(96, 96, 96, 0.16) !important;
    color: #242424 !important;
    border-color: rgba(58, 58, 58, 0.14) !important;
}

.page.theme-bee .status-first {
    background: #e3f2fd !important;
    color: #0d6efd !important;
    border-color: #b6d4fe !important;
}

.page.theme-bee .status-active {
    background: #e8f5e9 !important;
    color: #198754 !important;
    border-color: #a3cfbb !important;
}

.page.theme-bee .status-suspended {
    background: #fff3cd !important;
    color: #b45309 !important;
    border-color: #ffe69c !important;
}

.page.theme-bee .status-closed {
    background: #198754 !important;
    color: #ffffff !important;
    border-color: #198754 !important;
}

.page.theme-bee .status-failed {
    background: #dc3545 !important;
    color: #ffffff !important;
    border-color: #dc3545 !important;
}

.page.theme-bee .status-default {
    background: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
}

.page.theme-bee .status-archived {
    background: #e9ecef !important;
    color: #495057 !important;
    border-color: #ced4da !important;
}

.page.theme-bee .home-event-todo-blue,
.page.theme-bee .todo-color-blue {
    background: #5d7ea8 !important;
    color: #f7fbff !important;
    border-color: rgba(61, 88, 121, 0.26) !important;
}

.page.theme-bee .home-event-todo-violet,
.page.theme-bee .todo-color-violet {
    background: #8d6ea8 !important;
    color: #fbf6ff !important;
    border-color: rgba(98, 73, 120, 0.24) !important;
}

.page.theme-bee .home-event-todo-emerald,
.page.theme-bee .todo-color-emerald {
    background: #5f9a7e !important;
    color: #f7fffb !important;
    border-color: rgba(55, 95, 76, 0.22) !important;
}

.page.theme-bee .home-event-todo-amber,
.page.theme-bee .todo-color-amber {
    background: #f0c24a !important;
    color: #141414 !important;
    border-color: rgba(103, 76, 6, 0.18) !important;
}

.page.theme-bee .home-event-todo-rose,
.page.theme-bee .todo-color-rose {
    background: #c7848d !important;
    color: #fff7f8 !important;
    border-color: rgba(128, 77, 88, 0.22) !important;
}

.page.theme-bee .todo-color-dot,
.page.theme-bee .calendar-event-dot,
.page.theme-bee .home-event-marker,
.page.theme-bee .finance-accent,
.page.theme-bee .analytics-accent {
    background-color: #ffcb17 !important;
    color: #111111 !important;
}

.page.theme-bee .todo-color-dot.todo-color-blue {
    background-color: #5d7ea8 !important;
}

.page.theme-bee .todo-color-dot.todo-color-emerald {
    background-color: #5f9a7e !important;
}

.page.theme-bee .todo-color-dot.todo-color-amber {
    background-color: #f0c24a !important;
}

.page.theme-bee .todo-color-dot.todo-color-rose {
    background-color: #c7848d !important;
}

.page.theme-bee .todo-color-dot.todo-color-violet {
    background-color: #8d6ea8 !important;
}

.page.theme-bee .calendar-day-badge {
    background: rgba(34, 34, 34, 0.06) !important;
    color: #534400 !important;
    border-color: rgba(34, 34, 34, 0.06) !important;
}

.page.theme-bee .calendar-day-button.selected .calendar-day-badge {
    background: rgba(26, 26, 26, 0.12) !important;
    color: #272100 !important;
}

.page.theme-bee .finance-chart-line,
.page.theme-bee .finance-bar-fill,
.page.theme-bee .finance-area-fill,
.page.theme-bee .finance-line-dot,
.page.theme-bee .finance-grid-line,
.page.theme-bee .finance-grid-line line,
.page.theme-bee .finance-chart svg path,
.page.theme-bee .finance-chart svg circle {
    accent-color: #ffcb17;
}

.page.theme-bee .finance-chart-line,
.page.theme-bee .finance-line-dot {
    stroke: #181818 !important;
}

.page.theme-bee .finance-area-fill,
.page.theme-bee .finance-bar-fill {
    fill: rgba(255, 203, 23, 0.3) !important;
}

.page.theme-bee .table a,
.page.theme-bee .card a,
.page.theme-bee .home-event-link,
.page.theme-bee .todo-item-card a,
.page.theme-bee .app-news-card a {
    color: #2f2600 !important;
}

.page.theme-bee .table a:hover,
.page.theme-bee .card a:hover,
.page.theme-bee .home-event-link:hover,
.page.theme-bee .todo-item-card a:hover,
.page.theme-bee .app-news-card a:hover {
    color: #111111 !important;
}

.page.theme-bee .btn-outline-info,
.page.theme-bee .clients-page .btn-outline-info {
    color: #171717 !important;
    border-color: rgba(20, 20, 20, 0.18) !important;
    background: rgba(255, 248, 220, 0.92) !important;
}

.page.theme-bee .btn-outline-info:hover,
.page.theme-bee .btn-outline-info:focus,
.page.theme-bee .btn-outline-info:active,
.page.theme-bee .clients-page .btn-outline-info:hover,
.page.theme-bee .clients-page .btn-outline-info:focus,
.page.theme-bee .clients-page .btn-outline-info:active {
    color: #111111 !important;
    border-color: rgba(20, 20, 20, 0.22) !important;
    background: linear-gradient(135deg, rgba(255, 210, 31, 0.3), rgba(255, 191, 0, 0.24)) !important;
}

.page.theme-bee .clients-page .btn-outline-info .bi-eye,
.page.theme-bee .clients-page .btn-outline-secondary .bi-pencil,
.page.theme-bee .clients-page .btn-outline-danger .bi-trash {
    color: inherit !important;
}

.page.theme-bee .need-badge {
    background: rgba(255, 246, 202, 0.96);
    color: #2a2a2a;
    border: 1px solid rgba(20, 20, 20, 0.12);
}

.page.theme-bee .admin-analytics-kpi,
.page.theme-bee .admin-analytics-panel,
.page.theme-bee .admin-analytics-list-item {
    background: linear-gradient(180deg, rgba(255, 252, 236, 0.98) 0%, rgba(246, 239, 206, 0.98) 100%) !important;
    border-color: rgba(20, 20, 20, 0.14) !important;
    box-shadow: 0 18px 38px rgba(20, 20, 20, 0.08);
}

.page.theme-bee .admin-analytics-bar-track,
.page.theme-bee .admin-analytics-progress {
    background: rgba(38, 38, 38, 0.08) !important;
}

.page.theme-bee .admin-analytics-bar-fill,
.page.theme-bee .admin-analytics-progress-fill {
    background: linear-gradient(180deg, #ffd21f 0%, #ffba00 100%) !important;
    box-shadow: 0 10px 18px rgba(255, 186, 0, 0.22) !important;
}

.page.theme-bee .admin-analytics-progress-usage .admin-analytics-progress-fill {
    background: linear-gradient(90deg, #1c1c1c 0%, #ffca16 100%) !important;
}

.page.theme-bee .admin-users-pagination-info,
.page.theme-bee .admin-pager-label {
    color: #5a5348 !important;
}

.deal-finance-group {
    padding: 1rem 1rem 0.85rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.03);
}

.todo-postpone-summary {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.page.theme-dark .deal-finance-group {
    background: rgba(255, 255, 255, 0.035);
}

.page.theme-bee .deal-finance-group {
    background: rgba(255, 207, 64, 0.08);
}

.page.theme-dark .todo-postpone-summary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(112, 140, 179, 0.18);
}

.page.theme-bee .todo-postpone-summary {
    background: rgba(255, 207, 64, 0.08);
    border-color: rgba(27, 27, 27, 0.12);
}

.related-people-card {
    border: 1px solid #e6edf5;
    border-radius: 20px;
}

.related-people-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.related-person-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.03);
}

.related-person-name {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.related-person-meta {
    color: #637085;
    font-size: 0.95rem;
}

.page.theme-dark .related-people-card,
.page.theme-dark .related-person-item {
    border-color: rgba(112, 140, 179, 0.18);
}

.page.theme-dark .related-person-item {
    background: linear-gradient(180deg, rgba(18, 29, 48, 0.96) 0%, rgba(13, 22, 37, 0.98) 100%);
}

.page.theme-dark .related-person-meta {
    color: #9fb0c8;
}

.page.theme-bee .related-people-card {
    border-color: rgba(27, 27, 27, 0.12);
}

.page.theme-bee .related-person-item {
    background: linear-gradient(180deg, rgba(255, 252, 238, 0.98) 0%, rgba(249, 243, 212, 0.98) 100%);
}

.page.theme-bee .related-person-meta {
    color: #6b6049;
}

/* Unified todo colors across all themes */
.home-event-todo-blue,
.todo-color-blue {
    background: #2563eb !important;
    color: #eff6ff !important;
    border-color: #1d4ed8 !important;
}

.home-event-todo-emerald,
.todo-color-emerald {
    background: #059669 !important;
    color: #ecfdf5 !important;
    border-color: #047857 !important;
}

.home-event-todo-amber,
.todo-color-amber {
    background: #d97706 !important;
    color: #fff7ed !important;
    border-color: #b45309 !important;
}

.home-event-todo-rose,
.todo-color-rose {
    background: #e11d48 !important;
    color: #fff1f2 !important;
    border-color: #be123c !important;
}

.home-event-todo-violet,
.todo-color-violet {
    background: #7c3aed !important;
    color: #f5f3ff !important;
    border-color: #6d28d9 !important;
}

.calendar-day-marker.home-event-todo-blue,
.todo-color-dot.todo-color-blue {
    background: #2563eb !important;
}

.calendar-day-marker.home-event-todo-emerald,
.todo-color-dot.todo-color-emerald {
    background: #059669 !important;
}

.calendar-day-marker.home-event-todo-amber,
.todo-color-dot.todo-color-amber {
    background: #d97706 !important;
}

.calendar-day-marker.home-event-todo-rose,
.todo-color-dot.todo-color-rose {
    background: #e11d48 !important;
}

.calendar-day-marker.home-event-todo-violet,
.todo-color-dot.todo-color-violet {
    background: #7c3aed !important;
}

.calendar-day-marker.home-event-birthday {
    background: #f59e0b !important;
}

.calendar-day-marker.home-event-contract {
    background: #2563eb !important;
}

.calendar-day-marker.home-event-deal {
    background: #16a34a !important;
}

.calendar-day-marker.home-event-insurance {
    background: #db2777 !important;
}

.calendar-day-marker.home-event-default {
    background: #64748b !important;
}

.home-event-birthday {
    background: #f59e0b !important;
    color: #fff7ed !important;
    border-color: #d97706 !important;
}

.home-event-contract {
    background: #2563eb !important;
    color: #eff6ff !important;
    border-color: #1d4ed8 !important;
}

.home-event-deal {
    background: #16a34a !important;
    color: #f0fdf4 !important;
    border-color: #15803d !important;
}

.home-event-insurance {
    background: #db2777 !important;
    color: #fff1f2 !important;
    border-color: #be185d !important;
}

.home-event-default {
    background: #64748b !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

.home-event-todo-rose,
.todo-color-rose {
    background: #dc2626 !important;
    color: #fff5f5 !important;
    border-color: #b91c1c !important;
}

.calendar-day-marker.home-event-todo-rose,
.todo-color-dot.todo-color-rose {
    background: #dc2626 !important;
}

.calendar-day-marker.home-event-todo-blue,
.calendar-day-marker.home-event-todo-emerald,
.calendar-day-marker.home-event-todo-amber,
.calendar-day-marker.home-event-todo-rose,
.calendar-day-marker.home-event-todo-violet,
.calendar-day-marker.home-event-birthday,
.calendar-day-marker.home-event-contract,
.calendar-day-marker.home-event-deal,
.calendar-day-marker.home-event-insurance,
.calendar-day-marker.home-event-default,
.todo-color-dot.todo-color-blue,
.todo-color-dot.todo-color-emerald,
.todo-color-dot.todo-color-amber,
.todo-color-dot.todo-color-rose,
.todo-color-dot.todo-color-violet {
    border-color: rgba(255, 255, 255, 0.78) !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12) !important;
}

.public-page {
    min-height: 100vh;
    font-family: "Segoe UI Variable Text", "Segoe UI", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at 9% 15%, rgba(123, 77, 255, 0.31), transparent 30%),
        radial-gradient(circle at 84% 9%, rgba(79, 127, 255, 0.26), transparent 27%),
        radial-gradient(circle at 46% 78%, rgba(121, 86, 255, 0.14), transparent 36%),
        radial-gradient(circle at 22% 78%, rgba(99, 150, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #eef2fc 0%, #e3eafa 46%, #d7e1f5 100%);
}

.public-header {
    border-bottom: 1px solid rgba(28, 35, 90, 0.08);
    background: rgba(242, 246, 253, 0.82);
    backdrop-filter: blur(10px);
}

.public-header__inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.public-brand__text {
    color: #21335d;
    font-family: "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 1.2rem;
    font-weight: 760;
    letter-spacing: -0.03em;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.public-nav a {
    color: #41507a;
    font-weight: 600;
    text-decoration: none;
}

.public-nav a:hover {
    color: #1d4ed8;
}

.public-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.public-nav__cta:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.public-main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: stretch;
}

.landing-hero__content,
.landing-highlight-card,
.landing-feature-card,
.landing-step,
.landing-tariffs-placeholder__card,
.landing-link-card {
    background: linear-gradient(180deg, rgba(247, 249, 253, 0.96), rgba(238, 242, 248, 0.98));
    border: 1px solid rgba(28, 35, 90, 0.08);
    box-shadow: 0 18px 48px rgba(28, 35, 90, 0.07);
}

.landing-hero__content {
    padding: 36px;
    border-radius: 30px;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.landing-hero h1 {
    margin: 18px 0 0;
    color: #22335d;
    font-family: "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: clamp(1.85rem, 3.6vw, 3.05rem);
    line-height: 1.12;
    font-weight: 710;
    letter-spacing: -0.04em;
    max-width: 660px;
    text-wrap: balance;
}

.landing-lead {
    margin: 18px 0 0;
    color: #586783;
    font-size: 1.12rem;
    line-height: 1.8;
    max-width: 680px;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.landing-note {
    margin-top: 16px;
    color: #6a7792;
    font-weight: 600;
}

.landing-highlight-card {
    padding: 30px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-highlight-card__label {
    color: #5670be;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.landing-highlight-card h2 {
    margin: 16px 0 0;
    color: #182039;
    font-family: "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 1.68rem;
    line-height: 1.16;
    font-weight: 740;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.landing-highlight-card p {
    margin: 16px 0 0;
    color: #5d6b87;
    font-size: 1.02rem;
    line-height: 1.8;
}

.landing-section {
    margin-top: 28px;
}

.landing-section--accent {
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(238, 243, 252, 0.96), rgba(231, 237, 248, 0.98));
    border: 1px solid rgba(28, 35, 90, 0.07);
    box-shadow: 0 18px 48px rgba(28, 35, 90, 0.06);
}

.landing-section__head h2 {
    margin: 0;
    color: #182039;
    font-family: "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
    font-weight: 740;
    letter-spacing: -0.03em;
}

.landing-section__head p {
    margin: 12px 0 0;
    color: #5e6b88;
    max-width: 760px;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.landing-feature-card {
    border-radius: 24px;
    padding: 24px;
}

.landing-feature-card__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(29, 78, 216, 0.1);
    color: #1d4ed8;
    font-size: 1.5rem;
}

.landing-feature-card h3 {
    margin: 18px 0 0;
    color: #182039;
    font-family: "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 1.15rem;
    font-weight: 730;
    letter-spacing: -0.02em;
}

.landing-feature-card p {
    margin: 12px 0 0;
    color: #5d6b87;
    line-height: 1.7;
}

.landing-steps {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.landing-step {
    border-radius: 24px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.landing-step__number {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
}

.landing-step h3 {
    margin: 2px 0 0;
    color: #182039;
    font-family: "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 1.12rem;
    font-weight: 730;
    letter-spacing: -0.02em;
}

.landing-step p {
    margin: 10px 0 0;
    color: #5d6b87;
    line-height: 1.7;
}

.landing-tariffs-placeholder {
    margin-top: 22px;
}

.landing-tariffs-placeholder__card {
    border-radius: 24px;
    padding: 24px;
}

.landing-tariffs-placeholder__title {
    color: #182039;
    font-family: "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 1.12rem;
    font-weight: 730;
    letter-spacing: -0.02em;
}

.landing-tariffs-placeholder__card p {
    margin: 12px 0 0;
    color: #5d6b87;
    line-height: 1.7;
}

.landing-tariff-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.landing-tariff-card,
.pricing-card,
.contacts-card {
    background: linear-gradient(180deg, rgba(248, 250, 254, 0.98), rgba(239, 243, 250, 0.96));
    border: 1px solid rgba(28, 35, 90, 0.08);
    box-shadow: 0 18px 48px rgba(28, 35, 90, 0.07);
}

.landing-tariff-card,
.pricing-card {
    position: relative;
    border-radius: 26px;
    padding: 24px;
}

.landing-tariff-card__flag,
.pricing-card__flag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    min-width: 124px;
    text-align: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #2350c5;
    font-size: 0.84rem;
    font-weight: 800;
}

.landing-tariff-card__head,
.pricing-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-right: 150px;
}

.landing-tariff-card__name,
.pricing-card__name {
    color: #182039;
    font-family: "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 1.35rem;
    font-weight: 760;
    letter-spacing: -0.03em;
}

.landing-tariff-card__period,
.pricing-card__period {
    margin-top: 6px;
    color: #63718c;
    font-size: 0.95rem;
}

.landing-tariff-card__price,
.pricing-card__price {
    color: #2150b9;
    font-family: "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 1.55rem;
    font-weight: 780;
    white-space: nowrap;
}

.landing-tariff-card__features,
.pricing-card__features {
    margin: 20px 0 0;
    padding-left: 1.2rem;
    color: #41506f;
    line-height: 1.7;
}

.landing-tariff-card__features li,
.pricing-card__features li {
    margin-bottom: 0.6rem;
}

.landing-tariff-card__actions,
.pricing-card__footer {
    margin-top: 18px;
}

.landing-tariff-card--featured,
.pricing-card--featured {
    background: linear-gradient(180deg, rgba(241, 245, 255, 0.98), rgba(232, 239, 253, 0.96));
    border-color: rgba(59, 130, 246, 0.18);
    box-shadow: 0 20px 52px rgba(37, 99, 235, 0.12);
}

.pricing-note {
    margin-top: 22px;
    color: #5d6b87;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.contacts-card {
    border-radius: 22px;
    padding: 20px;
}

.contacts-card__label {
    color: #66758f;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contacts-card__value {
    margin-top: 10px;
    color: #182039;
    font-family: "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 1.08rem;
    font-weight: 720;
    line-height: 1.5;
}

.contacts-card__value a {
    color: #3153cf;
    text-decoration: none;
}

.contacts-card__value a:hover {
    text-decoration: underline;
}

.contacts-links {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.landing-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.landing-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    text-decoration: none;
    color: #182039;
    font-family: "Segoe UI Variable Display", "Segoe UI", "Trebuchet MS", sans-serif;
    font-weight: 720;
    letter-spacing: -0.02em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.landing-link-card:hover {
    color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.1);
}

.landing-link-card i {
    font-size: 1rem;
}

.legal-shell {
    padding: 12px 0;
}

.legal-card {
    background: linear-gradient(180deg, rgba(247, 249, 253, 0.95), rgba(238, 242, 248, 0.96));
    border: 1px solid rgba(28, 35, 90, 0.07);
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(28, 35, 90, 0.07);
    padding: 28px;
}

.legal-card--document {
    padding-bottom: 36px;
}

.legal-card__head h1 {
    margin: 0;
    color: #182039;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 800;
}

.legal-card__head p {
    margin: 12px 0 0;
    color: #5e6b88;
    max-width: 720px;
}

.legal-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.legal-list__item {
    display: block;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(28, 35, 90, 0.07);
    background: linear-gradient(180deg, rgba(241, 244, 250, 0.98), rgba(233, 238, 246, 0.96));
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.legal-list__item:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.24);
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.08);
}

.legal-list__title {
    color: #182039;
    font-size: 1.05rem;
    font-weight: 700;
}

.legal-list__meta,
.legal-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #66758f;
    font-size: 0.92rem;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #3657d6;
    font-weight: 700;
    text-decoration: none;
}

.legal-back:hover {
    color: #2743aa;
}

.legal-content {
    margin-top: 28px;
    color: #1f2a44;
    line-height: 1.7;
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
    color: #182039;
    font-weight: 800;
    margin-top: 1.8rem;
    margin-bottom: 0.85rem;
}

.legal-content h1 {
    font-size: 2rem;
}

.legal-content h2 {
    font-size: 1.4rem;
}

.legal-content h3 {
    font-size: 1.15rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.45rem;
}

.legal-content a {
    color: #3153cf;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-empty {
    text-align: center;
    color: #65748f;
    padding: 32px 16px 12px;
}

.legal-empty h1 {
    color: #182039;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.legal-accept-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.legal-accept-item {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(28, 35, 90, 0.07);
    background: linear-gradient(180deg, rgba(241, 244, 250, 0.98), rgba(233, 238, 246, 0.96));
}

.legal-accept-item .form-check-label {
    color: #1f2a44;
    line-height: 1.55;
}

.legal-accept-item .form-check-label a {
    font-weight: 700;
}

.legal-accept-meta {
    margin-top: 10px;
    margin-left: 1.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #66758f;
    font-size: 0.92rem;
}

.page.theme-dark .public-page {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 28%),
        linear-gradient(180deg, #0c1328 0%, #0a1020 100%);
}

.page.theme-dark .public-header {
    background: rgba(10, 16, 32, 0.84);
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

.page.theme-dark .public-brand,
.page.theme-dark .legal-card__head h1,
.page.theme-dark .legal-list__title,
.page.theme-dark .legal-content,
.page.theme-dark .legal-content h1,
.page.theme-dark .legal-content h2,
.page.theme-dark .legal-content h3,
.page.theme-dark .legal-empty h1 {
    color: #edf2ff;
}

.page.theme-dark .public-nav a,
.page.theme-dark .legal-card__head p,
.page.theme-dark .legal-list__meta,
.page.theme-dark .legal-meta,
.page.theme-dark .legal-empty {
    color: #a6b4d1;
}

.page.theme-dark .legal-card,
.page.theme-dark .legal-list__item {
    background: rgba(14, 23, 43, 0.92);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 60px rgba(2, 6, 23, 0.34);
}

.page.theme-dark .legal-accept-item {
    background: rgba(14, 23, 43, 0.92);
    border-color: rgba(148, 163, 184, 0.14);
}

.page.theme-dark .legal-accept-item .form-check-label,
.page.theme-dark .legal-accept-meta {
    color: #a6b4d1;
}

.page.theme-bee .public-page {
    background:
        radial-gradient(circle at top left, rgba(247, 186, 42, 0.12), transparent 24%),
        linear-gradient(180deg, #f7ebbd 0%, #f5e8c7 100%);
}

.page.theme-bee .public-header {
    background: rgba(248, 239, 203, 0.86);
    border-bottom-color: rgba(157, 113, 14, 0.12);
}

.page.theme-bee .public-brand,
.page.theme-bee .legal-card__head h1,
.page.theme-bee .legal-list__title,
.page.theme-bee .legal-content,
.page.theme-bee .legal-content h1,
.page.theme-bee .legal-content h2,
.page.theme-bee .legal-content h3,
.page.theme-bee .legal-empty h1 {
    color: #2d2410;
}

.page.theme-bee .public-nav a,
.page.theme-bee .legal-card__head p,
.page.theme-bee .legal-list__meta,
.page.theme-bee .legal-meta,
.page.theme-bee .legal-empty {
    color: #69552a;
}

.page.theme-bee .legal-card,
.page.theme-bee .legal-list__item {
    background: linear-gradient(180deg, rgba(251, 244, 216, 0.96), rgba(246, 236, 198, 0.97));
    border-color: rgba(189, 138, 22, 0.18);
    box-shadow: 0 16px 40px rgba(129, 95, 14, 0.1);
}

.page.theme-bee .legal-accept-item {
    background: linear-gradient(180deg, rgba(251, 244, 216, 0.96), rgba(246, 236, 198, 0.97));
    border-color: rgba(189, 138, 22, 0.18);
}

.page.theme-bee .legal-accept-item .form-check-label,
.page.theme-bee .legal-accept-meta {
    color: #69552a;
}

@media (max-width: 768px) {
    .public-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .public-nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .public-brand__text {
        font-size: 1.08rem;
    }

    .legal-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-hero__content,
    .landing-highlight-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .landing-hero h1 {
        font-size: clamp(1.7rem, 9vw, 2.35rem);
        line-height: 1.14;
    }

    .landing-feature-grid,
    .landing-links,
    .landing-tariff-grid,
    .pricing-grid,
    .contacts-grid,
    .contacts-links {
        grid-template-columns: 1fr;
    }

    .landing-step {
        grid-template-columns: 1fr;
    }

    .landing-step__number {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .landing-section--accent {
        padding: 22px 18px;
        border-radius: 24px;
    }
}

.cookie-notice {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-notice__content {
    width: min(920px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(24, 28, 39, 0.94);
    color: #f4f7fb;
    box-shadow: 0 24px 60px rgba(8, 12, 18, 0.28);
    backdrop-filter: blur(14px);
    pointer-events: auto;
}

.cookie-notice__text {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.55;
}

.cookie-notice__text a {
    color: #8cc8ff;
    font-weight: 600;
    text-decoration: none;
}

.cookie-notice__text a:hover,
.cookie-notice__text a:focus {
    color: #b2ddff;
    text-decoration: underline;
}

.cookie-notice__button {
    flex: 0 0 auto;
    min-width: 120px;
    border-radius: 999px;
    padding-inline: 1.15rem;
}

@media (max-width: 768px) {
    .cookie-notice {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .cookie-notice__content {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        padding: 0.95rem;
    }

    .cookie-notice__button {
        width: 100%;
    }
}
