.tscan-portal {
    --tscan-navy: #003c4e;
    --tscan-orange: #ea5d1c;
    --tscan-orange-dark: #f08100;
    --tscan-text: #1b1b1a;
    --tscan-muted: #22595f;
    --tscan-border: #d5e1e3;
    --tscan-soft: #f3f7f7;
    width: 100%;
    max-width: 1280px;
    margin: 28px auto;
    color: var(--tscan-text);
}

.tscan-portal *,
.tscan-portal *::before,
.tscan-portal *::after {
    box-sizing: border-box;
}

.tscan-portal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 28px 30px;
    border-radius: 16px;
    background: var(--tscan-navy);
    color: #fff;
}

.tscan-portal__header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.tscan-portal__header p {
    max-width: 790px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
}

.tscan-portal__logout {
    flex: 0 0 auto;
    margin: 0;
}

.tscan-portal__logout .tscan-button--secondary {
    border-color: rgba(255, 255, 255, .62);
    background: transparent;
    color: #fff;
}

.tscan-portal-card,
.tscan-portal__empty-state {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--tscan-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(24, 50, 74, .07);
}

.tscan-portal-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.tscan-portal-card__heading h3,
.tscan-portal__empty-state h3 {
    margin: 0;
    color: var(--tscan-navy);
    font-size: 26px;
    line-height: 1.25;
}

.tscan-portal-card__heading p,
.tscan-portal__empty-state p {
    max-width: 800px;
    margin: 7px 0 0;
    color: var(--tscan-muted);
    line-height: 1.55;
}

.tscan-portal-eyebrow {
    margin-bottom: 4px;
    color: var(--tscan-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tscan-portal-table-wrap {
    overflow-x: auto;
}

.tscan-portal-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.tscan-portal-table th,
.tscan-portal-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--tscan-border);
    text-align: left;
    vertical-align: middle;
}

.tscan-portal-table th {
    background: var(--tscan-soft);
    color: var(--tscan-navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.tscan-portal-table th:first-child {
    border-radius: 9px 0 0 9px;
}

.tscan-portal-table th:last-child {
    border-radius: 0 9px 9px 0;
}

.tscan-portal-table tbody tr:last-child td {
    border-bottom: 0;
}

.tscan-portal-table__actions {
    min-width: 260px;
    text-align: right !important;
    white-space: nowrap;
}

.tscan-portal-table__actions .tscan-button + .tscan-button {
    margin-left: 6px;
}

.tscan-button--small {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}

.tscan-portal-progress {
    overflow: hidden;
    width: 110px;
    height: 8px;
    margin-bottom: 5px;
    border-radius: 999px;
    background: #e7edf1;
}

.tscan-portal-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--tscan-orange);
}

.tscan-portal-table small {
    color: var(--tscan-muted);
    font-size: 11px;
}

.tscan-portal-list__empty {
    margin: 0;
    padding: 20px;
    border-radius: 10px;
    background: var(--tscan-soft);
    color: var(--tscan-muted);
}

.tscan-portal-notice {
    margin: 0 0 20px;
    padding: 14px 17px;
    border: 1px solid;
    border-radius: 9px;
    font-weight: 700;
}

.tscan-portal-notice.is-success {
    border-color: #9ed0ad;
    background: #edf8f0;
    color: #205f32;
}

.tscan-portal-notice.is-error {
    border-color: #e1aaa8;
    background: #fff1f0;
    color: #8a2420;
}

.tscan-portal-notice.is-warning {
    border-color: #e4c27b;
    background: #fff9e8;
    color: #6e5417;
}

.tscan-public--embedded {
    max-width: none;
    margin: 0;
}

.tscan-questionnaire--standalone {
    border-top: 1px solid var(--tscan-border);
    border-radius: 14px;
    box-shadow: none;
}

.tscan-questionnaire--standalone .tscan-form-page {
    padding-top: 24px;
}

.tscan-portal-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 22px 32px 28px;
    border-top: 1px solid var(--tscan-border);
}

.tscan-portal-questionnaire {
    margin-top: 8px;
}

.tscan-portal-questionnaire__back {
    max-width: 980px;
    margin: 0 auto 12px;
}

.tscan-portal-questionnaire__back a {
    color: var(--tscan-navy);
    font-weight: 700;
    text-decoration: none;
}

