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

body {
    background: #f4f6f8;
    color: #1f2937;
}

.brand-logo {
    max-height: 64px;
    max-width: 260px;
    object-fit: contain;
}

.page-panel,
.form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.page-panel {
    padding: 24px;
}

.form-shell {
    display: grid;
    gap: 16px;
}

.form-section {
    padding: 18px;
}

.form-section-info {
    background: #f0f9ff;
    border-color: #9eeaf9;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #0f172a;
}

.section-title h2 {
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
}

.section-title i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #fff;
    background: #0d6efd;
}

.section-title-info {
    color: #055160;
}

.section-title-info i {
    background: #0dcaf0;
    color: #052c65;
}

.form-label {
    font-size: .84rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px 16px;
}

.accessibility-options {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.accessibility-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
    padding: 9px 10px;
    background: #fff;
    border: 1px solid #cfe7ef;
    border-radius: 7px;
}

.accessibility-help {
    position: relative;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #087990;
    line-height: 1;
    cursor: help;
}

.accessibility-help:hover,
.accessibility-help:focus-visible {
    background: #cff4fc;
    color: #055160;
    outline: none;
}

.accessibility-help::before,
.accessibility-help::after {
    position: absolute;
    left: 50%;
    z-index: 30;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, transform .15s ease;
}

.accessibility-help::before {
    content: '';
    bottom: calc(100% + 4px);
    border: 6px solid transparent;
    border-top-color: #1f2937;
    transform: translate(-50%, 4px);
}

.accessibility-help::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 16px);
    width: min(320px, calc(100vw - 48px));
    padding: 12px 14px;
    border-radius: 7px;
    background: #1f2937;
    color: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    transform: translate(-50%, 4px);
}

.accessibility-help:hover::before,
.accessibility-help:hover::after,
.accessibility-help:focus-visible::before,
.accessibility-help:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 12px 0;
    background: linear-gradient(to top, #f4f6f8 65%, rgba(244, 246, 248, 0));
}

.mini-muted {
    font-size: .85rem;
    color: #6b7280;
}

.table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .page-panel,
    .form-section {
        padding: 14px;
    }

    .brand-logo {
        max-width: 190px;
    }

    .sticky-actions {
        justify-content: stretch;
    }

    .sticky-actions .btn {
        flex: 1;
    }
}
