/* 活动倒计时计划 */
.ccl-tool-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 0;
}

.ccl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-muted, #f9fafb);
    flex-shrink: 0;
}

.ccl-toolbar-left { display: flex; align-items: center; gap: 8px; }

.ccl-title {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ccl-title i { color: #10b981; }

.ccl-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    color: 10b981;
}

.ccl-toolbar-right { display: flex; align-items: center; gap: 6px; }

.ccl-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
}

.ccl-btn:hover { border-color: #10b981; color: 10b981; }

.ccl-btn-primary {
    background: linear-gradient(135deg, #fbbf24, #10b981);
    border-color: transparent;
    color: #fff !important;
}

.ccl-canvas-wrap {
    flex: 1;
    overflow: auto;
    padding: 16px;
    background-color: #f3f4f6;
    background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 480px;
}

.ccl-board {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    padding: 24px 20px 20px;
    min-width: 720px;
}

.ccl-map-header { margin-bottom: 20px; padding: 0 4px; }

.ccl-map-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    outline: none;
}

.ccl-map-subtitle {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: #6b7280;
    outline: none;
}

.ccl-map-title:focus,
.ccl-map-subtitle:focus,
.ccl-phase-name:focus,
.ccl-phase-time:focus {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
    border-radius: 4px;
}

.ccl-phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ccl-phase {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    border-radius: 12px;
    padding: 14px 12px 36px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.ccl-phase-1 { background: linear-gradient(180deg, #fffbeb, #fef3c7); }
.ccl-phase-2 { background: linear-gradient(180deg, #fff7ed, #ffedd5); }
.ccl-phase-3 { background: linear-gradient(180deg, #fef2f2, #fee2e2); }
.ccl-phase-4 { background: linear-gradient(180deg, #fdf4ff, #fae8ff); }
.ccl-phase-5 { background: linear-gradient(180deg, #fef2f2, #fecaca); }
.ccl-phase-6 { background: linear-gradient(180deg, #f0fdf4, #dcfce7); }

.ccl-phase-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.ccl-phase-tag {
    flex-shrink: 0;
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: #10b981;
    border-radius: 6px;
    white-space: nowrap;
}

.ccl-phase-4 .ccl-phase-tag { background: #a855f7; }
.ccl-phase-5 .ccl-phase-tag { background: #ef4444; }
.ccl-phase-6 .ccl-phase-tag { background: #10b981; }

.ccl-phase-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    outline: none;
}

.ccl-phase-time {
    margin: 2px 0 0;
    font-size: 0.7rem;
    color: #6b7280;
    outline: none;
}

.ccl-notes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ccl-note {
    position: relative;
    padding: 7px 10px 7px 18px;
    font-size: 0.76rem;
    line-height: 1.5;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    outline: none;
    cursor: text;
    word-break: break-word;
}

.ccl-note::before {
    content: '•';
    position: absolute;
    left: 8px;
    top: 7px;
    font-weight: 700;
    color: #64748b;
}

.ccl-note:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.ccl-note-highlight {
    border-left: 3px solid #ef4444;
    padding-left: 15px;
}

.ccl-note-action { font-weight: 500; }

.ccl-btn-add-note {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.85);
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
}

.ccl-phase:hover .ccl-btn-add-note { opacity: 1; }

@media (max-width: 960px) {
    .ccl-phases { grid-template-columns: repeat(2, 1fr); }
    .ccl-board { min-width: 560px; }
}

@media (max-width: 640px) {
    .ccl-phases { grid-template-columns: 1fr; }
    .ccl-phase { min-height: 220px; }
}
