:root {
    --cex-card: linear-gradient(145deg, rgba(22, 41, 74, 0.92), rgba(10, 22, 45, 0.95));
    --cex-line: rgba(113, 159, 231, 0.24);
    --cex-line-soft: rgba(148, 163, 184, 0.22);
    --cex-text-soft: #a9bddb;
    --cex-shadow: 0 14px 35px rgba(2, 8, 23, 0.3);
    --cex-shadow-hover: 0 22px 44px rgba(2, 8, 23, 0.44);
    --cex-focus: 0 0 0 2px rgba(14, 165, 233, 0.24);
}

.cex-hero {
    position: relative;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.22), transparent 55%),
        linear-gradient(130deg, rgba(30, 58, 138, 0.42), rgba(15, 23, 42, 0.88));
    border: 1px solid var(--cex-line);
    border-radius: 1.2rem;
    padding: 1.9rem 2.2rem;
    box-shadow: 0 24px 50px rgba(2, 8, 23, 0.44);
    animation: ph-fade-up 0.45s ease both;
}

.cex-hero-guide-btn { position: absolute; top: 1rem; right: 1rem; }
.cex-hero-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: rgba(29, 78, 216, 0.22);
    color: #bfd6ff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 700;
}

.cex-hero-title {
    margin-top: 0.9rem;
    font-size: clamp(2.1rem, 3.2vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #ecf3ff;
}

.cex-hero-subtitle {
    margin-top: 0.56rem;
    color: var(--cex-text-soft);
    font-size: clamp(1.02rem, 1.7vw, 1.2rem);
    line-height: 1.42;
}

.cex-hero-pills {
    margin-top: 1.05rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.cex-hero-pills span {
    border: 1px solid var(--cex-line-soft);
    border-radius: 999px;
    padding: 0.34rem 0.74rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #dbeafe;
    background: rgba(10, 18, 37, 0.58);
}

.cex-layout {
    display: grid;
    grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
}

.cex-sidebar,
.cex-main {
    display: grid;
    gap: 1rem;
}

.cex-card {
    background: var(--cex-card);
    border: 1px solid var(--cex-line);
    border-radius: 1rem;
    padding: 1.08rem;
    box-shadow: var(--cex-shadow);
    animation: ph-fade-up 0.42s ease both;
}

.cex-sidebar .cex-card:nth-child(1) { animation-delay: 0.06s; }
.cex-sidebar .cex-card:nth-child(2) { animation-delay: 0.11s; }
.cex-main .cex-card:nth-child(1) { animation-delay: 0.08s; }
.cex-main .cex-card:nth-child(2) { animation-delay: 0.12s; }
.cex-main .cex-card:nth-child(3) { animation-delay: 0.16s; }
.cex-main .cex-card:nth-child(4) { animation-delay: 0.2s; }
.cex-main .cex-card:nth-child(5) { animation-delay: 0.24s; }

.cex-card-setup { background: linear-gradient(150deg, rgba(23, 49, 86, 0.92), rgba(10, 24, 49, 0.95)); }
.cex-card-audio { background: linear-gradient(145deg, rgba(18, 45, 81, 0.92), rgba(8, 20, 42, 0.95)); }
.cex-card-status { background: linear-gradient(145deg, rgba(9, 35, 76, 0.95), rgba(7, 19, 43, 0.95)); }
.cex-card-round { background: linear-gradient(145deg, rgba(19, 44, 82, 0.93), rgba(8, 24, 47, 0.94)); }
.cex-card-answer { background: linear-gradient(145deg, rgba(20, 41, 75, 0.91), rgba(9, 21, 45, 0.95)); }
.cex-card-summary { background: linear-gradient(145deg, rgba(17, 38, 74, 0.95), rgba(6, 19, 40, 0.97)); }
.cex-card-leaderboard { background: linear-gradient(145deg, rgba(16, 44, 81, 0.95), rgba(7, 23, 47, 0.95)); }

.cex-card-title {
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 760;
    letter-spacing: -0.01em;
    color: #f0f6ff;
}

.cex-card > h3 {
    font-size: 1.28rem;
    line-height: 1.2;
    font-weight: 760;
    letter-spacing: -0.01em;
    color: #eff6ff;
}

.cex-muted {
    color: var(--cex-text-soft);
    font-size: 0.93rem;
    line-height: 1.45;
}

.cex-label {
    display: block;
    margin-bottom: 0.38rem;
    color: #dbeafe;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.cex-control-group { margin-top: 0.78rem; }
.cex-inline-help { margin-top: 0.42rem; font-size: 0.78rem; line-height: 1.35; }

.cex-setup-control {
    padding: 0.58rem 0.62rem 0.64rem;
    border-radius: 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(145deg, rgba(11, 24, 48, 0.56), rgba(7, 17, 33, 0.52));
}

.cex-setup-wpm {
    border-color: rgba(96, 165, 250, 0.28);
    background: linear-gradient(145deg, rgba(18, 45, 84, 0.42), rgba(7, 18, 37, 0.5));
}

.cex-setup-farnsworth {
    border-color: rgba(45, 212, 191, 0.25);
    background: linear-gradient(145deg, rgba(16, 54, 74, 0.36), rgba(7, 19, 33, 0.5));
}

.cex-setup-duration {
    border-color: rgba(167, 139, 250, 0.26);
    background: linear-gradient(145deg, rgba(36, 34, 82, 0.36), rgba(8, 18, 35, 0.5));
}

.cex-select,
.cex-input {
    width: 100%;
    border: 1px solid var(--cex-line-soft);
    border-radius: 0.72rem;
    background: rgba(10, 18, 35, 0.84);
    color: #e2e8f0;
    padding: 0.6rem 0.7rem;
    font-size: 0.93rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.cex-select:focus,
.cex-input:focus,
.cex-select:focus-visible,
.cex-input:focus-visible {
    border-color: rgba(56, 189, 248, 0.62);
    box-shadow: var(--cex-focus);
    background: rgba(10, 21, 40, 0.9);
}

.cex-range {
    width: 100%;
    accent-color: #38bdf8;
}

.cex-range::-webkit-slider-runnable-track {
    height: 0.38rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.45), rgba(30, 64, 175, 0.32));
}

.cex-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -5px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #c7ecff;
    border: 2px solid rgba(56, 189, 248, 0.85);
}

#wpmRange::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.62), rgba(37, 99, 235, 0.35));
}

