:root {
    --qa-ink: #14213d;
    --qa-muted: #64748b;
    --qa-line: #e3e9f1;
    --qa-paper: #ffffff;
    --qa-canvas: #f3f7fb;
    --qa-navy: #102a52;
    --qa-teal: #0d9488;
    --qa-shadow: 0 18px 55px rgba(23, 50, 77, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--qa-canvas);
    color: var(--qa-ink);
    font-family: "Prompt", Tahoma, Arial, sans-serif;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.qa-topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px clamp(20px, 5vw, 72px);
    background: #fff;
    border-bottom: 1px solid var(--qa-line);
}

.qa-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.qa-brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, #0f766e, #0b4f6c);
    box-shadow: 0 7px 18px rgba(15, 118, 110, .2);
    font-family: Arial, sans-serif;
    font-weight: 900;
}

.qa-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.qa-brand-copy strong {
    color: #0f2749;
    font-size: 17px;
}

.qa-brand-copy small {
    color: var(--qa-muted);
    font-size: 12px;
}

.qa-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qa-year-badge,
.qa-home-link {
    padding: 8px 14px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    color: #415a77;
    background: #f8fafc;
    font-size: 12px;
    text-decoration: none;
}

.qa-home-link:hover {
    color: #fff;
    border-color: var(--qa-navy);
    background: var(--qa-navy);
}

.qa-hero {
    min-height: 302px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
    padding: 54px clamp(20px, 7vw, 104px) 70px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 20%, rgba(42, 157, 143, .25), transparent 29%),
        linear-gradient(115deg, #0c2345, #123b65 66%, #0b5a66);
}

.qa-hero::after {
    content: "";
    width: 360px;
    height: 360px;
    position: absolute;
    right: -160px;
    bottom: -230px;
    border: 48px solid rgba(255, 255, 255, .04);
    border-radius: 50%;
}

.qa-hero-copy {
    position: relative;
    z-index: 1;
}

.qa-eyebrow {
    margin: 0 0 10px !important;
    color: #79d8cf !important;
    font-family: Arial, sans-serif;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: .18em;
}

.qa-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.035em;
}

.qa-hero-copy > p:last-child {
    max-width: 650px;
    margin: 16px 0 0;
    color: #d9e7f5;
    font-size: 15px;
    line-height: 1.8;
}

.qa-stats {
    min-width: 380px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    z-index: 1;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(8px);
}

.qa-stats div {
    padding: 6px 15px;
    border-right: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
}

.qa-stats div:last-child {
    border-right: 0;
}

.qa-stats strong {
    display: block;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 32px;
}

.qa-stats span {
    display: block;
    margin-top: 8px;
    color: #c9d9e8;
    font-size: 10px;
}

.qa-standard-tabs {
    width: min(1220px, calc(100% - 40px));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    position: relative;
    z-index: 2;
    margin: -36px auto 28px;
}

.qa-standard-tab {
    min-height: 112px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid #e0e6ef;
    border-radius: 18px;
    color: var(--qa-ink);
    background: #fff;
    box-shadow: 0 9px 26px rgba(20, 33, 61, .06);
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.qa-standard-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 32px rgba(20, 33, 61, .1);
}

.qa-standard-tab.is-active {
    border-color: var(--qa-accent);
    box-shadow:
        inset 0 4px var(--qa-accent),
        0 13px 30px rgba(20, 33, 61, .09);
}

.qa-tab-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--qa-accent);
    background: color-mix(in srgb, var(--qa-accent) 10%, white);
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 800;
}

.qa-tab-title small {
    display: block;
    color: var(--qa-muted);
    font-size: 10px;
}

.qa-tab-title strong {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    line-height: 1.45;
}

.qa-tab-count {
    padding: 6px 9px;
    border-radius: 8px;
    color: var(--qa-accent);
    background: color-mix(in srgb, var(--qa-accent) 9%, white);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.qa-workspace {
    width: min(1220px, calc(100% - 40px));
    min-height: 790px;
    display: grid;
    grid-template-columns: minmax(350px, .9fr) minmax(500px, 1.35fr);
    margin: 0 auto 42px;
    overflow: hidden;
    border: 1px solid #dfe6ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--qa-shadow);
}

.qa-index-panel {
    border-right: 1px solid var(--qa-line);
    background: #f9fbfd;
}

.qa-panel-heading {
    padding: 28px 28px 19px;
}

.qa-panel-heading p,
.qa-selected-title p,
.qa-evidence-heading p {
    margin: 0 0 5px;
    color: var(--qa-teal);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
}

.qa-panel-heading h2 {
    margin: 0;
    color: #172b4d;
    font-size: 17px;
    line-height: 1.55;
}

.qa-search {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 28px 14px;
    padding: 0 14px;
    border: 1px solid #dce4ee;
    border-radius: 12px;
    color: #8794a7;
    background: #fff;
}

.qa-search:focus-within {
    outline: 3px solid rgba(13, 148, 136, .12);
    border-color: var(--qa-teal);
}

.qa-search span {
    font-family: Arial, sans-serif;
    font-size: 23px;
    transform: rotate(-15deg);
}

.qa-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--qa-ink);
    background: transparent;
    font-size: 12px;
}

