/* ── Chameleon — game stylesheet ───────────────────────────────────────────
   Prefix: ch-
   Accent: #2ecc71 (emerald)
   ──────────────────────────────────────────────────────────────────────── */

:root {
    --ch-emerald:      #2ecc71;
    --ch-emerald-dark: #27ae60;
    --ch-emerald-glow: rgba(46, 204, 113, 0.25);
    --ch-red:          #e74c3c;
}

/* ── Container ── */
.ch-container {
    min-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 1rem 0.75rem;
    gap: 0.5rem;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .ch-container {
        padding: 0.4rem 0.5rem 0.5rem;
        gap: 0.4rem;
    }
}

/* ── Heading ── */
.ch-heading {
    font-family: 'Cabin Sketch', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ch-emerald);
    margin: 0 0 0.5rem;
    text-align: center;
    text-shadow: 0 0 20px var(--ch-emerald-glow);
}

.ch-phase-title {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.5rem;
    color: var(--ch-emerald);
    margin: 0;
    text-align: center;
}

.ch-phase-desc {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0.3rem 0 0;
    text-align: center;
}

/* ── Room Code ── */
.ch-room-code {
    font-size: 0.9rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ch-room-code .code {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.4rem;
    color: var(--ch-emerald);
    letter-spacing: 2px;
}

.ch-copy-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ch-copy-btn:hover {
    background: var(--surface);
    color: var(--text);
}

/* ── Section ── */
.ch-section {
    width: 100%;
}

.ch-section-title {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.2rem;
    color: var(--ch-emerald);
    margin: 0 0 0.5rem;
}

/* ── Player List ── */
.ch-player-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.ch-lobby-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(42, 26, 74, 0.55);
    border: 1px solid var(--gn-border-glass);
    border-radius: 12px;
    border-left: 3px solid var(--ch-emerald);
}

.ch-lobby-player-name {
    color: var(--text);
    font-weight: 500;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.ch-host-badge, .ch-you-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 0.3rem;
}

.ch-host-badge {
    background: var(--ch-emerald);
    color: white;
}

.ch-you-badge {
    background: var(--teal);
    color: white;
}

.ch-kick-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    transition: color 0.2s;
}

.ch-kick-btn:hover {
    color: #e74c3c;
}

/* ── Info Box ── */
.ch-info-box {
    width: 100%;
    padding: 1rem;
    background: var(--surface);
    border-left: 3px solid var(--ch-emerald);
    border-radius: 8px;
    color: var(--text);
    text-align: center;
    font-size: 0.95rem;
}

.ch-waiting-msg {
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    padding: 0.5rem;
}

/* ── Category label (clue phase) ── */
.ch-category-label {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
}

.ch-category-name {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.3rem;
    color: var(--ch-emerald);
    margin: 0.25rem 0 1rem;
    text-align: center;
}

/* ── Word Grid ── */
.ch-word-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 500px;
}

.ch-word-cell,
.ch-word-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 0.4rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text);
    transition: all 0.2s;
}

.ch-word-cell.secret,
.ch-word-tile.ch-word-secret {
    border-color: var(--ch-emerald);
    background: rgba(46, 204, 113, 0.1);
    color: var(--ch-emerald);
    font-weight: 600;
}

.ch-word-cell.clickable,
.ch-word-tile.ch-guess-tile {
    cursor: pointer;
}

.ch-word-cell.clickable:hover,
.ch-word-tile.ch-guess-tile:hover {
    border-color: var(--ch-emerald);
    transform: translateY(-1px);
}

.ch-word-cell.selected,
.ch-word-tile.ch-selected {
    border-color: var(--ch-emerald);
    background: var(--ch-emerald);
    color: white;
    font-weight: 600;
}

/* Guess grid variant */
.ch-guess-grid {
    margin-bottom: 1rem;
}

/* ── Role Banner / Card ── */
.ch-role-banner {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.ch-role-banner.normal {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--ch-emerald);
    color: var(--ch-emerald);
}

.ch-role-banner.chameleon {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--ch-red);
    color: var(--ch-red);
}

.ch-role-card {
    width: 100%;
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
}

