/* Collaborative training command UI, deliberately separate from the offline-only trainer. */
body{margin:0;background:#eef2f7;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
#shared-login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(138deg,#ecf1f8,#f9fbff)}
#shared-login[hidden]{display:none}
.shared-gate{max-width:530px;width:100%;background:white;border:1px solid #dce4ef;box-shadow:0 15px 48px #34495e12;border-radius:16px;padding:27px}
.shared-gate h1{font-size:27px;margin:2px 0 10px;color:#233d57;line-height:1.16}
.shared-gate p{font-size:13px;color:#576f87;line-height:1.6}
.shared-logo{width:52px;height:52px;background:#c63a44;color:white;font-weight:900;display:grid;place-items:center;border-radius:11px;margin-bottom:14px;font-size:18px}
.shared-warning{border:1px solid #ecc3a9;background:#fff8ec;color:#815229;padding:10px 12px;border-radius:7px;font-size:12px;line-height:1.5;margin:12px 0}
.shared-flex{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.shared-flex-grow{flex:1}
.shared-field{display:flex;flex-direction:column;gap:6px;margin:11px 0;color:#3d5571;font-size:12px;font-weight:720}
.shared-field input,.shared-field select,.shared-field textarea{width:100%;min-width:0;border:1px solid #d0dbe7;background:#fff;border-radius:7px;min-height:39px;box-sizing:border-box;padding:9px 10px;color:#233e58;font:inherit;font-weight:450}
.shared-field textarea{min-height:80px;resize:vertical}
.shared-btn{border:1px solid #cfdbe9;background:#fff;border-radius:7px;padding:10px 13px;min-height:38px;color:#365570;cursor:pointer;font:700 12px system-ui;white-space:normal}.shared-btn:hover{background:#f1f6fa}.shared-btn:disabled{opacity:.45;cursor:not-allowed}
.shared-btn-primary{background:#245987;color:#fff;border-color:#245987}.shared-btn-primary:hover{background:#1c466a}.shared-btn-danger{background:#fff1f0;color:#a83a3a;border-color:#ebc9c9}
.shared-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:9px;background:#16334e;color:#e3edf8;padding:10px 18px;border-bottom:3px solid #d7e4ef;position:relative;z-index:22;min-height:48px}
.shared-toolbar select{max-width:270px;background:#244d70;color:white;border:1px solid #49708f;border-radius:6px;padding:7px 11px;min-height:34px;font-size:12px}
.shared-toolbar .shared-btn{border-color:#4e6a86;background:#244761;color:white;padding:7px 10px;min-height:33px;font-size:11px}
.shared-toolbar .shared-btn:hover{background:#365c7a}.shared-toolbar strong{font-size:12px}.shared-tag{border-radius:20px;padding:6px 10px;background:#1f4f70;font-weight:750;font-size:10px;color:#f2f7fc;letter-spacing:.2px}
.shared-tag-good{background:#175e4b}.shared-tag-warn{background:#986537}.shared-tag-bad{background:#9c3b42}
.shared-toolbar .shared-role{background:#46627e}.shared-counter{font-size:11px;color:#c8e0ed}
.shared-mini{font-size:10px;opacity:.85}.shared-spacer{flex:1}
#shared-drawer[hidden]{display:none}
#shared-drawer{position:fixed;inset:0;background:#0a2035a6;z-index:100;display:flex;justify-content:flex-end}
.shared-drawer-body{width:min(830px,100%);height:100vh;overflow-y:auto;box-sizing:border-box;background:#f6f8fc;padding:18px 20px 60px;color:#2b465d;box-shadow:-15px 0 40px #112b392e}
.shared-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:15px}
.shared-drawer-head h2{margin:3px 0;font-size:21px;color:#1e3851}.shared-drawer-head p{font-size:12px;color:#6e8090;margin:2px 0}
.shared-subtabs{display:flex;gap:6px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid #d8e3ed}
.shared-subtabs button{font:700 12px system-ui;background:white;padding:9px 13px;border:1px solid #d4e0eb;border-radius:7px;color:#45617b;cursor:pointer}
.shared-subtabs button.selected{background:#244e72;color:white}
.shared-panel{padding-top:15px}.shared-cards{display:grid;gap:12px}
.shared-card{border:1px solid #d9e3ed;background:white;border-radius:10px;padding:15px;min-width:0}.shared-card h3{color:#2c4965;margin:0 0 8px;font-size:16px}.shared-card p{font-size:12px;line-height:1.5;color:#687b8e;margin:5px 0}
.shared-2col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shared-3col{display:grid;grid-template-columns:1fr 1fr 1fr;gap:11px}
.shared-list{display:flex;flex-direction:column;gap:8px;margin:13px 0}
.shared-list-item{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;border:1px solid #dde6f0;background:#f9fbfd;border-radius:7px;padding:10px 12px;min-width:0}
.shared-list-item strong{display:block;font-size:13px;color:#32506b}.shared-list-item small{font-size:10px;color:#6b8096;display:block;margin-top:4px;word-break:break-word}.shared-list-item p{font-size:12px;white-space:pre-wrap;word-break:break-word}
.shared-pill{display:inline-flex;border-radius:15px;padding:4px 8px;background:#e8edf3;color:#527188;font-size:10px;font-weight:760}
.shared-pill.online{color:#16674e;background:#e4f6ef}.shared-pill.urgent{color:#a62f3b;background:#fff0f0}
.shared-copy{font-size:12px;color:#5e7188;line-height:1.55}
.shared-timeline{width:100%;accent-color:#235d85}.shared-timeline-info{margin:12px 0;padding:11px 13px;border-radius:7px;background:#eaf0f7;color:#2d5472;font-size:12px}
#shared-toast{position:fixed;right:16px;bottom:18px;max-width:min(440px,calc(100vw - 32px));background:#183e5f;border-radius:8px;color:white;padding:12px 15px;font-size:13px;z-index:200;box-shadow:0 8px 24px #1237;display:none}
#shared-toast.visible{display:block}
.shared-muted{color:#7f91a3;font-size:12px}
.shared-critical{background:#fff1ed;border-color:#eeb9ae}
.shared-replay-units{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:7px}.shared-replay-units>div{border:1px solid #d8e4ef;background:#f4f8fc;padding:9px;border-radius:7px;font-size:12px}
@media(max-width:720px){.shared-toolbar{padding:8px 10px;gap:6px}.shared-toolbar select{max-width:45vw}.shared-toolbar .shared-btn{font-size:10px;padding:7px}.shared-counter{display:none}.shared-drawer-body{padding:13px 12px 50px}.shared-2col,.shared-3col{grid-template-columns:1fr}.shared-gate{padding:18px}.shared-subtabs button{font-size:11px;padding:8px 9px}}
@media print{.shared-toolbar,#shared-drawer,#shared-toast{display:none!important}}
.shared-pill[hidden]{display:none!important}
@media(min-width:900px){.shared-toolbar{flex-wrap:nowrap;gap:7px}}
@media(min-width:900px) and (max-width:1580px){.shared-counter,.shared-toolbar #shared-seq{display:none}}
