/* ============================================
   Deployment Planner Styles
   ============================================ */

.dp-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* ── Top Bar ── */
.dp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    flex-wrap: wrap;
    gap: 10px;
}

.dp-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Plan Dropdown */
.dp-plan-dropdown {
    position: relative;
}

.dp-plan-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.15s;
    max-width: 320px;
}

.dp-plan-btn:hover {
    border-color: #0e7490;
    background: #f0f9ff;
}

.dp-plan-btn i:first-child {
    color: #0e7490;
}

.dp-plan-btn i:last-child {
    color: #9ca3af;
    font-size: 11px;
    margin-left: 4px;
}

.dp-plan-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 340px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 400px;
    overflow: hidden;
}

.dp-plan-menu.open {
    display: block;
}

.dp-plan-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.dp-plan-menu-actions {
    display: flex;
    gap: 6px;
}

.dp-auto-build-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.dp-auto-build-btn:hover {
    opacity: 0.9;
}

.dp-new-plan-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #0e7490;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.dp-new-plan-btn:hover {
    opacity: 0.9;
}

.dp-plan-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 6px;
}

.dp-plan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.dp-plan-item:hover {
    background: #f0f9ff;
}

.dp-plan-item.active {
    background: #e0f2fe;
    border-left: 3px solid #0e7490;
}

.dp-plan-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dp-plan-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.dp-plan-item-meta {
    font-size: 11px;
    color: #9ca3af;
}

.dp-plan-item-delete {
    padding: 4px 8px;
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
    opacity: 0;
}

.dp-plan-item:hover .dp-plan-item-delete {
    opacity: 1;
}

.dp-plan-item-delete:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Action Buttons */
.dp-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}

.dp-action-btn:hover {
    border-color: #0e7490;
    color: #0e7490;
    background: #f0f9ff;
}

.dp-action-btn i {
    font-size: 13px;
}

/* ── Controls Row ── */
.dp-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 10px;
}

/* View Toggle */
.dp-view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
}

.dp-view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}

.dp-view-btn.active {
    background: #ffffff;
    color: #0e7490;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Date Navigation */
.dp-date-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-nav-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}

.dp-nav-arrow:hover {
    border-color: #0e7490;
    color: #0e7490;
}

.dp-date-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    min-width: 200px;
    text-align: center;
}

.dp-today-btn {
    padding: 5px 12px;
    background: #0e7490;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.dp-today-btn:hover {
    opacity: 0.9;
}

/* Channel Filter Pills */
.dp-channel-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dp-channel-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: 2px solid transparent;
    opacity: 0.5;
}

.dp-channel-pill.active {
    opacity: 1;
    border-color: currentColor;
}

.dp-channel-pill i {
    font-size: 11px;
}

/* ── Calendar Grid — Weekly Swim Lane ── */
.dp-calendar {
    padding: 0;
    min-height: 500px;
}

.dp-weekly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-collapse: collapse;
    width: 100%;
}

/* Day Headers */
.dp-day-header {
    padding: 10px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
}

.dp-day-header.today {
    background: #e0f2fe;
    color: #0e7490;
}

.dp-day-header-date {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2px;
}

.dp-day-header.today .dp-day-header-date {
    color: #0e7490;
}

/* Channel icon bubble on activity cards */
.dp-activity-card-channel {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 8px;
    flex-shrink: 0;
    position: absolute;
    top: 5px;
    left: 8px;
}

