.lead-board-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: auto;
    min-height: calc(100vh - 11rem);
}

.lead-board-page__filters {
    border: 1px solid rgba(191, 219, 254, 0.88);
    border-radius: 1.25rem;
    background:
        linear-gradient(135deg, rgba(236, 254, 255, 0.72), rgba(239, 246, 255, 0.88)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow:
        0 14px 32px rgba(148, 163, 184, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    padding: 1rem 1.125rem;
}

.lead-board-page__filters-grid {
    display: grid;
    gap: 0.875rem;
    align-items: end;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr) minmax(0, 0.85fr) auto;
}

.lead-board-page__field {
    min-width: 0;
}

.lead-board-page__label {
    display: block;
    margin-bottom: 0.45rem;
    color: rgb(51, 65, 85);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead-board-page__control {
    display: block;
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid rgba(186, 230, 253, 0.95);
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.96));
    color: rgb(15, 23, 42);
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0.75rem 0.95rem;
    outline: none;
    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, 0.03),
        0 1px 0 rgba(255, 255, 255, 0.82);
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.lead-board-page__control:hover {
    border-color: rgba(125, 211, 252, 0.95);
    background: rgba(255, 255, 255, 1);
}

.lead-board-page__control:focus {
    border-color: rgba(20, 184, 166, 0.82);
    box-shadow:
        0 0 0 0.22rem rgba(20, 184, 166, 0.12),
        0 12px 20px rgba(14, 165, 233, 0.08),
        inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.lead-board-page__control::placeholder {
    color: rgb(148, 163, 184);
}

.lead-board-page__actions {
    display: flex;
    align-items: end;
}

.lead-board-page__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    border: 1px solid rgba(186, 230, 253, 0.95);
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.98));
    color: rgb(30, 41, 59);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 18px rgba(148, 163, 184, 0.1);
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.lead-board-page__clear:hover {
    border-color: rgba(20, 184, 166, 0.42);
    background: linear-gradient(180deg, rgba(240, 253, 250, 1), rgba(204, 251, 241, 0.9));
    color: rgb(15, 118, 110);
    box-shadow: 0 12px 22px rgba(45, 212, 191, 0.14);
}

.lead-board-page__board {
    min-height: 0;
    flex: 1 1 auto;
    overflow: visible;
}

.dark .lead-board-page__filters {
    border-color: rgba(51, 65, 85, 0.72);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dark .lead-board-page__label {
    color: rgb(148, 163, 184);
}

.dark .lead-board-page__control {
    border-color: rgba(71, 85, 105, 0.88);
    background: rgba(15, 23, 42, 0.88);
    color: rgb(241, 245, 249);
    box-shadow: none;
}

.dark .lead-board-page__control:hover {
    border-color: rgba(100, 116, 139, 0.95);
}

.dark .lead-board-page__control:focus {
    border-color: rgba(45, 212, 191, 0.9);
    box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.16);
}

.dark .lead-board-page__control::placeholder {
    color: rgb(100, 116, 139);
}

.dark .lead-board-page__clear {
    border-color: rgba(71, 85, 105, 0.82);
    background: rgba(30, 41, 59, 0.52);
    color: rgb(226, 232, 240);
}

.dark .lead-board-page__clear:hover {
    border-color: rgba(45, 212, 191, 0.5);
    background: rgba(20, 184, 166, 0.1);
    color: rgb(240, 253, 250);
}

@media (max-width: 1024px) {
    .lead-board-page__filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .lead-board-page__filters-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .lead-board-page__actions {
        display: block;
    }

    .lead-board-page__clear {
        width: 100%;
    }
}

.lead-notes-sheet {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 26rem;
    overflow-y: auto;
    padding-right: 0.375rem;
}

.lead-notes-sheet__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid rgba(71, 85, 105, 0.55);
    border-radius: 1.125rem;
    background:
        linear-gradient(180deg, rgba(25, 31, 43, 0.96), rgba(16, 22, 33, 0.98)),
        linear-gradient(90deg, rgba(45, 212, 191, 0.08), rgba(45, 212, 191, 0));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 10px 24px rgba(2, 6, 23, 0.28);
    padding: 1rem 1rem 1rem 0.875rem;
}

.lead-notes-sheet__rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: 0.625rem;
    width: 2.75rem;
}

.lead-notes-sheet__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.3), rgba(17, 94, 89, 0.9));
    border: 1px solid rgba(94, 234, 212, 0.28);
    color: rgb(240, 253, 250);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 0 0 0.25rem rgba(13, 18, 28, 0.85);
}

.lead-notes-sheet__line {
    width: 2px;
    flex: 1 1 auto;
    min-height: 3.25rem;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.42), rgba(51, 65, 85, 0));
}

.lead-notes-sheet__content {
    min-width: 0;
    flex: 1 1 auto;
}

.lead-notes-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.lead-notes-sheet__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.lead-notes-sheet__author {
    margin: 0;
    color: rgb(248, 250, 252);
    font-size: 0.98rem;
    font-weight: 700;
}

.lead-notes-sheet__time {
    margin: 0;
    color: rgb(148, 163, 184);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead-notes-sheet__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-radius: 9999px;
    background: rgba(20, 184, 166, 0.12);
    color: rgb(153, 246, 228);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.6rem;
    text-transform: uppercase;
}

.lead-notes-sheet__body {
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.48);
    color: rgb(226, 232, 240);
    line-height: 1.6;
    padding: 0.9rem 1rem;
}

.lead-notes-sheet__body p,
.lead-notes-sheet__body ul,
.lead-notes-sheet__body ol,
.lead-notes-sheet__body blockquote,
.lead-notes-sheet__body pre,
.lead-notes-sheet__body h1,
.lead-notes-sheet__body h2,
.lead-notes-sheet__body h3,
.lead-notes-sheet__body h4 {
    margin-top: 0;
}

.lead-notes-sheet__body ul,
.lead-notes-sheet__body ol {
    padding-left: 1.15rem;
}

.lead-notes-sheet__body p:last-child,
.lead-notes-sheet__body ul:last-child,
.lead-notes-sheet__body ol:last-child,
.lead-notes-sheet__body blockquote:last-child,
.lead-notes-sheet__body pre:last-child {
    margin-bottom: 0;
}

.lead-notes-sheet__empty {
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.62);
    color: rgb(148, 163, 184);
    font-size: 0.9rem;
    padding: 1rem 1.125rem;
    text-align: center;
}
