/* All styles scoped to CoachOS Team Hub; high-contrast light controls on navy canvas */
#coachos-team-hub{--cosh-bg:#101d32;--cosh-card:#1a2b45;--cosh-border:#496482;--cosh-ink:#f8fafc;--cosh-muted:#c3d2e4;--cosh-accent:#e9c958;color:var(--cosh-ink);font:15px/1.5 system-ui,-apple-system,Segoe UI,Arial,sans-serif}
#coachos-team-hub *{box-sizing:border-box}
#coachos-team-hub .cosh-app{background:var(--cosh-bg);border:1px solid #304761;border-radius:16px;overflow:hidden;min-height:540px}
#coachos-team-hub .cosh-header{display:flex;align-items:center;flex-wrap:wrap;gap:18px;justify-content:space-between;padding:20px 25px;background:#16263d;border-bottom:1px solid var(--cosh-border)}
#coachos-team-hub .cosh-brand{color:var(--cosh-accent);font-size:15px;letter-spacing:.08em;display:block}
#coachos-team-hub .cosh-muted{font-size:12px;color:var(--cosh-muted);display:block;line-height:1.5}
#coachos-team-hub .cosh-tabs{display:flex;flex-wrap:wrap;gap:7px}
#coachos-team-hub .cosh-tab{color:#e2eaf5;background:#263b57;border:1px solid #4e6682;border-radius:9px;padding:10px 13px;cursor:pointer;font-weight:600;min-height:41px}
#coachos-team-hub .cosh-tab.active{color:#1d2939;background:var(--cosh-accent);border-color:var(--cosh-accent)}
#coachos-team-hub .cosh-body{padding:23px 25px 36px}
#coachos-team-hub h2{color:#fff;margin:0;font-size:21px;line-height:1.3}
#coachos-team-hub h3{color:#fff;margin:0;font-size:16px}
#coachos-team-hub p{color:#e4ebf5;margin:.5em 0}
#coachos-team-hub .cosh-section-title{margin-bottom:18px}
#coachos-team-hub .cosh-btn{background:#2e496b;border:1px solid #7186a1;color:#fff;padding:9px 12px;border-radius:8px;cursor:pointer;line-height:1.35;font-weight:600;min-height:40px}
#coachos-team-hub .cosh-primary{background:var(--cosh-accent);color:#17243a;border-color:#fae294}
#coachos-team-hub .cosh-outline{background:#243952;color:#f5f8fb;border:1px solid #6381a3}
#coachos-team-hub .cosh-danger{background:#713641;border-color:#9e6470}
#coachos-team-hub .cosh-btn:disabled{opacity:.6;cursor:not-allowed}
#coachos-team-hub .cosh-btn:hover,#coachos-team-hub .cosh-tab:hover{filter:brightness(1.16)}
#coachos-team-hub button:focus-visible,#coachos-team-hub input:focus-visible,#coachos-team-hub textarea:focus-visible,#coachos-team-hub select:focus-visible{outline:3px solid #f7d86c;outline-offset:2px}
#coachos-team-hub .cosh-alert{padding:10px 14px;border-radius:8px;margin-bottom:16px;color:#fff}
#coachos-team-hub .cosh-alert.good{background:#1b5c4d;border:1px solid #4c9b82}
#coachos-team-hub .cosh-alert.bad{background:#723444;border:1px solid #bc7388}
#coachos-team-hub .cosh-chat-layout,#coachos-team-hub .cosh-film-layout{display:grid;grid-template-columns:minmax(160px,230px) minmax(0,1fr);gap:17px;margin-top:17px}
#coachos-team-hub .cosh-channel-list,#coachos-team-hub .cosh-film-list{display:flex;flex-direction:column;gap:8px;max-height:680px;overflow-y:auto;padding:3px}
#coachos-team-hub .cosh-channel{background:#223751;border:1px solid #516e8d;border-radius:8px;padding:11px 12px;color:#f5f8fd;text-align:left;cursor:pointer;min-height:44px}
#coachos-team-hub .cosh-channel.active{border:2px solid #f5d36e;background:#344b63;font-weight:700}
#coachos-team-hub .cosh-conversation,#coachos-team-hub .cosh-film-main{min-width:0;background:var(--cosh-card);border:1px solid #496080;border-radius:12px;padding:17px}
#coachos-team-hub .cosh-conversation-head{display:flex;flex-direction:column;border-bottom:1px solid #496080;padding-bottom:12px;margin-bottom:12px}
#coachos-team-hub .cosh-feed{max-height:390px;min-height:170px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}
#coachos-team-hub .cosh-message{padding:11px 13px;border:1px solid #506987;background:#223851;border-radius:10px;overflow-wrap:anywhere}
#coachos-team-hub .cosh-message.removed{opacity:.7}
#coachos-team-hub .cosh-message-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#coachos-team-hub .cosh-message p{white-space:pre-wrap;margin:6px 0}
#coachos-team-hub .cosh-message-opts{display:flex;gap:14px;justify-content:flex-end}
#coachos-team-hub .cosh-link{padding:3px;background:transparent;border:0;color:#ffe087;text-decoration:underline;cursor:pointer;text-align:left;font:inherit}
#coachos-team-hub .cosh-send{display:flex;gap:10px;align-items:flex-end;border-top:1px solid #4a627e;padding-top:14px;margin-top:12px}
#coachos-team-hub .cosh-send textarea{flex:1;min-width:0;resize:vertical}
#coachos-team-hub .cosh-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0 18px}
#coachos-team-hub .cosh-card{background:var(--cosh-card);border:1px solid #4c6380;border-radius:10px;padding:16px;margin-bottom:13px}
#coachos-team-hub .cosh-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
#coachos-team-hub .cosh-rsvp-person{border-top:1px solid #435872;margin-top:12px;padding-top:12px}
#coachos-team-hub .cosh-choice-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
#coachos-team-hub .cosh-rsvp-list{background:#263c58;padding:12px;border-radius:6px}
#coachos-team-hub .cosh-rsvp-list>div{padding:4px 0;border-bottom:1px solid #4c6180}
#coachos-team-hub .cosh-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:13px;margin-top:18px}
#coachos-team-hub .cosh-checkbox{display:flex;gap:8px;align-items:center;color:#f4f8fe}
#coachos-team-hub input:not([type=checkbox]),#coachos-team-hub select,#coachos-team-hub textarea{color:#102239!important;background:#f7fbff!important;border:2px solid #9eb3c9!important;border-radius:7px;padding:10px 11px;font:inherit;width:100%}
#coachos-team-hub .cosh-checkbox input{width:18px;height:18px}
#coachos-team-hub select option{background:#fff;color:#15243b}
#coachos-team-hub input::placeholder,#coachos-team-hub textarea::placeholder{color:#596d86}
#coachos-team-hub .cosh-field{display:block;color:#fff;font-weight:600;margin:8px 0}
#coachos-team-hub .cosh-field>span{display:block;margin:0 0 5px}
#coachos-team-hub .cosh-video{display:block;width:100%;max-height:440px;background:#060b16;border-radius:9px}
#coachos-team-hub .cosh-clip{display:flex;align-items:center;gap:11px;flex-wrap:wrap;padding:10px;margin-top:8px;border:1px solid #4a607d;border-radius:8px}
.cosh-overlay{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;background:rgba(3,10,21,.82);padding:16px}
.cosh-dialog{width:min(570px,100%);max-height:90vh;overflow-y:auto;background:#172944;border:2px solid #6d87a3;border-radius:14px;padding:23px;color:#fff;box-shadow:0 20px 70px #0007;font:15px/1.5 system-ui,Arial,sans-serif}
.cosh-dialog h2{color:#fff;margin:0;font-size:22px}
.cosh-dialog .cosh-stack{display:flex;flex-direction:column;gap:7px;margin-top:14px}
.cosh-dialog .cosh-field{display:block;color:#fff;font-weight:600}
.cosh-dialog .cosh-field span{display:block;margin:0 0 5px}
.cosh-dialog input,.cosh-dialog select,.cosh-dialog textarea{display:block;width:100%;background:#fff!important;color:#13253b!important;border:2px solid #a4b6ca!important;border-radius:7px;padding:9px 10px;font:inherit}
.cosh-dialog .cosh-btn{background:#385572;color:#fff;border:1px solid #8ca3be;border-radius:8px;padding:10px 14px;cursor:pointer;font:600 14px system-ui}
.cosh-dialog .cosh-primary{background:#e9c958;color:#15233a}
.cosh-dialog .cosh-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.cosh-dialog .cosh-muted{color:#c9d9eb}
.coachos-invite{color:#152438;background:#fff;border:1px solid #9db1c7;padding:20px;border-radius:10px;margin:12px 0}
.coachos-invite label{display:flex;flex-direction:column;margin:10px 0;gap:5px}
.coachos-invite input{padding:10px;border:1px solid #8899ab}
@media(max-width:750px){#coachos-team-hub .cosh-chat-layout,#coachos-team-hub .cosh-film-layout{grid-template-columns:1fr}#coachos-team-hub .cosh-channel-list,#coachos-team-hub .cosh-film-list{flex-direction:row;overflow-x:auto;max-height:120px}#coachos-team-hub .cosh-channel{min-width:125px;flex:0 0 auto}#coachos-team-hub .cosh-header{padding:16px}#coachos-team-hub .cosh-body{padding:15px}#coachos-team-hub .cosh-send{flex-direction:column;align-items:stretch}}
/* v1.3.2: checkbox rows inside dialogs (coach team access) */
.cosh-dialog .cosh-checkbox{display:flex;align-items:center;gap:10px;margin:6px 0;color:#fff;font-weight:500}
.cosh-dialog .cosh-checkbox input[type=checkbox]{display:inline-block;width:18px;height:18px;flex:0 0 18px;padding:0;margin:0;border-radius:3px}
.cosh-dialog .cosh-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:10px}
.cosh-dialog .cosh-card .cosh-btn{margin-top:6px}
/* v1.3.3: audit log details */
.cosh-dialog .cosh-card code{display:block;white-space:pre-wrap;word-break:break-word;font-size:12px;color:#cfe0f5;max-width:100%}
