:root {
    --ink: #17221d;
    --muted: #607068;
    --forest: #12372a;
    --forest-light: #1f5b46;
    --mint: #dff3e9;
    --cream: #f7f5ef;
    --paper: #ffffff;
    --line: #dce4df;
    --danger: #a82424;
    --warning: #8a5a06;
    --success: #18704d;
    --shadow: 0 18px 55px rgba(18, 55, 42, 0.11);
    --radius: 22px;
    color-scheme: light;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.page-width {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    padding: 10px 16px;
    background: var(--paper);
    color: var(--forest);
    border-radius: 8px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.public-header {
    border-bottom: 1px solid rgba(18, 55, 42, 0.1);
    background: rgba(247, 245, 239, 0.94);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.header-inner {
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--forest);
    font-size: 1.08rem;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 12px 4px 12px 12px;
    background: var(--forest);
    color: var(--paper);
    font-size: 0.8rem;
    letter-spacing: -1px;
}

.brand small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.header-trust {
    color: var(--muted);
    font-size: 0.88rem;
}

.header-trust span {
    color: #46a77d;
}

.public-footer {
    padding-block: 32px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
}

.job-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(68px, 9vw, 120px);
    background:
        radial-gradient(circle at 13% 10%, rgba(141, 206, 176, 0.22), transparent 31%),
        linear-gradient(135deg, #f7f5ef 0%, #eef4ed 100%);
}

.job-hero::after {
    position: absolute;
    inset-block-end: -160px;
    inset-inline-start: -90px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(18, 55, 42, 0.08);
    border-radius: 50%;
    content: "";
}

.job-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
    gap: clamp(50px, 8vw, 110px);
    align-items: center;
}

.eyebrow,
.card-kicker {
    margin: 0 0 12px;
    color: var(--forest-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    margin-block-start: 0;
    line-height: 1.28;
}

.job-hero h1 {
    max-width: 780px;
    margin-block-end: 20px;
    color: var(--forest);
    font-size: clamp(2.25rem, 5vw, 4.75rem);
    letter-spacing: -0.04em;
}

.hero-summary {
    max-width: 680px;
    margin: 0;
    color: #44564d;
    font-size: clamp(1.05rem, 2vw, 1.27rem);
}

.job-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-block: 28px;
    color: var(--muted);
    font-size: 0.9rem;
}

.job-facts span span {
    margin-inline-end: 4px;
    color: var(--forest-light);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    align-items: center;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 13px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.primary-button {
    background: var(--forest);
    color: var(--paper);
    box-shadow: 0 10px 24px rgba(18, 55, 42, 0.18);
}

.primary-button:hover {
    background: #0b2b20;
    transform: translateY(-1px);
}

.secondary-button {
    border-color: #b9c8c0;
    background: var(--paper);
    color: var(--forest);
}

.secondary-button:hover {
    border-color: var(--forest);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(38, 125, 91, 0.34);
    outline-offset: 3px;
}

button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.privacy-note {
    color: var(--muted);
    font-size: 0.86rem;
}

.job-card {
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid rgba(18, 55, 42, 0.12);
    border-radius: 30px 8px 30px 30px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.job-card h2 {
    margin-block-end: 14px;
    color: var(--forest);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.job-card > p:not(.card-kicker) {
    color: var(--muted);
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-inline-start: 29px;
}

.check-list li::before {
    position: absolute;
    inset-inline-start: 0;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--mint);
    color: var(--forest);
    content: "✓";
    font-size: 0.75rem;
    font-weight: 900;
}

.job-details-section {
    padding-block: clamp(70px, 10vw, 120px);
    background: var(--paper);
}

.narrow-content {
    width: min(1000px, calc(100% - 40px));
}

.narrow-content > h2 {
    color: var(--forest);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-block-start: 32px;
}

.detail-grid article {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.detail-number {
    color: #8ca298;
    font-size: 0.76rem;
    font-weight: 800;
}

.detail-grid h3 {
    margin: 16px 0 8px;
    color: var(--forest);
}

.detail-grid p,
.bottom-cta p {
    margin: 0;
    color: var(--muted);
}

.bottom-cta {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    margin-block-start: 52px;
    padding: clamp(26px, 4vw, 42px);
    border-radius: 26px;
    background: var(--forest);
    color: var(--paper);
}

.bottom-cta h2 {
    margin-block-end: 5px;
}

.bottom-cta p {
    color: #c9d8d1;
}

.bottom-cta .primary-button {
    flex: 0 0 auto;
    background: var(--paper);
    color: var(--forest);
}

.apply-page {
    min-height: calc(100vh - 140px);
    padding-block: 26px 70px;
    background:
        radial-gradient(circle at 90% 4%, rgba(193, 225, 207, 0.35), transparent 24%),
        var(--cream);
}

.apply-width {
    width: min(820px, calc(100% - 32px));
}

.apply-back {
    margin-block-end: 22px;
}

.apply-back a {
    color: var(--forest-light);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.apply-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-block-end: 24px;
}

.apply-heading h1 {
    margin: 0;
    color: var(--forest);
    font-size: clamp(1.55rem, 4vw, 2.45rem);
}

.save-indicator {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 0.78rem;
}

.save-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #87958e;
}

.save-indicator[data-state="saving"] .save-dot {
    background: #cc8b1f;
    animation: pulse 1s ease-in-out infinite;
}

.save-indicator[data-state="saved"] .save-dot {
    background: var(--success);
}

.save-indicator[data-state="error"] .save-dot {
    background: var(--danger);
}

@keyframes pulse {
    50% { opacity: 0.35; }
}

.network-banner,
.form-alert {
    margin-block: 16px;
    padding: 13px 16px;
    border: 1px solid #e0ba73;
    border-radius: 12px;
    background: #fff5de;
    color: #674309;
    font-size: 0.9rem;
}

.form-alert[data-kind="error"] {
    border-color: #e2a9a9;
    background: #fff0f0;
    color: #812121;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(var(--progress-count, 4), 1fr);
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.progress-steps li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 5px;
    color: #809087;
    font-size: 0.74rem;
    text-align: center;
}

.progress-steps li::before {
    position: absolute;
    z-index: 0;
    inset-block-start: 15px;
    inset-inline-start: 50%;
    width: 100%;
    height: 2px;
    background: #d5ded9;
    content: "";
}

.progress-steps li:last-child::before {
    display: none;
}

.progress-steps span {
    z-index: 1;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 2px solid #c9d4ce;
    border-radius: 50%;
    background: var(--cream);
    font-weight: 800;
}

.progress-steps li[aria-current="step"],
.progress-steps li[data-complete="true"] {
    color: var(--forest);
}

.progress-steps li[aria-current="step"] span,
.progress-steps li[data-complete="true"] span {
    border-color: var(--forest);
    background: var(--forest);
    color: var(--paper);
}

.progress-steps li[data-complete="true"]::before {
    background: var(--forest);
}

.application-form,
.submission-success {
    border: 1px solid rgba(18, 55, 42, 0.1);
    border-radius: 26px;
    background: var(--paper);
    box-shadow: 0 14px 44px rgba(18, 55, 42, 0.08);
}

.application-form {
    padding: clamp(22px, 5vw, 46px);
}

.stage-heading {
    margin-block-end: 32px;
}

.stage-heading > span {
    color: var(--forest-light);
    font-size: 0.76rem;
    font-weight: 800;
}

.stage-heading h2 {
    margin: 6px 0 8px;
    color: var(--forest);
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.stage-heading p {
    margin: 0;
    color: var(--muted);
}

.question {
    margin-block-end: 27px;
}

.skill-group-heading {
    margin: 34px 0 17px;
    padding-block-end: 9px;
    border-bottom: 1px solid var(--line);
    color: var(--forest);
    font-size: 1rem;
}

.stage-heading + .skill-group-heading {
    margin-block-start: 0;
}

.question-label,
.choice-fieldset legend {
    display: block;
    margin-block-end: 9px;
    color: #263a31;
    font-size: 0.95rem;
    font-weight: 750;
}

.choice-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.required-mark {
    color: var(--danger);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-height: 51px;
    padding: 12px 14px;
    border: 1px solid #b9c8c0;
    border-radius: 11px;
    background: #fcfdfc;
    color: var(--ink);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    cursor: pointer;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #789489;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(168, 36, 36, 0.08);
}

.ltr-input {
    direction: ltr;
    text-align: right;
}

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

.choice-card {
    position: relative;
    display: flex;
    min-height: 50px;
    gap: 10px;
    align-items: center;
    padding: 11px 13px;
    border: 1px solid #c5d0ca;
    border-radius: 11px;
    cursor: pointer;
    background: #fcfdfc;
    font-size: 0.91rem;
}

.choice-card:has(input:checked) {
    border-color: var(--forest-light);
    background: #eff8f3;
    box-shadow: inset 0 0 0 1px var(--forest-light);
}

.choice-card input {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--forest);
}

.field-help,
.field-error {
    margin: 6px 0 0;
    font-size: 0.78rem;
}

.field-help {
    color: var(--muted);
}

.optional-mark {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.resume-upload {
    display: grid;
    gap: 14px;
    margin-block: 34px 8px;
    padding: 20px;
    border: 1px dashed #9bb0a6;
    border-radius: 16px;
    background: #f7faf8;
}

.resume-upload .field-help,
.resume-status {
    margin: 0;
}

.resume-picker {
    display: inline-flex;
    width: fit-content;
    min-height: 48px;
    gap: 9px;
    align-items: center;
    padding: 10px 18px;
    border: 1px solid var(--forest);
    border-radius: 11px;
    cursor: pointer;
    background: var(--paper);
    color: var(--forest);
}

.resume-picker:focus-within {
    outline: 3px solid rgba(38, 125, 91, 0.24);
    outline-offset: 3px;
}

.resume-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.resume-status {
    color: var(--muted);
    font-size: 0.82rem;
}

.resume-upload[data-state="uploading"] .resume-status {
    color: var(--warning);
}

.resume-upload[data-state="saved"] {
    border-style: solid;
    border-color: #8bb9a3;
    background: #f0f8f4;
}

.resume-upload[data-state="saved"] .resume-status {
    color: var(--success);
}

.resume-upload[data-state="error"] {
    border-color: #d99393;
    background: #fff7f7;
}

.resume-upload[data-state="error"] .resume-status {
    color: var(--danger);
}

.field-error {
    color: var(--danger);
}

.review-list {
    display: grid;
    gap: 0;
    margin: 0 0 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.review-list > div {
    display: grid;
    grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.28fr);
    gap: 15px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
}

.review-list > div:last-child {
    border-bottom: 0;
}

.review-list dt {
    color: var(--muted);
    font-size: 0.8rem;
}

.review-list dd {
    margin: 0;
    white-space: pre-wrap;
}

.consent-check {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    background: #f2f6f3;
    cursor: pointer;
    font-size: 0.88rem;
}

.consent-check input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin-block-start: 3px;
    accent-color: var(--forest);
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-block-start: 35px;
    padding-block-start: 24px;
    border-top: 1px solid var(--line);
}

.form-actions .secondary-button {
    justify-self: start;
}

.form-actions .primary-button {
    justify-self: end;
    touch-action: manipulation;
}

.step-counter {
    color: var(--muted);
    font-size: 0.78rem;
}

.submit-button {
    gap: 10px;
}

.button-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.submission-success {
    padding: clamp(32px, 7vw, 64px);
    text-align: center;
}

.submission-success h2 {
    margin-block-end: 10px;
    color: var(--forest);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.submission-success > p:not(.eyebrow) {
    max-width: 550px;
    margin-inline: auto;
    color: var(--muted);
}

.success-icon {
    display: grid;
    width: 65px;
    height: 65px;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--success);
    font-size: 2rem;
    font-weight: 900;
}

.reference-number {
    display: block;
    width: fit-content;
    margin: 22px auto;
    padding: 10px 18px;
    border: 1px dashed #88a398;
    border-radius: 10px;
    direction: ltr;
    color: var(--forest);
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}

.interview-notice {
    max-width: 620px;
    margin: 28px auto;
    padding: clamp(22px, 4vw, 30px);
    border: 1px solid #8fbea8;
    border-radius: 20px 6px 20px 20px;
    background:
        radial-gradient(circle at 95% 0, rgba(119, 190, 156, 0.22), transparent 38%),
        #f1f9f5;
    color: var(--ink);
    text-align: right;
}

.interview-kicker {
    margin: 0 0 5px !important;
    color: var(--success) !important;
    font-size: 0.78rem;
    font-weight: 800;
}

.interview-notice h3 {
    margin-block-end: 10px;
    color: var(--forest);
    font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.interview-notice > p:not(.interview-kicker) {
    margin: 0;
    color: #40564b;
}

.interview-details {
    display: grid;
    gap: 10px;
    margin-block: 20px;
    padding-block: 16px;
    border-block: 1px solid #cfe2d8;
}

.interview-details div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
}

.interview-details span {
    color: var(--muted);
    font-size: 0.8rem;
}

.interview-details a {
    width: fit-content;
    color: var(--forest-light);
    font-weight: 800;
    text-decoration: none;
}

.interview-map-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 11px;
    background: var(--forest);
    color: var(--paper);
    font-weight: 800;
    text-decoration: none;
}

.interview-map-link:hover {
    background: #0b2b20;
}

.noscript-alert {
    display: block;
}

.candidate-task .task-instructions,
.consent-copy {
    white-space: pre-wrap;
}

.task-alert {
    margin-block: 16px;
    padding: 14px 17px;
    border: 1px solid #e2a9a9;
    border-radius: 12px;
    background: #fff0f0;
    color: #812121;
}

.task-alert[data-kind="success"] {
    border-color: #8fbea8;
    background: #f1f9f5;
    color: var(--success);
}

.task-schedule {
    display: grid;
    gap: 10px;
    margin: 0 0 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7faf8;
}

.task-schedule div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
}

.task-schedule dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.task-schedule dd {
    margin: 0;
    font-weight: 700;
}

.recording-consent,
.device-check,
.practice-panel,
.interview-runner {
    padding: clamp(18px, 4vw, 30px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfcfb;
}

.recording-consent h3,
.device-check h3,
.practice-panel h3,
.interview-question h3 {
    color: var(--forest);
}

.recording-summary {
    margin-block: 18px;
    color: #40564b;
}

.recording-consent .primary-button {
    margin-block-start: 18px;
}

.visually-hidden {
    position: absolute !important;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.device-check-heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    margin-block-end: 14px;
}

.device-check-heading h3,
.device-check-heading p {
    margin-block: 0 7px;
}

.device-check-heading h3 {
    font-size: clamp(1.15rem, 4.8vw, 1.4rem);
}

.device-check-heading p:not(.card-kicker) {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.device-setup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.device-settings {
    display: grid;
    gap: 14px;
}

.device-select-field {
    display: grid;
    gap: 7px;
}

.device-select-field > span {
    color: var(--forest);
    font-size: 0.86rem;
    font-weight: 800;
}

.device-select-field select {
    width: 100%;
    min-height: 48px;
    background-color: #fff;
}

.device-help {
    min-height: 1.7em;
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

.device-help[data-state="denied"],
.device-help[data-state="error"] {
    padding: 9px 11px;
    border-inline-start: 3px solid var(--warning);
    border-radius: 6px;
    background: #fff5df;
    color: #634409;
}

.device-preview-slot {
    position: relative;
    display: grid;
    min-height: 0;
    height: clamp(170px, 29dvh, 280px);
    overflow: hidden;
    border: 1px solid #cfdbd4;
    border-radius: 16px;
    background: #edf3f0;
    place-items: center;
}

.device-preview-placeholder {
    display: grid;
    gap: 10px;
    color: #587064;
    text-align: center;
    place-items: center;
}

.device-preview-placeholder svg {
    width: 46px;
    opacity: 0.72;
}

.camera-preview-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-block: 18px;
    border-radius: 16px;
    background: #0d1712;
    box-shadow: 0 16px 38px rgba(6, 24, 16, 0.16);
    aspect-ratio: 16 / 9;
}

.device-preview-slot .camera-preview-shell {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    aspect-ratio: 16 / 9;
}

.device-preview-slot video {
    object-fit: contain;
}

.camera-preview-shell video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.camera-preview-shell figcaption {
    position: absolute;
    inset-inline: 12px;
    inset-block-end: 10px;
    display: flex;
    gap: 7px;
    align-items: center;
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(5, 20, 14, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.camera-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4be18c;
    box-shadow: 0 0 0 3px rgba(75, 225, 140, 0.16);
}

.device-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.device-control-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.device-test-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.device-test-button[aria-pressed="true"] {
    border-color: #b0d6c3;
    background: #e7f4ed;
    color: var(--forest);
}

.device-test-button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.device-settings-button,
.device-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 44px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    color: var(--forest);
    cursor: pointer;
    font-size: 0.78rem;
}

.device-settings-button svg { width: 21px; height: 21px; }
.device-settings-button:focus-visible,
.device-dialog-close:focus-visible { outline: 3px solid var(--forest-light); outline-offset: 3px; }

.device-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 0.76rem;
    color: var(--muted);
}

.device-permission::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-inline-end: 5px;
    border-radius: 50%;
    background: #84938b;
}
.device-permission[data-state="granted"] { color: var(--success); }
.device-permission[data-state="granted"]::before { background: var(--success); }
.device-permission[data-state="denied"] { color: var(--danger); }
.device-permission[data-state="denied"]::before { background: var(--danger); }
.device-next-button { width: 100%; min-height: 48px; margin-block-start: 2px; }

.device-settings-dialog {
    width: min(460px, calc(100% - 24px));
    max-height: calc(100dvh - 32px);
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    color: var(--ink);
    background: white;
}
.device-settings-dialog::backdrop { background: rgba(7, 21, 15, 0.5); }
.device-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.device-dialog-heading h3 { margin: 0; font-size: 1.1rem; }
.device-dialog-close { padding: 0; font-size: 1.7rem; min-height: 44px; }
.device-settings-dialog > p { margin: 10px 0 16px; color: var(--muted); font-size: 0.85rem; }
.device-settings-dialog .device-dialog-note { margin-block: 12px; font-size: 0.78rem; }
.device-dialog-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.device-dialog-actions button { min-width: 0; min-height: 48px; padding: 9px 12px; font-size: 0.86rem; }

body.interview-preflight .candidate-task-page > .page-width { max-width: 620px; }
body.interview-preflight .candidate-interview-task { padding: 0; border: 0; background: transparent; box-shadow: none; }
body.interview-preflight .candidate-interview-task > .stage-heading,
body.interview-preflight .candidate-interview-task > .task-schedule,
body.interview-preflight .apply-heading .eyebrow,
body.interview-preflight .apply-heading .save-indicator { display: none; }
body.interview-preflight .apply-heading { margin-block-end: 10px; }
body.interview-preflight .apply-heading h1 { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--muted); }
body.interview-preflight .candidate-task-page { padding-block: 16px 24px; }
body.interview-preflight .public-footer { padding-block: 16px; }

