/* GC Project — Start a Project dialog */
#spm-overlay{position:fixed;inset:0;background:rgba(16,15,13,.55);backdrop-filter:blur(3px);z-index:9998;display:none;align-items:center;justify-content:center;padding:18px}
#spm-overlay.open{display:flex}
#spm{width:100%;max-width:640px;max-height:92vh;overflow:auto;background:#fff;border-radius:14px;box-shadow:0 30px 80px rgba(0,0,0,.35);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#3d3a34;position:relative}
#spm *{box-sizing:border-box}
#spm .spm-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:22px 24px 0}
#spm .spm-kicker{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#a97f3c;font-weight:700}
#spm h3{margin:6px 0 0;font-family:"Playfair Display",Georgia,serif;font-size:23px;line-height:1.25;color:#1b1b19;font-weight:600}
#spm .spm-sub{margin:6px 0 0;font-size:13px;color:#7c776e}
#spm .spm-x{border:0;background:#f3efe7;color:#5b564d;width:34px;height:34px;border-radius:50%;font-size:18px;line-height:1;cursor:pointer;flex:0 0 auto}
#spm .spm-x:hover{background:#e8e1d4}
#spm .spm-progress{display:flex;gap:6px;padding:18px 24px 0}
#spm .spm-progress i{display:block;height:4px;border-radius:2px;background:#ece7dd;flex:1}
#spm .spm-progress i.on{background:#a97f3c}
#spm .spm-body{padding:20px 24px 8px}
#spm .spm-q{font-size:15px;font-weight:600;color:#1b1b19;margin:0 0 4px}
#spm .spm-hint{font-size:12.5px;color:#8b857a;margin:0 0 14px}
#spm .chips{display:flex;flex-wrap:wrap;gap:8px}
#spm .chip{border:1px solid #ddd5c6;background:#fff;color:#4a453d;border-radius:999px;padding:8px 14px;font-size:13.5px;cursor:pointer;transition:.15s;font-family:inherit}
#spm .chip:hover{border-color:#a97f3c;color:#8b6526}
#spm .chip.sel{background:#a97f3c;border-color:#a97f3c;color:#fff}
#spm .spm-field{margin:12px 0 0}
#spm .spm-field label{display:block;font-size:12.5px;font-weight:600;color:#5b564d;margin-bottom:5px}
#spm .spm-field input,#spm .spm-field textarea{width:100%;border:1px solid #dcd4c6;border-radius:8px;padding:10px 12px;font-size:14px;font-family:inherit;color:#2c2a26;background:#fff;outline:none}
#spm .spm-field input:focus,#spm .spm-field textarea:focus{border-color:#a97f3c;box-shadow:0 0 0 3px rgba(169,127,60,.14)}
#spm .spm-field textarea{min-height:96px;resize:vertical}
#spm .spm-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#spm .spm-err{display:none;margin:12px 0 0;padding:9px 12px;border-radius:8px;background:#fbeeea;color:#a4442f;font-size:13px}
#spm .spm-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px 22px}
#spm .spm-foot .spm-note{font-size:11.5px;color:#9a948a;max-width:290px;line-height:1.4}
#spm .spm-btn{border:0;border-radius:8px;padding:11px 20px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;background:#1b1b19;color:#fff}
#spm .spm-btn:hover{background:#000}
#spm .spm-btn.ghost{background:#f3efe7;color:#5b564d}
#spm .spm-btn.ghost:hover{background:#e8e1d4}
#spm .spm-btn.accent{background:#a97f3c}
#spm .spm-btn.accent:hover{background:#8f6a30}
#spm .spm-btn[disabled]{opacity:.55;cursor:not-allowed}
#spm .spm-done{text-align:center;padding:34px 26px 30px}
#spm .spm-done .tick{width:56px;height:56px;border-radius:50%;background:#eef5ec;color:#2f6b43;display:flex;align-items:center;justify-content:center;font-size:26px;margin:0 auto 14px}
#spm .spm-done h3{font-size:22px}
#spm .spm-done p{font-size:14px;color:#6f6a60;line-height:1.6}
#spm .spm-ref{display:inline-block;margin-top:6px;padding:6px 12px;border-radius:8px;background:#f6f2ea;color:#8b6526;font-weight:700;letter-spacing:.04em;font-size:13px}
@media(max-width:560px){
 #spm .spm-row{grid-template-columns:1fr}
 #spm .spm-head{padding:18px 18px 0}
 #spm .spm-body{padding:16px 18px 6px}
 #spm .spm-foot{padding:14px 18px 18px;flex-direction:column-reverse;align-items:stretch}
 #spm .spm-foot .spm-btn{width:100%}
 #spm .spm-foot .spm-note{max-width:none;text-align:center}
}

/* conversational wizard */
#spm .spm-chat{display:flex;flex-direction:column;gap:10px;padding:16px 22px 4px}
#spm .spm-log{max-height:52vh;overflow-y:auto;display:flex;flex-direction:column;gap:9px;padding-right:4px}
#spm .spm-bubble{max-width:88%;padding:10px 13px;border-radius:12px;font-size:13.5px;line-height:1.55;white-space:pre-wrap}
#spm .spm-bubble.bot{background:#f6f2ea;color:#3d3a34;border-bottom-left-radius:4px;align-self:flex-start}
#spm .spm-bubble.me{background:#a97f3c;color:#fff;border-bottom-right-radius:4px;align-self:flex-end}
#spm .spm-input{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:6px 0 4px}
#spm .spm-input .spm-field{flex:1 1 100%;margin:0}
#spm .spm-input .spm-btn{flex:0 0 auto}
#spm .spm-chips{display:flex;flex-wrap:wrap;gap:7px;flex:1 1 100%}
#spm .spm-chip{border:1px solid #ddd5c6;background:#fff;color:#4a453d;border-radius:999px;padding:8px 13px;font-size:13px;cursor:pointer;font-family:inherit}
#spm .spm-chip:hover{border-color:#a97f3c;color:#8b6526}
#spm .spm-chip.sel{background:#a97f3c;border-color:#a97f3c;color:#fff}
#spm .spm-foot{flex-wrap:wrap}
