.team-loading { margin:2rem; }
.team-panel a { color:var(--lp-accent-strong); }
.team-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.team-head h1 { font-size:1.5rem; margin:0; }.team-head p,.team-muted { color:var(--lp-muted); margin:.25rem 0; }
.team-panel { padding:1.1rem; border:1px solid var(--lp-line); border-radius:var(--lp-radius); background:var(--lp-surface); box-shadow:var(--lp-shadow-soft); margin-bottom:1rem; }
.team-selector { display:flex; flex-wrap:wrap; gap:.45rem; margin-bottom:1rem; }.team-selector button[aria-pressed=true] { background:var(--lp-accent-soft); font-weight:700; }
.team-panel h2 { margin:0 0 .75rem; font-size:1.1rem; }.team-panel h3 { margin:.8rem 0 .3rem; font-size:1rem; }
.team-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }.team-field { display:flex; flex-direction:column; gap:.35rem; font-size:.9rem; font-weight:600; min-width:0; }.team-field.full { grid-column:1/-1; }
.team-field textarea { min-height:90px; resize:vertical; }.team-field input,.team-field select,.team-field textarea { width:100%; min-width:0; border:1px solid var(--lp-line); border-radius:10px; padding:.6rem .75rem; background:var(--lp-surface-strong); color:var(--lp-ink); font-weight:400; }
.team-panel button,.team-head button,.team-selector button { padding:.5rem .85rem; border:1px solid var(--lp-line); border-radius:10px; background:var(--lp-surface-strong); color:var(--lp-ink); cursor:pointer; }
button:disabled { opacity:.5; cursor:default; }.team-roles { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:.35rem .8rem; margin:.4rem 0; }.team-role { display:flex; align-items:center; gap:.5rem; min-height:44px; font-weight:400; }.team-role input { width:18px; min-height:18px; height:18px; }
.team-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; border-top:1px solid var(--lp-line); padding-top:1rem; margin-top:1rem; }.team-actions .team-muted { margin-left:auto; }.team-message { min-height:1.5rem; margin:.4rem 0; overflow-wrap:anywhere; }.team-message.error,.team-issue { color:var(--lp-attention); }.team-issue { padding:.6rem 0; border-bottom:1px solid var(--lp-line); }.team-issue p { margin:.2rem 0; }.team-issue button { margin:.35rem 0; }
.team-step { padding:.85rem 0; border-top:1px solid var(--lp-line); }.team-step:first-child { border-top:0; }.team-detail { padding:.65rem 0; border-bottom:1px solid var(--lp-line); }.team-detail summary { cursor:pointer; font-weight:600; }.team-detail p { white-space:pre-wrap; overflow-wrap:anywhere; }.team-preview { white-space:pre-wrap; padding:.65rem 0; overflow-wrap:anywhere; }.team-preview:empty { display:none; }
.team-audit { list-style:none; padding:0; }.team-audit li { padding:.5rem 0; border-bottom:1px solid var(--lp-line); overflow-wrap:anywhere; }.team-empty { padding:1rem 0; color:var(--lp-muted); }
@media(max-width:640px) { .team-grid { grid-template-columns:1fr; }.team-panel { padding:.85rem; }.team-head { align-items:flex-start; }.team-actions .team-muted { flex-basis:100%; margin-left:0; }.team-roles { grid-template-columns:1fr; }.team-selector button { flex:1 1 auto; } }

.team-step>summary{display:flex;justify-content:space-between;gap:.8rem;cursor:pointer;font-weight:600;padding:.5rem 0}.team-step>summary .team-muted{font-size:.85rem;font-weight:400}.team-step[open]>.team-grid{margin-top:.8rem}.team-conversation-actions{display:flex;justify-content:flex-end;gap:0;margin-top:.7rem}.team-conversation-actions button{display:grid;place-items:center;flex:0 0 36px;width:36px;min-width:36px;min-height:36px;height:36px;padding:0;border:0;background:transparent}.team-conversation-actions svg{width:20px;height:20px}.team-preview.caller{background:var(--lp-accent-soft);border-radius:12px;padding:.75rem;margin-left:2rem}#team-conversation{max-height:460px;overflow:auto}.team-panel summary{cursor:pointer}#team-progress:empty{display:none}@media(max-width:640px){.team-conversation-actions button{flex-basis:44px;width:44px;min-width:44px;min-height:44px;height:44px}.team-step>summary{flex-direction:column;gap:.2rem}}

