.ek-oral {
    display: grid;
    gap: 24px;
}

.ek-oral__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border: 1px solid rgba(48, 44, 38, 0.1);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at top left,
            rgba(187, 146, 85, 0.14),
            transparent 42%
        ),
        #fffdf9;
    box-shadow: 0 20px 50px rgba(45, 39, 31, 0.07);
}

.ek-oral__header h1 {
    margin: 8px 0 10px;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.4;
}

.ek-oral__header p {
    max-width: 680px;
    margin: 0;
    color: var(--ek-color-text-muted, #6f685e);
    line-height: 1.95;
}

.ek-oral__header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.ek-oral__badge,
.ek-oral__timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.ek-oral__badge {
    color: #694f29;
    background: #f3eadc;
}

.ek-oral__timer {
    min-width: 82px;
    color: #fff;
    background: #2f2a24;
    font-variant-numeric: tabular-nums;
}

.ek-oral__notice {
    padding: 14px 18px;
    border-radius: 16px;
    color: #664d03;
    background: #fff4ce;
    border: 1px solid #f2d98a;
    line-height: 1.8;
}

.ek-oral__notice.is-error {
    color: #842029;
    background: #f8d7da;
    border-color: #f1aeb5;
}

.ek-oral__notice.is-success {
    color: #0f5132;
    background: #d1e7dd;
    border-color: #a3cfbb;
}

.ek-oral__intro,
.ek-oral__session {
    padding: 26px;
    border: 1px solid rgba(48, 44, 38, 0.1);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(45, 39, 31, 0.06);
}

.ek-oral__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px 32px;
    align-items: center;
}

.ek-oral__intro-copy strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.ek-oral__intro-copy p {
    margin: 0;
    color: var(--ek-color-text-muted, #6f685e);
    line-height: 1.9;
}

.ek-oral__rules {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ek-oral__rules li {
    padding: 8px 12px;
    border-radius: 999px;
    color: #57452c;
    background: #f7f1e7;
    font-size: 0.82rem;
}

.ek-oral__primary,
.ek-oral__secondary,
.ek-oral__submit {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        opacity 160ms ease;
}

.ek-oral__primary,
.ek-oral__submit {
    color: #fff;
    background: #2f2a24;
    box-shadow: 0 10px 22px rgba(47, 42, 36, 0.18);
}

.ek-oral__secondary {
    color: #403930;
    background: #eee8df;
}

.ek-oral__primary:hover,
.ek-oral__secondary:hover,
.ek-oral__submit:hover {
    transform: translateY(-1px);
}

.ek-oral__primary:disabled,
.ek-oral__secondary:disabled,
.ek-oral__submit:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
    box-shadow: none;
}

.ek-oral__session {
    display: grid;
    gap: 22px;
}

.ek-oral__question {
    padding: 22px;
    border-radius: 20px;
    background: #f8f5ef;
    border: 1px solid rgba(83, 70, 53, 0.1);
}

.ek-oral__question-head,
.ek-oral__transcript-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.ek-oral__question-head span,
.ek-oral__transcript-head span {
    font-weight: 800;
}

.ek-oral__question-head strong,
.ek-oral__transcript-head small {
    color: var(--ek-color-text-muted, #6f685e);
    font-size: 0.82rem;
}

.ek-oral__scenario {
    margin-bottom: 16px;
    line-height: 2;
    color: #39342e;
}

.ek-oral__prompt {
    padding-top: 16px;
    border-top: 1px dashed rgba(83, 70, 53, 0.18);
    line-height: 2;
    font-weight: 700;
}

.ek-oral__recorder {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 20px;
    background: #fffdfa;
    border: 1px solid rgba(83, 70, 53, 0.11);
}

.ek-oral__record-state {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ek-oral__record-state strong,
.ek-oral__record-state small {
    display: block;
}

.ek-oral__record-state small {
    margin-top: 4px;
    color: var(--ek-color-text-muted, #6f685e);
}

.ek-oral__record-dot {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border-radius: 50%;
    background: #aba398;
    box-shadow: 0 0 0 7px rgba(171, 163, 152, 0.13);
}

.ek-oral__record-state.is-recording .ek-oral__record-dot {
    background: #b42318;
    box-shadow: 0 0 0 7px rgba(180, 35, 24, 0.14);
    animation: ekOralPulse 1.2s infinite;
}

.ek-oral__record-state.is-ready .ek-oral__record-dot {
    background: #198754;
    box-shadow: 0 0 0 7px rgba(25, 135, 84, 0.14);
}

.ek-oral__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ek-oral__audio {
    width: 100%;
}

.ek-oral__submit {
    justify-self: start;
}

.ek-oral__transcript {
    padding: 22px;
    border-radius: 20px;
    background: #f6fbf8;
    border: 1px solid #cce5d6;
}

.ek-oral__transcript-text {
    white-space: pre-wrap;
    line-height: 2;
    color: #24382d;
}

@keyframes ekOralPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.22);
    }
}

@media (max-width: 760px) {
    .ek-oral__header {
        flex-direction: column;
        padding: 22px;
    }

    .ek-oral__header-meta {
        width: 100%;
        justify-content: space-between;
    }

    .ek-oral__intro {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .ek-oral__primary,
    .ek-oral__submit {
        width: 100%;
    }

    .ek-oral__session {
        padding: 18px;
    }

    .ek-oral__controls > button {
        flex: 1 1 140px;
    }

    .ek-oral__submit {
        justify-self: stretch;
    }
}

/* Oral intro actions — 2026-07-17 */
.ek-oral__intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-top: 1rem;
}

@media (max-width: 560px) {
    .ek-oral__intro-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ek-oral__intro-actions > button {
        width: 100%;
    }
}


/* DEEPLAW_ORAL_MULTIQUESTION_CANCEL_RECOVERY_20260903 */
.ek-oral__question-nav {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(127, 127, 127, .22);
}

.ek-oral__question-progress {
    font-weight: 700;
    line-height: 1.8;
}

.ek-oral__question-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* DEEPLAW_ORAL_NAV_BUTTON_BASE_STYLE_20260903 */
.ek-oral__button {
    appearance: none;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid rgba(83, 70, 53, 0.18);
    border-radius: 12px;
    background: #fffdfa;
    color: #39342e;
    font: inherit;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(44, 36, 27, 0.05);
    transition:
        transform 120ms ease,
        box-shadow 120ms ease,
        border-color 120ms ease,
        background 120ms ease;
}

.ek-oral__button:not(:disabled):hover {
    transform: translateY(-1px);
    border-color: rgba(83, 70, 53, 0.32);
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(44, 36, 27, 0.08);
}

.ek-oral__button:focus-visible {
    outline: 3px solid rgba(21, 92, 76, 0.18);
    outline-offset: 2px;
}

.ek-oral__button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
    box-shadow: none;
}