/* Swim Lane Cell */
.dp-cell {
    padding: 6px;
    border-bottom: 1px solid #f3f4f6;
    border-left: 1px solid #f3f4f6;
    min-height: 140px;
    position: relative;
    transition: background 0.15s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dp-cell:hover {
    background: #f8fafc;
}

.dp-cell.today {
    background: #fefce8;
}

/* Add Activity Button (appears on hover) */
.dp-cell-add {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: #0e7490;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-cell:hover .dp-cell-add {
    opacity: 1;
}

/* ── Activity Cards ── */
.dp-activity-card {
    padding: 6px 8px 6px 30px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 3px solid;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.dp-activity-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.dp-activity-card-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-activity-card-time {
    color: #9ca3af;
    font-size: 10px;
}

/* Status dot — positioned top-right of card */
.dp-activity-card-status {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* New status dot classes: channel color inherited, pending=orange, completed=green */
.dp-activity-card-status.status-channel { background: currentColor; opacity: 0.4; }
.dp-activity-card-status.status-pending { background: #f59e0b; }
.dp-activity-card-status.status-completed { background: #10b981; }
.dp-activity-card-status.status-failed { background: #ef4444; }

/* Legacy status classes (backward compat) */
.dp-activity-card-status.draft { background: #9ca3af; }
.dp-activity-card-status.scheduled { background: currentColor; opacity: 0.4; }
.dp-activity-card-status.in-progress { background: #f59e0b; }
.dp-activity-card-status.completed { background: #10b981; }
.dp-activity-card-status.failed { background: #ef4444; }
.dp-activity-card-status.skipped { background: #d1d5db; }

.dp-activity-card.dp-task-engine {
    border-left-width: 4px;
}
.dp-month-activity-pill.dp-task-engine {
    opacity: 0.95;
}

/* ── Monthly Calendar Grid ── */
.dp-monthly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.dp-month-day-header {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.dp-month-cell {
    min-height: 120px;
    padding: 6px;
    border-bottom: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
    position: relative;
    cursor: pointer;
    transition: background 0.15s;
}

.dp-month-cell:hover {
    background: #f8fafc;
}

.dp-month-cell.today {
    background: #fefce8;
}

.dp-month-cell.outside {
    background: #fafafa;
    opacity: 0.5;
}

.dp-month-cell-date {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.dp-month-cell.today .dp-month-cell-date {
    color: #0e7490;
    font-weight: 700;
}

.dp-month-cell-activities {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dp-month-activity-pill {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    max-width: 100%;
    line-height: 1.3;
}

.dp-pill-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dp-pill-status-dot.pending {
    background: #fbbf24;
    box-shadow: 0 0 3px #fbbf24;
}

.dp-pill-status-dot.completed {
    background: #ffffff;
    box-shadow: 0 0 3px rgba(255,255,255,0.6);
}

.dp-pill-status-dot.failed {
    background: #fca5a5;
    box-shadow: 0 0 3px #fca5a5;
}

.dp-month-more {
    font-size: 10px;
    color: #6b7280;
    padding: 2px 6px;
    cursor: pointer;
}

.dp-month-more:hover {
    color: #0e7490;
}

/* ── Activity Detail Panel (Slide-out) ── */
.dp-detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1000;
}

.dp-detail-overlay.open {
    display: flex;
    justify-content: flex-end;
}

.dp-detail-panel {
    width: 480px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
    animation: dp-slide-in 0.25s ease-out;
}

@keyframes dp-slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.dp-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.dp-detail-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}

.dp-detail-close {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dp-detail-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.dp-detail-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dp-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dp-field-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-field-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    transition: border-color 0.15s;
}

.dp-field-input:focus {
    outline: none;
    border-color: #0e7490;
    box-shadow: 0 0 0 3px rgba(14,116,144,0.1);
}

.dp-field-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    cursor: pointer;
}

.dp-field-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #1f2937;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

.dp-field-textarea:focus {
    outline: none;
    border-color: #0e7490;
    box-shadow: 0 0 0 3px rgba(14,116,144,0.1);
}

.dp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Prompt Preview */
.dp-prompt-preview {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.dp-section-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #0e7490;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.dp-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Detail Footer Actions */
.dp-detail-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.dp-btn-primary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #0e7490;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.dp-btn-primary:hover {
    opacity: 0.9;
}

.dp-btn-demo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.dp-btn-demo:hover {
    opacity: 0.9;
}

.dp-btn-execute {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.dp-btn-execute:hover {
    opacity: 0.9;
}

.dp-btn-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.dp-btn-secondary:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.dp-btn-danger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #ffffff;
    color: #ef4444;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    margin-left: auto;
}

.dp-btn-danger:hover {
    background: #fef2f2;
}

/* ── Budget Modal ── */
.dp-budget-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.dp-budget-modal-overlay.open {
    display: flex;
}

.dp-budget-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dp-budget-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.dp-budget-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}

.dp-budget-modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dp-budget-channel-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.dp-budget-channel-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    flex-shrink: 0;
}

.dp-budget-channel-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.dp-budget-input {
    width: 120px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    text-align: right;
}

.dp-budget-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #e0f2fe;
    border-radius: 8px;
    font-weight: 700;
    color: #0e7490;
    font-size: 15px;
}

.dp-budget-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
}

/* ── Team Modal ── */
.dp-team-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.dp-team-modal-overlay.open {
    display: flex;
}

.dp-team-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dp-team-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.dp-team-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}

.dp-team-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.dp-team-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 6px;
}

.dp-team-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0e7490;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.dp-team-member-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.dp-team-member-role {
    font-size: 12px;
    color: #6b7280;
}

/* ── Demo Preview Panel ── */
.dp-demo-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
    align-items: center;
    justify-content: center;
}

.dp-demo-overlay.open {
    display: flex;
}

.dp-demo-panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    width: 700px;
    max-width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dp-demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #ffffff;
}

.dp-demo-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-demo-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.dp-demo-prompt-section {
    margin-bottom: 16px;
}

.dp-demo-prompt-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.dp-demo-prompt-text {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
}

.dp-demo-response-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.dp-demo-response-label {
    font-size: 12px;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dp-demo-response-content {
    padding: 16px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #1f2937;
    min-height: 100px;
}

.dp-demo-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #7c3aed;
    font-size: 14px;
    font-weight: 500;
}

.dp-demo-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dp-demo-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
}

/* ── Auto-Build Wizard Modal ── */
.dp-wizard-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.dp-wizard-overlay.open {
    display: flex;
}

.dp-wizard-panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    width: 560px;
    max-width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dp-wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #ffffff;
}

.dp-wizard-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-wizard-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dp-wizard-channel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.dp-wizard-channel-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    font-weight: 600;
}

