.ct-app,
.ct-app * {
    box-sizing: border-box;
}

.ct-app {
    --ct-bg: #f5f8fb;
    --ct-card: #ffffff;
    --ct-ink: #102033;
    --ct-muted: #637083;
    --ct-line: #dbe4ef;
    --ct-blue: #174e86;
    --ct-blue-2: #0d3158;
    --ct-gold: #c7923a;
    --ct-danger: #a72d34;
    --ct-success: #1d7a57;
    color: var(--ct-ink);
    background: linear-gradient(180deg, #f8fbff 0%, var(--ct-bg) 100%);
    padding: 16px;
    border-radius: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.45;
    max-width: 1120px;
    margin: 0 auto;
}

.ct-card {
    background: var(--ct-card);
    border: 1px solid var(--ct-line);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(13, 49, 88, 0.08);
    padding: 18px;
    margin: 14px 0;
}

.ct-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    background: radial-gradient(circle at top right, rgba(199, 146, 58, 0.18), transparent 32%), #fff;
}

.ct-kicker {
    color: var(--ct-gold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.ct-app h1,
.ct-app h2 {
    margin: 0 0 8px;
    color: var(--ct-blue-2);
    line-height: 1.12;
}

.ct-app h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    max-width: 800px;
}

.ct-app h2 {
    font-size: 1.18rem;
}

.ct-subtitle {
    color: var(--ct-muted);
    font-size: 1.02rem;
    max-width: 830px;
    margin: 0;
}

.ct-muted,
.ct-note,
.ct-smallprint p {
    color: var(--ct-muted);
}

.ct-status-pill {
    background: #eaf2fb;
    border: 1px solid #cfe0f3;
    color: var(--ct-blue);
    border-radius: 999px;
    padding: 8px 13px;
    font-weight: 800;
    white-space: nowrap;
}

.ct-grid,
.ct-score-grid,
.ct-control-grid,
.ct-prep-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ct-score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ct-checklist {
    display: grid;
    gap: 10px;
}

.ct-checklist label,
.ct-app label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    color: var(--ct-blue-2);
}

.ct-checklist label {
    grid-template-columns: 22px 1fr;
    align-items: start;
    background: #f7fafd;
    border: 1px solid var(--ct-line);
    border-radius: 14px;
    padding: 10px;
    font-weight: 650;
}

.ct-app input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ct-blue);
    margin-top: 2px;
}

.ct-app input[type="range"] {
    width: 100%;
    accent-color: var(--ct-blue);
}

.ct-app select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--ct-line);
    border-radius: 14px;
    background: #fff;
    color: var(--ct-ink);
    padding: 10px 12px;
    font-size: 1rem;
}

.ct-warning {
    margin-top: 12px;
    color: #fff;
    background: var(--ct-danger);
    padding: 12px;
    border-radius: 14px;
    font-weight: 800;
}

.ct-audio-card {
    border-color: #cadcf0;
}

.ct-audio-head,
.ct-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ct-meter {
    min-width: 132px;
    background: #0d3158;
    color: #fff;
    border-radius: 18px;
    padding: 12px;
    text-align: center;
}

.ct-meter span {
    display: block;
    font-size: 0.82rem;
    opacity: 0.82;
}

.ct-meter strong {
    display: block;
    font-size: 1.55rem;
}

.ct-progress {
    height: 14px;
    background: #edf3f9;
    border-radius: 999px;
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid var(--ct-line);
}

.ct-progress div {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ct-blue), var(--ct-gold));
    transition: width 0.25s ease;
}

.ct-button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: var(--ct-blue);
    color: #fff;
    font-weight: 850;
    cursor: pointer;
    min-height: 46px;
    box-shadow: 0 10px 22px rgba(23, 78, 134, 0.18);
}

.ct-button:hover,
.ct-button:focus {
    filter: brightness(0.96);
}

.ct-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ct-secondary {
    background: var(--ct-gold);
}

.ct-danger {
    background: var(--ct-danger);
}

.ct-ghost {
    background: #eef4fa;
    color: var(--ct-blue-2);
    box-shadow: none;
}

.ct-guidance,
.ct-result {
    margin-top: 14px;
    background: #f7fafd;
    border: 1px solid var(--ct-line);
    border-radius: 16px;
    padding: 14px;
    font-weight: 750;
    color: var(--ct-blue-2);
}

.ct-full-label {
    margin-top: 12px;
}

.ct-table-wrap {
    overflow-x: auto;
}

.ct-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 680px;
}

.ct-table th,
.ct-table td {
    border-bottom: 1px solid var(--ct-line);
    padding: 10px;
    text-align: left;
    font-size: 0.92rem;
}

.ct-table th {
    color: var(--ct-blue-2);
    background: #f7fafd;
}

.ct-smallprint {
    font-size: 0.92rem;
}

@media (max-width: 760px) {
    .ct-app {
        padding: 10px;
        border-radius: 18px;
    }

    .ct-card {
        padding: 14px;
        border-radius: 18px;
    }

    .ct-hero,
    .ct-grid,
    .ct-score-grid,
    .ct-control-grid,
    .ct-prep-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .ct-audio-head,
    .ct-action-row {
        align-items: stretch;
    }

    .ct-button,
    .ct-meter {
        width: 100%;
    }
}