#farnsworthRange::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.58), rgba(20, 184, 166, 0.33));
}

#durationRange::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.58), rgba(99, 102, 241, 0.34));
}

#wpmSetupValue,
#farnsworthSetupValue,
#durationSetupValue {
    margin-left: 0.4rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

#wpmSetupValue { color: #bfdbfe; }
#farnsworthSetupValue { color: #99f6e4; }
#durationSetupValue { color: #ddd6fe; }

.cex-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #dbeafe;
    font-size: 0.88rem;
}

.cex-schema-box {
    margin-top: 0.75rem;
    border: 1px solid rgba(245, 158, 11, 0.42);
    background: rgba(146, 64, 14, 0.18);
    color: #fde68a;
    border-radius: 0.72rem;
    padding: 0.68rem 0.74rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.cex-schema-box strong { color: #fef3c7; }

.cex-schema-actions {
    margin-top: 0.55rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.cex-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.72rem;
    border: 1px solid transparent;
    padding: 0.56rem 0.82rem;
    min-height: 2.35rem;
    font-size: 0.86rem;
    font-weight: 720;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.cex-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cex-btn:not(:disabled):active {
    transform: translateY(1px) scale(0.995);
}

.cex-btn-primary {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #f8fafc;
}

.cex-btn-live {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #ecfeff;
}

.cex-btn-secondary {
    background: rgba(15, 23, 42, 0.82);
    border-color: var(--cex-line-soft);
    color: #e2e8f0;
}

.cex-btn-warning {
    background: rgba(161, 98, 7, 0.35);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fde68a;
}

.cex-btn-danger {
    background: rgba(185, 28, 28, 0.28);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.cex-btn-ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}

.cex-status-card { padding-bottom: 0.96rem; }

.cex-status-row,
.cex-condition-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.cex-condition-row { margin-top: 0.62rem; }

.cex-status-chip,
.cex-badge {
    border: 1px solid rgba(96, 165, 250, 0.42);
    background: rgba(15, 23, 42, 0.54);
    color: #dbeafe;
    border-radius: 999px;
    padding: 0.26rem 0.66rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.cex-center-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.cex-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.52rem;
}

.cex-action-note {
    margin-top: 0.52rem;
    font-size: 0.78rem;
    color: #b8c9e7;
}

.cex-cw-panel {
    margin-top: 0.95rem;
    border: 1px solid rgba(30, 64, 175, 0.5);
    background: linear-gradient(140deg, rgba(3, 45, 87, 0.52), rgba(15, 23, 42, 0.72));
    border-radius: 0.82rem;
    padding: 0.82rem 0.88rem;
}

.cex-cw-visual {
    font-family: "Courier New", Courier, monospace;
    letter-spacing: 0.1em;
    color: #e0f2fe;
    font-size: clamp(1.16rem, 2.6vw, 1.42rem);
    min-height: 1.95rem;
}

.cex-cw-feedback {
    margin-top: 0.36rem;
    color: #bae6fd;
    font-size: 0.89rem;
}

.cex-choices {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.cex-choices.locked {
    opacity: 0.22;
    pointer-events: none;
}

.cex-choices.cex-playback-hidden {
    display: none;
}

.cex-choice {
    border: 1px solid var(--cex-line-soft);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.8);
    color: #dbeafe;
    min-height: 2.7rem;
    font-size: 0.93rem;
    font-weight: 700;
    transition: transform 0.15s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.cex-choice.good {
    background: rgba(5, 150, 105, 0.22);
    border-color: rgba(16, 185, 129, 0.56);
    color: #a7f3d0;
}

.cex-choice.bad {
    background: rgba(185, 28, 28, 0.25);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.cex-typed-row { margin-top: 0.75rem; display: flex; gap: 0.5rem; }
.hidden { display: none !important; }

.cex-shortcuts {
    margin-top: 0.72rem;
    color: #b9d4f8;
    font-size: 0.77rem;
    border-top: 1px solid var(--cex-line);
    padding-top: 0.65rem;
}

.cex-shortcuts kbd {
    display: inline-block;
    border: 1px solid rgba(148, 163, 184, 0.52);
    border-bottom-width: 2px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0.34rem;
    padding: 0.08rem 0.34rem;
    color: #e2e8f0;
    font-size: 0.72rem;
}

.cex-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.76rem;
}

.cex-summary-item {
    border: 1px solid var(--cex-line-soft);
    border-radius: 0.68rem;
    padding: 0.5rem 0.6rem;
    background: rgba(10, 18, 35, 0.66);
    font-size: 0.82rem;
    color: #dbeafe;
}

.cex-summary-item:nth-child(1) {
    border-color: rgba(96, 165, 250, 0.38);
    background: linear-gradient(150deg, rgba(19, 45, 82, 0.62), rgba(8, 20, 41, 0.7));
}

.cex-summary-item:nth-child(2) {
    border-color: rgba(45, 212, 191, 0.34);
    background: linear-gradient(150deg, rgba(15, 54, 74, 0.54), rgba(8, 22, 37, 0.7));
}

.cex-summary-item:nth-child(3) {
    border-color: rgba(250, 204, 21, 0.32);
    background: linear-gradient(150deg, rgba(64, 48, 19, 0.48), rgba(20, 22, 34, 0.7));
}

.cex-summary-item:nth-child(4) {
    border-color: rgba(167, 139, 250, 0.34);
    background: linear-gradient(150deg, rgba(40, 37, 78, 0.52), rgba(13, 19, 36, 0.72));
}

.cex-summary-item span {
    display: block;
    color: #b9c9e4;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cex-summary-item strong {
    display: block;
    margin-top: 0.2rem;
    color: #eef6ff;
    font-size: 1.06rem;
    letter-spacing: -0.01em;
}

.cex-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.68rem;
}

.cex-insight-item {
    border: 1px solid rgba(96, 165, 250, 0.26);
    border-radius: 0.68rem;
    padding: 0.5rem 0.6rem;
    background: linear-gradient(150deg, rgba(11, 27, 55, 0.88), rgba(6, 16, 33, 0.9));
    color: #dbeafe;
    font-size: 0.82rem;
}

.cex-insight-item:nth-child(1) {
    border-color: rgba(125, 211, 252, 0.34);
    background: linear-gradient(150deg, rgba(17, 47, 80, 0.56), rgba(8, 20, 39, 0.74));
}

.cex-insight-item:nth-child(2) {
    border-color: rgba(110, 231, 183, 0.34);
    background: linear-gradient(150deg, rgba(19, 57, 62, 0.54), rgba(10, 24, 33, 0.75));
}

.cex-insight-item:nth-child(3) {
    border-color: rgba(244, 114, 182, 0.28);
    background: linear-gradient(150deg, rgba(59, 30, 63, 0.44), rgba(12, 18, 36, 0.76));
}

.cex-insight-item:nth-child(4) {
    border-color: rgba(251, 191, 36, 0.3);
    background: linear-gradient(150deg, rgba(62, 46, 17, 0.44), rgba(18, 20, 33, 0.76));
}

.cex-insight-item:nth-child(5) {
    border-color: rgba(129, 140, 248, 0.32);
    background: linear-gradient(150deg, rgba(35, 37, 78, 0.5), rgba(10, 18, 39, 0.76));
}

.cex-insight-item:nth-child(6) {
    border-color: rgba(148, 163, 184, 0.32);
    background: linear-gradient(150deg, rgba(31, 43, 66, 0.5), rgba(9, 20, 37, 0.76));
}

.cex-insight-item span {
    display: block;
    color: #a7c0e8;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cex-insight-item strong {
    display: block;
    margin-top: 0.22rem;
    color: #eaf2ff;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.cex-log {
    margin-top: 0.66rem;
    border: 1px solid var(--cex-line-soft);
    border-radius: 0.84rem;
    background: rgba(4, 10, 24, 0.74);
    padding: 0.58rem;
    min-height: 170px;
    max-height: 260px;
    overflow: auto;
    font-size: 0.84rem;
}

.cex-log-entry {
    padding: 0.35rem 0.44rem;
    border-radius: 0.5rem;
    color: #dbeafe;
    animation: ph-fade-up 0.24s ease both;
}

.cex-log-entry + .cex-log-entry { margin-top: 0.22rem; }
.cex-log-entry.good { background: rgba(16, 185, 129, 0.16); color: #a7f3d0; }
.cex-log-entry.bad { background: rgba(239, 68, 68, 0.14); color: #fecaca; }
.cex-log-entry.warn { background: rgba(245, 158, 11, 0.16); color: #fde68a; }

.cex-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(2, 8, 23, 0.56);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cex-modal-card {
    width: min(440px, 94vw);
    border: 1px solid rgba(125, 175, 245, 0.32);
    border-radius: 0.9rem;
    background: linear-gradient(145deg, rgba(16, 37, 72, 0.96), rgba(7, 19, 42, 0.97));
    box-shadow: 0 20px 44px rgba(2, 8, 23, 0.5);
    padding: 1rem 1rem 0.9rem;
    animation: ph-fade-up 0.2s ease both;
}

.cex-modal-card.good {
    border-color: rgba(16, 185, 129, 0.46);
    background: linear-gradient(145deg, rgba(8, 59, 62, 0.96), rgba(7, 27, 35, 0.97));
}

.cex-modal-card.bad {
    border-color: rgba(248, 113, 113, 0.46);
    background: linear-gradient(145deg, rgba(70, 26, 49, 0.96), rgba(27, 12, 27, 0.97));
}

.cex-modal-title {
    font-size: 1.18rem;
    font-weight: 760;
    color: #ecf3ff;
}

.cex-modal-body {
    margin-top: 0.55rem;
    color: #dbeafe;
    line-height: 1.45;
    font-size: 0.95rem;
}

.cex-modal #answerModalCloseBtn,
.cex-modal #sessionModalCloseBtn {
    margin-top: 0.8rem;
    width: 100%;
}

.cex-leaderboard-head {
    margin-top: 0.55rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.cex-leaderboard-tabs {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.cex-period-tab {
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: rgba(9, 17, 34, 0.74);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 0.3rem 0.66rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.cex-period-tab.is-active {
    border-color: rgba(56, 189, 248, 0.58);
    background: rgba(30, 64, 175, 0.36);
    color: #dbeafe;
}

.cex-leaderboard-list {
    margin-top: 0.52rem;
    display: grid;
    gap: 0.34rem;
    max-height: 360px;
    overflow: auto;
    padding-right: 0.1rem;
}

.cex-leaderboard-row {
    border: 1px solid var(--cex-line-soft);
    border-radius: 0.6rem;
    padding: 0.46rem 0.56rem;
    background: rgba(10, 18, 35, 0.66);
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

@media (hover: hover) and (pointer: fine) {
    .cex-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--cex-shadow-hover);
        border-color: rgba(125, 175, 245, 0.35);
    }

    .cex-btn:not(:disabled):hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 16px rgba(2, 8, 23, 0.34);
    }

    .cex-choice:not(:disabled):hover {
        transform: translateY(-1px);
        border-color: rgba(125, 175, 245, 0.5);
        box-shadow: 0 8px 14px rgba(2, 8, 23, 0.35);
    }

    .cex-leaderboard-row:hover {
        border-color: rgba(125, 175, 245, 0.42);
        transform: translateX(1px);
    }
}

.cex-btn:focus-visible,
.cex-choice:focus-visible,
.cex-select:focus-visible,
.cex-input:focus-visible,
.cex-range:focus-visible {
    outline: none;
    box-shadow: var(--cex-focus);
}

@media (max-width: 1180px) {
    .cex-layout { grid-template-columns: 1fr; }
    .cex-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
    .cex-sidebar { grid-template-columns: 1fr; }
    .cex-card { padding: 1rem; }
    .cex-choices { grid-template-columns: 1fr; }
    .cex-center-head { flex-direction: column; align-items: flex-start; }
    .cex-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cex-actions .cex-btn { width: 100%; }
    .cex-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cex-insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cex-log { min-height: 160px; }
}

@media (max-width: 620px) {
    .cex-hero {
        padding: 1.18rem;
        border-radius: 1rem;
    }

    .cex-hero-guide-btn {
        position: static;
        margin-bottom: 0.7rem;
    }

    .cex-hero-title { font-size: clamp(1.8rem, 9vw, 2.3rem); }
    .cex-hero-subtitle { font-size: 0.98rem; }

    .cex-main,
    .cex-sidebar,
    .cex-layout {
        gap: 0.85rem;
    }

    .cex-actions { grid-template-columns: 1fr; }

    .cex-summary-grid,
    .cex-insights-grid {
        grid-template-columns: 1fr;
    }

    .cex-typed-row {
        flex-direction: column;
    }

    .cex-btn {
        min-height: 2.5rem;
    }

    .cex-leaderboard-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .cex-leaderboard-head .cex-btn {
        width: 100%;
    }

    .cex-leaderboard-tabs {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cex-hero,
    .cex-card,
    .cex-log-entry,
    .cex-btn,
    .cex-choice,
    .cex-leaderboard-row {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

@keyframes ph-fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cex-replay-row {
    margin-top: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cex-logger-grid {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: 1.2fr 0.58fr 0.62fr 0.62fr 0.9fr;
    gap: 0.6rem;
    align-items: end;
}

.cex-field {
    min-width: 0;
}

.cex-submit-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cex-label-hidden {
    visibility: hidden;
}

.cex-options-panel {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.52rem;
}

.cex-option-btn {
    border: 1px solid var(--cex-line-soft);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.78);
    color: #dbeafe;
    padding: 0.55rem 0.6rem;
    font-size: 0.95rem;
    font-weight: 720;
    letter-spacing: 0.02em;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.16s ease;
}

.cex-option-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.cex-option-btn.good {
    border-color: rgba(16, 185, 129, 0.56);
    background: rgba(5, 150, 105, 0.2);
    color: #a7f3d0;
}

.cex-option-btn.bad {
    border-color: rgba(248, 113, 113, 0.58);
    background: rgba(185, 28, 28, 0.24);
    color: #fecaca;
}

@media (max-width: 980px) {
    .cex-logger-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cex-options-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .cex-logger-grid {
        grid-template-columns: 1fr;
    }

    .cex-replay-row .cex-btn {
        width: 100%;
    }
}