.ch-role-card.ch-role-normal {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.ch-role-card.ch-role-chameleon {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.ch-role-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.ch-role-text {
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.ch-role-chameleon .ch-role-text {
    color: var(--ch-red);
}

.ch-role-normal .ch-role-text {
    color: var(--ch-emerald);
}

.ch-role-hint {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}

.ch-role-secret {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.ch-role-secret strong {
    color: var(--ch-emerald);
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.2rem;
}

.ch-secret-word {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.5rem;
    color: var(--ch-emerald);
    margin-top: 0.3rem;
}

/* ── Turn section (clue phase) ── */
.ch-turn-section {
    width: 100%;
    text-align: center;
}

.ch-turn-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.ch-turn-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.ch-turn-name {
    font-weight: 600;
    color: var(--ch-emerald);
    font-size: 1rem;
}

/* ── Clue form ── */
.ch-clue-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.ch-clue-prompt {
    color: var(--ch-emerald);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

/* ── Clue List ── */
.ch-clue-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ch-clue-item {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: rgba(42, 26, 74, 0.55);
    border: 1px solid var(--gn-border-glass);
    border-radius: 12px;
}

/* ── GP-03: Pulsing glow for current clue player ── */
.ch-clue-item.active {
    --tile-glow-color: rgba(46, 204, 113, 0.6);
    border-color: rgba(46, 204, 113, 0.7);
    animation: gn-tile-glow-pulse 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .ch-clue-item.active {
        animation: none;
        box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.6);
    }
}

.ch-clue-item.active {
    border-left: 3px solid var(--ch-emerald);
}

.ch-clue-name,
.ch-clue-player {
    font-weight: 600;
    color: var(--text);
    min-width: 80px;
}

.ch-clue-text {
    color: var(--ch-emerald);
    font-weight: 500;
}

.ch-clue-pending {
    color: var(--muted);
    font-style: italic;
}

/* ── Clue Input ── */
.ch-clue-input-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
}

.ch-clue-input {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: var(--text);
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.ch-clue-input:focus {
    border-color: var(--ch-emerald);
}

/* ── Voting ── */
.ch-voting-phase {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ch-vote-progress {
    width: 100%;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.ch-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.ch-progress-fill {
    height: 100%;
    background: var(--ch-emerald);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.ch-vote-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ch-vote-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
}

.ch-vote-item.ch-voted-for {
    border-color: var(--ch-emerald);
    background: rgba(46, 204, 113, 0.1);
}

.ch-vote-item.ch-vote-me {
    opacity: 0.6;
}

.ch-vote-player {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ch-vote-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.ch-vote-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.ch-vote-card:hover {
    border-color: var(--ch-emerald);
}

.ch-vote-card.selected {
    border-color: var(--ch-emerald);
    background: rgba(46, 204, 113, 0.1);
}

.ch-vote-card.disabled {
    opacity: 0.5;
    cursor: default;
}

.ch-vote-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ch-vote-name {
    font-weight: 600;
    color: var(--text);
}

.ch-vote-clue {
    font-size: 0.85rem;
    color: var(--muted);
}

.ch-voted-check {
    color: var(--ch-emerald);
    font-size: 0.9rem;
    font-weight: 600;
}

.ch-btn-vote {
    background: linear-gradient(135deg, var(--ch-emerald), var(--ch-emerald-dark));
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ch-btn-vote:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── Clue phase wrapper ── */
.ch-clue-phase {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* ── Guess phase ── */
.ch-guess-phase {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ch-waiting-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    color: var(--muted);
    font-style: italic;
    animation: ch-pulse 2s ease-in-out infinite;
}

.ch-chameleon-icon-large {
    font-size: 3rem;
}

@keyframes ch-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ch-waiting-anim {
        animation: none;
        opacity: 1;
    }
}

/* ── Buttons ── */
.ch-btn-primary {
    background: linear-gradient(135deg, var(--ch-emerald), var(--ch-emerald-dark));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.6rem;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.ch-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ch-btn-primary:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

.ch-btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    padding: 0.8rem 1.6rem;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.ch-btn-secondary:hover {
    border-color: var(--ch-emerald);
    color: var(--ch-emerald);
}

/* ── Reveal ── */
.ch-reveal-phase {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ch-reveal-box {
    width: 100%;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    text-align: center;
}

.ch-reveal-title {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.8rem;
    margin: 0 0 0.5rem;
}

.ch-reveal-title.caught {
    color: var(--ch-emerald);
}

.ch-reveal-title.escaped {
    color: var(--ch-red);
}

.ch-reveal-cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.ch-reveal-card {
    flex: 1;
    min-width: 150px;
    max-width: 250px;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.ch-reveal-card.ch-reveal-chameleon {
    border: 2px solid rgba(231, 76, 60, 0.4);
    background: rgba(231, 76, 60, 0.05);
}

.ch-reveal-card.ch-reveal-word {
    border: 2px solid rgba(46, 204, 113, 0.4);
    background: rgba(46, 204, 113, 0.05);
}

.ch-reveal-label {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ch-reveal-card.ch-reveal-chameleon .ch-reveal-label {
    font-size: 1.5rem;
}

.ch-reveal-value {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.3rem;
    color: var(--text);
}

.ch-reveal-card.ch-reveal-chameleon .ch-reveal-value {
    color: var(--ch-red);
}

.ch-reveal-card.ch-reveal-word .ch-reveal-value {
    color: var(--ch-emerald);
}

.ch-reveal-chameleon-name {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0.5rem 0;
}

.ch-reveal-word-value {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.5rem;
    color: var(--ch-emerald);
}

/* ── Guess result (reveal) ── */
.ch-guess-result {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ch-guess-result.ch-correct {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.ch-guess-result.ch-wrong {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.ch-guess-label {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ch-guess-value {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.2rem;
    color: var(--text);
}

.ch-guess-verdict {
    font-weight: 700;
    font-size: 0.95rem;
}

.ch-guess-verdict.ch-correct {
    color: var(--ch-emerald);
}

.ch-guess-verdict.ch-wrong {
    color: var(--ch-red);
}

.ch-escape-msg {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    color: var(--ch-red);
    font-weight: 500;
}

/* ── Scores section (reveal) ── */
.ch-scores-section {
    width: 100%;
}

.ch-score-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ch-score-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.ch-score-item.ch-scored {
    background: rgba(46, 204, 113, 0.05);
    border-color: rgba(46, 204, 113, 0.3);
}

.ch-score-name {
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ch-chameleon-badge {
    font-size: 0.9rem;
    margin-left: 0.2rem;
}

.ch-score-pts {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.1rem;
    color: var(--muted);
}

.ch-score-item.ch-scored .ch-score-pts {
    color: var(--ch-emerald);
}

.ch-score-change {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.ch-score-chip {
    padding: 0.3rem 0.8rem;
    background: rgba(46, 204, 113, 0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--ch-emerald);
    font-weight: 600;
}

/* ── Game Over ── */
.ch-gameover {
    text-align: center;
    margin-bottom: 1rem;
}

.ch-gameover-title {
    font-family: 'Cabin Sketch', cursive;
    font-size: 2rem;
    color: var(--ch-emerald);
    margin: 0;
}

.ch-winner-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(46, 204, 113, 0.05));
    border-radius: 12px;
    margin-top: 1rem;
}

.ch-winner-icon {
    font-size: 3rem;
}

.ch-winner-name {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.8rem;
    color: var(--ch-emerald);
}

.ch-winner-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── Leaderboard ── */
.ch-leaderboard {
    width: 100%;
    margin: 1rem 0;
}

.ch-lb-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
}

.ch-lb-table thead {
    background: rgba(46, 204, 113, 0.1);
}

.ch-lb-table th {
    padding: 0.8rem;
    text-align: left;
    color: var(--ch-emerald);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.ch-lb-table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.ch-lb-first {
    background: rgba(46, 204, 113, 0.08);
}

.ch-score-cell {
    text-align: center;
    font-family: 'Cabin Sketch', cursive;
    font-size: 1.1rem;
}

.ch-action-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Round indicator ── */
.ch-round-badge {
    font-family: 'Cabin Sketch', cursive;
    font-size: 1rem;
    color: var(--muted);
    text-align: center;
}

/* ── Progress ── */
.ch-progress {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 500px) {
    .ch-heading {
        font-size: 2rem;
    }

    .ch-word-grid {
        gap: 0.3rem;
    }

    .ch-word-cell,
    .ch-word-tile {
        padding: 0.5rem 0.2rem;
        font-size: 0.75rem;
    }

    .ch-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ch-btn-primary, .ch-btn-secondary {
        text-align: center;
    }

    .ch-reveal-cards {
        flex-direction: column;
        align-items: center;
    }

    .ch-reveal-card {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 600px) {
    /* GP-06: Compact pill chips for player tiles */
    .ch-lobby-player,
    .ch-clue-item {
        padding: 0.35rem 0.55rem;
        border-radius: 20px;
        flex-direction: row;
        gap: 0.3rem;
        font-size: 0.78rem;
    }

    .ch-host-badge, .ch-you-badge { display: none; }

    /* Touch targets — kick button */
    .ch-kick-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    /* Action buttons — 44px minimum height */
    .ch-btn-primary,
    .ch-btn-secondary {
        min-height: 44px;
    }

    /* Vote cards — 44px minimum height for touch */
    .ch-vote-card {
        min-height: 44px;
    }

    /* Vote button — 44px minimum height */
    .ch-btn-vote {
        min-height: 44px;
    }

    /* Clue input — full-width and no iOS zoom */
    .ch-clue-input {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }

    /* Clue input row — stack vertically on narrow screens */
    .ch-clue-input-row {
        flex-direction: column;
        max-width: none;
        width: 100%;
    }

    /* Word grid — ensure it fits at 375px */
    .ch-word-grid {
        max-width: none;
    }
}

/* ── Event Log Accordion (GP-05) ── */
.ch-log-section {
    width: 100%;
    margin-top: 0.5rem;
}

.ch-log-toggle {
    display: none; /* visible only on mobile */
    width: 100%;
    background: rgba(42, 26, 74, 0.55);
    border: 1px solid var(--gn-border-glass);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    color: var(--gn-muted);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

.ch-log-preview {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ch-log-arrow {
    transition: transform 0.2s ease;
    font-size: 0.65rem;
}

.ch-log-arrow.expanded {
    transform: rotate(180deg);
}

.ch-log-entries {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.25rem;
}

.ch-log-entry {
    font-size: 0.78rem;
    color: var(--gn-muted);
    padding: 0.2rem 0.4rem;
    border-left: 2px solid var(--ch-emerald);
    opacity: 0.75;
}

@media (max-width: 600px) {
    .ch-log-toggle {
        display: flex;
    }

    .ch-log-entries {
        display: none;
    }

    .ch-log-entries.expanded {
        display: flex;
    }
}