.dp-wizard-channel-option:hover {
    border-color: #0e7490;
}

.dp-wizard-channel-option.selected {
    border-color: #0e7490;
    background: #f0f9ff;
}

.dp-wizard-channel-option i {
    font-size: 14px;
}

.dp-wizard-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
}

/* ── Empty State ── */
.dp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
    text-align: center;
}

.dp-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.dp-empty-state h3 {
    font-size: 18px;
    color: #6b7280;
    margin: 0 0 8px;
}

.dp-empty-state p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ── Daily View ── */
.dp-daily-view {
    padding: 20px;
}

.dp-daily-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.dp-daily-date-label {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.dp-daily-today-badge {
    padding: 3px 10px;
    background: #0e7490;
    color: #ffffff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-daily-count {
    font-size: 13px;
    color: #9ca3af;
    margin-left: auto;
}

.dp-daily-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
    text-align: center;
}

.dp-daily-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    color: #d1d5db;
}

.dp-daily-empty p {
    font-size: 15px;
    margin: 0 0 16px;
}

.dp-daily-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dp-daily-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.dp-daily-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    border-color: #d1d5db;
}

.dp-daily-card-time {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    min-width: 50px;
    font-variant-numeric: tabular-nums;
}

.dp-daily-card-indicator {
    width: 4px;
    height: 36px;
    border-radius: 2px;
    flex-shrink: 0;
}

.dp-daily-card-body {
    flex: 1;
    min-width: 0;
}

.dp-daily-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-daily-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dp-daily-card-channel {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dp-daily-card-channel i {
    font-size: 10px;
}

.dp-daily-card-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dp-daily-card-status-dot.status-channel { background: #9ca3af; }
.dp-daily-card-status-dot.status-pending { background: #f59e0b; }
.dp-daily-card-status-dot.status-completed { background: #10b981; }
.dp-daily-card-status-dot.status-failed { background: #ef4444; }

/* ── Day Header Count Badge ── */
.dp-day-header-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #0e7490;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    margin-top: 3px;
}

.dp-day-header.today .dp-day-header-badge {
    background: #065f78;
}

/* ── Drag-and-Drop States ── */
.dp-activity-card[draggable="true"] {
    cursor: grab;
}

.dp-activity-card[draggable="true"]:active {
    cursor: grabbing;
}

.dp-activity-card.dp-dragging {
    opacity: 0.35;
    transform: scale(0.95);
}

.dp-cell.dp-drag-over {
    background: #e0f2fe !important;
    outline: 2px dashed #0e7490;
    outline-offset: -2px;
    border-radius: 4px;
}

/* ── Agenda View ── */
.dp-agenda-view {
    padding: 16px 20px;
    max-height: 700px;
    overflow-y: auto;
}

.dp-agenda-day {
    margin-bottom: 4px;
}

.dp-agenda-day.is-past {
    opacity: 0.6;
}

.dp-agenda-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
}

.dp-agenda-day-header:hover {
    background: #e0f2fe;
}

.dp-agenda-day.is-today .dp-agenda-day-header {
    background: #e0f2fe;
    border-left: 3px solid #0e7490;
}

.dp-agenda-day-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dp-agenda-day-num {
    font-size: 22px;
    font-weight: 800;
    color: #1f2937;
    min-width: 32px;
    text-align: center;
}

.dp-agenda-day.is-today .dp-agenda-day-num {
    color: #0e7490;
}

.dp-agenda-day-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dp-agenda-day-name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.dp-agenda-day-month {
    font-size: 11px;
    color: #9ca3af;
}

.dp-agenda-day-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #e5e7eb;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
}

.dp-agenda-day.is-today .dp-agenda-day-count {
    background: #0e7490;
    color: #ffffff;
}

.dp-agenda-no-events {
    padding: 8px 12px 8px 54px;
    font-size: 12px;
    color: #d1d5db;
    font-style: italic;
}

.dp-agenda-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 16px;
    margin-left: 20px;
    border-left: 2px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 0 8px 8px 0;
}

.dp-agenda-item:hover {
    background: #f8fafc;
}

.dp-agenda-item:last-child {
    margin-bottom: 8px;
}

.dp-agenda-item-time {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    min-width: 44px;
    font-variant-numeric: tabular-nums;
}

.dp-agenda-item-bar {
    width: 4px;
    height: 28px;
    border-radius: 2px;
    flex-shrink: 0;
}

.dp-agenda-item-body {
    flex: 1;
    min-width: 0;
}

.dp-agenda-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.dp-agenda-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #6b7280;
}

