/* Shared inner-page layouts: Learn, Practice, Interview, Projects, Tools, Portfolio */

.page-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.page-hero-stats {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.page-hero-stats div {
    text-align: right;
}

.page-hero-stats strong {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 1.25rem;
    color: #fff;
}

.page-hero-stats span {
    color: var(--cm-muted);
    font-size: 0.78rem;
}

.cm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}

.cm-filter-bar .cm-input {
    min-width: 0;
}

.cm-filter-bar .cm-search-grow {
    flex: 1 1 220px;
}

.cm-filter-bar .cm-select-sm {
    flex: 0 1 160px;
}

.cm-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.35rem;
}

.cm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--cm-border);
    background: var(--cm-surface);
    color: var(--cm-muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.cm-chip img {
    width: 16px;
    height: 16px;
}

.cm-chip:hover,
.cm-chip.is-active {
    color: #fff;
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
}

/* Course / media card */
.cm-media-card {
    display: block;
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius);
    overflow: hidden;
    color: inherit;
    height: 100%;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.cm-media-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
    color: inherit;
}

.cm-media-thumb {
    height: 120px;
    display: grid;
    place-items: center;
    position: relative;
}

.cm-media-thumb i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cm-media-body {
    padding: 1.05rem 1.15rem 1.2rem;
}

.cm-media-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.cm-media-body h3 {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
    color: #fff;
}

.cm-media-body p {
    color: var(--cm-muted);
    font-size: 0.88rem;
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.cm-media-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--cm-muted);
    font-size: 0.8rem;
}

/* Lesson list (learn show) */
.cm-lesson-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cm-lesson-list li a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--cm-border);
    color: var(--cm-muted);
    font-size: 0.88rem;
}

.cm-lesson-list li:last-child a { border-bottom: 0; }

.cm-lesson-list li a:hover,
.cm-lesson-list li a.is-active {
    color: #93c5fd;
}

.cm-lesson-num {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.cm-lesson-list li a.is-done .cm-lesson-num {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

/* Practice table / problem rows */
.cm-problem-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.55rem;
}

.cm-problem-table th {
    color: var(--cm-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 1rem 0.35rem;
}

.cm-problem-table td {
    background: var(--cm-surface);
    border-top: 1px solid var(--cm-border);
    border-bottom: 1px solid var(--cm-border);
    padding: 0.95rem 1rem;
    vertical-align: middle;
}

.cm-problem-table td:first-child {
    border-left: 1px solid var(--cm-border);
    border-radius: 0.75rem 0 0 0.75rem;
}

.cm-problem-table td:last-child {
    border-right: 1px solid var(--cm-border);
    border-radius: 0 0.75rem 0.75rem 0;
}

.cm-problem-table tr:hover td {
    border-color: rgba(59, 130, 246, 0.35);
}

.cm-problem-table a {
    color: #fff;
    font-weight: 600;
}

.cm-problem-table a:hover { color: #93c5fd; }

.cm-acceptance {
    color: var(--cm-muted);
    font-size: 0.85rem;
}

/* Practice / tool workspace split */
.cm-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.cm-split-panel {
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius);
    overflow: hidden;
    min-height: 420px;
}

.cm-split-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--cm-border);
    background: rgba(2, 6, 23, 0.45);
}

.cm-split-head h2,
.cm-split-head h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
}

.cm-split-body {
    padding: 1.15rem;
}

.cm-split-body p {
    color: var(--cm-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.cm-example-box {
    background: #020617;
    border: 1px solid var(--cm-border);
    border-radius: 0.7rem;
    padding: 0.85rem 1rem;
    margin: 0.85rem 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    color: #e2e8f0;
}

.cm-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.cm-tab {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--cm-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.cm-tab.is-active,
.cm-tab:hover {
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Interview topic cards */
.cm-topic-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.15rem;
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius);
    height: 100%;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.cm-topic-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
    color: inherit;
}

.cm-topic-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cm-topic-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1.02rem;
    color: #fff;
}

.cm-topic-card p {
    margin: 0 0 0.55rem;
    color: var(--cm-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.cm-topic-meta {
    color: var(--cm-muted);
    font-size: 0.78rem;
}

/* Question list */
.cm-q-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.1rem;
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: 0.75rem;
    margin-bottom: 0.55rem;
    color: inherit;
    transition: border-color 0.15s ease;
}

.cm-q-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: inherit;
}

.cm-q-item h4 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    color: #fff;
}

.cm-q-item p {
    margin: 0;
    color: var(--cm-muted);
    font-size: 0.8rem;
}

.cm-q-item .cm-q-arrow {
    margin-left: auto;
    color: var(--cm-muted);
}

/* Tools grid */
.cm-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.cm-tool-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.15rem;
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius);
    color: inherit;
    height: 100%;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.cm-tool-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
    color: inherit;
}

.cm-tool-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.15rem;
}

.cm-tool-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.cm-tool-card p {
    margin: 0;
    color: var(--cm-muted);
    font-size: 0.84rem;
    line-height: 1.4;
    flex: 1;
}