.tscan-portal-questionnaire__back a:hover,
.tscan-portal-questionnaire__back a:focus {
    color: var(--tscan-orange-dark);
    text-decoration: underline;
}

.tscan-navigation--saving {
    grid-template-columns: 1fr auto 1fr;
}

.tscan-navigation--saving .tscan-save-progress {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
}

.tscan-navigation--saving [data-tscan-submit] {
    justify-self: end;
}

.tscan-portal--login {
    max-width: 640px;
}

.tscan-portal-login {
    padding: 34px;
    border-radius: 16px;
    background: var(--tscan-navy);
    color: #fff;
    box-shadow: 0 16px 44px rgba(24, 50, 74, .18);
}

.tscan-portal-login h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 5vw, 40px);
}

.tscan-portal-login > p {
    margin: 12px 0 22px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
}

.tscan-portal-login__form {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 20px;
    border-radius: 11px;
    background: #fff;
    color: var(--tscan-text);
}

.tscan-portal-login__form label {
    color: var(--tscan-navy);
    font-weight: 800;
}

.tscan-portal-login__form input[type="password"] {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid #b9c5ce;
    border-radius: 8px;
    font: inherit;
}

.tscan-portal-login__form .tscan-button {
    margin-top: 4px;
}

.tscan-portal-login .tscan-portal-notice {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .tscan-portal-table,
    .tscan-portal-table tbody,
    .tscan-portal-table tr,
    .tscan-portal-table td {
        display: block;
        width: 100%;
    }

    .tscan-portal-table thead {
        position: absolute;
        overflow: hidden;
        width: 1px;
        height: 1px;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .tscan-portal-table tr {
        margin-bottom: 15px;
        padding: 14px;
        border: 1px solid var(--tscan-border);
        border-radius: 10px;
    }

    .tscan-portal-table td {
        display: grid;
        grid-template-columns: minmax(115px, 35%) 1fr;
        gap: 12px;
        padding: 9px 0;
        border-bottom: 1px solid var(--tscan-border);
    }

    .tscan-portal-table td::before {
        content: attr(data-label);
        color: var(--tscan-muted);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .tscan-portal-table td:last-child {
        border-bottom: 0;
    }

    .tscan-portal-table__actions {
        min-width: 0;
        text-align: left !important;
        white-space: normal;
    }
}

@media (max-width: 680px) {
    .tscan-portal {
        margin: 16px auto;
    }

    .tscan-portal__header,
    .tscan-portal-card__heading {
        flex-direction: column;
    }

    .tscan-portal__header,
    .tscan-portal-card,
    .tscan-portal__empty-state,
    .tscan-portal-login {
        padding: 20px;
    }

    .tscan-portal-card__heading .tscan-button,
    .tscan-portal__logout,
    .tscan-portal__logout .tscan-button {
        width: 100%;
    }

    .tscan-portal-form-actions {
        flex-direction: column-reverse;
        padding: 20px;
    }

    .tscan-portal-form-actions .tscan-button {
        width: 100%;
    }

    .tscan-portal-table td {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .tscan-portal-table__actions .tscan-button {
        width: 100%;
        margin: 5px 0 0;
    }

    .tscan-navigation--saving .tscan-save-progress {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Separate portal screens */
.tscan-portal--screen {
    max-width: 1080px;
}

.tscan-portal-screenbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 22px 26px;
    border: 1px solid var(--tscan-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(24, 50, 74, .07);
}

.tscan-portal-screenbar h2 {
    margin: 2px 0 0;
    color: var(--tscan-navy);
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
}

.tscan-portal-screenbar__back {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--tscan-navy);
    font-weight: 700;
    text-decoration: none;
}

.tscan-portal-screenbar__back:hover,
.tscan-portal-screenbar__back:focus {
    color: var(--tscan-orange-dark);
    text-decoration: underline;
}

.tscan-portal-screenbar .tscan-portal__logout .tscan-button--secondary {
    border-color: var(--tscan-border);
    color: var(--tscan-navy);
}

.tscan-portal-table__actions {
    min-width: 390px;
}

.tscan-portal-actions-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.tscan-portal-table__actions .tscan-button + .tscan-button {
    margin-left: 0;
}

.tscan-evaluation-status {
    display: block;
    margin-top: 3px;
}

.tscan-evaluation-status.is-complete {
    color: #26733d;
    font-weight: 700;
}

.tscan-evaluation-target {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #edc178;
    border-radius: 10px;
    background: #fff8e8;
    color: #6e5417;
}

.tscan-evaluation-target strong {
    flex: 0 0 auto;
    font-size: 22px;
}

.tscan-evaluation-target.is-complete {
    border-color: #9ed0ad;
    background: #edf8f0;
    color: #205f32;
}

.tscan-evaluation-form {
    margin: 0 -24px -24px;
    border-top: 1px solid var(--tscan-border);
}

.tscan-evaluation-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 24px;
}

.tscan-evaluation-field {
    display: grid;
    gap: 7px;
}

.tscan-evaluation-field.is-wide {
    grid-column: 1 / -1;
}

.tscan-evaluation-field label {
    color: var(--tscan-navy);
    font-weight: 800;
}

.tscan-evaluation-field input,
.tscan-evaluation-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #b9c5ce;
    border-radius: 8px;
    background: #fff;
    color: var(--tscan-text);
    font: inherit;
}

.tscan-evaluation-field textarea {
    min-height: 100px;
    resize: vertical;
}

.tscan-evaluation-field input:focus,
.tscan-evaluation-field textarea:focus {
    border-color: var(--tscan-orange);
    outline: 3px solid rgba(239, 125, 0, .15);
}

.tscan-evaluation-list {
    display: grid;
    gap: 18px;
}

.tscan-evaluation-item {
    overflow: hidden;
    border: 1px solid var(--tscan-border);
    border-radius: 12px;
    background: #fff;
}

.tscan-evaluation-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background: var(--tscan-soft);
}

.tscan-evaluation-item time {
    color: var(--tscan-orange-dark);
    font-size: 13px;
    font-weight: 800;
}

.tscan-evaluation-item h4 {
    margin: 3px 0 5px;
    color: var(--tscan-navy);
    font-size: 21px;
}

.tscan-evaluation-item__header p,
.tscan-evaluation-item__content p {
    margin: 0;
    line-height: 1.6;
}

.tscan-evaluation-item__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.tscan-evaluation-item__actions form {
    margin: 0;
}

.tscan-button--danger {
    border-color: #c7463e;
    background: #fff;
    color: #a52d26;
}

.tscan-button--danger:hover,
.tscan-button--danger:focus {
    border-color: #a52d26;
    background: #fff1f0;
    color: #7d211c;
}

.tscan-evaluation-item__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 20px;
}

