/* DevBrothers Screening — формы и кабинет */

:root {
    --dbs-surface: rgba(255, 255, 255, 0.96);
    --dbs-surface-solid: #ffffff;
    --dbs-border: #cbd5e1;
    --dbs-border-soft: #e2e8f0;
    --dbs-text: #0f172a;
    --dbs-muted: #64748b;
    --dbs-focus: #2563eb;
    --dbs-focus-ring: rgba(37, 99, 235, 0.18);
    --dbs-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.dbs-form,
.dbs-home,
.dbs-account {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px;
}

.dbs-form,
.dbs-home,
.dbs-account {
    background: var(--dbs-surface);
    border: 1px solid var(--dbs-border-soft);
    border-radius: 16px;
    box-shadow: 0 4px 28px rgba(15, 23, 42, 0.06);
}

.dbs-home.dbs-home--split {
    max-width: 1180px;
    padding: 28px clamp(16px, 3vw, 28px);
}

.dbs-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 16px 0;
}

.dbs-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.dbs-alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.dbs-alert--neutral {
    background: #f8fafc;
    border: 1px solid var(--dbs-border-soft);
    color: var(--dbs-text);
}

.dbs-form2-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1.1rem;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--dbs-muted);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px dashed var(--dbs-border);
    box-sizing: border-box;
}

.dbs-card {
    border: 1px solid var(--dbs-border-soft);
    border-radius: 12px;
    background: var(--dbs-surface-solid);
    padding: 14px 16px;
    display: grid;
    gap: 6px;
    margin: 12px 0 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dbs-muted {
    color: var(--dbs-muted);
    font-size: 0.9rem;
}

.dbs-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-weight: 700;
}

.dbs-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px;
}

.dbs-table-wrap {
    overflow: auto;
    border: 1px solid var(--dbs-border-soft);
    border-radius: 12px;
    background: var(--dbs-surface-solid);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dbs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.dbs-table th,
.dbs-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.dbs-table thead th {
    background: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dbs-text);
}

.dbs-table-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dbs-table-actions > a {
    flex: 0 1 auto;
}

.dbs-table-actions .dbs-delete-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: auto;
}

.dbs-inline-form {
    margin: 0;
    padding: 0;
}

.dbs-actions-row--split {
    justify-content: space-between;
    align-items: center;
}

.dbs-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: none;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    color: #dc2626;
    background: transparent;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dbs-delete-btn__icon {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
    display: block;
    transform: translateY(-1px);
}

.dbs-delete-btn:hover,
.dbs-delete-btn:focus-visible {
    color: #b91c1c;
    background: #fef2f2;
    outline: none;
}

.dbs-delete-btn:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #dc2626;
}

.dbs-fieldset {
    border: 1px solid var(--dbs-border-soft);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    background: var(--dbs-surface-solid);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.dbs-fieldset legend {
    font-weight: 700;
    padding: 0 8px;
}

.dbs-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}

.dbs-field__hint {
    margin: 0 0 4px;
    font-size: 0.875rem;
    line-height: 1.45;
}

/* Блок новой организации: скрыт, пока не выбрано «Моей организации нет» */
.dbs-fieldset:has(select[name="dbs_profile_organization_id"]) .dbs-field[data-dbs-custom-org] {
    display: none;
}

.dbs-fieldset:has(select[name="dbs_profile_organization_id"] option[value="custom"]:checked) .dbs-field[data-dbs-custom-org] {
    display: flex;
}

/* Текстовые поля */
.dbs-field input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--dbs-border);
    border-radius: 10px;
    background: var(--dbs-surface-solid);
    color: var(--dbs-text);
    font-size: 0.9375rem;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dbs-field input:not([type="checkbox"]):not([type="radio"]):hover {
    border-color: #94a3b8;
}