.cm-tool-card span {
    color: #60a5fa;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Tool workspace */
.cm-tool-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.cm-tool-pane {
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.cm-tool-pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--cm-border);
    background: rgba(2, 6, 23, 0.45);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.cm-tool-pane textarea,
.cm-tool-pane .cm-tool-out {
    flex: 1;
    width: 100%;
    border: 0;
    resize: none;
    background: #020617;
    color: #e2e8f0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    padding: 1rem;
    min-height: 280px;
}

.cm-tool-pane textarea:focus {
    outline: none;
}

.cm-tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Portfolio */
.cm-folio-cover {
    height: 140px;
    border-radius: var(--cm-radius) var(--cm-radius) 0 0;
    background:
        radial-gradient(ellipse at 20% 40%, rgba(59, 130, 246, 0.45), transparent 55%),
        radial-gradient(ellipse at 80% 30%, rgba(168, 85, 247, 0.35), transparent 50%),
        linear-gradient(135deg, #0f172a, #1e293b);
}

.cm-folio-profile {
    margin-top: -42px;
    position: relative;
    padding: 0 1.35rem 1.35rem;
}

.cm-folio-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid var(--cm-surface);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.85rem;
}

.cm-skill-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.cm-skill-row span {
    width: 88px;
    font-size: 0.82rem;
    color: var(--cm-muted);
    flex-shrink: 0;
}

.cm-skill-bar {
    flex: 1;
    height: 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    overflow: hidden;
}

.cm-skill-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
}

.cm-activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--cm-border);
    color: var(--cm-muted);
    font-size: 0.86rem;
}

.cm-activity-item:last-child { border-bottom: 0; }

.cm-activity-item i {
    color: #60a5fa;
    margin-top: 0.15rem;
}

.cm-activity-item strong {
    color: #fff;
    font-weight: 600;
}

/* Projects page larger cards */
.cm-proj-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.cm-proj-page-grid .cm-proj-card .cm-proj-media {
    height: 150px;
}

.cm-proj-page-grid .cm-proj-body {
    padding: 1rem 1.1rem 1.15rem;
}

.cm-proj-page-grid .cm-proj-body p {
    color: var(--cm-muted);
    font-size: 0.84rem;
    margin: 0.35rem 0 0.7rem;
    line-height: 1.4;
}

.cm-step-list {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cm-step-list li {
    counter-increment: step;
    position: relative;
    padding: 0 0 1.15rem 2.5rem;
    border-left: 1px solid var(--cm-border);
    margin-left: 0.7rem;
}

.cm-step-list li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.cm-step-list li::before {
    content: counter(step);
    position: absolute;
    left: -0.7rem;
    top: 0;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.cm-step-list strong {
    display: block;
    color: #fff;
    margin-bottom: 0.2rem;
    font-size: 0.92rem;
}

.cm-step-list span {
    color: var(--cm-muted);
    font-size: 0.84rem;
}

@media (max-width: 991px) {
    .cm-split,
    .cm-tool-workspace {
        grid-template-columns: 1fr;
    }

    .cm-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cm-proj-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-hero-stats div { text-align: left; }
}

@media (max-width: 640px) {
    .cm-tool-grid,
    .cm-proj-page-grid {
        grid-template-columns: 1fr;
    }

    .cm-problem-table thead { display: none; }

    .cm-problem-table,
    .cm-problem-table tbody,
    .cm-problem-table tr,
    .cm-problem-table td {
        display: block;
        width: 100%;
    }

    .cm-problem-table tr { margin-bottom: 0.65rem; }

    .cm-problem-table td {
        border-radius: 0 !important;
        border-left: 1px solid var(--cm-border);
        border-right: 1px solid var(--cm-border);
    }

    .cm-problem-table td:first-child {
        border-radius: 0.75rem 0.75rem 0 0 !important;
    }

    .cm-problem-table td:last-child {
        border-radius: 0 0 0.75rem 0.75rem !important;
    }
}

/* Home hire teaser */
.cm-hire-home {
    padding: 0.5rem 0 0.25rem;
}

.cm-hire-home-card {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.9fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 1.6rem;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(59, 130, 246, 0.18), transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(168, 85, 247, 0.12), transparent 45%),
        var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: 1.1rem;
}

.cm-hire-home-main {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.cm-hire-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.cm-hire-home-main h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    color: #fff;
}

.cm-hire-home-main p {
    margin: 0 0 0.85rem;
    color: var(--cm-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 36rem;
}

.cm-hire-home-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cm-hire-home-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cm-hire-home-points {
    display: grid;
    gap: 0.45rem;
}

.cm-hire-home-points div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cm-muted);
    font-size: 0.88rem;
}

.cm-hire-home-points i {
    color: #86efac;
}

.cm-hire-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* CV timeline */
.cm-cv-list {
    position: relative;
}

.cm-cv-item {
    position: relative;
    padding: 0 0 1.35rem 1.35rem;
    border-left: 1px solid var(--cm-border);
    margin-left: 0.35rem;
}