.tscan-evaluation-item__content h5 {
    margin: 0 0 8px;
    color: var(--tscan-navy);
    font-size: 15px;
}

@media (max-width: 900px) {
    .tscan-portal-table__actions {
        min-width: 0;
    }

    .tscan-portal-actions-group {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .tscan-portal-screenbar,
    .tscan-evaluation-item__header,
    .tscan-evaluation-target {
        align-items: stretch;
        flex-direction: column;
    }

    .tscan-portal-screenbar .tscan-portal__logout,
    .tscan-portal-screenbar .tscan-portal__logout .tscan-button {
        width: 100%;
    }

    .tscan-evaluation-form__grid,
    .tscan-evaluation-item__content {
        grid-template-columns: 1fr;
    }

    .tscan-evaluation-item__actions {
        flex-wrap: wrap;
    }

    .tscan-evaluation-item__actions .tscan-button {
        width: 100%;
    }

    .tscan-evaluation-item__actions form {
        width: 100%;
    }

    .tscan-portal-actions-group,
    .tscan-portal-actions-group .tscan-button {
        width: 100%;
    }
}


.tscan-portal-heading-actions,
.tscan-questionnaire-yearbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.tscan-year-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.tscan-year-filter label {
    color: var(--tscan-navy);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.tscan-year-filter select {
    min-width: 96px;
    min-height: 40px;
    padding: 7px 34px 7px 10px;
    border: 1px solid var(--tscan-border);
    border-radius: 8px;
    background-color: #fff;
    color: var(--tscan-navy);
    font-weight: 700;
}

.tscan-scan-status {
    display: inline-flex;
    margin-top: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff1df;
    color: #9a5200;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.tscan-scan-status.is-complete {
    background: #e5f6eb;
    color: #18733b;
}

.tscan-scan-status.is-empty {
    background: #edf0f2;
    color: #22595f;
}

.tscan-questionnaire-yearbar {
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid var(--tscan-border);
    border-radius: 10px;
    background: #fff;
}

.tscan-questionnaire-yearbar > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tscan-questionnaire-yearbar strong {
    color: var(--tscan-navy);
    font-size: 18px;
}

@media (max-width: 680px) {
    .tscan-portal-heading-actions,
    .tscan-questionnaire-yearbar {
        align-items: stretch;
        flex-direction: column;
    }

    .tscan-year-filter {
        justify-content: space-between;
    }

    .tscan-portal-heading-actions .tscan-button,
    .tscan-year-filter select {
        width: 100%;
    }
}


/* Annual action-list selection */
.tscan-question-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tscan-question-selection span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(24, 50, 74, .12);
    border-radius: 999px;
    background: #f3f7f7;
    color: #415564;
    font-size: 13px;
    line-height: 1.2;
}

.tscan-question-selection span.is-total {
    border-color: rgba(239, 125, 0, .28);
    background: rgba(239, 125, 0, .10);
    color: #8a4900;
}

.tscan-question-selection strong {
    color: var(--tscan-navy);
    font-size: 15px;
}

.tscan-field-public__critical {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff0ee;
    color: #a3352e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1;
    text-transform: uppercase;
    vertical-align: middle;
}

@media (max-width: 640px) {
    .tscan-question-selection span {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        text-align: center;
    }

    .tscan-question-selection span.is-total {
        flex-basis: 100%;
    }
}

/* v0.8.0: use the full 1280px portal width for questionnaire screens. */
.tscan-portal--screen {
    max-width: 1280px;
}

.tscan-portal-questionnaire,
.tscan-portal-questionnaire .tscan-public,
.tscan-portal-questionnaire__back {
    width: 100%;
    max-width: 1280px;
}

/* v0.9.0: compact switch between annual attention list and the full scan. */
.tscan-questionnaire-yearbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

@media (max-width: 680px) {
    .tscan-questionnaire-yearbar__actions {
        width: 100%;
        margin-left: 0;
    }

    .tscan-questionnaire-yearbar__actions > .tscan-button,
    .tscan-questionnaire-yearbar__actions .tscan-year-filter {
        width: 100%;
    }
}

/* Topsport Flevoland house style - v0.10.0. */
.tscan-portal {
    --tscan-brand-teal: #003c4e;
    --tscan-brand-teal-light: #22595f;
    --tscan-brand-orange: #ea5d1c;
    --tscan-brand-yellow: #fbb908;
    --tscan-brand-deep-orange: #f08100;
    --tscan-brand-red: #e40f17;
    --tscan-brand-green: #86bc24;
    --tscan-brand-black: #1b1b1a;
    --tscan-radius: 15px;
}

.tscan-portal__header,
.tscan-portal-screenbar,
.tscan-portal-login {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--tscan-radius);
    background: var(--tscan-brand-teal);
    color: #fff;
}

