.adl-app {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.adl-hero {
    border-radius: 16px;
    padding: 32px;
    background: linear-gradient(135deg, #043873, #1f6feb);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.adl-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.25), transparent 60%);
    pointer-events: none;
}

.adl-hero-inner {
    position: relative;
    z-index: 2;
}

.adl-eyebrow {
    letter-spacing: .25em;
    text-transform: uppercase;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 6px;
    opacity: .8;
}

.adl-hero h2 {
    margin: 0 0 8px;
    font-size: 32px;
}

.adl-hero p {
    margin: 0 0 16px;
    opacity: .9;
    line-height: 1.4;
}

.adl-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.adl-search-form input[type="text"] {
    flex: 1;
    min-width: 220px;
    border-radius: 10px;
    border: 0;
    padding: 12px 16px;
    font-size: 16px;
}

.adl-search-form button,
.adl-search-form input[type="submit"],
.adl-button {
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.adl-search-form input[type="submit"],
.adl-button--primary {
    background: #fff;
    color: #043873;
}

.adl-button--ghost,
.adl-search-form .adl-filter-toggle {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.adl-search-form .adl-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.adl-filter-body {
    margin-top: 16px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: none;
}

.adl-filter-body.is-open {
    display: block;
}

.adl-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 24px;
}

.adl-filter-grid label {
    display: block;
    letter-spacing: .02em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 6px;
}

.adl-filter-grid input,
.adl-filter-grid select {
    width: 100%;
    border-radius: 8px;
    border: none;
    padding: 10px 12px;
    font-size: 15px;
}

.adl-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.adl-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.adl-summary-item {
    border-radius: 12px;
    padding: 16px;
    background: #f5f7fb;
}

.adl-summary-item span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #5c677d;
}

.adl-summary-item strong {
    display: block;
    font-size: 26px;
    margin-top: 8px;
    color: #0f172a;
}

.adl-results {
    overflow-x: auto;
}

.adl-results table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.adl-results th,
.adl-results td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #e4e7ec;
}

.adl-results th {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .08em;
    color: #5c677d;
}

.adl-status,
.adl-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
}

.adl-status[data-status="MR Safe"] {
    background: #dcfce7;
    color: #166534;
}

.adl-status[data-status="MR Conditional"] {
    background: #fef3c7;
    color: #92400e;
}

.adl-status[data-status="MR Unsafe"] {
    background: #fee2e2;
    color: #991b1b;
}

.adl-status[data-status=""] {
    background: #e0e7ff;
    color: #4338ca;
}

.adl-results-actions {
    display: flex;
    gap: 8px;
}

.adl-results-actions .adl-button--ghost {
    background: #edf2fb;
    color: #1d3b8b;
}

.adl-empty {
    border: 1px dashed #c7cddc;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #475467;
}

.adl-login-gate {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: #fff;
}

.adl-details-card {
    margin-top: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
}

.adl-details-card h3 {
    margin-top: 0;
    font-size: 24px;
}

.adl-details-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 24px;
    margin-top: 16px;
}

.adl-details-list div span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
}

.adl-details-list div strong {
    font-size: 18px;
    display: block;
    margin-top: 4px;
}

.adl-details-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.adl-details-actions .adl-button--primary {
    background: #1d4ed8;
    color: #fff;
}

.adl-details-actions .adl-button--ghost {
    background: #eff6ff;
    color: #1d4ed8;
}

@media (max-width: 768px) {
    .adl-hero {
        padding: 24px;
    }

    .adl-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .adl-search-form input[type="submit"],
    .adl-search-form .adl-filter-toggle {
        width: 100%;
        justify-content: center;
    }
}

.adl-notice {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.adl-notice--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #34d399;
}

.adl-notice--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.adl-feedback-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 1000;
}

.adl-feedback-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.adl-feedback-modal__dialog {
    background: radial-gradient(circle at top, #ffffff 0%, #f3f4f6 65%);
    border-radius: 22px;
    width: 100%;
    max-width: 540px;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

.adl-feedback-modal__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(4, 56, 115, 0.25), rgba(31, 111, 235, 0.4));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.adl-feedback-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: #fff;
    font-size: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    color: #1d4ed8;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.2);
}

.adl-feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.adl-feedback-field label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
    color: #6b7280;
}

.adl-feedback-field input,
.adl-feedback-field select,
.adl-feedback-field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #cfd5e2;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.adl-feedback-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.adl-feedback-actions .adl-button--primary {
    background: linear-gradient(135deg, #043873, #1f6feb);
    color: #fff;
    box-shadow: 0 10px 20px rgba(4, 56, 115, 0.25);
}

.adl-feedback-actions .adl-button--ghost {
    background: transparent;
    border: 1px solid rgba(4, 56, 115, 0.25);
    color: #1d4ed8;
}

.adl-feedback-heading {
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    padding-bottom: 18px;
}

.adl-feedback-eyebrow {
    font-size: 10px;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 6px;
}

.adl-feedback-modal__dialog h3 {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
}

.adl-feedback-intro {
    margin: 8px 0 0;
    color: #4b5563;
    line-height: 1.6;
}

.adl-feedback-modal__dialog select {
    background-image: linear-gradient(45deg, transparent 50%, #1d4ed8 50%), linear-gradient(135deg, #1d4ed8 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 32px;
}
