:root {
    --ot-ink: #10233f;
    --ot-muted: #5f7088;
    --ot-line: #d7e1ec;
    --ot-surface: #ffffff;
    --ot-surface-soft: #f4f8fb;
    --ot-accent: #0c7c59;
    --ot-accent-dark: #07563e;
    --ot-warm: #ffb703;
    --ot-shadow: 0 18px 48px rgba(16, 35, 63, 0.12);
}

.online-test-app-shell,
.ot-standalone-shell,
.online-test-app-shell * {
    box-sizing: border-box;
}

.online-test-app-shell,
.ot-standalone-shell {
    color: var(--ot-ink);
    font-family: Georgia, "Times New Roman", serif;
}

.ot-standalone-shell {
    display: grid;
    gap: 24px;
}

.ot-app,
.ot-dashboard {
    display: grid;
    gap: 24px;
}

.ot-hero-copy {
    max-width: 760px;
}

.ot-launchpad {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(14px);
}

.ot-stat-strip,
.ot-flow-strip {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ot-stat-card,
.ot-flow-step {
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--ot-line);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    box-shadow: var(--ot-shadow);
}

.ot-stat-card strong {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1;
}

.ot-stat-card span,
.ot-flow-step p {
    color: var(--ot-muted);
}

.ot-flow-step {
    grid-template-columns: auto 1fr;
    align-items: start;
}

.ot-flow-step span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ot-warm), #ffd978);
    color: #302300;
    font-weight: 700;
}

.ot-flow-step strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ot-ink);
}

.ot-shortcard {
    display: grid;
    gap: 20px;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 183, 3, 0.14), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    border: 1px solid var(--ot-line);
    border-radius: 24px;
    box-shadow: var(--ot-shadow);
}

.ot-shortcard-accent {
    background:
        radial-gradient(circle at top right, rgba(255, 183, 3, 0.22), transparent 26%),
        radial-gradient(circle at bottom left, rgba(12, 124, 89, 0.18), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.ot-shortcard-head {
    display: grid;
    gap: 8px;
}

.ot-shortcard-head h3 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.1;
}

.ot-shortcard-head p {
    margin: 0;
    color: var(--ot-muted);
    line-height: 1.7;
}

.ot-shortcard-actions {
    display: flex;
    justify-content: flex-start;
}

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

.ot-field {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.ot-field span {
    color: var(--ot-ink);
}

.ot-field small {
    color: var(--ot-muted);
    font-size: 13px;
    font-weight: 400;
}

.ot-field-full {
    grid-column: 1 / -1;
}

.ot-inline-result {
    min-height: 24px;
    color: var(--ot-accent-dark);
    font-weight: 700;
}

.ot-inline-result p {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(12, 124, 89, 0.1);
}

.ot-menu-card .online-test-menu,
.ot-menu-card .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ot-menu-card .online-test-menu a,
.ot-menu-card .menu a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid var(--ot-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ot-ink);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ot-menu-card .online-test-menu a:hover,
.ot-menu-card .menu a:hover {
    transform: translateY(-1px);
    border-color: var(--ot-accent);
    color: var(--ot-accent-dark);
}

.ot-hero,
.ot-card,
.ot-runner-shell,
.ot-empty-state,
.ot-eval-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    border: 1px solid var(--ot-line);
    border-radius: 24px;
    box-shadow: var(--ot-shadow);
}

.ot-hero {
    display: grid;
    gap: 18px;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 183, 3, 0.22), transparent 26%),
        radial-gradient(circle at bottom left, rgba(12, 124, 89, 0.18), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.ot-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--ot-accent-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ot-hero h2,
.ot-dashboard-head h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.ot-hero p,
.ot-dashboard-head p,
.ot-card p,
.ot-empty-state p,
.ot-rich-text,
.ot-muted {
    margin: 0;
    color: var(--ot-muted);
    line-height: 1.65;
}

.ot-controls {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: end;
}

.ot-controls label,
.ot-eval-form label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.ot-select,
.ot-input,
.ot-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--ot-line);
    border-radius: 16px;
    background: var(--ot-surface);
    color: var(--ot-ink);
    font: inherit;
}

