@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
    --sga-green: #01311f;
    --sga-gold: #e6bd29;
    --sga-gold-soft: #fff5d8;
    --sga-text: #262525;
    --sga-muted: #63657e;
    --sga-border: #cccccc;
    --sga-line: #e1e2e8;
    --sga-page: #f4f8f7;
    --sga-disabled: #f4f4f4;
    --sga-white: #ffffff;
    --sga-keep: #23986b;
    --sga-done: #2cb72c;
    --sga-error: #b42318;
    --header-height: 80px;
    --exercise-max-width: 1540px;
    --progress-width: 300px;
    --content-gap: 20px;
    --page-gutter: 30px;
    --exercise-pad-top: 24px;
    --exercise-pad-right: 40px;
    --exercise-pad-bottom: 30px;
    --exercise-pad-left: 24px;
    --app-max-width: calc(var(--exercise-max-width) + var(--content-gap) + var(--progress-width));
    --design-width: 1920px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
    color: var(--sga-text);
    background: var(--sga-page);
    font-family: "Roboto", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 1101px) {
    html.sga-page {
        zoom: min(1, calc(100vw / var(--design-width)));
    }

    html.sga-page body {
        width: var(--design-width);
        min-width: var(--design-width);
        max-width: var(--design-width);
        margin-left: auto;
        margin-right: auto;
    }
}

button,
input,
textarea,
select,
a {
    font: inherit;
}

.sga-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    overflow: visible;
    height: var(--header-height);
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0 24px;
    background: var(--sga-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
}

.sga-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    line-height: 0;
}

.sga-logo {
    display: block;
    width: auto;
    height: 73px;
}

.sga-nav {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: 132px;
    gap: 32px;
}

.sga-nav a {
    display: inline-flex;
    align-items: center;
    color: var(--sga-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
}

.sga-nav a.is-active {
    color: var(--sga-green);
    background: var(--sga-gold);
    font-weight: 700;
}

.sga-user {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: auto;
    gap: 19px;
}

.sga-bell {
    position: relative;
    display: flex;
    width: 49px;
    height: 49px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sga-green);
}

.sga-bell svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
}

.sga-bell-count {
    position: absolute;
    top: 8px;
    right: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--sga-gold);
}

.sga-profile-menu {
    position: relative;
    display: flex;
    align-self: stretch;
    align-items: center;
}

.sga-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    color: var(--sga-text);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}

.sga-profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 30;
    box-sizing: border-box;
    width: 192px;
    padding: 6px 0;
    border: 1px solid #e1e2e8;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sga-profile-dropdown::before {
    content: "";
    position: absolute;
    top: -16px;
    right: 0;
    left: 0;
    height: 16px;
}

.sga-profile-menu:hover .sga-profile-dropdown,
.sga-profile-menu:focus-within .sga-profile-dropdown {
    display: block;
}

.sga-profile-menu-item {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    color: #262525;
    background: #ffffff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.sga-profile-menu-item:hover,
.sga-profile-menu-item:focus {
    background: var(--sga-disabled);
    outline: none;
}

.sga-avatar {
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sga-gold-soft);
    color: var(--sga-gold);
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    overflow: hidden;
}

.sga-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sga-profile-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.sga-shell {
    width: min(var(--app-max-width), calc(100% - (2 * var(--page-gutter))));
    margin: 0 auto;
    padding: 24px 0 40px;
}

.sga-title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.sga-subtitle {
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.4;
}

.sga-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--progress-width);
    gap: var(--content-gap);
    margin-top: var(--content-gap);
    align-items: start;
}

.sga-main,
.sga-progress {
    min-width: 0;
    background: var(--sga-white);
    border-radius: 10px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.16);
}

.sga-main {
    display: flex;
    overflow: visible;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: var(--exercise-max-width);
    flex-direction: column;
    padding: var(--exercise-pad-top) var(--exercise-pad-right) var(--exercise-pad-bottom) var(--exercise-pad-left);
}

.sga-progress {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    width: var(--progress-width);
    padding: 24px 22px 28px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.assessment-stepper-scroll {
    overflow: visible;
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sga-line);
}

.assessment-stepper {
    position: relative;
    width: 1476px;
    height: 165px;
    flex: 0 0 auto;
    margin: 0;
    overflow: visible;
}

.assessment-phase {
    position: absolute;
    top: 0;
    color: var(--sga-muted);
    font-size: 18px;
    font-weight: 500;
    line-height: 21px;
    white-space: nowrap;
}