@media (max-height: 650px) {
    .device-preview-slot { height: 150px; }
    .device-check { padding: 16px; }
}

.practice-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.practice-heading h3,
.practice-heading p {
    margin-block: 0 5px;
}

.practice-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e7f4ed;
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 800;
}

.practice-preview-slot .camera-preview-shell {
    max-width: 520px;
}

.practice-question {
    margin-block: 18px;
    padding: clamp(18px, 4vw, 28px);
    border-radius: 16px;
    background: var(--forest);
    color: var(--paper);
}

.practice-question h4 {
    margin-block: 8px 16px;
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 1.65rem);
}

.practice-playback {
    display: block;
    width: 100%;
    max-width: 440px;
    max-height: 280px;
    margin: 16px auto;
    border-radius: 14px;
    background: #07150f;
    object-fit: contain;
}

.practice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.start-warning {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.recording-live {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 800;
}

.recording-live span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger);
    animation: pulse 1s ease-in-out infinite;
}

.interview-progress {
    display: grid;
    gap: 7px;
    width: min(100%, 620px);
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.interview-progress progress {
    width: 100%;
    height: 9px;
    accent-color: var(--forest);
}

.interview-question {
    display: grid;
    min-height: 270px;
    padding: clamp(20px, 5vw, 42px);
    border-radius: 18px;
    background: var(--forest);
    color: var(--paper);
}

.interview-topbar {
    display: flex;
    gap: clamp(16px, 4vw, 36px);
    align-items: center;
    justify-content: space-between;
    margin-block-end: 20px;
}

.interview-question-stage {
    min-height: 0;
}

.interview-question-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.runner-preview-slot {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.interview-question h3 {
    margin-block: 12px 24px;
    color: var(--paper);
    font-size: clamp(1.35rem, 4vw, 2.05rem);
}

.interview-question .card-kicker,
.question-timer {
    color: #c9d8d1;
}

.question-audio-button {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: #fff;
    color: var(--forest);
    cursor: pointer;
    place-items: center;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.question-audio-button:hover,
.question-audio-button:focus-visible {
    background: #e8f5ee;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.question-audio-button[data-state="loading"] {
    opacity: 0.72;
}

.question-audio-button[data-state="playing"] {
    background: #c9f2dc;
}

.question-audio-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.question-audio-button svg {
    width: 23px;
    fill: currentColor;
}

.question-audio-control {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.ai-voice-label {
    max-width: 130px;
    color: #c9d8d1;
    font-size: 0.7rem;
    line-height: 1.45;
}

.interview-question .secondary-button {
    margin-block-start: 15px;
}

.task-session-locked {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.task-session-locked h1 {
    color: var(--forest);
    font-size: clamp(1.7rem, 5vw, 2.5rem);
}

.task-lock-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: #e7f4ed;
    color: var(--success);
}

.task-unavailable {
    max-width: 720px;
    margin-inline: auto;
    padding: clamp(28px, 6vw, 54px);
    text-align: center;
}

.task-unavailable h1 {
    margin: 8px 0 12px;
    color: var(--forest);
    font-size: clamp(1.75rem, 5vw, 2.65rem);
}

.task-unavailable-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    place-items: center;
    border: 1px solid #d8e8df;
    border-radius: 24px;
    background: linear-gradient(145deg, #f3faf6, #e5f2eb);
    color: var(--forest);
    box-shadow: 0 12px 30px rgba(18, 55, 42, .09);
}

.task-unavailable-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.task-unavailable-message {
    max-width: 560px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.9;
}

.task-unavailable-help {
    margin: 28px auto 24px;
    padding: 20px 22px;
    border: 1px solid #dce8e1;
    border-radius: 18px;
    background: #f8fbf9;
    text-align: start;
}

.task-unavailable-help strong {
    color: var(--forest);
}

.task-unavailable-help ul {
    margin: 12px 0 0;
    padding-inline-start: 20px;
    color: #405249;
    line-height: 1.9;
}

.task-unavailable-home {
    display: inline-flex;
    width: auto;
    min-width: min(100%, 240px);
    justify-content: center;
    text-decoration: none;
}

.task-unavailable .small-note {
    margin: 18px 0 0;
}

.small-note {
    color: var(--muted);
    font-size: 0.88rem;
}

body.interview-active {
    overflow: hidden;
    background: #07150f;
}

body.interview-active .public-header,
body.interview-active .public-footer,
body.interview-active .candidate-task-page .apply-heading,
body.interview-active .candidate-task-page .stage-heading,
body.interview-active .candidate-task-page .task-schedule,
body.interview-active .candidate-task-page .task-alert {
    display: none;
}

body.interview-active main,
body.interview-active .candidate-task-page,
body.interview-active .candidate-task-page > .page-width,
body.interview-active .candidate-interview-task {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    padding: 0;
}

body.interview-active .candidate-interview-task {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #07150f;
    box-shadow: none;
}

body.interview-active .interview-runner {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0;
    width: 100%;
    height: 100dvh;
    padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background: radial-gradient(circle at top right, #163d2e, #07150f 55%);
}

body.interview-active .interview-topbar {
    position: relative;
    z-index: 3;
    margin-block-end: 14px;
    min-height: 100px;
    padding-inline-start: 156px;
}

body.interview-active .interview-question-stage,
body.interview-active .interview-question {
    height: 100%;
    min-height: 0;
}

body.interview-active .interview-question {
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 52, 38, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

body.interview-active .interview-question h3 {
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    align-self: center;
    overscroll-behavior: contain;
}

body.interview-active .camera-preview-shell[data-mode="runner"] {
    position: fixed;
    z-index: 10;
    inset-inline-start: max(18px, env(safe-area-inset-left));
    inset-block-start: max(18px, env(safe-area-inset-top));
    inset-block-end: auto;
    width: 132px;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.task-actions {
    position: static;
}

@media (max-width: 760px) {
    .page-width,
    .narrow-content {
        width: min(100% - 28px, 680px);
    }

    .device-check-heading {
        flex-direction: column;
    }

    .device-setup-grid {
        grid-template-columns: 1fr;
    }

    .device-preview-slot {
        grid-row: 1;
        min-height: 0;
    }

    .device-settings {
        grid-row: 2;
    }

    .device-actions > button {
        flex: 1 1 180px;
    }

    .header-inner {
        min-height: 64px;
    }

    .header-trust {
        font-size: 0;
    }

    .header-trust span {
        font-size: 0.9rem;
    }

    .job-hero {
        padding-block: 50px 60px;
    }

    .job-hero-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .job-hero-grid {
        gap: 38px;
    }

    .job-hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

    .bottom-cta,
    .apply-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .bottom-cta .primary-button {
        width: 100%;
    }

    .apply-page {
        padding-block-start: 18px;
    }

    .apply-width {
        width: min(100% - 20px, 680px);
    }

    .apply-heading {
        display: flex;
    }

    .save-indicator {
        align-self: flex-start;
    }

    .progress-steps strong {
        font-size: 0.65rem;
        line-height: 1.35;
    }

    .application-form {
        border-radius: 18px;
        padding: 22px 17px;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .review-list > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .form-actions {
        position: sticky;
        z-index: 20;
        inset-block-end: 0;
        grid-template-columns: 1fr auto 1fr;
        margin-inline: -17px;
        padding: 14px 17px calc(14px + env(safe-area-inset-bottom));
        border-radius: 0 0 17px 17px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -12px 24px rgba(18, 55, 42, 0.08);
        backdrop-filter: blur(12px);
    }

    .form-actions .primary-button,
    .form-actions .secondary-button {
        min-width: 104px;
        padding-inline: 16px;
    }

    .interview-details div {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .interview-map-link {
        width: 100%;
    }

    .task-schedule div {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .device-actions .primary-button,
    .device-actions .secondary-button,
    .practice-actions .primary-button,
    .practice-actions .secondary-button {
        width: 100%;
    }

    .practice-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .practice-badge {
        align-self: flex-start;
    }

    body.interview-active .interview-runner {
        padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    }

    body.interview-active .interview-topbar {
        gap: 8px;
        align-items: stretch;
        flex-direction: column;
        margin-block-end: 8px;
    }

    body.interview-active .recording-live {
        font-size: 0.72rem;
    }

    body.interview-active .interview-progress {
        gap: 4px;
        width: 100%;
        font-size: 0.72rem;
    }

    body.interview-active .interview-progress progress {
        height: 6px;
    }

    body.interview-active .interview-question {
        padding: clamp(16px, 5vw, 24px);
        text-align: center;
    }

    body.interview-active .interview-question h3 {
        margin-block: 8px 12px;
        font-size: clamp(1rem, 5vw, 1.25rem);
        line-height: 1.45;
    }

    body.interview-active .interview-question-controls {
        gap: 8px;
        align-items: center;
        flex-direction: column;
    }

    body.interview-active .interview-question .secondary-button {
        width: min(100%, 280px);
        margin-block-start: 4px;
        padding: 10px 14px;
    }

    body.interview-active .question-audio-control {
        justify-content: center;
    }

    body.interview-active .camera-preview-shell[data-mode="runner"] {
        inset-inline-start: max(12px, env(safe-area-inset-left));
        inset-block-start: max(12px, env(safe-area-inset-top));
        inset-block-end: auto;
        width: 84px;
        border-width: 1px;
        border-radius: 12px;
        aspect-ratio: 3 / 4;
    }

    body.interview-active .interview-topbar {
        min-height: 116px;
        padding-inline-start: 104px;
        justify-content: center;
    }

    body.interview-active .camera-preview-shell[data-mode="runner"] figcaption {
        inset-inline: 6px;
        inset-block-end: 6px;
        padding: 4px 6px;
        font-size: 0;
    }

    body.interview-active .camera-preview-shell[data-mode="runner"] figcaption::after {
        content: "أنت";
        font-size: 0.65rem;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 390px) {
    .progress-steps strong {
        display: none;
    }

    .hero-actions .primary-button {
        width: 100%;
    }
}

@media (max-height: 620px) and (orientation: landscape),
       (max-height: 560px) {
    body.interview-active .interview-topbar {
        align-items: center;
        flex-direction: row;
    }

    body.interview-active .interview-question {
        padding-block: 12px;
    }

    body.interview-active .interview-question h3 {
        margin-block: 4px 8px;
        font-size: clamp(1.05rem, 4vh, 1.35rem);
    }

    body.interview-active .camera-preview-shell[data-mode="runner"] {
        width: 82px;
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* One viewport across every interview step. Long consent, zoomed text or a
   tiny landscape viewport may scroll within the content, never clip controls. */
body.interview-shell {
    --forest: #087f8c; --forest-dark: #066674; --muted: #55717b;
    --paper: #ffffff; --line: #d7e7eb;
    background: #f2f8fa; color: #183642; overflow: hidden;
}
body.interview-shell .public-header,
body.interview-shell .public-footer,
body.interview-shell .apply-heading { display: none; }
body.interview-shell main#main-content { height: 100dvh; min-height: 0; width: 100%; margin: 0; }
body.interview-shell .candidate-task-page {
    height: 100%; width: 100%; margin: 0;
    padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
body.interview-shell .candidate-task-page > .page-width {
    width: 100%; max-width: 960px; height: 100%; margin: auto; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}
body.interview-shell .candidate-interview-task {
    display: flex; flex-direction: column; flex: 1; gap: 12px;
    min-height: 0; height: auto; width: 100%; margin: 0; padding: 0;
    border: 0; border-radius: 0; box-shadow: none; background: transparent;
}
.interview-shell-heading { display: flex; gap: 12px; align-items: center; min-height: 36px; flex: none; font-size: .82rem; color: #55717b; }
.interview-shell-heading strong { color: #086b79; font-size: 1.05rem; margin-inline-end: auto; }
.interview-help-button, .interview-leave-button { padding: 7px 12px; min-height: 40px; border: 1px solid #c9dfe5; border-radius: 12px; background: #fff; color: #285764; font: inherit; font-size: .78rem; cursor: pointer; white-space: nowrap; }
body.interview-shell .candidate-interview-task:not([data-setup-stage="consent"]) > .stage-heading,
body.interview-shell .candidate-interview-task:not([data-setup-stage="consent"]) > .task-schedule { display: none; }
body.interview-shell .stage-heading { margin: 0; padding: 8px 12px; max-height: 28dvh; overflow: auto; }
body.interview-shell .stage-heading h2 { font-size: 1.15rem; margin: 4px 0; }
body.interview-shell .stage-heading p { font-size: .85rem; line-height: 1.6; margin: 6px 0; }
.interview-instructions summary { font-size: .8rem; color: #087f8c; cursor: pointer; }
body.interview-shell .task-schedule { margin: 0; font-size: .78rem; padding: 6px 12px; }
body.interview-shell .recording-consent,
body.interview-shell .device-check,
body.interview-shell .practice-panel {
    min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: clamp(12px, 2.5vw, 24px); border: 1px solid #d7e7eb;
    background: #fff; border-radius: 20px; box-shadow: 0 8px 30px #16384606;
}
body.interview-shell .recording-consent h3 { margin: 0 0 8px; font-size: 1rem; }
body.interview-shell .consent-copy { margin: 0; line-height: 1.6; font-size: .88rem; }
body.interview-shell .consent-check { font-size: .82rem; line-height: 1.5; margin: 8px 0; }
body.interview-shell .recording-summary { margin-block: 10px; font-size: .82rem; }
body.interview-shell .task-alert { margin: 0; flex: none; max-height: 16dvh; overflow: auto; font-size: .82rem; }
body.interview-shell .device-check { display: flex; flex-direction: column; gap: 10px; }
body.interview-shell .device-check-heading { margin: 0; }
body.interview-shell .device-check-heading .card-kicker { display: none; }
body.interview-shell .device-check-heading h3 { font-size: 1.15rem; margin: 0 0 4px; }
body.interview-shell .device-check-heading p { font-size: .83rem; line-height: 1.6; margin: 0; }
body.interview-shell .device-setup-grid { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex: 1; min-height: 0; }
body.interview-shell .device-preview-slot { flex: 1; width: 100%; min-height: 115px; height: auto; max-height: 44dvh; }
.camera-preview-shell { margin: 0; max-width: 100%; }
body.interview-shell .device-preview-slot .camera-preview-shell,
body.interview-shell .device-preview-placeholder { margin: 0; width: 100%; height: 100%; min-height: 0; }
body.interview-shell .device-help { margin: 0; padding: 4px 2px; font-size: .78rem; line-height: 1.5; }
body.interview-shell .device-permissions { margin: 0; gap: 5px; }
body.interview-shell .device-permission { font-size: .7rem; padding: 5px 8px; }
body.interview-shell .primary-button { background: #087f8c; color: white; box-shadow: none; }
body.interview-shell .primary-button:hover:not(:disabled) { background: #066674; }
body.interview-shell button:disabled { opacity: .45; cursor: not-allowed; }
body.interview-shell .secondary-button { color: #1d5965; background: #f6fafb; border-color: #cbdfe5; box-shadow: none; }
body.interview-shell .device-test-button[aria-pressed="true"] { background: #e9f7f9; color: #086b79; border-color: #b1d7df; }
body.interview-shell .device-settings-dialog { color: #183642; padding: 20px; }
body.interview-shell .device-settings-dialog p { font-size: .85rem; line-height: 1.65; }
body.interview-shell .device-settings-dialog input[data-secure-link] { width: 100%; font-size: .8rem; margin-bottom: 12px; }
body.interview-shell .practice-panel { display: flex; flex-direction: column; gap: 8px; }
body.interview-shell .practice-heading { margin: 0; gap: 8px; }
body.interview-shell .practice-heading h3 { font-size: 1.12rem; margin: 0; }
body.interview-shell .practice-intro { font-size: .78rem; line-height: 1.5; margin: 0; }
.practice-media { position: relative; flex: 1; min-height: 90px; max-height: 32dvh; display: flex; align-items: stretch; justify-content: center; }
body.interview-shell .practice-preview-slot { height: 100%; width: 100%; min-height: 0; }
body.interview-shell .practice-preview-slot .camera-preview-shell,
body.interview-shell .practice-playback { width: 100%; height: 100%; max-height: 30dvh; min-height: 0; max-width: none; margin: 0; border-radius: 16px; object-fit: contain; background: #182e38; }
body.interview-shell .practice-preview-slot video { object-fit: contain; }
body.interview-shell .practice-question { padding: 10px 14px; margin: 0; background: #eef7f9; color: #183642; border: 1px solid #d7e7eb; border-radius: 14px; }
body.interview-shell .practice-question .card-kicker { display: none; }
body.interview-shell .practice-question h4 { margin: 0; font-size: 1rem; line-height: 1.55; color: #183642; }
body.interview-shell .practice-question .question-timer { margin: 4px 0 0; font-size: .75rem; color: #55717b; }
body.interview-shell .practice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; }
body.interview-shell .practice-actions [data-start-interview] { grid-column: 1 / -1; }
body.interview-shell .practice-actions button { padding: 9px 10px; min-height: 42px; font-size: .84rem; }
body.interview-shell .practice-heading .practice-badge { display: none; }
.practice-toolbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; flex: none; }
.practice-tool { display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; min-height: 52px; padding: 5px; border: 1px solid #cee0e5; border-radius: 12px; background: #f6fafb; color: #17616e; font: inherit; font-size: .72rem; cursor: pointer; touch-action: manipulation; }
.practice-tool svg { width: 22px; height: 22px; flex: none; }
.practice-tool svg:not([fill="none"]) { fill: currentColor; }
.practice-record { color: #b62937; background: #fff6f6; border-color: #ecc9ce; }
.practice-record[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #c33442; }
.practice-tool:focus-visible { outline: 3px solid #087f8c; outline-offset: 2px; }
.practice-feedback { min-height: 1.5em; margin: 0; color: #55717b; font-size: .76rem; line-height: 1.5; text-align: center; }
body.interview-shell [data-practice-confirmation] { margin: 0; padding: 8px 10px; flex: none; font-size: .78rem; }
.practice-device-missing { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; padding: 12px; text-align: center; background: #edf5f7; border-radius: 16px; }
.practice-device-missing p { font-size: .8rem; margin: 0; }
.practice-device-missing button { font-size: .78rem; padding: 8px 12px; }
body.interview-shell .start-warning { margin: 0; font-size: .7rem; line-height: 1.4; text-align: center; }
body.interview-shell .interview-runner { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; flex: 1; height: auto; min-height: 0; width: 100%; background: transparent; border: 0; padding: 0; }
body.interview-shell .interview-topbar { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; min-height: 84px; padding: 0; padding-inline-start: 98px; margin: 0; align-items: center; }
body.interview-shell .interview-progress { grid-column: 1 / -1; width: 100%; font-size: .76rem; }
body.interview-shell .interview-live-status { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
body.interview-shell .recording-live { font-size: .78rem; color: #843b41; line-height: 1.5; }
body.interview-shell [data-connection-status] { display: block; font-size: .68rem; color: #537580; line-height: 1.5; }
body.interview-shell [data-connection-status][data-state="interrupted"] { color: #985619; }
body.interview-shell .camera-preview-shell[data-mode="runner"] { position: absolute; top: 0; inset-inline-start: 0; width: 80px; height: 84px; aspect-ratio: auto; border: 2px solid #fff; border-radius: 14px; margin: 0; }
body.interview-shell .camera-preview-shell[data-mode="runner"] figcaption { inset-inline: 4px; bottom: 4px; padding: 3px 6px; font-size: 0; }
body.interview-shell .camera-preview-shell[data-mode="runner"] figcaption::after { content: "أنت"; font-size: .62rem; }
body.interview-shell .interview-question { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; min-height: 0; gap: 10px; padding: clamp(14px, 2vw, 26px); border: 1px solid #d3e6eb; border-radius: 22px; background: #fff; box-shadow: 0 8px 30px #16384606; color: #183642; text-align: center; }
.interviewer-character { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.interviewer-character img { width: clamp(76px, 16dvh, 150px); height: clamp(76px, 16dvh, 150px); object-fit: cover; border-radius: 50%; border: 3px solid #e8f4f7; }
.interviewer-character button { font: inherit; font-size: .65rem; color: #5e7d87; border: 0; background: transparent; cursor: pointer; min-height: 28px; }
.character-hidden .interviewer-character img { display: none; }
body.interview-shell .interview-question h3 { margin: 0; align-self: center; color: #183642; font-size: clamp(1.15rem, 2.9vw, 1.8rem); font-weight: 700; line-height: 1.65; max-height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
body.interview-shell .interview-question-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 640px; margin-inline: auto; }
body.interview-shell .interview-question-controls .question-timer { grid-column: 1 / -1; color: #52727e; font-size: .8rem; margin: 0; line-height: 1.5; }
body.interview-shell .interview-question-controls button[data-begin-answer],
body.interview-shell .interview-question-controls button[data-finish-answer] { width: 100%; min-height: 46px; padding: 10px 12px; margin: 0; font-size: .95rem; }
body.interview-shell .interview-question-controls:has([data-begin-answer][hidden]) [data-finish-answer] { grid-column: 1 / -1; }
body.interview-shell .question-audio-control { grid-column: 1 / -1; justify-content: center; }
body.interview-shell .question-audio-button { width: 40px; height: 40px; background: #e4f3f6; color: #087f8c; border-color: #bedee5; }
body.interview-shell .ai-voice-label { color: #55717b; }
body.interview-shell .submission-success { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 0; overflow: auto; padding: 20px; border-radius: 20px; background: white; text-align: center; }
body.interview-shell .submission-success h2 { font-size: 1.4rem; margin: 0; }
body.interview-shell .submission-success p { font-size: .9rem; margin: 0; line-height: 1.8; }
body.interview-shell [hidden] { display: none !important; }
@media (max-height: 650px) {
    body.interview-shell .candidate-interview-task { gap: 7px; }
    body.interview-shell .interview-topbar { min-height: 65px; padding-inline-start: 78px; gap: 3px 8px; }
    body.interview-shell .camera-preview-shell[data-mode="runner"] { width: 64px; height: 65px; }
    .interviewer-character img { width: 62px; height: 62px; }
    body.interview-shell .interview-question { padding: 10px 14px; gap: 4px; border-radius: 16px; }
    body.interview-shell .interview-question h3 { font-size: 1.04rem; }
    body.interview-shell .practice-intro { display: none; }
    body.interview-shell .practice-panel { gap: 5px; padding: 10px; }
    body.interview-shell .practice-badge { display: none; }
}
@media (orientation: landscape) and (max-height: 600px) {
    body.interview-shell .interview-question { grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
    .interviewer-character { grid-row: 1 / -1; justify-content: center; }
    body.interview-shell .interview-question-controls { grid-column: 2; }
}
