*{box-sizing:border-box}body.login-page{margin:0;min-height:100vh;display:grid;place-items:center;background:#f3f6fa;color:#1e293b;font:15px/1.6 system-ui,-apple-system,sans-serif;padding:24px}.login-card{width:min(100%,460px);background:white;border:1px solid #dce3ee;border-radius:18px;padding:36px;box-shadow:0 20px 60px #14284a0c}.eyebrow{font-size:11px;letter-spacing:.16em;color:#596e91;font-weight:700}.login-card h1{font-size:25px;line-height:1.4}.login-card label,.team-form label{display:grid;gap:7px;margin:15px 0}.login-card input,.team-form input,.team-form select,.team-form textarea{width:100%;padding:11px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;background:white;color:#1e293b}.login-card button,.team-primary{background:#3456d1;color:white;border:0;padding:12px 20px;border-radius:8px;cursor:pointer;font:inherit}.login-card button{width:100%;margin-top:15px}button:disabled{opacity:.5;cursor:not-allowed}.muted{color:#64748b;font-size:13px}.login-card [hidden],.team-form [hidden]{display:none}.team-layout{display:grid;grid-template-columns:minmax(280px,1fr) minmax(300px,1.8fr);gap:24px}.team-card{background:white;border:1px solid #dce3ec;border-radius:12px;padding:22px;margin-bottom:18px}.team-card h2{margin:0 0 12px;font-size:18px}.team-form{max-width:620px}.team-form .team-check{display:flex;align-items:center;gap:8px}.team-check input{width:auto}.team-shops{max-height:240px;overflow:auto;border:1px solid #dce3ec;padding:6px 12px;border-radius:8px}.team-shops label{margin:7px 0}.team-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.team-row.between{justify-content:space-between}.team-pill{font-size:12px;border-radius:20px;padding:5px 10px;background:#edf2fa;white-space:nowrap}.team-badge-ok{background:#e2f4e9;color:#16643e}.team-badge-warn{background:#fff0d5;color:#915908}.team-table-wrap{overflow:auto}.team-table{width:100%;border-collapse:collapse;font-size:13px}.team-table th,.team-table td{text-align:left;vertical-align:top;padding:11px;border-bottom:1px solid #e7edf3}.team-table th{background:#f8fafd;font-weight:600}.team-error,#team-feedback,#feedback{color:#b44225;white-space:pre-wrap;overflow-wrap:anywhere}.team-empty{padding:36px;text-align:center;color:#64748b}.team-code{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 ui-monospace,monospace;background:#f6f8fb;padding:14px;border-radius:8px;max-height:360px;overflow:auto}.team-help{border-left:3px solid #7490e0;padding:12px 16px;background:#f4f7ff;color:#42536d}.team-list{list-style:none;padding:0}.team-list li{padding:9px 0;border-bottom:1px solid #e5ebf2}.team-invite{width:100%;padding:10px;background:#f6f8ff;border:1px solid #ccd6f1}.team-action{margin-top:10px}.team-form textarea{min-height:90px}.team-heading{margin:0 0 8px;scroll-margin-top:72px}.team-evidence{font-size:12px;color:#64748b;overflow-wrap:anywhere}.team-progress{font-size:13px;color:#596e91}.team-steps{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;margin:18px 0}.team-steps span{padding:8px 12px;border-radius:6px;background:#eef2f8}[data-role=viewer] button[data-action],[data-role=viewer] #run-clearance-sim{display:none}@media(max-width:850px){.team-layout{grid-template-columns:1fr}.team-card{padding:16px}.login-card{padding:24px}}

/* Shared compact ERP forms, including login and activation. */
body.login-page{background:#f2f5fa;color:#25344b;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}.login-card{border-radius:6px;border-color:#dfe5ed;padding:32px;box-shadow:0 8px 24px #24365408}.login-card h1{font-size:23px;margin-bottom:8px}.login-card #intro{font-size:13px;color:#64748b;margin-bottom:24px}.login-card input{border-radius:4px;font-size:14px}.login-card button{border-radius:4px;background:#246ddd;font-size:14px}.login-card label{font-size:13px;color:#33445b}.login-card .muted{font-size:12px;line-height:1.8}.login-card input:focus-visible{outline:2px solid #4c89e5;outline-offset:1px}

#cohort-quality-panel .team-table > tbody > tr > td { vertical-align: top; }

.team-facts{table-layout:fixed;min-width:700px;width:100%}.team-facts th:nth-child(1){width:30%}.team-facts th:nth-child(2){width:22%}.team-facts th:nth-child(3){width:16%}.team-facts th:nth-child(4){width:32%}.team-facts td{vertical-align:top;overflow-wrap:anywhere}.team-facts .team-fact-value{font-size:21px;white-space:normal;word-break:normal}.team-facts .team-fact-value small{white-space:nowrap}#diagnosis-actions article{padding:18px}#diagnosis-actions summary{cursor:pointer;color:#246ddd;font-weight:600}.team-pill.red{color:#9f2424;background:#fde8e8}.team-pill.amber{color:#86560b;background:#fff4d9}#fba-team-tasks{scroll-margin-top:65px}#fba-team-task-form{max-width:680px}

.team-metrics{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}

.team-visual-figure{margin:12px 0;padding:12px;border:1px solid #e1e7ef;border-radius:4px;width:fit-content;max-width:100%;box-sizing:border-box}.team-image-preview{display:block;max-width:100%;max-height:360px;width:360px;height:360px;object-fit:contain}.team-asset-preview{display:block;max-width:100%;max-height:440px;width:440px;height:440px;object-fit:contain}.team-visual-figure figcaption{margin-top:8px;overflow-wrap:anywhere}.team-visual-prompt{white-space:pre-wrap;overflow-wrap:anywhere}
