*{box-sizing:border-box}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.46;cursor:not-allowed}a{color:inherit;text-decoration:none}.team-topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px max(24px,calc((100vw - 1210px)/2));border-bottom:1px solid #ffffff13;background:#0c1119c9;position:relative}.team-brand{font-weight:900;letter-spacing:.1em;font-size:1.02rem}.brand-mark{display:inline-flex;color:#e3bc7d;font-size:1.45rem;margin-right:11px}.brand-sub{font-size:.65rem;font-weight:600;letter-spacing:.12em;color:#8c9caa;margin-left:8px}.team-topbar nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.team-topbar nav a{font-size:.85rem;padding:8px 13px;color:#9eafc1;border-radius:8px}.team-topbar nav a:hover,.team-topbar nav .team-current{background:#212e3b;color:#fff}.team-page{width:min(1210px,calc(100% - 38px));margin:0 auto}.team-hero{padding:50px 6px 36px}.eyebrow{font-size:.66rem;font-weight:800;letter-spacing:.21em;color:#ddb98c;text-transform:uppercase}.preview-tag{font-size:.62rem;letter-spacing:.07em;padding:4px 8px;border:1px solid #997a53;border-radius:20px;margin-left:9px;color:#e8c891}.team-hero h1{margin:17px 0}.team-hero p{color:#a5b4c5;max-width:680px;line-height:1.7;font-size:1.03rem}.team-hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.team-hero-tags span,.hint-tag{color:#a7b5c4;background:#ffffff09;border:1px solid #ffffff1a;border-radius:999px;padding:7px 11px;font-size:.72rem}.surface{border:1px solid #c9dff220;border-radius:16px;background:linear-gradient(150deg,#17202bf0,#111922ec);box-shadow:0 15px 50px #00000018;margin-bottom:20px;padding:24px}.team-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px}.team-section-head .eyebrow{margin-bottom:7px}.archetype-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.archetype{padding:18px;border:1px solid #52627160;text-align:left;border-radius:12px;background:#101a24;color:#e9edf4;display:flex;gap:7px;flex-direction:column;align-items:flex-start;transition:background .15s,border-color .15s}.archetype:hover{border-color:#c0a784}.archetype[aria-pressed=true]{border-color:#d9bb83;background:linear-gradient(120deg,#3c3025,#182531);box-shadow:0 0 0 1px #d9bb8330 inset}.archetype-icon{font-size:1.7rem;color:#e8c792;line-height:1}.archetype strong{font-size:1.1rem}.archetype small{font-size:.81rem;color:#9dadc1;line-height:1.5}.team-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.team-member{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #47556980;border-radius:12px;background:#0c151e}.team-member img{width:64px;height:64px;object-fit:cover;border-radius:11px;border:1px solid #ffffff25;background:#162735}.member-data{min-width:0;flex:1}.team-member small,.team-member label{display:block;font-size:.69rem;color:#a9b4c7;margin-bottom:6px;text-transform:uppercase;letter-spacing:.08em}.team-member input{width:100%;font-size:.93rem;background:#0b1119;color:#f2f4f8;border:1px solid #52667c;border-radius:7px;padding:8px;outline-offset:2px}.team-setup-foot,.team-edit-actions,.team-run-controls,.team-game-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.team-setup-foot{justify-content:space-between}.team-setup-foot label{display:flex;gap:9px;align-items:center;color:#a9bbcc;font-size:.8rem}select,.team-editor input,.team-editor textarea{color:#e5f0ff;background:#0e1720;border:1px solid #465769;border-radius:7px;padding:9px 10px;min-width:0;outline-offset:2px}.team-quiet,.team-import{border:1px solid #556a7b;border-radius:9px;padding:10px 14px;color:#d5e3ef;background:#192635;display:inline-flex;align-items:center;justify-content:center;gap:7px}.team-quiet:hover,.team-import:hover{border-color:#c9b184;background:#283544}.team-note{color:#a1b0bf;line-height:1.6;font-size:.84rem;margin-bottom:20px}.team-note strong{color:#eed2a9}.team-edit-head,.team-edit-row{display:grid;grid-template-columns:54px minmax(100px,1.1fr) minmax(120px,1.1fr) minmax(140px,2fr) 74px;gap:9px;align-items:center}.team-edit-head{font-size:.66rem;letter-spacing:.1em;font-weight:800;color:#92a5b7;padding:0 4px 10px}.team-editor-rows{display:flex;flex-direction:column;gap:8px}.team-edit-row{background:#0d1620;padding:8px;border-radius:10px;border:1px solid #ffffff13}.step-index{color:#e8c58a;font-size:.83rem;font-weight:800;text-align:center}.team-edit-row select,.team-edit-row input{width:100%;font-size:.81rem}.step-controls{display:flex;justify-content:flex-end;gap:3px}.step-controls button{width:24px;height:27px;background:#1f3040;border:1px solid #4b6172;border-radius:5px;color:#d3deea}.step-controls button:hover{background:#3b4d5d}.step-controls .step-delete{color:#f1aaa6}.team-edit-actions{margin-top:16px}.team-save-state{font-size:.75rem;color:#a0baa5;margin-left:auto}.team-play-actions{display:flex;gap:6px}.mode-control{border:1px solid #4c6071;color:#b6c8dc;background:#0b1620;border-radius:8px;padding:9px 14px}.mode-control[aria-pressed=true]{background:#dac394;color:#1e2831;border-color:#e8d19f;font-weight:800}.team-training-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,1fr);gap:18px}.team-game-toolbar{font-size:.81rem;color:#b1c2d2;padding:0 0 13px}.team-game-toolbar label{display:flex;gap:8px;align-items:center}.team-game-toolbar input{accent-color:#e0b875}.team-arena{isolation:isolate;position:relative;overflow:hidden;outline-offset:5px;user-select:none;touch-action:manipulation;min-height:365px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:14px;border:1px solid #caad7a67;background:radial-gradient(circle at 50% 48%,#183543 0%,#0d1d2d 60%,#0a1721 100%);text-align:center;padding:18px 22px;cursor:crosshair}.team-arena.playing{border-color:#e9ca88;box-shadow:0 0 35px #e9c8821c inset}.team-arena.wrong{animation:wrongflash .3s ease}@keyframes wrongflash{0%{box-shadow:0 0 0 150px #e055552a inset}100%{box-shadow:none}}.arena-ambient{position:absolute;z-index:-1;inset:25px;border:1px solid #9ebdbe16;border-radius:50%;transform:scale(1.35)}.arena-top{position:absolute;top:20px;left:23px;right:23px;display:flex;justify-content:space-between;font-size:.66rem;letter-spacing:.17em;color:#a3b5c8;font-weight:800}.team-active-card{display:flex;align-items:center;gap:12px;margin:30px 0 23px;background:#152c3dcf;border:1px solid #c4ddcc38;padding:10px 18px;border-radius:50px;text-align:left}.team-active-card .team-active-icon{font-size:1.6rem;color:#e1c58e}.team-active-card small{display:block;color:#93aabd;font-size:.64rem;letter-spacing:.1em}.team-active-card strong{display:block;font-size:.9rem}.team-next-label{font-size:.66rem;color:#d7c193;letter-spacing:.2em;font-weight:800}.team-action-icon{font-size:2.7rem;margin:12px 0 5px;color:#f2d3a0}.team-arena h3{font-size:clamp(1.45rem,3vw,2.12rem);line-height:1.15}.team-arena p{font-size:.81rem;color:#aac0cc;max-width:400px;min-height:2.3em;line-height:1.55;margin:11px 0}.team-key-prompt{min-width:100px;background:#d3b783;border:1px solid #ebd39f;color:#152331;border-radius:9px;padding:9px 16px;font-size:.97rem;font-weight:900;letter-spacing:.06em}.team-meter{height:6px;background:#3f5160;border-radius:10px;overflow:hidden;width:100%;margin:25px 0 14px}.team-meter>div{height:100%;width:0;background:linear-gradient(90deg,#82bed0,#e3c58a);transition:width .16s}.team-arena-foot{display:flex;justify-content:space-between;gap:12px;width:100%;font-variant-numeric:tabular-nums;font-size:.74rem;color:#bfd0dc}.team-run-controls{margin-top:14px}.team-primary{background:#ddc18d;color:#1c2833;border:none;border-radius:9px;padding:12px 20px;font-weight:900}.team-primary:hover{background:#f2d8a3}.team-result{font-size:.81rem;min-height:2.5em;color:#a8bdca;margin:12px 0}.team-key-reference{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:.7rem;color:#91aabb;line-height:2.3}.team-key-reference span{display:flex;align-items:center;gap:3px}.team-key-reference kbd{background:#243444;color:#e4edfa;padding:3px 5px;border:1px solid #5a6e7f;border-radius:5px;font:700 .64rem ui-monospace,monospace}.team-track{border:1px solid #33485c;border-radius:12px;background:#0b141e;overflow:hidden}.team-track-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:16px;border-bottom:1px solid #28394b}.team-track-heading span{color:#92a6b9;font-size:.67rem;letter-spacing:.08em}.team-track ol{list-style:none;margin:0;padding:8px;max-height:580px;overflow:auto}.team-track li{display:flex;gap:11px;align-items:center;border:1px solid transparent;border-radius:8px;padding:11px 8px;color:#a5b5c3}.team-track li.done{opacity:.45}.team-track li.current{border-color:#c8ad7e;background:#302d2c;color:#fff}.team-track li .track-num{font-size:.68rem;width:25px;font-weight:800;color:#d8c08e}.team-track li .track-avatar{width:34px;height:34px;border:1px solid #566c7b;background:#263746;border-radius:8px;object-fit:cover}.team-track li .track-body{flex:1;min-width:0}.team-track li .track-body strong{display:block;font-size:.79rem}.team-track li .track-body small{display:block;font-size:.67rem;color:#8eacbf;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-track li .track-key{font:800 .72rem ui-monospace,monospace;color:#e8cc91}.team-disclaimer{font-size:.76rem;color:#98acb9;line-height:1.65;margin:12px 5px 22px}.team-footer{padding:20px 4px 38px;border-top:1px solid #ffffff17;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:.74rem;color:#91a3b6}.team-footer a:hover{color:#e8ca91}@media(max-width:890px){.team-training-grid{grid-template-columns:1fr}.team-roster{grid-template-columns:1fr}.team-member img{width:58px;height:58px}.team-edit-scroll{overflow:auto}.team-edit-head,.team-edit-row{min-width:660px}}@media(max-width:620px){.team-topbar{padding:14px 18px;align-items:flex-start;flex-direction:column;gap:10px}.team-brand{font-size:.89rem}.team-topbar nav{gap:3px}.team-page{width:calc(100% - 24px)}.team-hero{padding:35px 5px 22px}.surface{padding:16px}.archetype-options{grid-template-columns:1fr}.team-section-head{align-items:flex-start;flex-wrap:wrap}.team-arena{min-height:345px}.team-key-reference{font-size:.66rem}.team-hero-tags{gap:5px}}
/* v2: source-backed rotation library and less cluttered out-of-arena team HUD */
.team-library{margin:18px 0 7px;border:1px solid #51657690;background:#0d1721;border-radius:12px;padding:16px}
.team-library-top{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}
.team-library-picker{display:flex;flex:1;min-width:245px;flex-direction:column;gap:7px;color:#b8c8d6;font-size:.74rem;font-weight:750;letter-spacing:.05em;text-transform:uppercase}
.team-library-picker select{width:100%;text-transform:none;font-size:.94rem;color:#e9f2fa}
.team-library-information{display:flex;align-items:center;flex-wrap:wrap;gap:9px;color:#a5b9ca;font-size:.72rem;margin-top:14px;line-height:1.5}
.guide-kind{padding:4px 7px;font-size:.61rem;border-radius:5px;background:#4e412e;color:#f2d49c;font-weight:900;letter-spacing:.05em}
.team-library-information a{color:#eed19e;text-decoration:underline;text-underline-offset:3px}
.team-library-information p{flex-basis:100%;color:#9fb1be;max-width:850px}
.team-create-button{background:#d4b77c;color:#1c2937;border-color:#d4b77c;font-weight:850}
.team-create-button:hover{color:#fff}
.team-editor-my{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 16px}
.team-editor-my label{display:flex;flex-direction:column;gap:7px;font-size:.74rem;color:#9fb3c2;min-width:220px;flex:1}
.team-editor-my input{width:100%;max-width:470px;color:#f6e6d0}
#team-editor-panel[hidden]{display:none!important}
.team-hud{margin:0 0 12px}
.team-hud-caption{display:flex;justify-content:space-between;align-items:center;color:#d3bd91;font-weight:850;font-size:.65rem;letter-spacing:.14em;margin:0 2px 8px}
.team-hud-caption span{color:#8195a6;font-size:.58rem;font-weight:600}
.team-hud-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.team-hud-slot{display:flex;align-items:center;gap:8px;min-width:0;min-height:67px;background:#111c28;border:1px solid #405567;border-radius:10px;padding:9px;transition:border-color .14s,background .14s}
.team-hud-slot.on-field{border-color:#f1d49e;background:linear-gradient(125deg,#483b2d,#1a2d3c);box-shadow:inset 0 0 0 1px #f1d49e35}
.team-hud-slot .hud-slot-number{flex:0 0 17px;color:#9ab0bd;font-weight:900;font-size:.76rem;text-align:center}
.team-hud-slot.on-field .hud-slot-number{color:#f0cd8f}
.team-hud-slot img{width:39px;height:45px;object-fit:cover;border-radius:7px;background:#273849;flex-shrink:0}
.team-hud-slot .hud-slot-copy{min-width:0;flex:1;display:block}
.team-hud-slot .hud-slot-copy small{display:block;color:#9bb0c0;font-size:.59rem;letter-spacing:.05em;white-space:nowrap}
.team-hud-slot.on-field .hud-slot-copy small{color:#f2ce91}
.team-hud-slot .hud-slot-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.89rem;color:#e9eff6;margin-top:3px}
.team-arena{min-height:315px}
.team-action-icon{margin-top:20px}
@media(max-width:580px){.team-hud-slots{gap:5px}.team-hud-slot{min-height:59px;gap:4px;padding:5px}.team-hud-slot img{width:27px;height:33px}.team-hud-slot .hud-slot-number{font-size:.62rem;flex-basis:12px}.team-hud-slot .hud-slot-copy strong{font-size:.69rem}.team-hud-slot .hud-slot-copy small{font-size:.48rem}.team-library-top{align-items:stretch}.team-library-top .team-quiet{flex:1}}

/* Automatic roster discovery — sources are staged, never auto-published */
.team-source-watch{background:linear-gradient(150deg,#152735,#111a23)}
.team-watch-help{color:#b5c8d4;line-height:1.65;font-size:.84rem;margin:-5px 0 15px}
.team-watch-help strong{color:#efcc8f}
.team-watch-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.team-watch-counts{font-size:.77rem;color:#a8c9d4;flex:1;min-width:220px}
.team-watch-filter{display:flex;gap:11px;flex-wrap:wrap;margin:15px 0}
.team-watch-filter label{display:flex;flex-direction:column;gap:6px;flex:1;min-width:150px;color:#b0c7d7;font-size:.72rem;font-weight:700}
.team-watch-filter input,.team-watch-filter select{width:100%;background:#0d1720;color:#e5edf6;border:1px solid #486070;border-radius:8px;padding:10px}
.team-watch-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:290px;overflow:auto}
.team-watch-item{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid #344d5b;background:#101c28;border-radius:10px;padding:11px}
.team-watch-item strong{display:block;font-size:.86rem;color:#edf3fa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-watch-item small{display:block;font-size:.68rem;color:#9aafbc;line-height:1.45;margin-top:3px}
.team-watch-item button{white-space:nowrap;background:#28394b;color:#e5edf6;border:1px solid #607181;border-radius:8px;padding:8px 10px;font-size:.72rem}
.team-watch-item button:hover{border-color:#e7c28a}
.team-watch-item.is-new{border-color:#cba767}
.team-watch-detail{margin-top:13px;background:#0d1822;border:1px solid #40586b;border-radius:10px;padding:16px}
.team-watch-detail strong{color:#e8d39e}
.team-watch-detail h3{font-size:1.07rem;margin:0 0 10px}
.team-watch-detail p{font-size:.8rem;line-height:1.55;color:#abbbca;margin:8px 0}
.team-watch-detail a{color:#ebcb93;text-decoration:underline;text-underline-offset:3px}
.team-watch-detail label{display:flex;flex-direction:column;gap:5px;font-size:.74rem;flex:1;min-width:170px;color:#aebfce}
.team-watch-detail select{width:100%}
.team-watch-review-actions{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:15px}
.team-watch-notice{font-size:.72rem;color:#a0b4c4;line-height:1.55;margin-top:13px}
.team-watch-loading{font-size:.8rem;color:#a8becb}
@media(max-width:900px){.team-watch-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.team-watch-items{grid-template-columns:1fr}.team-watch-toolbar button{flex:1}}