.tscan-portal__header::before,
.tscan-portal-screenbar::before,
.tscan-portal-login::before {
    position: absolute;
    z-index: -1;
    top: -205px;
    right: -135px;
    width: 540px;
    height: 350px;
    border: 4px solid var(--tscan-brand-yellow);
    border-right-color: var(--tscan-brand-orange);
    border-bottom-color: var(--tscan-brand-red);
    border-radius: 50%;
    content: "";
    transform: rotate(-7deg);
}

.tscan-portal__header::after,
.tscan-portal-screenbar::after,
.tscan-portal-login::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--tscan-brand-yellow), var(--tscan-brand-deep-orange), var(--tscan-brand-red));
    content: "";
}

.tscan-portal__header .tscan-brand-logo,
.tscan-portal-login .tscan-brand-logo {
    width: 145px;
}

.tscan-portal-card,
.tscan-portal__empty-state,
.tscan-portal-screenbar,
.tscan-questionnaire-yearbar,
.tscan-evaluation-item,
.tscan-evaluation-target,
.tscan-portal-login__form {
    border-radius: var(--tscan-radius);
}

.tscan-portal-card,
.tscan-portal__empty-state {
    border-color: #cbdadd;
    box-shadow: 0 10px 28px rgba(0, 60, 78, .08);
}

.tscan-portal-card__heading h3,
.tscan-portal__empty-state h3,
.tscan-evaluation-field label,
.tscan-year-filter label,
.tscan-questionnaire-yearbar strong {
    color: var(--tscan-brand-teal);
}