.ek-oral__button--cancel {
    border-color: rgba(153, 54, 45, 0.28);
    background: rgba(153, 54, 45, 0.06);
    color: #8f352d;
}

.ek-oral__button--cancel:not(:disabled):hover {
    border-color: rgba(153, 54, 45, 0.42);
    background: rgba(153, 54, 45, 0.10);
}

.ek-oral__full-report {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.ek-oral__full-report-item {
    min-width: 0;
}

.ek-oral-cancel-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .52);
}

.ek-oral-cancel-modal__dialog {
    width: min(520px, 100%);
    max-height: min(80vh, 680px);
    overflow: auto;
    border-radius: 18px;
    padding: 22px;
    background: var(--ek-surface, #fff);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.ek-oral-cancel-modal__dialog h3 {
    margin-top: 0;
}

.ek-oral-cancel-modal__status {
    min-height: 1.5em;
}

.ek-oral-cancel-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

@media (max-width: 640px) {
    .ek-oral__question-actions,
    .ek-oral-cancel-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ek-oral__question-actions .ek-oral__button,
    .ek-oral-cancel-modal__actions .ek-oral__button {
        width: 100%;
    }
}


/* DEEPLAW_ORAL_EBOO_DRAFT_CONFIRM_FINAL_20260903 */
.ek-oral__transcript-editor {
    box-sizing: border-box;
    width: 100%;
    min-height: 150px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid rgba(83, 70, 53, 0.22);
    border-radius: 12px;
    background: inherit;
    color: inherit;
    font: inherit;
    line-height: 1.9;
    direction: rtl;
    text-align: right;
}

.ek-oral__transcript-editor:focus {
    outline: 3px solid rgba(21, 92, 76, 0.14);
    outline-offset: 2px;
}

.ek-oral__transcript-confirm {
    margin-top: 12px;
}