/* Все видимые выпадающие списки (в т.ч. возраст, тип заполнения, ответы формы №2) */
.dbs-form-inner select:not(.dbs-ac__select) {
    width: 100%;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 2.5rem 0.5rem 0.875rem;
    border: 1px solid var(--dbs-border);
    border-radius: 10px;
    background-color: var(--dbs-surface-solid);
    color: var(--dbs-text);
    font-size: 0.9375rem;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: var(--dbs-chevron);
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1.125rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.dbs-form-inner select:not(.dbs-ac__select):hover {
    border-color: #94a3b8;
}

.dbs-form-inner select:not(.dbs-ac__select):focus {
    outline: none;
    border-color: var(--dbs-focus);
    box-shadow: 0 0 0 3px var(--dbs-focus-ring);
}

.dbs-form-inner select:not(.dbs-ac__select):disabled {
    opacity: 0.68;
    cursor: not-allowed;
    background-color: #f1f5f9;
    color: var(--dbs-muted);
    border-color: var(--dbs-border-soft);
}

.dbs-field input:not([type="checkbox"]):not([type="radio"]):focus,
.dbs-ac__input:focus {
    outline: none;
    border-color: var(--dbs-focus);
    box-shadow: 0 0 0 3px var(--dbs-focus-ring);
}

/* Autocomplete wrapper */
.dbs-ac {
    position: relative;
    width: 100%;
}

.dbs-ac__input {
    width: 100%;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 2.5rem 0.5rem 0.875rem;
    border: 1px solid var(--dbs-border);
    border-radius: 10px;
    background-color: var(--dbs-surface-solid);
    background-image: var(--dbs-chevron);
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1.125rem;
    color: var(--dbs-text);
    font-size: 0.9375rem;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dbs-ac__input:hover {
    border-color: #94a3b8;
}

.dbs-ac__dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    overflow: auto;
    max-height: 320px;
    display: none;
    z-index: 9999;
}

.dbs-ac__dropdown.is-open {
    display: block;
}

.dbs-ac__item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    cursor: pointer;
}

.dbs-ac__item:hover,
.dbs-ac__item:focus {
    background: #f3f4f6;
}

.dbs-ac__item--empty {
    cursor: default;
    color: #6b7280;
}

/* Hide original selects when enhanced (still submitted with form) */
.dbs-ac__select {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

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

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

.dbs-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 12px;
    margin-left: 8px;
    cursor: help;
    user-select: none;
}

.dbs-hint {
    color: var(--dbs-muted);
    font-size: 0.875rem;
}

/* Области развития (форма №2) */
.dbs-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem 0.75rem;
    margin-top: 4px;
}

.dbs-area {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--dbs-border-soft);
    background: #f8fafc;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dbs-text);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.dbs-area:hover {
    border-color: #cbd5e1;
}

.dbs-area:has(input:checked) {
    border-color: var(--dbs-focus);
    background: rgba(37, 99, 235, 0.07);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.dbs-area input[type="checkbox"] {
    width: 1.0625rem;
    height: 1.0625rem;
    margin: 0;
    accent-color: var(--dbs-focus);
    cursor: pointer;
}

.dbs-area-block {
    margin: 1.25rem 0;
    padding: 1rem 0;
}

.dbs-area-block:first-of-type {
    margin-top: 0;
    padding-top: 0;
}

.dbs-area-block + .dbs-area-block {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--dbs-border-soft);
}

.dbs-area-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dbs-text);
}

.dbs-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dbs-question {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
    border: 1px solid var(--dbs-border-soft);
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(180deg, #fafbfc 0%, #f4f6f8 100%);
}

.dbs-question__text {
    line-height: 1.35;
}

/* Личный кабинет: результат формы №2 — без номера вопроса, ответ и баллы в отдельных колонках */
.dbs-question--account-f2 {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 26%) minmax(72px, 5.5rem);
    align-items: start;
    gap: 12px 16px;
}

.dbs-question--account-f2 .dbs-question__answer-col,
.dbs-question--account-f2 .dbs-question__score-col {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.dbs-question--account-f2 .dbs-question__answer-col {
    justify-content: flex-start;
}

.dbs-question--account-f2 .dbs-question__score-col {
    justify-content: flex-end;
}

.dbs-pill--num {
    font-variant-numeric: tabular-nums;
    min-width: 2.25rem;
    justify-content: center;
}

.dbs-actions {
    margin-top: 18px;
}

.dbs-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid #1d4ed8;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.dbs-submit:hover {
    background: #1d4ed8;
}

.dbs-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--dbs-focus-ring);
}

/* ЛК: доп. информация (collapsible) */
.dbs-account-extra > summary {
    list-style: none;
}

.dbs-account-extra > summary::-webkit-details-marker {
    display: none;
}

.dbs-account-extra__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0;
    user-select: none;
}

.dbs-account-extra__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.dbs-account-extra__preview {
    flex: 1 1 10rem;
    font-size: 0.875rem;
    color: var(--dbs-muted);
    text-align: right;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dbs-account-extra__preview--warn {
    color: #b45309;
    font-weight: 600;
}

.dbs-account-extra__chevron {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dbs-muted);
}

.dbs-account-extra__chevron::before {
    content: "";
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.dbs-account-extra[open] .dbs-account-extra__chevron::before {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
}

.dbs-account-extra[open] .dbs-account-extra__preview {
    display: none;
}

.dbs-account-extra__body {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dbs-border-soft);
}