.tscan-portal-eyebrow {
    color: var(--tscan-brand-yellow);
}

.tscan-portal-table th {
    background: var(--tscan-brand-teal);
    color: #fff;
}

.tscan-portal-table th:first-child {
    border-radius: 12px 0 0 12px;
}

.tscan-portal-table th:last-child {
    border-radius: 0 12px 12px 0;
}

.tscan-portal-table tbody tr:hover td {
    background: rgba(251, 185, 8, .07);
}

.tscan-portal-progress span {
    background: linear-gradient(90deg, var(--tscan-brand-yellow), var(--tscan-brand-deep-orange), var(--tscan-brand-red));
}

.tscan-portal-notice {
    border-radius: 12px;
}

.tscan-portal-notice.is-success,
.tscan-evaluation-target.is-complete {
    border-color: rgba(134, 188, 36, .5);
    background: rgba(134, 188, 36, .12);
    color: #315f0c;
}

.tscan-portal-notice.is-warning,
.tscan-evaluation-target {
    border-color: rgba(251, 185, 8, .55);
    background: rgba(251, 185, 8, .13);
    color: #684f00;
}

.tscan-portal-notice.is-error {
    border-color: rgba(228, 15, 23, .35);
    background: rgba(228, 15, 23, .07);
    color: #921017;
}

.tscan-portal-screenbar {
    padding: 24px 28px 30px;
    border: 0;
    box-shadow: 0 10px 28px rgba(0, 60, 78, .14);
}

.tscan-portal-screenbar__brand {
    margin-bottom: 10px;
}

.tscan-portal-screenbar__brand .tscan-brand-logo {
    width: 128px;
}

.tscan-portal-screenbar h2,
.tscan-portal-screenbar .tscan-portal-eyebrow {
    color: #fff;
}

.tscan-portal-screenbar .tscan-portal-eyebrow {
    color: var(--tscan-brand-yellow);
}

.tscan-portal-screenbar__back {
    color: #fff;
}

.tscan-portal-screenbar__back:hover,
.tscan-portal-screenbar__back:focus {
    color: var(--tscan-brand-yellow);
}

.tscan-portal-screenbar .tscan-portal__logout .tscan-button--secondary,
.tscan-portal__header .tscan-button--secondary {
    border-color: rgba(255, 255, 255, .72);
    background: transparent;
    color: #fff;
}

.tscan-portal-screenbar .tscan-portal__logout .tscan-button--secondary:hover,
.tscan-portal__header .tscan-button--secondary:hover {
    border-color: var(--tscan-brand-yellow);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.tscan-year-filter select,
.tscan-evaluation-field input,
.tscan-evaluation-field textarea,
.tscan-portal-login__form input[type="password"] {
    border-color: #a9c0c5;
    border-radius: 10px;
}

.tscan-year-filter select:focus,
.tscan-evaluation-field input:focus,
.tscan-evaluation-field textarea:focus,
.tscan-portal-login__form input[type="password"]:focus {
    border-color: var(--tscan-brand-orange);
    outline: 3px solid rgba(234, 93, 28, .16);
}

.tscan-scan-status.is-complete,
.tscan-evaluation-status.is-complete {
    background: rgba(134, 188, 36, .15);
    color: #356b0b;
}

.tscan-scan-status:not(.is-complete):not(.is-empty) {
    background: rgba(251, 185, 8, .15);
    color: #735700;
}

.tscan-question-selection span {
    border-color: rgba(0, 60, 78, .14);
    background: rgba(0, 60, 78, .055);
    color: var(--tscan-brand-teal-light);
}

.tscan-question-selection span.is-total {
    border-color: rgba(234, 93, 28, .3);
    background: rgba(251, 185, 8, .13);
    color: #7d4700;
}

.tscan-field-public__critical {
    background: rgba(228, 15, 23, .08);
    color: #a50e15;
}

.tscan-button--danger {
    border-color: var(--tscan-brand-red);
    color: #a50e15;
}

.tscan-button--danger:hover,
.tscan-button--danger:focus {
    border-color: #a50e15;
    background: rgba(228, 15, 23, .07);
    color: #7c0a10;
}

@media (max-width: 680px) {
    .tscan-portal__header::before,
    .tscan-portal-screenbar::before,
    .tscan-portal-login::before {
        right: -310px;
    }
}

/* Secured portal manual */
.tscan-portal__header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.tscan-portal__header-actions .tscan-portal__logout {
    margin: 0;
}

.tscan-portal--screen {
    max-width: 1280px;
}

.tscan-manual {
    display: grid;
    gap: 22px;
}

.tscan-manual .tscan-portal-card {
    margin-bottom: 0;
}

.tscan-manual__intro {
    position: relative;
    overflow: hidden;
    padding: 28px 30px;
    border-top: 5px solid var(--tscan-brand-yellow, #fbb908);
}

.tscan-manual__intro::after {
    position: absolute;
    right: -65px;
    bottom: -75px;
    width: 180px;
    height: 180px;
    border: 18px solid rgba(234, 93, 28, .09);
    border-radius: 50%;
    content: "";
}

.tscan-manual__intro h3,
.tscan-manual__section h3 {
    margin: 0;
    color: var(--tscan-navy);
}

.tscan-manual__intro h3 {
    font-size: clamp(26px, 4vw, 36px);
}

.tscan-manual__intro p {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 10px 0 0;
    color: var(--tscan-muted);
    font-size: 17px;
    line-height: 1.65;
}

.tscan-manual__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tscan-manual__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 13px 17px;
    border: 1px solid var(--tscan-border);
    border-radius: 14px;
    background: #fff;
    color: var(--tscan-navy);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 60, 78, .06);
}

