/* Drobne style funkcji dodawanych po pierwszej wersji interfejsu. */

.saved-results-card,
.review-card,
.lab-results-card {
    border-top: 3px solid rgba(8, 127, 120, 0.55);
}

.lab-results-dot {
    border-color: var(--blue);
    background: #c9dcff;
}

.auth-heading {
    display: flex;
    gap: 14px;
    align-items: center;
}

.auth-heading h1,
.auth-heading .eyebrow {
    margin-bottom: 0;
}

.auth-symbol {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
}

.auth-symbol img {
    display: block;
    width: 100%;
    height: 100%;
}

.auth-form-actions {
    margin-top: -7px;
    text-align: right;
}

.auth-form-actions a,
.auth-links a {
    font-weight: 750;
}

.auth-links {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.auth-links p {
    margin: 5px 0;
}

.auth-note {
    padding: 13px 15px;
    border: 1px solid #b8ded8;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.86rem;
}

.button-wide {
    width: 100%;
}

/* Czytelna, powtarzalna instrukcja dla każdej głównej funkcji. */
.help-panel {
    margin: 0 0 22px;
    overflow: hidden;
    border: 1px solid #c9dedf;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fcfb, #f0f8f7);
    box-shadow: 0 6px 18px rgba(22, 64, 72, 0.05);
}

.card > .help-panel:last-child {
    margin-bottom: 0;
}

.help-panel > summary {
    display: grid;
    min-height: 58px;
    cursor: pointer;
    grid-template-columns: 34px 1fr auto auto;
    gap: 11px;
    align-items: center;
    padding: 11px 15px;
    color: #173f49;
    font-size: 0.96rem;
    font-weight: 820;
    list-style: none;
}

.help-panel > summary::-webkit-details-marker {
    display: none;
}

.help-panel > summary::after {
    color: var(--primary);
    content: "⌄";
    font-size: 1.1rem;
    transition: transform 160ms ease;
}

.help-panel[open] > summary::after {
    transform: rotate(180deg);
}

.help-panel > summary small {
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 650;
}

.help-panel-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 900;
}

.help-panel-content {
    padding: 17px 20px 19px 60px;
    border-top: 1px solid #d5e7e5;
    background: rgba(255, 255, 255, 0.72);
    color: #36545c;
    font-size: 0.94rem;
}

.help-panel-content p {
    margin: 0 0 12px;
}

.help-panel-content h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 1rem;
}

.help-panel-content ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
}

.help-panel-content li {
    padding-left: 4px;
}

.help-panel-content li::marker {
    color: var(--primary);
    font-weight: 850;
}

.help-panel-note {
    margin: 15px 0 0 !important;
    padding: 12px 14px;
    border-left: 4px solid #dda944;
    border-radius: 0 10px 10px 0;
    background: #fff7e9;
    color: #684719;
}

/* Spójniejsza hierarchia i wygodniejsze formularze. */
.page-heading > div:first-child,
.section-heading > div:first-child {
    min-width: 0;
}

.page-heading > div:first-child > p:last-child {
    max-width: 72ch;
}

.card {
    border-color: #cbdedf;
}

input:disabled,
select:disabled,
textarea:disabled {
    border-color: #d8e2e3;
    background: #eef3f3;
    color: #63777c;
    opacity: 1;
}

.section-heading + .help-panel,
h2 + .help-panel {
    margin-top: -4px;
}

.details-card > .help-panel {
    margin: 0 26px 22px;
}

@media (max-width: 560px) {
    .plan-version-list a {
        grid-template-columns: 88px 1fr;
        gap: 9px;
        padding: 12px;
    }

    .help-panel {
        margin-bottom: 17px;
        border-radius: 14px;
    }

    .help-panel > summary {
        min-height: 56px;
        grid-template-columns: 32px 1fr auto;
        gap: 9px;
        padding: 10px 12px;
    }

    .help-panel > summary small {
        display: none;
    }

    .help-panel-content {
        padding: 15px 15px 17px;
        font-size: 0.93rem;
        line-height: 1.62;
    }

    .help-panel-content ol {
        gap: 12px;
    }

    .details-card > .help-panel {
        margin: 0 18px 18px;
    }
}