.qa-dimension-filter {
    display: flex;
    gap: 6px;
    padding: 0 28px 17px;
    border-bottom: 1px solid var(--qa-line);
}

.qa-dimension-filter button {
    padding: 7px 12px;
    border: 1px solid #dae2ec;
    border-radius: 999px;
    color: #5d6b80;
    background: #fff;
    font-size: 10px;
    cursor: pointer;
}

.qa-dimension-filter button:hover,
.qa-dimension-filter button.is-active {
    color: #fff;
    border-color: #173b64;
    background: #173b64;
}

.qa-indicator-lists {
    max-height: 650px;
    overflow-y: auto;
    padding: 10px;
    scrollbar-color: #c5d1df transparent;
}

.qa-indicator-list {
    display: none;
}

.qa-indicator-list.is-active {
    display: block;
}

.qa-indicator-button {
    width: 100%;
    display: grid;
    grid-template-columns: 48px 1fr 14px;
    align-items: start;
    gap: 11px;
    padding: 13px 12px;
    border: 0;
    border-bottom: 1px solid #e9eef4;
    border-radius: 10px;
    color: #2a3d57;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.qa-indicator-button:hover {
    background: #eff5fa;
}

.qa-indicator-button.is-active {
    background: #e7f5f3;
    box-shadow: inset 3px 0 var(--qa-teal);
}

.qa-code {
    min-height: 31px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.qa-code-1 {
    color: #0f766e;
    background: #dff6f1;
}

.qa-code-2 {
    color: #1d4ed8;
    background: #e6efff;
}

.qa-code-3 {
    color: #7c3aed;
    background: #efe8ff;
}

.qa-indicator-name {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.65;
}

.qa-chevron {
    color: #94a3b8;
    font-family: Arial, sans-serif;
    font-size: 23px;
    line-height: 1;
}

.qa-empty-list {
    padding: 30px 15px;
    color: var(--qa-muted);
    font-size: 12px;
    text-align: center;
}

.qa-evidence-panel {
    padding: 34px clamp(24px, 3vw, 42px);
    background: #fff;
}

.qa-selected-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.qa-dimension-tag {
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}

.qa-tag-1 {
    color: #0f766e;
    background: #e2f7f3;
}

.qa-tag-2 {
    color: #1d4ed8;
    background: #eaf1ff;
}

.qa-tag-3 {
    color: #6d28d9;
    background: #f0eaff;
}

.qa-ready-status {
    color: #16825d;
    font-size: 10px;
    font-weight: 600;
}

.qa-ready-status::before {
    content: "";
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 7px;
    border-radius: 50%;
    background: #23b47e;
    box-shadow: 0 0 0 4px rgba(35, 180, 126, .12);
}

.qa-ready-status.is-waiting {
    color: #b7791f;
}

.qa-ready-status.is-waiting::before {
    background: #e4a72d;
    box-shadow: 0 0 0 4px rgba(228, 167, 45, .12);
}

.qa-selected-title {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    margin: 24px 0 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--qa-line);
}

.qa-selected-title > span {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 1px solid #bddfd9;
    border-radius: 18px;
    color: #0f766e;
    background: #eefaf8;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.qa-selected-title h2 {
    margin: 0;
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: -.02em;
}

.qa-owner-card {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fbfcfe;
}

.qa-owner-avatar {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #2c5c83;
    font-size: 10px;
    font-weight: 700;
}

.qa-owner-card > span:last-child {
    display: flex;
    flex-direction: column;
}

.qa-owner-card small {
    color: var(--qa-muted);
    font-size: 9px;
}

.qa-owner-card strong {
    margin-top: 2px;
    font-size: 11px;
}

.qa-evidence-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 32px 0 14px;
}

.qa-evidence-heading p {
    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: .13em;
}

.qa-evidence-heading h3 {
    margin: 0;
    font-size: 18px;
}

.qa-evidence-heading > span {
    color: var(--qa-muted);
    font-size: 10px;
}

.qa-evidence-list {
    display: grid;
    gap: 10px;
}