.dp-agenda-item-status {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Strategy Field Hint ── */
.dp-field-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    font-style: italic;
}

/* ── Plan Confirmation Modal ── */
.dp-confirm-panel {
    background: #ffffff;
    border-radius: 16px;
    width: 580px;
    max-width: 95vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    overflow: hidden;
}

.dp-confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0e7490, #065f46);
    color: #ffffff;
}

.dp-confirm-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-confirm-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.dp-confirm-plan-name {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dp-confirm-strategy-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #e0f2fe;
    color: #0e7490;
    padding: 3px 10px;
    border-radius: 12px;
}

.dp-confirm-summary {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.dp-confirm-summary-label {
    font-size: 11px;
    font-weight: 700;
    color: #065f46;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dp-confirm-summary p {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

.dp-confirm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.dp-confirm-stat {
    text-align: center;
    padding: 10px 6px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.dp-confirm-stat-num {
    font-size: 20px;
    font-weight: 800;
    color: #0e7490;
}

.dp-confirm-stat-label {
    font-size: 10px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}

.dp-confirm-section {
    margin-bottom: 14px;
}

.dp-confirm-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
}

.dp-confirm-channel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.dp-confirm-channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
}

.dp-confirm-channel-count {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.dp-confirm-activity-list {
    max-height: 220px;
    overflow-y: auto;
}

.dp-confirm-activity-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 12px;
}

.dp-confirm-activity-row:last-child {
    border-bottom: none;
}

.dp-confirm-act-date {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    min-width: 70px;
    font-variant-numeric: tabular-nums;
}

.dp-confirm-act-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dp-confirm-act-title {
    flex: 1;
    color: #1f2937;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-confirm-act-type {
    font-size: 10px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.dp-confirm-more {
    text-align: center;
    font-size: 11px;
    color: #6b7280;
    padding: 8px 0;
    font-style: italic;
}

.dp-confirm-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

/* ── Priority Indicators ── */
.dp-priority-high { color: #ef4444; }
.dp-priority-medium { color: #f59e0b; }
.dp-priority-low { color: #6b7280; }

/* ── Responsive — Tablet ── */
@media (max-width: 1024px) {
    .dp-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .dp-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Responsive — Mobile ── */
@media (max-width: 768px) {

    /* Calendar container: horizontal swipe */
    .dp-calendar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        min-height: auto;
    }

    /* Weekly grid: fixed-width columns so they overflow and scroll */
    .dp-weekly-grid {
        min-width: 700px;
        width: max-content;
    }

    .dp-weekly-grid .dp-cell {
        min-width: 100px;
        min-height: 100px;
    }

    /* Daily view mobile */
    .dp-daily-view {
        padding: 12px;
    }

    .dp-daily-date-label {
        font-size: 16px;
    }

    .dp-daily-card {
        padding: 12px;
        gap: 10px;
    }

    .dp-daily-card-title {
        font-size: 13px;
    }

    /* Agenda view mobile */
    .dp-agenda-view {
        padding: 12px;
        max-height: none;
    }

    .dp-agenda-day-num {
        font-size: 18px;
    }

    .dp-agenda-item {
        margin-left: 12px;
        padding: 10px 8px 10px 12px;
        gap: 8px;
    }

    .dp-agenda-item-title {
        font-size: 12px;
    }

    /* Monthly grid: also scrollable */
    .dp-monthly-grid {
        min-width: 600px;
        width: max-content;
    }

    .dp-month-cell {
        min-width: 85px;
        min-height: 80px;
    }

    .dp-month-day-header {
        min-width: 85px;
    }

    /* Top bar: stack and full-width */
    .dp-topbar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
        gap: 8px;
    }

    .dp-topbar-left {
        width: 100%;
    }

    .dp-topbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .dp-plan-btn {
        max-width: 100%;
        width: 100%;
        justify-content: space-between;
        padding: 10px 14px;
        font-size: 14px;
    }

    .dp-plan-menu {
        min-width: 0;
        width: calc(100vw - 24px);
        left: -12px;
    }

    /* Action buttons: 2x2 grid */
    .dp-topbar-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .dp-action-btn {
        justify-content: center;
        padding: 10px 8px;
        font-size: 12px;
        min-height: 44px;
    }

    .dp-action-btn span {
        display: none;
    }

    /* Controls row: stack */
    .dp-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
        gap: 8px;
    }

    /* View toggle: 2x2 grid with select full-width below */
    .dp-view-toggle {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3px;
        padding: 4px;
        border-radius: 10px;
    }

    .dp-view-btn {
        justify-content: center;
        padding: 9px 6px;
        min-height: 40px;
        font-size: 12px;
        border-radius: 7px;
    }

    .dp-view-btn i {
        font-size: 12px;
    }

    .dp-select-mode-btn {
        grid-column: 1 / -1;
    }

    .dp-date-nav {
        width: 100%;
        justify-content: space-between;
    }

    .dp-date-label {
        min-width: 0;
        flex: 1;
        text-align: center;
        font-size: 13px;
    }

    .dp-nav-arrow {
        min-width: 44px;
        min-height: 44px;
    }

    .dp-today-btn {
        padding: 8px 14px;
        min-height: 44px;
    }

    /* Channel filters: horizontal scroll */
    .dp-channel-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 6px;
    }

    .dp-channel-pill {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 12px;
        min-height: 36px;
    }

    /* Add button always visible on mobile (no hover) */
    .dp-cell-add {
        opacity: 1;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    /* Activity cards: larger touch targets */
    .dp-activity-card {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* Detail panel: full screen */
    .dp-detail-panel {
        width: 100vw;
        max-width: 100vw;
    }

    .dp-detail-body {
        padding: 16px;
    }

    .dp-detail-header {
        padding: 14px 16px;
    }

    /* Stack 2-column field rows on mobile */
    .dp-field-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Larger touch targets for inputs */
    .dp-field-input,
    .dp-field-select {
        padding: 12px 14px;
        font-size: 16px; /* prevents iOS zoom */
        min-height: 44px;
        border-radius: 8px;
    }

    .dp-field-textarea {
        padding: 12px 14px;
        font-size: 16px;
        min-height: 100px;
    }

    .dp-field-label {
        font-size: 11px;
        margin-bottom: 2px;
    }

    /* Footer buttons: wrap */
    .dp-detail-footer {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 6px;
    }

    .dp-detail-footer button {
        min-height: 44px;
        font-size: 13px;
    }

    .dp-btn-primary,
    .dp-btn-demo,
    .dp-btn-execute,
    .dp-btn-secondary {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .dp-btn-danger {
        margin-left: 0;
        flex-basis: 100%;
    }

    /* Prompt preview */
    .dp-prompt-preview {
        font-size: 13px;
        max-height: 150px;
    }

    /* Budget modal */
    .dp-budget-modal,
    .dp-team-modal {
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .dp-budget-channel-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .dp-budget-input {
        width: 100%;
        padding: 10px 12px;
        font-size: 16px;
        min-height: 44px;
    }

    .dp-budget-channel-name {
        flex: 1;
        min-width: 100px;
    }

    .dp-budget-modal-footer {
        flex-wrap: wrap;
    }

    .dp-budget-modal-footer button {
        flex: 1;
        min-height: 44px;
    }

    /* Demo panel */
    .dp-demo-panel {
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .dp-demo-body {
        padding: 16px;
    }

    .dp-demo-footer {
        flex-wrap: wrap;
    }

    .dp-demo-footer button {
        flex: 1;
        min-height: 44px;
    }

    /* Wizard modal */
    .dp-wizard-panel {
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .dp-wizard-body {
        padding: 16px;
    }

    .dp-wizard-channel-grid {
        grid-template-columns: 1fr;
    }

    .dp-wizard-channel-option {
        padding: 12px 14px;
        min-height: 44px;
    }

    .dp-wizard-footer {
        flex-wrap: wrap;
    }

    .dp-wizard-footer button {
        flex: 1;
        min-height: 44px;
    }

    /* Name modal */
    .dp-name-modal {
        width: calc(100vw - 32px);
        max-width: 100%;
    }

    .dp-name-modal input {
        padding: 12px 14px;
        font-size: 16px;
        min-height: 44px;
    }

    .dp-name-modal-actions button {
        min-height: 44px;
        padding: 10px 20px;
    }

    /* Empty state */
    .dp-empty-state {
        padding: 40px 16px;
    }

    .dp-empty-state i {
        font-size: 36px;
    }

    .dp-empty-state h3 {
        font-size: 16px;
    }
}

/* ── Name Modal (reuse pattern from strategy board) ── */
.dp-name-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.dp-name-modal-overlay.open {
    display: flex;
}

.dp-name-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    width: 420px;
    max-width: 90vw;
    padding: 24px;
}

.dp-name-modal h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #1f2937;
}

.dp-name-modal input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.dp-name-modal input:focus {
    outline: none;
    border-color: #0e7490;
}

.dp-name-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ── Deploy to Calendar Wizard ── */
.dp-deploy-panel {
    width: 640px;
    max-width: 92vw;
    max-height: 88vh;
}

.dp-deploy-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    gap: 0;
}

.dp-deploy-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.dp-deploy-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: #e5e7eb;
    color: #9ca3af;
    transition: all 0.2s;
}

.dp-deploy-step.active .dp-deploy-step-num {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

.dp-deploy-step.done .dp-deploy-step-num {
    background: #10b981;
    color: #fff;
}

.dp-deploy-step-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}

.dp-deploy-step.active .dp-deploy-step-label {
    color: #7c3aed;
    font-weight: 600;
}

.dp-deploy-step.done .dp-deploy-step-label {
    color: #10b981;
}

.dp-deploy-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 4px;
    margin-bottom: 18px;
    min-width: 20px;
    transition: background 0.2s;
}

.dp-deploy-step-line.done {
    background: #10b981;
}

.dp-deploy-body {
    min-height: 300px;
    max-height: 55vh;
}

.dp-deploy-step-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.dp-deploy-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
    line-height: 1.5;
}

/* Step 1: Plan selection */
.dp-deploy-plan-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dp-deploy-plan-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.15s;
}

.dp-deploy-plan-card:hover {
    border-color: #7c3aed;
    background: #faf5ff;
}

.dp-deploy-plan-card.selected {
    border-color: #7c3aed;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.dp-deploy-plan-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dp-deploy-plan-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.dp-deploy-plan-check {
    color: #7c3aed;
    font-size: 16px;
}

.dp-deploy-plan-meta {
    display: flex;
    gap: 14px;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.dp-deploy-plan-meta i {
    margin-right: 4px;
}

.dp-deploy-plan-industry {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.dp-deploy-industry-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    background: #ede9fe;
    color: #6d28d9;
}

.dp-deploy-industry-badge.sub {
    background: #e0f2fe;
    color: #0369a1;
}

.dp-deploy-industry-badge i {
    font-size: 10px;
}

.dp-deploy-plan-channels {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.dp-deploy-channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--ch-color) 12%, transparent);
    color: var(--ch-color);
}