.cm-cv-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.cm-cv-dot {
    position: absolute;
    left: -0.35rem;
    top: 0.25rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--cm-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.cm-cv-meta {
    margin-bottom: 0.35rem;
}

.cm-cv-meta strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.cm-cv-meta span {
    color: var(--cm-muted);
    font-size: 0.82rem;
}

.cm-cv-item p {
    margin: 0;
    color: var(--cm-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.cm-service-row {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--cm-border);
}

.cm-service-row:last-of-type {
    border-bottom: 0;
    margin-bottom: 0.25rem;
}

.cm-service-row strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.cm-service-row span {
    color: var(--cm-muted);
    font-size: 0.8rem;
}

.cm-hire-panel {
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius);
    padding: 1.35rem 1.4rem 1.5rem;
    box-shadow: var(--cm-shadow);
}

.cm-hire-form textarea.cm-input {
    min-height: 110px;
}

@media (max-width: 991px) {
    .cm-hire-home-card {
        grid-template-columns: 1fr;
    }
}

.page-hero-compact {
    padding: 1.75rem 0 1.1rem;
}

/* Online Compiler */
.cm-compiler-section {
    padding-top: 0.5rem;
}

.cm-compiler-wrap {
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: 1rem;
    overflow: hidden;
}

.cm-compiler-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--cm-border);
    background: rgba(2, 6, 23, 0.35);
}

.cm-compiler-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--cm-border);
    background: transparent;
    color: var(--cm-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.cm-compiler-lang img {
    border-radius: 3px;
}

.cm-compiler-lang em {
    font-size: 0.65rem;
    font-style: normal;
    color: #86efac;
    background: rgba(34, 197, 94, 0.15);
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
}

.cm-compiler-lang:hover,
.cm-compiler-lang.is-active {
    color: #fff;
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
}

.cm-compiler-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.85fr);
    min-height: 480px;
}

.cm-compiler-pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--cm-border);
}

.cm-compiler-pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--cm-border);
    background: rgba(2, 6, 23, 0.45);
    flex-wrap: wrap;
}

.cm-compiler-head-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cm-compiler-head-left strong {
    color: #fff;
    font-size: 0.9rem;
}

.cm-compiler-template {
    width: auto;
    min-width: 130px;
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
}

.cm-compiler-actions {
    display: flex;
    gap: 0.4rem;
}

.cm-compiler-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    flex-shrink: 0;
}

.cm-compiler-dot[data-state="live"] {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.cm-compiler-dot[data-state="server"] {
    background: #f59e0b;
}

.cm-compiler-editor {
    flex: 1;
    min-height: 360px;
}

.cm-compiler-foot {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-top: 1px solid var(--cm-border);
    color: var(--cm-muted);
    font-size: 0.75rem;
    flex-wrap: wrap;
}

.cm-compiler-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cm-compiler-pane-sm {
    border-right: 0;
    flex: 0 0 auto;
    border-bottom: 1px solid var(--cm-border);
}

.cm-compiler-pane-out {
    border-right: 0;
    flex: 1;
}

.cm-compiler-output {
    flex: 1;
    margin: 0;
    padding: 0.85rem 1rem;
    background: #020617;
    color: #e2e8f0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    min-height: 200px;
    white-space: pre-wrap;
    word-break: break-word;
    border: 0;
}

.cm-compiler-output.is-error {
    color: #fca5a5;
}

.cm-compiler-runtime {
    color: var(--cm-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.cm-compiler-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-top: 1px solid var(--cm-border);
    color: #93c5fd;
    font-size: 0.84rem;
}

.cm-compiler-notice[hidden] {
    display: none;
}

.cm-legal-kicker {
    margin: 0 0 0.45rem;
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cm-legal-updated {
    margin: 0.85rem 0 0;
    color: #64748b;
    font-size: 0.86rem;
}

.cm-legal {
    max-width: 46rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.cm-legal h2 {
    margin: 2rem 0 0.7rem;
    color: #fff;
    font-size: 1.15rem;
}

.cm-legal p,
.cm-legal li {
    font-size: 0.95rem;
}

.cm-legal ul {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
}

.cm-legal li + li {
    margin-top: 0.4rem;
}

.cm-legal a {
    color: #93c5fd;
}

.cm-legal a:hover {
    color: #fff;
}

.cm-diff-live { background: rgba(34,197,94,.15); color: #86efac; border-radius: 999px; padding: .15rem .5rem; font-size: .7rem; font-weight: 700; }
.cm-diff-soon { background: rgba(245,158,11,.15); color: #fcd34d; border-radius: 999px; padding: .15rem .5rem; font-size: .7rem; font-weight: 700; }
.cm-diff-editor { background: rgba(148,163,184,.18); color: #cbd5e1; border-radius: 999px; padding: .15rem .5rem; font-size: .7rem; font-weight: 700; }

@media (max-width: 991px) {
    .cm-compiler-workspace {
        grid-template-columns: 1fr;
    }

    .cm-compiler-pane {
        border-right: 0;
        border-bottom: 1px solid var(--cm-border);
    }

    .cm-compiler-pane-out {
        min-height: 220px;
    }
}