.tscan-manual__nav a:hover,
.tscan-manual__nav a:focus {
    border-color: var(--tscan-orange);
    color: var(--tscan-navy);
    transform: translateY(-1px);
}

.tscan-manual__nav span,
.tscan-manual__number {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--tscan-navy);
    color: #fff;
    font-weight: 900;
}

.tscan-manual__section {
    scroll-margin-top: 24px;
    padding: 28px;
}

.tscan-manual__section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--tscan-border);
}

.tscan-manual__number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--tscan-brand-yellow, #fbb908), var(--tscan-brand-orange, #ea5d1c));
    font-size: 22px;
}

.tscan-manual__section-heading .tscan-portal-eyebrow {
    margin-bottom: 2px;
    color: var(--tscan-orange);
}

.tscan-manual__section h3 {
    font-size: clamp(23px, 3vw, 31px);
}

.tscan-manual__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tscan-manual__grid article {
    padding: 19px 20px;
    border: 1px solid var(--tscan-border);
    border-left: 5px solid var(--tscan-brand-yellow, #fbb908);
    border-radius: 13px;
    background: var(--tscan-soft);
}

.tscan-manual__grid article:nth-child(3n + 2) {
    border-left-color: var(--tscan-brand-orange, #ea5d1c);
}

.tscan-manual__grid article:nth-child(3n) {
    border-left-color: var(--tscan-brand-teal-light, #22595f);
}

.tscan-manual__grid h4 {
    margin: 0 0 8px;
    color: var(--tscan-navy);
    font-size: 18px;
    line-height: 1.3;
}

.tscan-manual__grid p {
    margin: 0;
    color: var(--tscan-text);
    line-height: 1.65;
}

.tscan-manual__grid p + p {
    margin-top: 9px;
}

.tscan-manual__tip {
    padding: 20px 22px;
    border: 1px solid rgba(251, 185, 8, .55);
    border-radius: 14px;
    background: rgba(251, 185, 8, .13);
    color: #594400;
}

.tscan-manual__tip strong {
    display: block;
    margin-bottom: 4px;
    color: var(--tscan-navy);
    font-size: 18px;
}

.tscan-manual__tip p {
    margin: 0;
    line-height: 1.65;
}

@media (max-width: 760px) {
    .tscan-portal__header-actions,
    .tscan-manual__nav,
    .tscan-manual__grid {
        grid-template-columns: 1fr;
    }

    .tscan-portal__header-actions {
        display: grid;
        width: 100%;
    }

    .tscan-portal__header-actions .tscan-button,
    .tscan-portal__header-actions .tscan-portal__logout,
    .tscan-portal__header-actions .tscan-portal__logout .tscan-button {
        width: 100%;
    }

    .tscan-manual__intro,
    .tscan-manual__section {
        padding: 21px;
    }

    .tscan-manual__section-heading {
        align-items: flex-start;
    }
}