/* Step 2: Activity review */
.dp-deploy-summary-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
}

.dp-deploy-select-all {
    margin-bottom: 6px;
}

.dp-deploy-select-all label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.dp-deploy-activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dp-deploy-channel-group {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.dp-deploy-channel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: color-mix(in srgb, var(--ch-color) 8%, #f8fafc);
    color: var(--ch-color);
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

.dp-deploy-activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s;
}

.dp-deploy-activity-row:last-child {
    border-bottom: none;
}

.dp-deploy-activity-row.selected {
    background: #f5f3ff;
}

.dp-deploy-activity-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.dp-deploy-activity-title {
    font-size: 13px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-deploy-activity-type {
    font-size: 11px;
    color: #6b7280;
    padding: 2px 6px;
    background: #f1f5f9;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 8px;
}

.dp-deploy-activity-pri {
    font-size: 11px;
    color: #9ca3af;
    text-transform: capitalize;
    margin-left: 8px;
    min-width: 50px;
    text-align: right;
}

/* Step 3: Schedule preview */
.dp-deploy-schedule-preview {
    margin-top: 8px;
}

.dp-deploy-preview-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 240px;
    overflow-y: auto;
}

.dp-deploy-preview-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
}

.dp-deploy-preview-row:nth-child(odd) {
    background: #f8fafc;
}

