.team-dialog{width:min(1160px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);border:1px solid #ded6e8;border-radius:24px;padding:30px;background:#fbf9fd;color:#211b29;box-shadow:0 35px 120px #18112140;overflow:auto}.team-dialog::backdrop{background:#21152f66;backdrop-filter:blur(4px)}.team-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.team-eyebrow{font-size:9px;font-weight:650;letter-spacing:1.5px;color:#897497}.team-heading h2{font-size:31px;letter-spacing:-1.2px;line-height:1.2;margin:12px 0 8px;font-weight:650}.team-heading p{font-size:12px;color:#83718f;margin:0}.team-close{font-size:26px;line-height:1;padding:3px 9px;border:1px solid #e4d9ec;border-radius:50%;background:#fff}.team-form{margin:26px 0 0;padding:20px;border:1px solid #e7deee;border-radius:16px;background:#fff}.team-form>label:first-child{display:block;font-size:12px;font-weight:550}.team-form textarea{display:block;resize:vertical;width:100%;min-height:73px;max-height:200px;border:1px solid #e0d4ec;border-radius:11px;background:#fbf9fd;color:inherit;padding:12px;margin:10px 0 8px;font:inherit;font-weight:400;font-size:13px}.team-context{font-size:10px;color:#8b7798;line-height:1.7;margin:8px 0 13px}.team-repair{display:flex;align-items:center;gap:8px;font-size:10px;color:#7e6c8c;font-weight:400;line-height:1.6}.team-repair input{accent-color:#8067f4;padding:0}.team-actions{display:flex;gap:9px;margin-top:17px}.team-dialog .team-primary{border-radius:10px;background:#221b2a;color:#fff;padding:11px 17px;border:1px solid #221b2a;font-size:12px;font-weight:550}.team-dialog .team-primary:hover{background:#40314e}.team-stop{border:1px solid #d9cbe3;border-radius:10px;font-size:12px;padding:11px 17px}.team-status{font-size:11px;color:#786484;line-height:1.8;min-height:22px;overflow-wrap:anywhere}.team-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.team-card{padding:20px;border:1px solid #d9eae2;border-radius:17px;background:linear-gradient(145deg,#edf9f3,#fff);min-width:0}.team-card.builder{border-color:#e1d4f3;background:linear-gradient(145deg,#f0e8fc,#fff)}.team-card.reviewer{border-color:#f0dace;background:linear-gradient(145deg,#fff0e8,#fff)}.team-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.team-avatar{display:flex;align-items:center;justify-content:center;width:39px;height:39px;border-radius:13px;background:#d8f2e6;color:#368369;font-size:23px}.builder .team-avatar{background:#e5d6fb;color:#8061b9}.reviewer .team-avatar{background:#ffe0cf;color:#c78562}.team-state{font-size:9px;padding:5px 9px;background:#fff9;border-radius:18px;color:#796987}.team-card h3{font-size:18px;letter-spacing:-.3px;margin:17px 0 10px}.team-card p{font-size:11px;line-height:1.8;color:#786883;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.team-lower{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:17px}.team-lower>section{padding:20px;border:1px solid #e6dcec;border-radius:16px;background:#fff}.team-lower h3{font-size:16px;letter-spacing:-.3px;margin:0 0 17px}.team-activity ol{list-style:none;padding:0;margin:0;display:grid;gap:12px}.team-activity li{font-size:11px;line-height:1.8;border-left:2px solid #dac9ee;padding-left:12px;display:flex;flex-direction:column;color:#796584}.team-event-role{font-size:9px;text-transform:uppercase;color:#9b86aa;letter-spacing:.7px}.team-review>p,.team-review li{font-size:11px;line-height:1.8;color:#796584;overflow-wrap:anywhere}.team-review ul{padding-left:17px}.team-check{padding-top:12px;border-top:1px solid #ece3f1;margin-top:17px}.team-review .team-primary{width:100%;margin-top:10px}body[data-theme=dark] .team-dialog{background:#211a2a;color:#f2e9fb;border-color:#493857}body[data-theme=dark] .team-form,body[data-theme=dark] .team-lower>section{background:#2b2035;border-color:#493857}body[data-theme=dark] .team-form textarea{background:#251b30;border-color:#493857}body[data-theme=dark] .team-card{background:#26332e;border-color:#3f5d4c}body[data-theme=dark] .team-card.builder{background:#30243c;border-color:#58426b}body[data-theme=dark] .team-card.reviewer{background:#392b27;border-color:#6b4c3b}body[data-theme=dark] .team-state{background:#0003;color:#decaed}body[data-theme=dark] .team-dialog p,body[data-theme=dark] .team-dialog li{color:#c1aace}@media(max-width:700px){.team-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:20px 15px;border-radius:19px}.team-heading h2{font-size:25px;letter-spacing:-.7px}.team-heading p{font-size:11px}.team-cards,.team-lower{grid-template-columns:1fr}.team-card{padding:17px}.team-card h3{margin-top:10px}.team-form{padding:15px;margin-top:20px}.team-repair{align-items:flex-start}.team-status{font-size:10px}.team-lower>section{padding:17px}}
.team-dialog .team-form label.team-repair{display:flex;justify-content:flex-start;align-items:center;gap:8px;text-align:left;font-size:12px}.team-dialog .team-repair input[type=checkbox]{appearance:auto;width:16px;height:16px;min-width:16px;min-height:16px;max-width:16px;max-height:16px;flex:0 0 16px;margin:0;padding:0}.team-context{font-size:11px}.team-card p,.team-review>p,.team-review li,.team-activity li{font-size:12px}.team-dialog .team-form textarea{box-sizing:border-box}.saved-team-review{margin-top:12px;padding:12px 15px;border:1px solid #d9cfed;border-radius:12px;background:#f5effc}.saved-team-review p,.saved-team-review li{font-size:12px}.saved-team-review small{color:#665375}body[data-theme=dark] .saved-team-review{background:#30243c;border-color:#58426b}body[data-theme=dark] .saved-team-review small{color:#c1aace}

/* Approved Agent Teams screen composition. */
body{--app-rail:260px}.team-dialog{position:fixed;inset:14px 14px 14px calc(var(--app-rail) + 14px);width:auto;height:calc(100dvh - 28px);max-height:none;margin:0;max-width:none;padding:24px 24px 26px;border:1px solid #ded8e4;border-radius:18px;background:#faf9f7;box-shadow:none}.team-dialog::backdrop{background:transparent;backdrop-filter:none}.team-heading h2{font-size:clamp(31px,3.15vw,48px);font-weight:730;letter-spacing:-1.7px;margin:9px 0 8px}.team-heading p{font-size:13px;color:#83738e}.team-eyebrow{font-size:10px;letter-spacing:1px}.team-close{background:#fff;border-color:#ded4e8}.team-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 17px;margin-top:21px;padding:17px 19px;background:#fff;border-radius:17px;border-color:#dfd7e8}.team-form>label:first-child{grid-column:1/-1;font-size:13px;font-weight:650}.team-form textarea{min-height:49px;margin:9px 0 3px;padding:10px 12px;background:#fff;font-size:16px;font-weight:550;border-color:#e1d8eb;line-height:1.5}.team-context{font-size:11px;margin:7px 0}.team-form .team-repair{grid-column:1;font-size:11px}.team-actions{grid-column:2;grid-row:2/4;align-self:center;margin:0;gap:8px}.team-status{font-size:12px;margin:13px 0}.team-cards{gap:18px;margin-top:19px}.team-card{position:relative;padding:18px;min-height:270px;border-color:#cfe7df;background:linear-gradient(120deg,#effbf6,#fff)}.team-card.builder{background:linear-gradient(120deg,#f5efff,#fff);border-color:#e3d7f4}.team-card.reviewer{background:linear-gradient(120deg,#fff2eb,#fff);border-color:#eedad2}.team-card-top{justify-content:flex-start;gap:10px;min-width:0}.team-dialog .team-avatar{background:transparent;border:0;display:block;width:76px;height:78px;flex:none;font-size:initial;border-radius:0}.team-avatar .dabel-robot{width:76px;height:78px}.team-role-heading{min-width:0}.team-card .team-role-heading h3{font-size:21px;margin:0 0 8px;letter-spacing:-.5px;line-height:1.2}.team-state{display:inline-block;background:#d8f3e6;color:#23855f;font-size:10px;font-weight:600;border-radius:10px;padding:7px 9px;line-height:1.2}.builder .team-state{background:#e9dcff;color:#6a40bc}.reviewer .team-state{background:#ffe2d3;color:#ae6143}.team-card .team-role-description{font-size:13px;line-height:1.6;color:#2b2333;margin:13px 0 16px;white-space:normal}.team-output{padding:13px;border:1px solid #e1dbe8;border-radius:13px;background:#fff8}.team-output>b{display:block;font-size:13px;font-weight:700;letter-spacing:-.2px;margin-bottom:4px}.team-output>p{font-size:12px;line-height:1.5;color:#4a3c56}.team-lower{gap:18px;margin-top:21px}.team-lower>section{padding:20px;border-radius:17px;background:#fff;border-color:#e0d8e9}.team-lower h3{font-size:22px;letter-spacing:-.6px;margin-bottom:19px}.team-activity ol{max-height:255px;overflow:auto;gap:15px}.team-activity li{position:relative;border-left:2px solid #e4d7f4;padding-left:15px;font-size:12px;line-height:1.6;color:#7d6b8b}.team-event-role{font-size:12px;font-weight:700;letter-spacing:0;color:#392b47;text-transform:capitalize}.team-review>p,.team-review li{font-size:13px;line-height:1.6}.team-review ul{padding:0;list-style:none;counter-reset:findings}.team-review li{counter-increment:findings;position:relative;padding:3px 0 8px 36px}.team-review li:before{content:counter(findings);position:absolute;left:0;top:2px;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;background:#efe5ff;color:#7650c4;font-weight:650}.team-review .team-primary{min-height:43px;border-radius:11px;background:linear-gradient(135deg,#242424,#111);font-size:13px}.team-check{font-size:12px!important;color:#786487;margin:17px 0 0;padding-top:13px}.team-open #sidebar #chatMode,.team-open #sidebar #codeMode{background:transparent;color:#201b28}.team-open #sidebar #teamNav{background:#eee4ff;color:#6540bc;font-weight:650}.auth-screen:not([hidden]){display:flex}.auth-screen .auth-mobile-brand:before{display:none}.auth-mobile-brand>svg{width:33px;height:33px;margin-right:3px;color:#8067f4;flex:none}.auth-main .auth-decoration .dabel-robot{width:100%;height:100%}
@media(min-width:1700px){body{--app-rail:280px}.team-dialog{padding:27px}.team-card{padding:21px;min-height:285px}.team-dialog .team-avatar,.team-avatar .dabel-robot{width:95px;height:91px}.team-card .team-role-heading h3{font-size:25px}.team-state{font-size:12px}.team-card .team-role-description{font-size:16px}.team-output>b{font-size:16px}.team-output>p{font-size:14px}.team-lower h3{font-size:25px}}
@media(max-width:1220px){body{--app-rail:235px}.team-dialog{padding:21px}.team-cards{gap:12px}.team-card{padding:14px}.team-dialog .team-avatar,.team-avatar .dabel-robot{width:59px;height:66px}.team-card .team-role-heading h3{font-size:18px}.team-state{font-size:9px;padding:6px 7px}.team-card-top{gap:7px}.team-output{padding:10px}.team-form textarea{font-size:14px}.team-lower h3{font-size:20px}}
body.sidebar-collapsed{--app-rail:0px}
@media(max-width:1000px){.team-dialog{inset:12px;width:calc(100vw - 24px);height:calc(100dvh - 24px);padding:20px}.team-heading h2{font-size:36px}.team-card .team-role-description{font-size:12px}}
@media(max-width:700px){.team-dialog{inset:10px;width:calc(100vw - 20px);height:calc(100dvh - 20px);padding:22px 15px;border-radius:19px}.team-heading h2{font-size:30px;letter-spacing:-1px;line-height:1.12}.team-heading p{font-size:12px}.team-eyebrow{font-size:9px}.team-form{padding:15px;grid-template-columns:1fr;gap:6px}.team-form>label:first-child{font-size:12px}.team-form textarea{font-size:15px;min-height:70px}.team-actions{grid-row:auto;grid-column:1;justify-content:flex-start;margin-top:8px}.team-context{font-size:10px;line-height:1.7}.team-form .team-repair{font-size:11px}.team-cards{grid-template-columns:1fr;gap:15px}.team-card{padding:18px;min-height:0}.team-dialog .team-avatar,.team-avatar .dabel-robot{width:80px;height:76px}.team-card .team-role-heading h3{font-size:24px}.team-state{font-size:11px;padding:7px 10px}.team-card-top{gap:15px}.team-card .team-role-description{font-size:14px;margin-top:12px}.team-output{padding:13px}.team-output>b{font-size:14px}.team-output>p{font-size:13px}.team-lower{grid-template-columns:1fr;gap:15px}.team-lower>section{padding:18px}.team-lower h3{font-size:23px}.team-status{font-size:11px;line-height:1.7}.team-activity ol{max-height:none}}

/* Saved team progress and deliberate continuation. */
.team-dialog .team-background-note{font-size:14px;line-height:1.6;color:#62536d;margin:14px 0}.team-dialog .team-reconnect,.team-history button,.team-recovery-bar button{font:600 14px/1.4 Inter,Arial,sans-serif;padding:10px 14px;border:1px solid #d5c7e4;border-radius:10px;background:#fff;color:#59406e}.team-actions{flex-wrap:wrap}.team-history{border:1px solid #e0d5e8;border-radius:14px;padding:16px;margin-top:20px;background:#fff}.team-history summary{font-size:16px;font-weight:650;cursor:pointer}.team-history>button{margin:14px 0}.team-history-row{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:14px 0;border-top:1px solid #ebe3f0}.team-history-row>div{display:grid;gap:5px;min-width:0}.team-history-row b{font-size:14px;font-weight:600;overflow-wrap:anywhere}.team-history-row small{font-size:13px;color:#766282}.team-history-row button{flex:none}.team-recovery-bar{display:flex;align-items:center;gap:10px;background:#eee4ff;border:1px solid #d9c5ef;border-radius:12px;padding:10px 14px;font:14px/1.5 Inter,Arial,sans-serif;width:100%;max-width:720px;margin:8px auto}.team-recovery-bar[hidden]{display:none!important}#chatTools:has(.team-recovery-bar:not([hidden])){flex-wrap:wrap}.team-dialog .team-status{font-size:14px}.team-dialog .team-context{font-size:13px}.team-dialog .team-form>label:first-child,.team-dialog .team-form textarea,.team-dialog .team-primary,.team-dialog .team-stop{font-size:14px}.team-dialog .team-card p,.team-dialog .team-review>p,.team-dialog .team-review li,.team-dialog .team-activity li{font-size:14px}@media(max-width:600px){.team-history-row{align-items:flex-start;flex-direction:column}.team-recovery-bar{align-items:flex-start;flex-direction:column}.team-dialog .team-background-note{font-size:14px}}

.team-dialog .team-background-note,.team-dialog .team-form textarea,.team-dialog .team-card p,.team-dialog .team-review>p,.team-dialog .team-review li,.team-dialog .team-activity li{font-size:16px;line-height:1.5}.team-history-row b{font-size:16px}