.qa-evidence-card {
    min-height: 105px;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid #e1e8f0;
    border-radius: 14px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.qa-evidence-card:hover {
    transform: translateY(-1px);
    border-color: #9fcfc8;
    box-shadow: 0 8px 20px rgba(20, 61, 89, .06);
}

.qa-document-icon {
    width: 48px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    border-radius: 10px;
    color: #fff;
    background: #64748b;
    box-shadow: inset 0 -5px rgba(0, 0, 0, .16);
    font-family: Arial, sans-serif;
    font-weight: 800;
}

.qa-document-icon i {
    font-size: 21px;
}

.qa-document-icon small {
    color: inherit;
    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .3px;
}

.qa-document-pdf {
    background: #dc2626;
}

.qa-document-word {
    background: #2563eb;
}

.qa-document-excel {
    background: #16803c;
}

.qa-document-image {
    background: #7c3aed;
}

.qa-document-video {
    background: #db2777;
}

.qa-document-folder {
    background: #e58a00;
}

.qa-document-web {
    background: #0891b2;
}

.qa-document-onsite {
    background: #9a6700;
}

.qa-document-default {
    background: #64748b;
}

.qa-document-copy small {
    color: #8a98aa;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
}

.qa-document-copy h4 {
    margin: 3px 0 1px;
    color: #183252;
    font-size: 12px;
}

.qa-document-copy p {
    margin: 0;
    color: #718096;
    font-size: 9px;
    line-height: 1.55;
}

.qa-evidence-card a {
    padding: 10px 12px;
    border: 1px solid #badad5;
    border-radius: 9px;
    color: #0f766e;
    background: #f2fbf9;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.qa-evidence-card a:hover {
    color: #fff;
    border-color: #0f766e;
    background: #0f766e;
}

.qa-evidence-empty {
    padding: 38px 20px;
    border: 1px dashed #ccd7e4;
    border-radius: 14px;
    color: var(--qa-muted);
    background: #f8fafc;
    text-align: center;
}

.qa-evidence-empty span,
.qa-no-data-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    border-radius: 50%;
    color: #54718c;
    background: #e7eef5;
    font-size: 20px;
}

.qa-evidence-empty h3,
.qa-evidence-empty h4 {
    margin: 0 0 5px;
    color: #40566d;
}

.qa-evidence-empty p {
    margin: 0;
    font-size: 10px;
}

.qa-evidence-empty-large {
    margin-top: 80px;
}

.qa-no-data {
    width: min(800px, calc(100% - 40px));
    margin: 50px auto;
    padding: 50px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--qa-shadow);
    text-align: center;
}

.qa-no-data h2,
.qa-no-data p {
    margin: 5px 0;
}

.qa-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px clamp(20px, 7vw, 104px);
    color: #728197;
    background: #e8eef5;
    font-size: 10px;
}

.qa-loading {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-content: center;
    justify-items: center;
    background: rgba(9, 28, 51, .38);
    backdrop-filter: blur(2px);
    color: #fff;
}

.qa-loading[hidden] {
    display: none;
}

.qa-loading p {
    margin: 12px 0 0;
    font-size: 12px;
}

.qa-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: qa-spin .8s linear infinite;
}

@keyframes qa-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .qa-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .qa-stats {
        width: 100%;
        min-width: 0;
    }

    .qa-standard-tabs {
        grid-template-columns: 1fr;
        margin-top: -30px;
    }

    .qa-standard-tab {
        min-height: 85px;
    }

    .qa-workspace {
        grid-template-columns: 1fr;
    }

    .qa-index-panel {
        border-right: 0;
        border-bottom: 1px solid var(--qa-line);
    }

    .qa-indicator-lists {
        max-height: 430px;
    }
}

@media (max-width: 620px) {
    .qa-topbar {
        padding: 10px 16px;
    }

    .qa-brand-copy strong {
        font-size: 13px;
    }

    .qa-brand-copy small,
    .qa-year-badge {
        display: none;
    }

    .qa-home-link {
        padding: 7px 10px;
        font-size: 10px;
    }

    .qa-hero {
        padding: 40px 20px 62px;
    }

    .qa-stats {
        padding: 14px 4px;
    }

    .qa-stats strong {
        font-size: 25px;
    }

    .qa-standard-tabs,
    .qa-workspace {
        width: calc(100% - 24px);
    }

    .qa-standard-tab {
        grid-template-columns: auto 1fr;
    }

    .qa-tab-count {
        display: none;
    }

    .qa-workspace {
        border-radius: 17px;
    }

    .qa-panel-heading,
    .qa-evidence-panel {
        padding: 22px 18px;
    }

    .qa-search {
        margin-right: 18px;
        margin-left: 18px;
    }

    .qa-dimension-filter {
        padding-right: 18px;
        padding-left: 18px;
        overflow-x: auto;
    }

    .qa-selected-meta {
        align-items: flex-start;
    }

    .qa-selected-title {
        grid-template-columns: 58px 1fr;
        gap: 12px;
    }

    .qa-selected-title > span {
        width: 58px;
        height: 58px;
    }

    .qa-evidence-card {
        grid-template-columns: 42px 1fr;
    }

    .qa-evidence-card a {
        grid-column: 1 / -1;
        text-align: center;
    }

    .qa-footer {
        flex-direction: column;
        text-align: center;
    }
}