.dp-deploy-preview-date {
    font-weight: 600;
    color: #7c3aed;
    min-width: 70px;
}

.dp-deploy-preview-title {
    flex: 1;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-deploy-preview-offset {
    font-size: 11px;
    color: #9ca3af;
    min-width: 45px;
    text-align: right;
}

/* Step 4: Template assignment */
.dp-deploy-template-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dp-deploy-template-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.dp-deploy-template-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dp-deploy-template-type {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.dp-deploy-template-count {
    font-size: 11px;
    color: #9ca3af;
}

.dp-deploy-template-select {
    min-width: 200px;
    max-width: 260px;
}

/* Step 5: Review & deploy */
.dp-deploy-review-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dp-deploy-review-row {
    font-size: 13px;
    color: #374151;
}

.dp-deploy-review-row strong {
    color: #1f2937;
}

.dp-deploy-review-templates {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 12px;
}

.dp-deploy-review-tpl {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 4px 8px;
    background: #f1f5f9;
    border-radius: 4px;
}

.dp-deploy-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 16px;
}

.dp-deploy-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #7c3aed, #2563eb);
    border-radius: 99px;
    transition: width 0.3s ease;
}

.dp-deploy-progress-text {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    margin-top: 8px;
}

/* Deploy button in toolbar */
.dp-deploy-btn {
    background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
}

.dp-deploy-btn:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}