.team-step>summary::before{content:"▸"}.team-step[open]>summary::before{content:"▾"}

.team-more { margin-top:.75rem; }
.team-more summary { width:max-content; min-height:44px; display:flex; align-items:center; color:var(--lp-muted); }
.team-more button { margin-bottom:.5rem; }
.team-workflow-selector { margin-top:.75rem; }
.team-visually-hidden { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
[data-team-page="rehearse"] .team-head { margin-bottom:.65rem; }
[data-team-page="rehearse"] .team-head p { display:none; }
[data-team-page="rehearse"] .team-message:empty { display:none; }
.team-rehearsal { display:flex; flex-direction:column; height:calc(100dvh - 112px); min-height:420px; padding:.85rem; }
.team-conversation-toolbar { display:grid; grid-template-columns:minmax(140px,1.4fr) repeat(2,minmax(110px,1fr)) auto; gap:.65rem; align-items:end; }
.team-conversation-toolbar .team-field { font-size:.8rem; gap:.15rem; }
.team-conversation-toolbar .team-field select { padding:.35rem .6rem; }
.team-conversation-toolbar .team-conversation-actions { margin:0; }
.team-rehearsal-note { font-size:.78rem; padding:.3rem 0; }
.team-rehearsal #team-conversation { flex:1; min-height:120px; max-height:none; padding:.4rem .35rem; overscroll-behavior:contain; }
.team-rehearsal .team-preview { margin:.4rem 0; }
.team-rehearsal .team-preview.caller { margin-left:15%; }
.team-composer { position:relative; padding-top:.65rem; border-top:1px solid var(--lp-line); }
.team-composer .team-field textarea { height:clamp(112px,18dvh,200px); min-height:96px; max-height:35dvh; padding-right:64px; resize:vertical; }
.team-composer button { position:absolute; right:10px; bottom:10px; width:44px; height:44px; min-height:44px; padding:10px; border-radius:50%; }
.team-composer button svg { width:22px; height:22px; display:block; }
.team-checks { padding:.55rem .85rem; }
.team-checks>summary { min-height:44px; align-content:center; }
.team-checks>summary .team-muted { float:right; font-size:.85rem; }
@media(max-width:640px) {
  .team-rehearsal { height:calc(100dvh - 156px); min-height:420px; padding:.65rem; }
  .team-conversation-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.4rem; }
  .team-conversation-toolbar .team-field:first-child { grid-column:1; }
  .team-conversation-toolbar .team-conversation-actions { justify-content:flex-end; }
  .team-checks>summary .team-muted { float:none; display:block; }
  .team-composer .team-field textarea { height:112px; min-height:96px; }
}
.team-transfer-dialog { max-width:min(440px,calc(100vw - 2rem)); border:1px solid var(--lp-line); border-radius:var(--lp-radius); background:var(--lp-surface-strong); color:var(--lp-ink); padding:1.2rem; }
.team-transfer-dialog::backdrop { background:rgba(16,36,28,.25); }
.team-transfer-dialog h2 { font-size:1.1rem; margin-top:0; }
.team-transfer-dialog button { border:1px solid var(--lp-line); border-radius:10px; padding:.5rem .85rem; cursor:pointer; }

#preview-role-summary:empty { display:none; }
.team-conversation-status { margin:.6rem 0; padding:.65rem .8rem; color:var(--lp-ink-soft); background:var(--lp-accent-soft); border-radius:10px; }
.team-conversation-status.error { color:var(--lp-attention); background:var(--lp-surface-strong); }