.dbs-account-extra__toplink {
    margin: 0 0 0.85rem;
}

/* ЛК: карточка групп детей */
.dbs-groups-card__head {
    margin-bottom: 0.25rem;
}

.dbs-groups-card__title {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
}

.dbs-groups-card__lead {
    margin: 0;
    line-height: 1.45;
}

.dbs-groups-card__add {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: end;
    margin-top: 1.25rem;
}

.dbs-groups-card__add-field {
    min-width: 0;
}

.dbs-groups-card__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--dbs-text);
}

.dbs-groups-card__input {
    width: 100%;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--dbs-border);
    border-radius: 10px;
    background: var(--dbs-surface-solid);
    color: var(--dbs-text);
    font-size: 0.9375rem;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.dbs-groups-card__input:hover {
    border-color: #94a3b8;
}

.dbs-groups-card__input:focus {
    outline: none;
    border-color: var(--dbs-focus);
    box-shadow: 0 0 0 3px var(--dbs-focus-ring);
}

.dbs-groups-card__submit {
    min-height: 2.75rem;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
    white-space: nowrap;
}

.dbs-groups-card__empty {
    margin: 1.1rem 0 0;
}

@media (max-width: 540px) {
    .dbs-groups-card__add {
        grid-template-columns: 1fr;
    }

    .dbs-groups-card__add-action .dbs-submit {
        width: 100%;
    }
}

.dbs-group-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    border: 1px solid var(--dbs-border-soft);
    border-radius: 12px;
    overflow: hidden;
    background: var(--dbs-surface-solid);
}

.dbs-group-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--dbs-border-soft);
}

.dbs-group-list__item:last-child {
    border-bottom: none;
}

.dbs-group-list__link {
    font-weight: 600;
    text-decoration: none;
    color: var(--dbs-focus);
}

.dbs-group-list__link:hover {
    text-decoration: underline;
}

.dbs-group-list__meta {
    font-size: 0.875rem;
}

.dbs-account--group-view .dbs-account__back {
    margin-bottom: 0.5rem;
}

.dbs-account__group-title {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.dbs-group-forms-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* ЛК: компактная форма добавления ребенка */
.dbs-child-create-form .dbs-fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.dbs-child-create-form .dbs-field {
    margin: 0;
}

.dbs-child-create-form .dbs-submit {
    margin-top: 4px;
}

a.dbs-submit.dbs-submit--as-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

a.dbs-submit.dbs-submit--as-link:hover {
    color: #fff;
}

.dbs-cipher-code {
    font-size: 0.9em;
    background: #f1f5f9;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}

.dbs-table--group-children th,
.dbs-table--group-children td {
    font-size: 0.9375rem;
}

/* Фронтенд-панель администратора */
.dbs-frontend-admin__section {
    margin-bottom: 2.25rem;
}

.dbs-frontend-admin__section h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.dbs-inline-form {
    display: inline;
}

/* Form 2: area totals on account result page */
.dbs-area-chart {
    margin: 1rem 0 1.5rem;
    max-width: 52rem;
}

.dbs-area-chart__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.dbs-area-chart__label {
    flex: 0 0 11rem;
    font-size: 0.85rem;
    line-height: 1.3;
}

.dbs-area-chart__bar-wrap {
    flex: 1;
    min-width: 0;
    height: 1.1rem;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.dbs-area-chart__bar {
    height: 100%;
    min-width: 2px;
    background: #2563eb;
    border-radius: 4px;
}

.dbs-area-chart__score {
    flex: 0 0 2rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

@media (max-width: 900px) {
    .dbs-grid-3 {
        grid-template-columns: 1fr;
    }

    .dbs-child-create-form .dbs-fieldset {
        grid-template-columns: 1fr;
    }

    .dbs-question {
        grid-template-columns: 1fr;
    }

    .dbs-question--account-f2 {
        grid-template-columns: 1fr;
    }

    .dbs-question--account-f2 .dbs-question__answer-col,
    .dbs-question--account-f2 .dbs-question__score-col {
        justify-content: flex-start;
    }

    .dbs-area-chart__label {
        flex: 0 0 9rem;
        font-size: 0.8rem;
    }
}

/* -------------------------------------------------------------------------- 
   Главная страница (dbs_home): две колонки
   -------------------------------------------------------------------------- */

.dbs-home__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
}

.dbs-home__intro h1 {
    font-size: clamp(1.65rem, 1rem + 2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.65em;
    color: var(--dbs-text);
}

.dbs-home__lead {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--dbs-text);
    margin: 0 0 1em;
}

.dbs-home__intro > p:not(.dbs-home__lead) {
    margin: 0 0 1em;
    color: var(--dbs-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.dbs-home__intro h2 {
    margin-top: 1.35em;
    margin-bottom: 0.5em;
    font-size: 1.15rem;
    color: var(--dbs-text);
}

.dbs-home__form-list {
    list-style: none;
    margin: 0 0 1.25em;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dbs-home__form-card {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--dbs-border-soft);
    border-radius: 12px;
    background: var(--dbs-surface-solid);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dbs-home__form-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #1d4ed8;
    background: #2563eb;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none !important;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.dbs-home__form-link:hover {
    background: #1d4ed8;
    border-color: #1e40af;
}

.dbs-home__form-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--dbs-focus-ring);
}

.dbs-home__form-link--secondary {
    background: #fff;
    color: var(--dbs-focus) !important;
    border-color: var(--dbs-border);
}

.dbs-home__form-link--secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.dbs-home__form-desc {
    margin: 12px 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--dbs-muted);
}

.dbs-home__actions {
    margin: 0 0 0.5em;
}

.dbs-home__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        box-shadow 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    box-sizing: border-box;
}

.dbs-home__btn--primary {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #fff !important;
}

.dbs-home__btn--primary:hover {
    background: #1d4ed8;
}

.dbs-home__btn--ghost {
    background: var(--dbs-surface-solid);
    border-color: var(--dbs-border);
    color: var(--dbs-text) !important;
}

.dbs-home__btn--ghost:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.dbs-home__btn--block {
    width: 100%;
}

.dbs-home__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--dbs-focus-ring);
}