/* ── Dark Mode for Deploy Wizard ── */
[data-theme="dark"] .dp-deploy-stepper {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .dp-deploy-step-num {
    background: #334155;
    color: #64748b;
}

[data-theme="dark"] .dp-deploy-step-label {
    color: #64748b;
}

[data-theme="dark"] .dp-deploy-step-line {
    background: #334155;
}

[data-theme="dark"] .dp-deploy-step-title {
    color: #f1f5f9;
}

[data-theme="dark"] .dp-deploy-hint {
    color: #94a3b8;
}

[data-theme="dark"] .dp-deploy-plan-card {
    border-color: #334155;
    background: #1e293b;
}

[data-theme="dark"] .dp-deploy-plan-card:hover {
    border-color: #7c3aed;
    background: #2d1f5e;
}

[data-theme="dark"] .dp-deploy-plan-card.selected {
    border-color: #7c3aed;
    background: #2d1f5e;
}

[data-theme="dark"] .dp-deploy-plan-name {
    color: #f1f5f9;
}

[data-theme="dark"] .dp-deploy-plan-meta {
    color: #94a3b8;
}

[data-theme="dark"] .dp-deploy-industry-badge {
    background: #3b1f7a;
    color: #c4b5fd;
}

[data-theme="dark"] .dp-deploy-industry-badge.sub {
    background: #0c4a6e;
    color: #7dd3fc;
}

[data-theme="dark"] .dp-deploy-summary-bar {
    background: #1e293b;
    color: #94a3b8;
}

[data-theme="dark"] .dp-deploy-select-all label {
    color: #e2e8f0;
}

[data-theme="dark"] .dp-deploy-channel-group {
    border-color: #334155;
}

[data-theme="dark"] .dp-deploy-channel-header {
    background: color-mix(in srgb, var(--ch-color) 10%, #1e293b);
    border-color: #334155;
}

[data-theme="dark"] .dp-deploy-activity-row {
    border-color: #1e293b;
}

[data-theme="dark"] .dp-deploy-activity-row.selected {
    background: #2d1f5e;
}

[data-theme="dark"] .dp-deploy-activity-title {
    color: #f1f5f9;
}

[data-theme="dark"] .dp-deploy-activity-type {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .dp-deploy-preview-row:nth-child(odd) {
    background: #1e293b;
}

[data-theme="dark"] .dp-deploy-preview-title {
    color: #f1f5f9;
}

[data-theme="dark"] .dp-deploy-template-row {
    border-color: #334155;
    background: #1e293b;
}

[data-theme="dark"] .dp-deploy-template-type {
    color: #f1f5f9;
}

[data-theme="dark"] .dp-deploy-review-card {
    border-color: #334155;
    background: #1e293b;
}

[data-theme="dark"] .dp-deploy-review-row {
    color: #cbd5e1;
}

[data-theme="dark"] .dp-deploy-review-row strong {
    color: #f1f5f9;
}

[data-theme="dark"] .dp-deploy-review-tpl {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .dp-deploy-progress-bar {
    background: #334155;
}

/* ── Deploy Wizard Responsive ── */
@media (max-width: 640px) {
    .dp-deploy-panel {
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .dp-deploy-stepper {
        padding: 12px 10px 8px;
        gap: 0;
    }

    .dp-deploy-step {
        min-width: 44px;
    }

    .dp-deploy-step-label {
        font-size: 9px;
    }

    .dp-deploy-step-num {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .dp-deploy-template-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dp-deploy-template-select {
        min-width: 100%;
        max-width: 100%;
    }

    .dp-deploy-activity-row {
        flex-wrap: wrap;
        gap: 4px;
    }
}

/* ── Completed Task Visual Treatment ── */
.dp-activity-card.dp-completed,
.dp-daily-card.dp-completed,
.dp-agenda-item.dp-completed {
    opacity: 0.55;
    background: rgba(16,185,129,0.04);
}

.dp-activity-card.dp-completed .dp-activity-card-title,
.dp-daily-card.dp-completed .dp-daily-card-title,
.dp-agenda-item.dp-completed .dp-agenda-item-title {
    text-decoration: line-through;
    text-decoration-color: rgba(0,0,0,0.3);
}

.dp-month-activity-pill.dp-completed {
    opacity: 0.6;
}

/* Hover restores full visibility for completed tasks */
.dp-activity-card.dp-completed:hover,
.dp-daily-card.dp-completed:hover,
.dp-agenda-item.dp-completed:hover {
    opacity: 0.85;
}

.dp-month-activity-pill.dp-completed:hover {
    opacity: 0.85;
}

/* Dark mode completed adjustments */
[data-theme="dark"] .dp-activity-card.dp-completed,
[data-theme="dark"] .dp-daily-card.dp-completed,
[data-theme="dark"] .dp-agenda-item.dp-completed {
    background: rgba(16,185,129,0.06);
}

[data-theme="dark"] .dp-activity-card.dp-completed .dp-activity-card-title,
[data-theme="dark"] .dp-daily-card.dp-completed .dp-daily-card-title,
[data-theme="dark"] .dp-agenda-item.dp-completed .dp-agenda-item-title {
    text-decoration-color: rgba(255,255,255,0.3);
}

/* ── Activity Selection Mode ── */
.dp-select-mode-btn {
    margin-left: 4px;
    border-left: 1px solid #e5e7eb !important;
    padding-left: 10px !important;
}

.dp-select-mode-btn.active {
    background: #ef4444 !important;
    color: #fff !important;
    border-color: #ef4444 !important;
}

/* Checkbox on cards */
.dp-act-checkbox {
    color: #9ca3af;
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 4px;
    cursor: pointer;
}

.dp-selected .dp-act-checkbox {
    color: #7c3aed;
}

/* Weekly view cards in select mode */
.dp-activity-card.dp-select-mode {
    cursor: pointer;
}

.dp-activity-card.dp-selected {
    outline: 2px solid #7c3aed;
    outline-offset: -1px;
    background: rgba(124,58,237,0.06);
}

/* Daily view cards in select mode */
.dp-daily-card.dp-select-mode {
    cursor: pointer;
}

.dp-daily-card.dp-selected {
    outline: 2px solid #7c3aed;
    outline-offset: -1px;
    background: rgba(124,58,237,0.06);
}

.dp-daily-card.dp-select-mode .dp-act-checkbox {
    margin-right: 8px;
}

/* Agenda view items in select mode */
.dp-agenda-item.dp-select-mode {
    cursor: pointer;
}

.dp-agenda-item.dp-selected {
    outline: 2px solid #7c3aed;
    outline-offset: -1px;
    background: rgba(124,58,237,0.06);
}

.dp-agenda-item.dp-select-mode .dp-act-checkbox {
    margin-right: 6px;
}

/* Monthly view pills in select mode */
.dp-month-activity-pill.dp-selected {
    outline: 2px solid #fff;
    outline-offset: -1px;
    box-shadow: 0 0 0 3px #7c3aed;
}

/* Floating selection toolbar */
.dp-selection-toolbar {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 1050;
    min-width: 380px;
    transition: bottom 0.3s ease;
}

.dp-selection-toolbar.visible {
    bottom: 24px;
}

.dp-sel-toolbar-left,
.dp-sel-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-sel-count {
    font-size: 13px;
    font-weight: 700;
    padding-right: 8px;
    border-right: 1px solid #475569;
}

.dp-sel-btn {
    background: transparent;
    border: 1px solid #475569;
    color: #e2e8f0;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.dp-sel-btn:hover {
    background: #334155;
    border-color: #94a3b8;
}

.dp-sel-btn.dp-sel-delete {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.dp-sel-btn.dp-sel-delete:hover {
    background: #b91c1c;
}

/* Bulk delete confirmation modal */
.dp-bulk-delete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.dp-bulk-delete-overlay.open {
    opacity: 1;
}

.dp-bulk-delete-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    width: 440px;
    max-width: 90vw;
    overflow: hidden;
}

.dp-bulk-delete-header {
    padding: 16px 20px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-bulk-delete-body {
    padding: 20px;
}

.dp-bulk-delete-body p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
}

.dp-bulk-delete-body p i {
    margin-right: 4px;
    color: #6b7280;
}

.dp-bulk-delete-warn {
    color: #dc2626 !important;
    font-weight: 600;
    margin-top: 12px !important;
}

.dp-bulk-delete-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
}

.dp-btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dp-btn-danger:hover {
    background: #b91c1c;
}

/* Dark mode for selection */
[data-theme="dark"] .dp-select-mode-btn {
    border-color: #334155 !important;
}

[data-theme="dark"] .dp-act-checkbox {
    color: #64748b;
}

[data-theme="dark"] .dp-selected .dp-act-checkbox {
    color: #a78bfa;
}

[data-theme="dark"] .dp-activity-card.dp-selected,
[data-theme="dark"] .dp-daily-card.dp-selected,
[data-theme="dark"] .dp-agenda-item.dp-selected {
    outline-color: #a78bfa;
    background: rgba(167,139,250,0.1);
}

[data-theme="dark"] .dp-month-activity-pill.dp-selected {
    outline-color: #1e293b;
    box-shadow: 0 0 0 3px #a78bfa;
}

[data-theme="dark"] .dp-bulk-delete-modal {
    background: #1e293b;
}

[data-theme="dark"] .dp-bulk-delete-header {
    background: #3b1120;
    color: #f87171;
}

[data-theme="dark"] .dp-bulk-delete-body p {
    color: #cbd5e1;
}

[data-theme="dark"] .dp-bulk-delete-actions {
    border-color: #334155;
}

/* Responsive */
@media (max-width: 640px) {
    .dp-selection-toolbar {
        min-width: auto;
        width: calc(100vw - 32px);
        flex-wrap: wrap;
        padding: 10px 14px;
    }

    .dp-sel-toolbar-left,
    .dp-sel-toolbar-right {
        flex-wrap: wrap;
    }

    .dp-sel-count {
        border-right: none;
        padding-right: 0;
        width: 100%;
    }
}
