/**
 * Reale IDE — estilos do painel Método e da Paleta de Comandos.
 * Apêndice — não conflita com app.css existente.
 */

/* ════ Botão "Método" no header do terminal ════ */
.method-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}
.method-toggle-btn:hover { background: rgba(99, 102, 241, 0.25); }
.method-toggle-btn.active { background: rgba(99, 102, 241, 0.35); color: #c7d2fe; }
.method-toggle-btn.hidden { display: none; }

.method-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 99px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
}
.method-badge.hidden { display: none; }

/* ════ Painel "Método" flutuante ════ */
.method-panel {
    position: fixed;
    top: 64px;
    right: 16px;
    bottom: 16px;
    width: 440px;
    max-width: 90vw;
    background: #0f1320;
    border: 1px solid #232a39;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    z-index: 1500;
    color: #e6e9f0;
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
}
.method-panel.hidden { display: none; }

.method-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #232a39;
    background: #12161f;
}
.method-panel-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.method-panel-head .method-close {
    background: none;
    border: none;
    color: #a8b0c2;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.method-panel-head .method-close:hover { color: #fff; }

.method-panel-tabs {
    display: flex;
    gap: 2px;
    padding: 4px 12px;
    background: #12161f;
    border-bottom: 1px solid #232a39;
}
.method-panel-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #a8b0c2;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}
.method-panel-tab:hover { color: #e6e9f0; }
.method-panel-tab.active { color: #a5b4fc; border-bottom-color: #6366f1; }

.method-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
}

.method-section { display: none; }
.method-section.active { display: block; }

.method-empty {
    color: #6b748a;
    font-size: 13px;
    text-align: center;
    padding: 24px 12px;
    border: 1px dashed #232a39;
    border-radius: 8px;
    background: #0a0c11;
}
.method-empty code {
    background: #171c27;
    padding: 1px 6px;
    border-radius: 4px;
    color: #a5b4fc;
    font-size: 12px;
}

/* Dossiê */
.method-dossier-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.method-dossier-head h3 { margin: 0; font-size: 17px; }
.method-dossier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #12161f;
    border: 1px solid #232a39;
    border-radius: 8px;
    padding: 12px;
}
.method-dossier-grid > div {
    display: flex;
    flex-direction: column;
}
.method-dossier-grid .lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b748a;
    margin-bottom: 2px;
}
.method-dossier-grid .val {
    font-size: 13px;
    color: #e6e9f0;
    font-weight: 500;
}

/* Pills de status */
.method-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}
.method-pill-em_desenvolvimento, .method-pill-em_andamento, .method-pill-in_progress {
    background: rgba(34, 211, 238, 0.15); color: #67e8f9;
}
.method-pill-concluida, .method-pill-completed, .method-pill-feito {
    background: rgba(52, 211, 153, 0.15); color: #6ee7b7;
}
.method-pill-planejado, .method-pill-planejada {
    background: rgba(148, 163, 184, 0.15); color: #cbd5e1;
}
.method-pill-mode {
    background: rgba(251, 191, 36, 0.15); color: #fcd34d;
}

/* Módulos */
.method-module {
    background: #12161f;
    border: 1px solid #232a39;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}
.method-module .mod-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.method-module .mod-name {
    font-size: 13px;
    color: #a8b0c2;
    margin-bottom: 8px;
}
.method-module .mod-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}
.method-module .mod-bar {
    flex: 1;
    height: 4px;
    background: #232a39;
    border-radius: 99px;
    overflow: hidden;
}
.method-module .mod-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    border-radius: 99px;
    transition: width 0.3s;
}
.method-module .mod-progress-text {
    font-size: 11px;
    color: #6b748a;
    white-space: nowrap;
}

/* Feature em curso */
.method-feat-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.method-feat-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.method-dim {
    font-size: 11px;
    color: #6b748a;
}
.method-feat-body {
    background: #12161f;
    border: 1px solid #232a39;
    border-radius: 8px;
    padding: 14px;
    max-height: calc(100vh - 360px);
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
}
.method-feat-body h1, .method-feat-body h2, .method-feat-body h3 {
    margin-top: 16px;
    margin-bottom: 8px;
}
.method-feat-body h1 { font-size: 18px; }
.method-feat-body h2 { font-size: 16px; }
.method-feat-body h3 { font-size: 14px; }
.method-feat-body code {
    background: #0a0c11;
    padding: 1px 5px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}