.dbs-home__panel {
    position: sticky;
    top: 1rem;
    padding: 22px 22px 20px;
    border-radius: 14px;
    border: 1px solid var(--dbs-border-soft);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.dbs-home__panel-title {
    margin: 0 0 0.5em;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dbs-text);
}

.dbs-home__panel-lead {
    margin: 0 0 0.35em;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dbs-text);
}

.dbs-home__panel-hint {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.dbs-home__panel-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 12px;
}

.dbs-home__panel-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--dbs-border-soft);
}

.dbs-home__panel-footer .dba-auth-btn,
.dbs-home__panel-footer .db-auth-btn,
.dbs-home__auth-nav.dba-auth-btn,
.dbs-home__auth-nav.db-auth-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.dbs-home__panel-form {
    margin: 0;
}

.dbs-home__panel-form form,
.dbs-home__panel > .dbs-home__panel-form form {
    margin: 0;
}

.dbs-home__panel .dbs-home__panel-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.dbs-home__panel form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    width: 100%;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--dbs-border);
    border-radius: 10px;
    background: var(--dbs-surface-solid);
    color: var(--dbs-text);
    font-size: 0.9375rem;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dbs-home__panel .dbs-home__panel-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
.dbs-home__panel form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover {
    border-color: #94a3b8;
}

.dbs-home__panel .dbs-home__panel-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.dbs-home__panel form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus {
    outline: none;
    border-color: var(--dbs-focus);
    box-shadow: 0 0 0 3px var(--dbs-focus-ring);
}

.dbs-home__panel .dbs-home__panel-form button[type="submit"],
.dbs-home__panel .dbs-home__panel-form input[type="submit"],
.dbs-home__panel form button[type="submit"],
.dbs-home__panel form input[type="submit"] {
    width: 100%;
    min-height: 2.75rem;
    padding: 12px 18px;
    margin-top: 4px;
    border-radius: 10px;
    border: 1px solid #1d4ed8;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.dbs-home__panel .dbs-home__panel-form button[type="submit"]:hover,
.dbs-home__panel .dbs-home__panel-form input[type="submit"]:hover,
.dbs-home__panel form button[type="submit"]:hover,
.dbs-home__panel form input[type="submit"]:hover {
    background: #1d4ed8;
}

.dbs-home__panel .dbs-home__panel-form button[type="submit"]:focus-visible,
.dbs-home__panel .dbs-home__panel-form input[type="submit"]:focus-visible,
.dbs-home__panel form button[type="submit"]:focus-visible,
.dbs-home__panel form input[type="submit"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--dbs-focus-ring);
}

.dbs-home__panel .dbs-home__panel-form label,
.dbs-home__panel form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dbs-text);
    margin-bottom: 0.35rem;
}

@media (max-width: 768px) {
    .dbs-home__grid {
        grid-template-columns: 1fr;
    }

    .dbs-home__panel {
        position: static;
    }
}