.assessment-phase-pre {
    left: 0;
}

.assessment-phase-day1 {
    left: 180px;
}

.assessment-phase-day2 {
    left: 499px;
}

.assessment-day2-bracket {
    position: absolute;
    left: 360px;
    top: 28.5px;
    width: 322px;
    height: 8px;
    border: 1px solid var(--sga-line);
    border-bottom: 0;
    box-sizing: border-box;
}

.assessment-line-track,
.assessment-line-done,
.assessment-line-now {
    position: absolute;
    top: 57px;
    height: 3px;
    pointer-events: none;
    z-index: 0;
}

.assessment-line-track {
    background: var(--sga-line);
}

.assessment-line-done {
    border-radius: 1.5px;
    background: var(--sga-done);
}

.assessment-line-now {
    border-radius: 1.5px;
    background: var(--sga-gold);
}

.assessment-steps {
    position: relative;
    z-index: 1;
    width: 1476px;
    height: 165px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.assessment-step {
    position: absolute;
    top: 36px;
    z-index: 1;
    width: 45px;
    height: 45px;
    color: var(--sga-text);
    text-align: center;
}

.assessment-step-hit {
    display: block;
    width: 45px;
    height: 45px;
    color: inherit;
    text-decoration: none;
}

a.assessment-step-hit:focus-visible {
    outline: 2px solid var(--sga-gold);
    outline-offset: 4px;
    border-radius: 8px;
}

.assessment-step-label {
    position: absolute;
    top: 63px;
    left: 22.5px;
    width: max-content;
    max-width: none;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    white-space: nowrap;
    text-align: center;
}

.assessment-pick-5 {
    top: 107px;
}

.assessment-pick-tick {
    position: absolute;
    left: 20px;
    top: 82px;
    width: 5px;
    height: 21px;
    border-radius: 2.5px;
    background: var(--sga-line);
}

.assessment-step-icon {
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--sga-line);
    border-radius: 50%;
    background: var(--sga-white);
    box-sizing: border-box;
}

.assessment-step-icon img,
.assessment-step-icon svg {
    width: 22px;
    height: 22px;
}

.assessment-step-icon img.assessment-lock {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.assessment-step.is-current {
    color: var(--sga-gold);
}

.assessment-step.is-current .assessment-step-icon {
    border-color: var(--sga-gold);
    background: var(--sga-gold);
}

.assessment-step.is-completed {
    color: var(--sga-done);
}

.assessment-step.is-completed .assessment-step-icon {
    border-color: var(--sga-done);
    background: var(--sga-done);
}

.assessment-step.is-locked,
.assessment-step.is-upcoming {
    color: var(--sga-text);
}

.assessment-step.is-locked .assessment-step-label {
    color: var(--sga-muted);
}

.sga-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 8px 0 20px;
}

.sga-section-head h2 {
    margin: 0;
    color: var(--sga-green);
    font-size: 20px;
    font-weight: 700;
}

.sga-hint {
    color: var(--sga-muted);
    font-size: 16px;
}

.sga-form {
    display: grid;
    gap: 18px;
}

.sga-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sga-field label,
.sga-table-title {
    display: block;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
}

.sga-input {
    position: relative;
}

.sga-input textarea,
.sga-input input[type="text"] {
    width: 100%;
    border: 1px solid var(--sga-border);
    border-radius: 5px;
    outline: none;
    color: var(--sga-text);
    background: var(--sga-white);
}

.sga-input textarea {
    min-height: 90px;
    padding: 12px 14px 28px;
    resize: none;
}

.sga-input input[type="text"] {
    height: 45px;
    padding: 0 12px;
}

.sga-input textarea:focus,
.sga-input input:focus {
    border-color: var(--sga-gold);
    box-shadow: 0 0 0 3px rgba(230, 189, 41, 0.18);
}

.sga-input textarea[aria-invalid="true"],
.sga-input input[aria-invalid="true"] {
    border-color: var(--sga-error);
}

.sga-count {
    display: none;
}

.field-error {
    display: block;
    margin: 6px 0 0;
    color: var(--sga-error);
    font-size: 13px;
}

.field-error[hidden] {
    display: none;
}

.sga-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.sga-table {
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 6px 0;
}

.sga-col-seq { width: 9%; }
.sga-col-role { width: 13%; }
.sga-col-score { width: 7%; }
.sga-col-skill { width: 12%; }
.sga-col-possess { width: 12%; }
.sga-col-gap { width: 11.5%; }