.method-feat-body pre {
    background: #0a0c11;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 12px;
}
.method-feat-body table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12px; }
.method-feat-body th, .method-feat-body td { padding: 6px 10px; border: 1px solid #232a39; text-align: left; }
.method-feat-body th { background: #0a0c11; }

/* Timeline */
.method-event {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 2px;
    align-items: center;
    border-left: 3px solid transparent;
}
.method-event.method-event-ok    { border-left-color: #34d399; background: rgba(52,211,153,0.05); }
.method-event.method-event-warn  { border-left-color: #f59e0b; background: rgba(245,158,11,0.05); }
.method-event.method-event-bad   { border-left-color: #f87171; background: rgba(248,113,113,0.07); }
.method-event.method-event-info  { border-left-color: #6366f1; background: rgba(99,102,241,0.05); }

.method-event .evt-time {
    font-family: 'JetBrains Mono', monospace;
    color: #6b748a;
    font-size: 11px;
}
.method-event .evt-kind {
    font-weight: 600;
    color: #e6e9f0;
}
.method-event .evt-detail {
    color: #a8b0c2;
    font-size: 11px;
    text-align: right;
}

/* ════ Paleta de Comandos ════ */
.palette-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    z-index: 2000;
}
.palette-modal.hidden { display: none; }

.palette-container {
    background: #0f1320;
    border: 1px solid #232a39;
    border-radius: 14px;
    width: 640px;
    max-width: 92vw;
    max-height: 80vh;
    box-shadow: 0 24px 96px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #e6e9f0;
    font-family: 'Inter', system-ui, sans-serif;
}

.palette-head {
    padding: 14px 18px;
    border-bottom: 1px solid #232a39;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.palette-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #a5b4fc;
}
#palette-search {
    width: 100%;
    background: #12161f;
    border: 1px solid #232a39;
    border-radius: 8px;
    padding: 10px 12px;
    color: #e6e9f0;
    font-size: 14px;
    outline: none;
}
#palette-search:focus { border-color: #6366f1; }

.palette-foot {
    padding: 8px 16px;
    border-top: 1px solid #232a39;
    background: #0a0c11;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #6b748a;
}
.palette-foot label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.palette-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.palette-group { margin-bottom: 12px; }
.palette-group-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b748a;
    padding: 8px 6px 4px;
    font-weight: 600;
}

.palette-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #e6e9f0;
    transition: all 0.12s;
    margin-bottom: 2px;
}
.palette-item:hover {
    background: #171c27;
    border-color: #232a39;
}
.palette-item:focus {
    outline: none;
    background: rgba(99,102,241,0.1);
    border-color: #6366f1;
}
.pal-item-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pal-item-label { font-size: 13px; font-weight: 600; color: #e6e9f0; }
.pal-item-desc { font-size: 11px; color: #6b748a; }
.pal-item-eq {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #67e8f9;
    background: #0a0c11;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.palette-empty {
    text-align: center;
    color: #6b748a;
    padding: 30px 12px;
    font-size: 13px;
}

/* Confirmação */
.palette-confirm, .palette-input-area {
    padding: 14px 18px;
    background: #12161f;
    border-top: 1px solid #232a39;
}
.palette-confirm.hidden, .palette-input-area.hidden { display: none; }
.palette-confirm h4, .palette-input-area h4 {
    margin: 0 0 6px;
    font-size: 12px;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
#palette-confirm-text {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    background: #0a0c11;
    border: 1px solid #232a39;
    border-radius: 6px;
    padding: 10px;
    font-size: 12px;
    color: #67e8f9;
    margin-bottom: 10px;
    word-break: break-all;
}
#palette-input-value {
    width: 100%;
    background: #0a0c11;
    border: 1px solid #232a39;
    border-radius: 6px;
    padding: 10px;
    color: #e6e9f0;
    font-size: 13px;
    resize: vertical;
    min-height: 64px;
    font-family: 'Inter', system-ui, sans-serif;
    outline: none;
    margin-bottom: 10px;
}
#palette-input-value:focus { border-color: #6366f1; }

.palette-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.palette-btn {
    background: #232a39;
    color: #e6e9f0;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.palette-btn:hover { background: #2d3548; }
.palette-btn.primary { background: #6366f1; color: white; }
.palette-btn.primary:hover { background: #4f46e5; }
.palette-btn.danger { background: rgba(248,113,113,0.2); color: #fca5a5; }
.palette-btn.danger:hover { background: rgba(248,113,113,0.35); }

/* ════ Sprint 2: Smells ════ */
.method-smell {
    background: #12161f;
    border: 1px solid #232a39;
    border-left: 3px solid #6366f1;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    font-size: 13px;
}
.method-smell-critical { border-left-color: #f87171; }
.method-smell-warning  { border-left-color: #f59e0b; }
.method-smell-info     { border-left-color: #67e8f9; }
.smell-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.smell-row { display: grid; grid-template-columns: 80px 1fr; gap: 6px; margin-top: 4px; font-size: 12px; }
.smell-lbl { color: #6b748a; text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px; }
.smell-val { color: #cbd5e1; }
.method-pill-critical { background: rgba(248,113,113,0.15); color: #fca5a5; }
.method-pill-warning  { background: rgba(245,158,11,0.15); color: #fcd34d; }
.method-pill-info     { background: rgba(34,211,238,0.15); color: #67e8f9; }

/* ════ Sprint 2: Skills ════ */
.method-skill {
    background: #12161f;
    border: 1px solid #232a39;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.method-skill:hover {
    background: #171c27;
    border-color: #6366f1;
    transform: translateX(2px);
}
.skill-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.skill-meta { font-size: 11px; color: #6b748a; margin-top: 2px; }

/* ════ Sprint 3: Ajustes ════ */
.method-adj-input-wrap {
    background: #12161f;
    border: 1px solid #232a39;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}
.method-adj-input-wrap h4 {
    margin: 0 0 6px;
    font-size: 13px;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.method-adj-help {
    margin: 0 0 8px;
    font-size: 11px;
    color: #6b748a;
}
.method-adj-help code {
    background: #0a0c11;
    padding: 1px 5px;
    border-radius: 3px;
    color: #67e8f9;
}
#method-adjustment-input {
    width: 100%;
    background: #0a0c11;
    border: 1px solid #232a39;
    border-radius: 6px;
    padding: 10px;
    color: #e6e9f0;
    font-size: 13px;
    min-height: 80px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    outline: none;
}
#method-adjustment-input:focus { border-color: #6366f1; }
.method-adj-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.method-adjustment {
    background: #12161f;
    border: 1px solid #232a39;
    border-left: 3px solid #22d3ee;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.adj-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.adj-row { font-size: 12px; color: #cbd5e1; margin-top: 3px; }
.adj-row code {
    background: #0a0c11;
    padding: 1px 5px;
    border-radius: 3px;
    color: #67e8f9;
    font-size: 11px;
}
.adj-lbl { color: #6b748a; font-weight: 600; }

/* ════ Sprint 4: Insights ════ */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.insight-card {
    background: #12161f;
    border: 1px solid #232a39;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.insight-card .ins-lbl {
    font-size: 10px;
    text-transform: uppercase;
    color: #6b748a;
    letter-spacing: 0.5px;
}
.insight-card .ins-num {
    font-size: 22px;
    font-weight: 700;
    color: #a5b4fc;
}

.ins-section {
    margin: 16px 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ins-bar-row {
    display: grid;
    grid-template-columns: 120px 1fr 36px;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.ins-bar-lbl { font-size: 12px; color: #cbd5e1; }
.ins-bar-track {
    height: 8px;
    background: #232a39;
    border-radius: 99px;
    overflow: hidden;
}
.ins-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    border-radius: 99px;
}
.ins-bar-val {
    font-size: 11px;
    color: #6b748a;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}

.ins-top-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ins-top-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    background: #12161f;
    border: 1px solid #232a39;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 12px;
}
.ins-top-list .ins-top-count {
    background: #0a0c11;
    padding: 1px 8px;
    border-radius: 99px;
    color: #67e8f9;
    font-family: 'JetBrains Mono', monospace;
}

/* ════ Admin: Agent Teams (cascata de flags) ════ */
.agent-teams-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    color: #fcd34d;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.6;
}
.agent-teams-warning strong { color: #fbbf24; }
.agent-teams-warning code {
    background: rgba(0,0,0,0.25);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.at-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #a5b4fc;
    margin: 24px 0 10px;
    font-weight: 600;
}

.at-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card, #1a1f2e);
    border: 1px solid var(--border-color, #2d3548);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 6px;
}
.at-toggle-system {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.05));
    border-color: #6366f1;
}
.at-toggle-info {
    flex: 1;
    color: var(--text-primary, #e6e9f0);
    font-size: 14px;
}
.at-toggle-info small {
    display: block;
    color: var(--text-muted, #6b748a);
    font-size: 11px;
    margin-top: 3px;
}
.at-toggle-info strong { color: var(--text-primary, #e6e9f0); }

.at-empty {
    color: var(--text-muted, #6b748a);
    font-size: 13px;
    padding: 12px;
    text-align: center;
    font-style: italic;
}

.at-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(99,102,241,0.2);
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 4px;
}
.at-badge-role { background: rgba(34,211,238,0.2); color: #67e8f9; }

/* Switch toggle */
.at-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.at-switch input { opacity: 0; width: 0; height: 0; }
.at-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #4a5568;
    border-radius: 24px;
    transition: 0.25s;
}
.at-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.25s;
}
.at-switch input:checked + .at-switch-slider { background-color: #22d3ee; }
.at-switch input:checked + .at-switch-slider:before { transform: translateX(20px); }
.at-switch input:focus + .at-switch-slider {
    box-shadow: 0 0 0 3px rgba(34,211,238,0.2);
}

/* ════ Calibração ════ */
.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #12161f;
    border: 1px solid #232a39;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    gap: 16px;
}
.cal-header.cal-overdue {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.05);
}
.cal-header h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #e6e9f0;
}
.cal-subtitle {
    margin: 0;
    font-size: 12px;
    color: #a8b0c2;
}
.cal-subtitle strong {
    color: #67e8f9;
}

.cal-history {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cal-history li {
    display: grid;
    grid-template-columns: 80px 90px 1fr;
    gap: 10px;
    padding: 8px 12px;
    background: #12161f;
    border: 1px solid #232a39;
    border-radius: 6px;
    margin-bottom: 4px;
    align-items: center;
    font-size: 12px;
}
.cal-history code {
    background: #0a0c11;
    padding: 1px 6px;
    border-radius: 3px;
    color: #67e8f9;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Wizard */
.cal-q-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: #a5b4fc;
}
.cal-q-hint {
    margin: 0 0 14px;
    color: #a8b0c2;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 14px;
    background: rgba(99,102,241,0.08);
    border-left: 3px solid #6366f1;
    border-radius: 0 6px 6px 0;
}
.cal-q-textarea {
    width: 100%;
    background: #0a0c11;
    border: 1px solid #232a39;
    border-radius: 8px;
    padding: 12px 14px;
    color: #e6e9f0;
    font-size: 13px;
    min-height: 180px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}
.cal-q-textarea:focus { border-color: #6366f1; }

/* Mobile responsivo */
@media (max-width: 768px) {
    .method-panel { top: 60px; right: 8px; left: 8px; width: auto; }
    .palette-modal { padding-top: 5vh; }
    .palette-container { width: 96vw; }
    .pal-item-eq { display: none; }
    .insights-grid { grid-template-columns: 1fr; }
    .ins-bar-row { grid-template-columns: 90px 1fr 30px; }
    .cal-header { flex-direction: column; align-items: stretch; }
    .cal-history li { grid-template-columns: 1fr; gap: 4px; }
}
