
/* AI team coordinator – separate from the existing AI editor stylesheet. */
.ss-ai-team{margin:12px 0 18px;padding:16px 17px;border:1px solid #40563d;border-radius:14px;background:#18261c}
.ss-ai-team-head{display:flex;align-items:start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ss-ai-team-head h3{margin:0 0 5px;color:#d3edc5;font-size:1.08rem}
.ss-ai-team-head p{margin:0 0 10px;color:#b0c5aa;font-size:.84rem;line-height:1.5}
.ss-team-product{border-top:1px solid #3b5138;padding:13px 0 10px;display:flex;flex-direction:column;gap:5px}
.ss-team-product strong{font-size:.96rem}
.ss-team-product small{color:#a9c1a5;font-size:.79rem;line-height:1.5}
.ss-team-budget{padding:9px 12px;margin:0 0 12px;border-radius:9px;background:#243528;font-size:.78rem;color:#b8d0b4}
.ss-team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:10px}
.ss-team-card{padding:13px;border:1px solid #3b503a;border-radius:12px;background:#253328;display:flex;flex-direction:column;gap:8px;min-width:0}
.ss-team-card-top{display:flex;gap:8px;align-items:flex-start}
.ss-team-card-text{flex:1;min-width:0}
.ss-team-card-text strong{font-size:.88rem;display:block;color:#f1f7ed}
.ss-team-card-text p{font-size:.77rem;line-height:1.4;color:#b3c7ae;margin:5px 0 0}
.ss-team-card-text small{color:#a3b9a2;display:block;font-size:.73rem;margin-top:4px}
.ss-team-number{flex:0 0 29px;height:29px;border-radius:50%;background:#486740;color:#fff;display:grid;place-items:center;font-weight:700;font-size:.8rem}
.ss-team-flag{font-size:.68rem;padding:4px 7px;border-radius:15px;max-width:108px;line-height:1.25;text-align:center;white-space:normal}
.ss-team-flag.ok{background:#355a2b;color:#bdf09f}
.ss-team-flag.err{background:#6b2d2d;color:#ffd0c6}
.ss-team-flag.working{background:#4d4924;color:#ffe3a0}
.ss-team-flag.wait{background:#2c4435;color:#b8caba}
.ss-team-result{background:#1a291f;padding:9px 10px;border-radius:9px;font-size:.76rem;line-height:1.5;color:#ccdfc7;overflow-wrap:anywhere}
.ss-team-result p{margin:0 0 5px;font-size:.79rem}
.ss-team-result div{margin:5px 0}
.ss-team-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto}
.ss-team-actions button{flex:1 1 125px;min-height:38px;white-space:normal;padding:7px 9px;font-size:.76rem;font-weight:650;border-radius:9px}
.ss-team-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:13px}
.ss-team-footer button{min-height:44px;font-size:.85rem}
.ss-team-footer small{font-size:.76rem;color:#b0c8af}
.ss-team-finished{color:#caecaa;font-weight:650;font-size:.84rem}
.ss-team-failure{font-size:.77rem;color:#ffc1b9;display:block;overflow-wrap:anywhere}
.ss-ai-team-empty{color:#bacbb8;margin:10px 0;font-size:.83rem}
.ss-ai-team [data-team-state]{display:block;margin-top:12px;color:#b1c5ab;font-size:.76rem}
.ss-ai-team button:disabled{opacity:.48;cursor:not-allowed}

.ss-team-head-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.ss-team-head-actions button{font-size:.8rem;min-height:35px}
.ss-ai-team.ss-team-collapsed .ss-team-grid,
.ss-ai-team.ss-team-collapsed .ss-team-budget,
.ss-ai-team.ss-team-collapsed .ss-team-footer{display:none!important}
.ss-ai-team.ss-team-collapsed .ss-team-product{padding-bottom:5px}

/* Kreativni scenario directly in the AI Designer step. */
.ss-team-card[data-team-key="designer"]{grid-column:1/-1}
.ss-team-scenario{padding:12px;border:1px solid #506c4b;background:#192a1d;border-radius:11px;margin:5px 0 1px}
.ss-team-scenario-head strong{color:#d7f1c9;font-size:.9rem}
.ss-team-scenario-head p,.ss-team-scenario-empty p{font-size:.78rem;line-height:1.45;color:#b1c9ad;margin:6px 0 11px}
.ss-team-scenario-empty>strong{font-size:.85rem}
.ss-team-shot,.ss-team-shot-guidance{margin:8px 0;border:1px solid #446144;border-radius:9px;background:#253b2b;overflow:hidden}
.ss-team-shot summary,.ss-team-shot-guidance summary{display:flex;align-items:center;gap:10px;padding:11px;cursor:pointer;list-style:none}
.ss-team-shot summary::-webkit-details-marker,.ss-team-shot-guidance summary::-webkit-details-marker{display:none}
.ss-team-shot summary::after,.ss-team-shot-guidance summary::after{content:"⌄";margin-left:auto;color:#c6dabd;font-size:1rem}
.ss-team-shot[open] summary::after,.ss-team-shot-guidance[open] summary::after{content:"⌃"}
.ss-team-shot-num{flex:0 0 29px;height:29px;display:grid;place-items:center;background:#496946;border-radius:8px;font-size:.8rem;font-weight:700}
.ss-team-shot-title{min-width:0;flex:1}
.ss-team-shot-title strong{display:block;font-size:.84rem;color:#eef7e8;line-height:1.35}
.ss-team-shot-title small{display:block;color:#afc6a9;margin-top:3px;font-size:.74rem}
.ss-team-shot dl{margin:0;padding:10px 12px 5px;border-top:1px solid #3a553a;display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:9px 16px}
.ss-team-shot-detail{min-width:0}
.ss-team-shot-detail dt{font-size:.72rem;color:#9fbb9d;font-weight:700;margin-bottom:3px}
.ss-team-shot-detail dd{font-size:.8rem;color:#e2eddd;line-height:1.55;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.ss-team-shot>button{margin:8px 12px 12px;min-height:40px;font-size:.79rem}
.ss-team-shot>small{display:block;padding:7px 12px 12px;color:#c5d6c0;font-size:.75rem}
.ss-team-shot-guidance summary{font-size:.78rem;font-weight:700;color:#cfe6c8}
.ss-team-shot-guidance p{font-size:.78rem;padding:0 12px 12px;white-space:pre-wrap;line-height:1.5;overflow-wrap:anywhere}
.ss-team-card[data-team-key="designer"] .ss-team-actions{padding:2px 0;justify-content:flex-start}
.ss-team-card[data-team-key="designer"] .ss-team-actions button{max-width:320px}
@media(max-width:600px){
 .ss-team-shot dl{grid-template-columns:minmax(0,1fr)}
 .ss-team-shot>button{width:calc(100% - 24px);margin:7px 12px 12px}
 .ss-team-card[data-team-key="designer"] .ss-team-actions button{max-width:none}
}
