/* CORE: the plan generator's form and result (/tools/plan/, plan.js). Dark like /features/, house shapes: full borders,
   one radius per level, no coloured side bars; motion only where it explains (the wait shimmer), none under reduced motion. */
.plan-form { display: grid; gap: 12px; padding: 20px; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; background: rgba(255,255,255,0.03); }
.plan-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.78); }
.plan-form textarea, .plan-form input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px;
  background: rgba(0,0,0,0.25); color: #fff; font-family: inherit; font-size: 15px; line-height: 1.5; }
.plan-form textarea { min-height: 120px; resize: vertical; }
.plan-form textarea:focus, .plan-form input:focus { outline: none; border-color: rgba(139,124,246,0.7); box-shadow: 0 0 0 3px rgba(104,83,219,0.25); }
.plan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-form button[type=submit] { justify-self: start; min-height: 44px; padding: 0 22px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #6853db, #8b5cf6); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; box-shadow: 0 6px 20px rgba(104,83,219,0.35); }
.plan-form button[disabled] { opacity: 0.7; cursor: progress; }
.plan-note { margin: 0; font-size: 12px; color: rgba(255,255,255,0.55); }

#plan-out:empty { display: none; }
#plan-out { margin-top: 24px; display: grid; gap: 14px; }
.pt-wait { height: 180px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(139,124,246,0.10) 50%, rgba(255,255,255,0.03) 100%) 0 0 / 200% 100%;
  animation: ptShimmer 1.4s linear infinite; }
@keyframes ptShimmer { to { background-position: -200% 0; } }
.pt-error { padding: 14px 16px; border: 1px solid rgba(248,113,113,0.35); border-radius: 12px; background: rgba(248,113,113,0.08); color: #fca5a5; font-size: 14px; }
.pt-head { padding: 20px; border: 1px solid rgba(139,124,246,0.3); border-radius: 16px; background: rgba(104,83,219,0.08); }
.pt-title { margin: 0 0 6px; font-size: 22px; line-height: 1.25; color: #fff; text-wrap: balance; }
.pt-sum { margin: 0; color: rgba(255,255,255,0.75); line-height: 1.55; }
.pt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.pt-chip { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; font-size: 12px; color: rgba(255,255,255,0.85); }
.pt-left { font-size: 12px; color: rgba(255,255,255,0.5); }
.pt-h { margin: 10px 0 0; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #a78bfa; }
.pt-phase { border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; background: rgba(255,255,255,0.03); overflow: hidden; }
.pt-phase-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); color: #fff; }
.pt-n { display: inline-grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 8px; background: rgba(104,83,219,0.25); color: #c4b5fd; font-size: 12px; font-weight: 700; }
.pt-weeks { margin-left: auto; font-size: 12px; color: rgba(255,255,255,0.5); white-space: nowrap; }
.pt-tasks { list-style: none; margin: 0; padding: 4px 0; }
.pt-tasks li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 8px 16px; font-size: 14px; color: rgba(255,255,255,0.85); }
.pt-tasks li + li { border-top: 1px solid rgba(255,255,255,0.04); }
.pt-role { font-size: 12px; color: #c4b5fd; }
.pt-days { font-size: 12px; color: rgba(255,255,255,0.5); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.pt-ms { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pt-ms li { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; color: rgba(255,255,255,0.85); font-size: 14px; }
.pt-week { flex-shrink: 0; min-width: 84px; font-size: 12px; color: rgba(255,255,255,0.5); font-variant-numeric: tabular-nums; }
.pt-risks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pt-risk { padding: 14px 16px; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; background: rgba(255,255,255,0.03); color: #fff; font-size: 14px; }
.pt-risk p { margin: 8px 0 0; color: rgba(255,255,255,0.7); font-size: 13px; line-height: 1.5; }
.pt-levels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pt-lv { padding: 2px 8px; border-radius: 999px; font-size: 11px; border: 1px solid; }
.pt-low { color: #6ee7b7; border-color: rgba(110,231,183,0.35); }
.pt-medium { color: #fcd34d; border-color: rgba(252,211,77,0.35); }
.pt-high { color: #fca5a5; border-color: rgba(252,165,165,0.4); }
.pt-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-cta { margin-top: 8px; padding: 20px; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; background: rgba(255,255,255,0.03); }
.pt-cta p { margin: 0 0 12px; color: rgba(255,255,255,0.8); }
.pt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255,255,255,0.16); border-radius: 10px;
  background: transparent; color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.pt-btn:hover { border-color: rgba(139,124,246,0.6); }
.pt-primary { border: none; background: linear-gradient(135deg, #6853db, #8b5cf6); box-shadow: 0 6px 20px rgba(104,83,219,0.35); }
.pt-quiet { color: rgba(255,255,255,0.7); }
@media (max-width: 600px) {
  .plan-row { grid-template-columns: 1fr; }
  .pt-tasks li { grid-template-columns: 1fr auto; }
  .pt-tasks .pt-role { grid-column: 1; grid-row: 2; }
  .pt-tasks .pt-days { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .pt-wait { animation: none; } }
