/* Task Details (brainwise-mobile develop TaskDetailScreen.tsx StyleSheet, blue theme). A priority's color name maps to
   the blue theme: info #1DA1F2, success #4CAF50, accent #1DA1F2, warning #FFC107 (stress tasks). The original's
   `${color}15` / `20` hex suffixes are alpha 0.08 / 0.125. */
.plan-c-info, .plan-c-accent { --c: #1DA1F2; --c15: rgba(29,161,242,0.08); --c20: rgba(29,161,242,0.125); }
.plan-c-success { --c: #4CAF50; --c15: rgba(76,175,80,0.08); --c20: rgba(76,175,80,0.125); }
.plan-c-warning { --c: #FFC107; --c15: rgba(255,193,7,0.08); --c20: rgba(255,193,7,0.125); }

.plan-task .stack-head { margin-bottom: 16px; }
.plan-task .stack-head .back { width: 35px; height: 35px; border-radius: 22px; background: var(--button-gradient); flex: none; }
.plan-task .stack-head .back svg { width: 20px; height: 20px; }
.plan-task .stack-title { flex: 1; text-align: center; margin: 0 16px; }
.plan-task .stack-head::after { content: ''; width: 44px; flex: none; }
.plan-task .screen-body { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
.plan-task-body { padding: 0 4px; }
.plan-task-card { display: flex; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.plan-task-icon { flex: none; width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-right: 16px; background: var(--c20); }
.plan-task-icon svg { fill: var(--c); }
.plan-task-info { flex: 1; min-width: 0; }
.plan-task-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.plan-task-sub { font-size: 16px; line-height: 22px; color: var(--text-2); margin: 0 0 12px; }
.plan-task-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-task-duration, .plan-task-cat { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 16px; font-size: 14px; font-weight: 600; }
.plan-task-duration { color: var(--c); background: var(--c15); }
.plan-task-duration svg { fill: var(--c); margin-right: 4px; }
.plan-task-cat { color: var(--accent); background: rgba(29,161,242,0.08); /* accent + '15' */ }
.plan-steps { display: block; margin-bottom: 16px; }
.plan-steps-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.plan-steps-list { list-style: none; margin: 0; padding: 0; }
.plan-steps-list li { display: flex; align-items: flex-start; margin-bottom: 16px; font-size: 15px; line-height: 22px; color: var(--text-2); }
.plan-steps-list li:last-child { margin-bottom: 0; }
.plan-steps-list li > span:last-child { flex: 1; }
.plan-bullet { flex: none; width: 20px; height: 8px; margin: 7px 12px 0 0; display: flex; justify-content: center; }
.plan-bullet::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
.plan-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; max-width: 600px; margin: 0 auto; display: flex; gap: 12px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.plan-complete { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text-2); font: 600 16px var(--font); cursor: pointer; }
.plan-complete svg { fill: currentColor; }
.plan-complete.done, .plan-complete:disabled.done { background: var(--success); border-color: var(--success); color: var(--primary); /* textInverse */ cursor: default; }
.plan-missing { text-align: center; color: var(--text-2); font-size: 15px; margin: 24px 0 0; }
/* The success mark after Mark Complete (the original's Lottie Success animation on rgba(21,44,64,0.5)) */
.plan-success { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: rgba(21,44,64,0.5); }
.plan-success-mark { display: flex; color: var(--success); animation: plan-pop .5s ease-out both; }
.plan-success-mark svg { fill: currentColor; }
@keyframes plan-pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .plan-success-mark { animation: none; } }