.sga-table th {
    padding: 0 2px 8px;
    color: var(--sga-text);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
    vertical-align: bottom;
}

.sga-table td {
    vertical-align: top;
}

.sga-seq {
    padding-top: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
}

.sga-table .sga-input input[type="text"] {
    height: 40px;
    padding: 0 8px;
    font-size: 13px;
}

.sga-radios {
    display: flex;
    min-height: 40px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px 10px;
}

.sga-radios label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
}

.sga-radios input {
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid var(--sga-text);
    border-radius: 50%;
    background: var(--sga-white);
}

.sga-radios input:checked {
    border-color: var(--sga-gold);
    box-shadow: inset 0 0 0 4px var(--sga-gold);
}

.sga-input.is-disabled input {
    color: var(--sga-muted);
    background: var(--sga-disabled);
}

.sga-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 10px;
}

.sga-review {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.45;
}

.sga-review strong {
    font-weight: 700;
}

.sga-submit {
    display: inline-flex;
    width: 181px;
    height: 50px;
    min-width: 181px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid var(--sga-gold);
    border-radius: 8px;
    color: #1f1f1f;
    background: var(--sga-gold);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease-out, color 0.3s ease-out;
}

.sga-submit svg {
    width: 18px;
    height: 18px;
    fill: #1f1f1f;
    transition: fill 0.3s ease-out;
}

.sga-submit:hover,
.rewind-continue:hover,
.pp-continue:hover,
.st-continue:hover,
.mf-continue:hover,
.p10-continue:hover {
    background: var(--sga-white);
    color: var(--sga-gold);
    filter: none;
}

.sga-submit:hover svg,
.rewind-continue:hover svg,
.pp-continue:hover svg,
.st-continue:hover svg,
.mf-continue:hover svg,
.p10-continue:hover svg {
    fill: var(--sga-gold);
}

.sga-success {
    margin: 0;
    color: var(--sga-keep);
    font-size: 16px;
    font-weight: 700;
}

.sga-progress h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
}

.sga-ring {
    display: grid;
    place-items: center;
    width: 176px;
    height: 176px;
    margin: 12px auto 16px;
    border-radius: 50%;
    background: conic-gradient(var(--sga-gold) calc(var(--progress, 0) * 1%), #edecec 0);
}

.sga-ring-inner {
    display: grid;
    place-items: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--sga-white);
    text-align: center;
}

.sga-ring-value {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.sga-ring-label {
    margin-top: 4px;
    font-size: 16px;
}

.sga-keep {
    margin: 0;
    color: var(--sga-keep);
    font-size: 16px;
    text-align: center;
}

.sga-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    color: var(--sga-muted);
    font-size: 14px;
}

.sga-secure {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sga-secure svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

@media (max-width: 1100px) {
    .sga-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .sga-progress {
        position: static;
        width: var(--progress-width);
        max-width: var(--progress-width);
        justify-self: end;
    }

    .sga-main {
        min-height: 0;
        padding: 20px 16px 24px;
    }

    .assessment-stepper-scroll {
        overflow-x: auto;
    }
}

@media (max-width: 800px) {
    .sga-header {
        height: auto;
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .sga-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        gap: 18px;
        padding-bottom: 6px;
        overflow-x: auto;
    }

    .sga-nav a {
        height: auto;
        font-size: 15px;
        white-space: nowrap;
    }

    .sga-shell {
        width: calc(100% - 24px);
    }

    .sga-grid {
        grid-template-columns: 1fr;
    }

    .sga-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sga-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .assessment-stepper-scroll {
        overflow-x: auto;
        padding-bottom: 8px;
    }
}

body.assessment-locked .sga-form textarea,
body.assessment-locked .sga-form input:not([type="hidden"]),
body.assessment-locked .sga-choice,
body.assessment-locked .rewind-add-row,
body.assessment-locked .pp-drop,
body.assessment-locked .st-drop,
body.assessment-locked .p10-pill,
body.assessment-locked .drag-item,
body.assessment-locked .drop-zone,
body.assessment-locked .rs-form input[type="radio"] {
    pointer-events: none;
    cursor: default;
}

body.assessment-locked .rewind-add-row {
    display: none;
}

body.assessment-locked .pp-drop,
body.assessment-locked .st-drop {
    opacity: 0.9;
}