.ot-select {
    appearance: none;
    padding-right: 52px;
    border-color: rgba(12, 124, 89, 0.34);
    background:
        linear-gradient(180deg, #ffffff 0%, #f4f9fd 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4.5 6.75L9 11.25L13.5 6.75' stroke='%2307563e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 16px center;
    background-size: auto, 18px;
    box-shadow: 0 10px 24px rgba(16, 35, 63, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ot-select:hover {
    border-color: rgba(12, 124, 89, 0.55);
}

.ot-select:focus,
.ot-input:focus,
.ot-textarea:focus {
    outline: none;
    border-color: var(--ot-accent);
    box-shadow: 0 0 0 4px rgba(12, 124, 89, 0.12);
}

.ot-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.ot-button:hover {
    transform: translateY(-1px);
}

.ot-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.ot-primary {
    background: var(--ot-accent);
    color: #fff;
}

.ot-secondary {
    background: #e7f3ef;
    color: var(--ot-accent-dark);
}

.ot-ghost {
    background: transparent;
    border: 1px solid var(--ot-line);
    color: var(--ot-ink);
}

.ot-test-grid,
.ot-dashboard {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ot-card,
.ot-eval-card,
.ot-runner-shell {
    padding: 22px;
}

.ot-test-card {
    overflow: hidden;
    display: grid;
    gap: 16px;
    min-height: 100%;
    background:
        radial-gradient(circle at top right, rgba(255, 183, 3, 0.12), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.ot-card-band {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(12, 124, 89, 0.08);
    color: var(--ot-accent-dark);
    font-size: 13px;
    font-weight: 700;
}

.ot-card-actions {
    margin-top: 8px;
}

.ot-card-top,
.ot-runner-head,
.ot-stats,
.ot-recorder-meta,
.ot-recorder-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ot-card h3,
.ot-runner-head h3,
.ot-empty-state h3 {
    margin: 0 0 6px;
    font-size: 22px;
}

.ot-meta,
.ot-card-actions,
.ot-answer-list ul,
.ot-eval-form {
    display: grid;
    gap: 12px;
}

.ot-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    color: var(--ot-muted);
    font-size: 14px;
}

.ot-test-grid-catalog {
    grid-template-columns: 1fr;
    gap: 24px;
}

.ot-test-list {
    gap: 18px;
}

.ot-hero-catalog {
    align-items: end;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
}

.ot-hero-catalog::after {
    content: "All Tests";
    justify-self: end;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    font-size: clamp(42px, 8vw, 92px);
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: rgba(16, 35, 63, 0.08);
}

.ot-test-card .ot-card-top > div {
    display: grid;
    gap: 6px;
}

.ot-test-card .ot-card-top h3 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.08;
}

.ot-test-card .ot-card-top p {
    color: var(--ot-muted);
}

.ot-test-card .ot-meta span,
.ot-test-card .ot-card-band span {
    display: inline-flex;
    align-items: center;
}

.ot-test-card .ot-meta span:first-child::before,
.ot-test-card .ot-meta span:last-child::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(12, 124, 89, 0.32);
}

.ot-test-card .ot-card-actions .ot-button {
    width: 100%;
    justify-content: center;
    min-height: 50px;
}

.ot-test-card .ot-card-actions .ot-card-section-select {
    width: 100%;
    min-height: 50px;
}

.ot-test-card:not(.ot-test-card-list) .ot-card-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.ot-test-card:not(.ot-test-card-list) .ot-card-actions .ot-button {
    min-width: 140px;
}

.ot-test-card-list {
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr) minmax(180px, 0.55fr);
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
}

.ot-test-card-list .ot-card-top {
    align-items: center;
    margin: 0;
}

.ot-test-card-list .ot-card-top .ot-pill {
    display: none;
}

.ot-test-card-list .ot-meta {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 0 0 20px;
    border-left: 1px solid var(--ot-line);
}

.ot-test-card-list .ot-card-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    background: transparent;
    color: var(--ot-muted);
}

.ot-test-card-list .ot-card-band span:first-child {
    color: var(--ot-accent-dark);
    font-size: 14px;
    font-weight: 700;
}

.ot-test-card-list .ot-card-band span:last-child {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(12, 124, 89, 0.12);
    color: var(--ot-accent-dark);
}

.ot-test-card-list .ot-card-actions {
    margin-top: 0;
    align-self: center;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.ot-test-card-list .ot-card-actions .ot-button {
    min-width: 150px;
    width: auto;
}

.ot-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(12, 124, 89, 0.12);
    color: var(--ot-accent-dark);
    font-size: 12px;
    font-weight: 700;
}

.ot-panel {
    display: grid;
    gap: 22px;
    margin-top: 18px;
    padding: 22px;
    border-radius: 20px;
    background: var(--ot-surface-soft);
}

.ot-runner-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--ot-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.ot-layout-split {
    grid-template-columns: 1.15fr 1fr;
}

.ot-layout-right {
    grid-template-columns: 1fr 1.15fr;
}

.ot-question-pane,
.ot-prompt-pane {
    display: grid;
    gap: 18px;
}

.ot-question-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--ot-line);
    border-radius: 18px;
    background: #fff;
}

.ot-question-head {
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr;
}

