/* Shared layout for sample test practice flow (device check → instructions → test) */
body.page-practice {
    background: #d6efec;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #0f2b3a;
}
.page-practice .practice-wrap {
    max-width: 720px;
    margin: 1.5rem auto 2.5rem;
    padding: 0 1rem;
}
.page-practice .practice-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 43, 58, 0.06), 0 4px 20px rgba(15, 43, 58, 0.08);
    padding: 1.5rem 1.35rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 147, 131, 0.12);
}
.page-practice .practice-card--hero {
    text-align: center;
    padding: 1.75rem 1.35rem;
}
.page-practice .practice-card h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    color: var(--e-global-color-primary, #009383);
    text-align: center;
}
.page-practice .practice-card h2 {
    margin: 0 0 1rem;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    font-weight: 600;
    color: #305b6b;
    text-align: center;
    line-height: 1.45;
}
.page-practice .practice-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    color: #002d5d;
    text-align: left;
}
.page-practice .practice-card h3:not(:first-child) {
    margin-top: 1.25rem;
}
.page-practice .practice-lead {
    text-align: center;
    color: #305b6b;
    margin: 0 0 1rem;
    line-height: 1.55;
}
.page-practice .practice-list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    line-height: 1.55;
}
.page-practice .practice-list li {
    margin-bottom: 0.5rem;
}
.page-practice .practice-list ul {
    margin: 0.35rem 0 0.5rem;
    padding-left: 1.1rem;
}
.page-practice .practice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1.25rem;
}
.page-practice .btn {
    appearance: none;
    border: 1px solid #0a7c6c;
    color: #0a7c6c;
    background: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}
.page-practice .btn:hover {
    background: #e4f4f1;
}
.page-practice .btn-primary {
    background: #0a7c6c;
    color: #fff;
    border-color: #0a7c6c;
}
.page-practice .btn-primary:hover {
    background: #076a5d;
    border-color: #076a5d;
}
.page-practice .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.page-practice .helper {
    font-size: 0.85rem;
    color: #305b6b;
    text-align: center;
    margin-top: 0.65rem;
}
.page-practice #test-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-practice #test-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0, 147, 131, 0.12);
}
.page-practice #test-list li:last-child {
    border-bottom: none;
}
.page-practice #test-list a {
    font-weight: 700;
    font-size: 1.05rem;
    color: #002d5d;
    text-decoration: none;
}
.page-practice #test-list a:hover {
    color: #009383;
}
.page-practice .test-status {
    font-size: 0.88rem;
    font-weight: 600;
}
.page-practice .test-status--done {
    color: #1a8f4a;
}
.page-practice .test-status--active {
    color: #b45309;
}
.page-practice .test-status--new {
    color: #5a7a88;
}
.page-practice .btn-restart {
    font-size: 0.82rem;
    padding: 6px 12px;
}

/* Shared NAATI-like test runner shell */
.naati-test-shell {
    max-width: 1200px;
    margin: 1rem auto 2rem;
    background: #ffffff;
    border: 1px solid rgba(0, 45, 93, 0.14);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 43, 58, 0.06), 0 8px 24px rgba(15, 43, 58, 0.09);
}

.naati-test-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #009383;
    border-bottom: 1px solid rgba(0, 45, 93, 0.12);
}

.naati-brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.naati-brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.naati-brand-title {
    font-size: 0.78rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.naati-brand-title strong {
    display: block;
    color: #ffffff;
}

.naati-user {
    font-size: 0.83rem;
    color: #ffffff;
    text-align: right;
}

.naati-status-strip {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.1rem;
    padding: 0.6rem 1rem;
    border-top: 3px solid #009383;
    border-bottom: 1px solid rgba(0, 45, 93, 0.1);
    font-size: 0.84rem;
}

.naati-test-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.naati-test-progress .bar {
    width: 84px;
    height: 8px;
    background: #e6eaef;
    border-radius: 999px;
    overflow: hidden;
}

.naati-test-progress .fill {
    height: 100%;
    background: #84b8b2;
    width: 0%;
}

.naati-test-main {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 500px;
}

.naati-left-panel,
.naati-right-panel {
    padding: 1.25rem 1.35rem;
}

.naati-left-panel {
    border-right: 1px solid rgba(0, 45, 93, 0.1);
}

.naati-segment-title {
    margin: 0 0 1.3rem;
    font-size: 1.35rem;
    color: #1c2f4a;
}

.naati-language-title {
    margin: 0 0 1.25rem;
    font-size: 1.55rem;
    color: #009383;
}

.naati-instructions p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.naati-inline-control {
    display: inline-block;
    min-width: 94px;
    text-align: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid #0a7c6c;
    background: #fff;
    color: #0a7c6c;
    font-weight: 700;
}

.naati-inline-control.primary {
    background: #0a7c6c;
    color: #fff;
}

.naati-camera-box {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 3;
    border: 2px solid rgba(0, 45, 93, 0.25);
    border-radius: 4px;
    overflow: hidden;
    background: #f5f6f8;
    margin: 0 auto 0.75rem;
}

.naati-camera-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.naati-runner-status {
    margin: 0.35rem 0 0.6rem;
    min-height: 22px;
    color: #35495f;
    font-size: 0.9rem;
}

.naati-runner-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.8rem;
}

.naati-rec-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(192, 57, 43, 0.45);
    background: #fbe9e7;
    color: #c0392b;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    opacity: 0.45;
}

.naati-rec-indicator.is-recording {
    opacity: 1;
    background: #c0392b;
    color: #ffffff;
    animation: naatiRecPulse 0.95s ease-in-out infinite;
}

@keyframes naatiRecPulse {
    0% { opacity: 1; }
    50% { opacity: 0.35; }
    100% { opacity: 1; }
}

.naati-bottom-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    border-top: 1px solid rgba(0, 45, 93, 0.1);
    padding: 0.9rem 1rem;
    background: #ffffff;
}

.naati-sample-note {
    border-top: 1px solid rgba(0, 45, 93, 0.1);
    padding: 0.85rem 1rem 1rem;
    background: #f9fbfc;
}

.naati-sample-note p {
    margin: 0 0 0.35rem;
    color: #355066;
    font-size: 0.84rem;
    line-height: 1.4;
}

.naati-meta {
    font-size: 0.85rem;
    color: #4f677b;
    flex: 1 1 320px;
    min-width: 220px;
}

.naati-bottom-nav .naati-runner-controls {
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

@media (max-width: 980px) {
    .naati-test-main {
        grid-template-columns: 1fr;
    }

    .naati-left-panel {
        border-right: none;
        border-bottom: 1px solid rgba(0, 45, 93, 0.1);
    }

    .naati-bottom-nav {
        flex-wrap: wrap;
    }

    .naati-bottom-nav .naati-runner-controls {
        width: 100%;
    }
}