.ot-question-card-split {
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.ot-question-side {
    display: grid;
    gap: 18px;
    padding: 24px;
    min-height: 100%;
}

.ot-question-side-media {
    align-content: start;
    background: linear-gradient(180deg, #fbfdff 0%, #f1f6fb 100%);
    border-right: 1px solid var(--ot-line);
}

.ot-question-side-content {
    align-content: start;
    background: #fff;
}

.ot-question-head-split {
    align-items: start;
}

.ot-question-main-media.ot-image {
    max-height: 420px;
    padding: 14px;
    border: 1px solid rgba(16, 35, 63, 0.08);
    background: #fff;
}

.ot-question-main-media.ot-video {
    max-height: 420px;
}

.ot-q-no {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8eef7;
    font-weight: 700;
}

.ot-question-title {
    font-weight: 700;
    color: var(--ot-ink);
}

.ot-option-list {
    display: grid;
    gap: 10px;
}

.ot-option-card {
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--ot-line);
    border-radius: 16px;
    background: #fff;
}

.ot-option-card:has(input:checked) {
    border-color: var(--ot-accent);
    box-shadow: inset 0 0 0 1px var(--ot-accent);
}

.ot-option-text {
    display: block;
    color: var(--ot-ink);
    line-height: 1.5;
}

.ot-option-body {
    display: grid;
    gap: 12px;
}

.ot-option-has-media {
    padding: 8px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
}

.ot-option-media.ot-image {
    max-height: 220px;
    padding: 10px;
    border: 1px solid rgba(16, 35, 63, 0.08);
    border-radius: 16px;
    background: #fff;
}

.ot-option-media.ot-video {
    max-height: 260px;
    background: #091321;
}

.ot-option-media.ot-audio {
    min-width: min(100%, 360px);
}

.ot-media {
    width: 100%;
    border-radius: 16px;
    background: #000;
}

.ot-image {
    object-fit: contain;
    max-height: 320px;
    background: #eef3f7;
}

.ot-video {
    max-height: 360px;
}

.ot-audio,
.ot-inline-audio {
    width: 100%;
}

.ot-dropdown-question {
    display: grid;
    gap: 12px;
}

.ot-inline-select {
    min-width: 220px;
    max-width: 100%;
}

.ot-dropdown-question-inline {
    line-height: 2.2;
    font-weight: 700;
    color: var(--ot-ink);
}

.ot-dropdown-question-inline .ot-inline-select {
    display: inline-block;
    width: min(100%, 360px);
    min-width: 240px;
    margin: 0 6px;
    vertical-align: middle;
    color: var(--ot-ink);
    font-weight: 600;
}

.ot-question-guide,
.ot-part-text,
.ot-audio-lock {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(16, 35, 63, 0.05);
}

.ot-progress {
    min-width: 220px;
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: var(--ot-muted);
}

.ot-progress-bar {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: #e2eaf3;
}

.ot-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ot-warm), var(--ot-accent));
}

.ot-runner-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.ot-runner-screen {
    display: grid;
    gap: 22px;
}

.ot-runner-screen-head {
    display: grid;
    gap: 18px;
    padding: 24px 28px;
    border: 1px solid var(--ot-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 183, 3, 0.16), transparent 22%),
        radial-gradient(circle at bottom left, rgba(12, 124, 89, 0.14), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    box-shadow: var(--ot-shadow);
}

.ot-runner-screen-copy h2,
.ot-runner-screen-copy p {
    margin: 0;
}

.ot-runner-screen-copy {
    display: grid;
    gap: 8px;
}

.ot-recorder,
.ot-answer-list {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--ot-line);
    border-radius: 16px;
    background: #fff;
}

.ot-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ot-score-bar {
    overflow: hidden;
    height: 12px;
    margin: 12px 0 4px;
    border-radius: 999px;
    background: #e3ecf5;
}

.ot-score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ot-accent), #3fc18f);
}

.ot-stats div {
    padding: 14px 0;
    border-top: 1px solid var(--ot-line);
}

.ot-stats strong {
    display: block;
    font-size: 24px;
}

.ot-answer-list ul {
    margin: 0;
    padding-left: 20px;
}

.ot-answer-mark {
    color: var(--ot-accent-dark);
    font-size: 13px;
}

.ot-empty-state {
    display: grid;
    gap: 10px;
    padding: 28px;
    text-align: center;
}

.ot-empty-state.compact {
    padding: 18px;
}

.ot-test-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(16, 35, 63, 0.15);
}

.ot-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 35, 63, 0.2);
}

.ot-launchpad {
    transition: all 0.3s ease;
}

.ot-launchpad:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(16, 35, 63, 0.1);
}

.ot-dashboard-head {
    grid-column: 1 / -1;
}

.ot-eval-form {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .ot-form-grid,
    .ot-flow-step,
    .ot-layout-split,
    .ot-layout-right,
    .ot-question-card-split {
        grid-template-columns: 1fr;
    }

    .ot-hero-catalog {
        grid-template-columns: 1fr;
    }

    .ot-hero-catalog::after {
        justify-self: start;
        font-size: clamp(34px, 11vw, 56px);
    }

    .ot-test-card-list {
        grid-template-columns: 1fr;
    }

    .ot-test-card-list .ot-meta {
        padding: 0;
        border-left: 0;
        border-top: 1px solid var(--ot-line);
        padding-top: 12px;
    }

    .ot-test-card:not(.ot-test-card-list) .ot-card-actions,
    .ot-test-card-list .ot-card-actions {
        grid-template-columns: 1fr;
    }

    .ot-question-side-media {
        border-right: 0;
        border-bottom: 1px solid var(--ot-line);
    }

    .ot-runner-head,
    .ot-card-top,
    .ot-card-band,
    .ot-runner-summary,
    .ot-runner-actions {
        flex-direction: column;
    }

    .ot-progress {
        min-width: 0;
        width: 100%;
    }
}
