/* Team workspace — extends the site's orange and blue-grey system. */
.tm-workspace,.tm-admin{--tm-muted:#a9b9cc;--tm-edge:#34465b;--tm-orange:#ffc04d;color:#eaf0f8;font:14px/1.6 system-ui,'Microsoft YaHei',sans-serif;color-scheme:dark}
.tm-workspace *,.tm-admin *{box-sizing:border-box}.tm-workspace [hidden],.tm-admin [hidden]{display:none}
.tm-workspace ::selection,.tm-admin ::selection{background:#735321;color:#fff0cf}
.tm-workspace h3,.tm-admin h3{margin:0 0 12px;font-size:17px;font-weight:650;line-height:1.4}.tm-workspace h4,.tm-admin h4{margin:0;font-size:16px}.tm-workspace p,.tm-admin p{margin:0 0 12px}
.tm-workspace small,.tm-admin small{color:var(--tm-muted);font-size:11px}.tm-workspace ul,.tm-admin ul{list-style:none;margin:0;padding:0}
.tm-workspace .pc-icon,.tm-admin .pc-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}
.tm-workspace .pc-button,.tm-admin .pc-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 13px;border:1px solid #465b73;border-radius:8px;color:#e2eaf5;background:#25364a;font:600 12px/1.5 system-ui,'Microsoft YaHei',sans-serif;cursor:pointer;text-decoration:none;box-shadow:none;transition:background .2s,border-color .2s,transform .2s}
.tm-workspace .pc-button.primary,.tm-admin .pc-button.primary{background:linear-gradient(180deg,#ffd078,#f5b744);border-color:#efb64b;color:#291c07;box-shadow:0 3px 10px #080f1933}
@media(hover:hover){.tm-workspace .pc-button:hover:not(:disabled),.tm-admin .pc-button:hover:not(:disabled){background:#31485f;border-color:#7e96b1;transform:translateY(-1px)}.tm-workspace .pc-button.primary:hover:not(:disabled),.tm-admin .pc-button.primary:hover:not(:disabled){background:#ffd17b;border-color:#ffe0a5}.tm-directory article:hover{border-color:#607791;transform:translateY(-2px);box-shadow:0 12px 28px #050b1438}}
.tm-workspace button:focus-visible,.tm-admin button:focus-visible,.tm-workspace summary:focus-visible{outline:2px solid var(--tm-orange);outline-offset:3px}.tm-workspace button:disabled,.tm-admin button:disabled{opacity:.45;cursor:default;transform:none}
.tm-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.tm-toolbar>p{display:flex;gap:8px;align-items:center;color:var(--tm-muted);font-size:11px;margin:0}.tm-toolbar .pc-icon{width:14px;height:14px}.tm-workspace .tm-refresh{min-height:32px;border-color:transparent;background:transparent;padding:5px 7px;color:#b9c9db;font-size:11px}
.tm-message{padding:12px 0;color:#b3dfca;font-size:13px}.tm-message:empty{display:none}.tm-message.is-error{color:#ffb7ac}
.tm-stage{display:grid;gap:24px}.tm-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;align-items:start}.tm-main,.tm-side{min-width:0;display:grid;gap:20px}
.tm-team{position:relative;isolation:isolate;overflow:hidden;padding:32px;border:1px solid #495c73;border-radius:16px;background:radial-gradient(ellipse at 8% 0,#48637b55,transparent 65%),linear-gradient(115deg,#273c51,#1b293c 75%);min-width:0}
.tm-team-cover{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;mask-image:linear-gradient(90deg,transparent 46%,#000)}.tm-team-cover>.tm-mark{position:absolute;right:42px;top:-50px;width:290px;height:290px;opacity:.045;border:0;background:none;transform:rotate(-12deg);filter:grayscale(1)}
.tm-team-heading{display:flex;gap:22px;align-items:center}.tm-team-copy{flex:1;min-width:0}.tm-team-copy>p{max-width:55ch;color:#b9c9db;font-size:12px;margin:8px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.tm-name-line{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.tm-name-line h3{margin:0;font-size:34px;font-weight:700;letter-spacing:-.02em;line-height:1.2;overflow-wrap:anywhere}
.tm-mark{display:grid;place-items:center;flex:none;width:54px;height:54px;overflow:hidden;border-radius:12px;background:#182635;color:#d5e1ee}.tm-mark>.pc-icon{width:30px;height:30px}.tm-mark img{width:100%;height:100%;object-fit:cover}.tm-team-heading>.tm-mark{width:88px;height:88px;border:1px solid #73829760;border-radius:20px;box-shadow:0 8px 20px #080f1a45}
.tm-team-meta{display:flex;gap:16px;flex-wrap:wrap;margin-top:15px;color:#a6b9ce;font-size:11px}.tm-team-meta>span{display:flex;align-items:center;gap:6px}.tm-team-meta .pc-icon{width:14px;height:14px}.tm-workspace .tm-edit{align-self:flex-start;background:#1a2a3c80;border-color:#64778e66;font-size:11px;min-height:36px}
.tm-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:3px 8px;background:#314154;color:#c8d4e3;border-radius:5px;font-size:10px;line-height:1.6;white-space:nowrap}.tm-badge.accent{background:#f6bb4720;color:#ffcf75}.tm-badge.success{background:#285045;color:#b0e5cf}
.tm-panel{min-width:0;padding:23px;background:linear-gradient(125deg,#223247,#1c2a3b);border:1px solid #384a60;border-radius:14px}
.tm-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.tm-section-heading>span{color:var(--tm-muted);font-size:11px}.tm-section-heading>.pc-icon{color:#8fa8c0}.tm-section-heading h3{display:flex;gap:10px;align-items:center;margin:0}.tm-section-heading h3>.tm-badge{min-width:23px;padding:2px 6px;font-family:Rajdhani,system-ui,sans-serif;font-size:14px}
.tm-members>li{position:relative;display:flex;align-items:center;gap:13px;padding:20px 0;border-bottom:1px solid #8092a71c}.tm-members>li:first-child{padding-top:8px}.tm-members>li:last-child{border-bottom:0}.tm-members>li>div{min-width:0;flex:1}.tm-members strong,.tm-outgoing strong,.tm-records strong{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere}.tm-members small{display:block;margin-top:4px;font-size:10px}.tm-self{font-style:normal;font-size:9px;font-weight:400;color:#b6c7d9;margin-left:7px;border:1px solid #71849c55;border-radius:3px;padding:0 4px;vertical-align:2px}
.tm-avatar{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:linear-gradient(145deg,#3c526b,#293e54);color:#c2d1e3;overflow:hidden}.tm-avatar img{width:100%;height:100%;object-fit:cover}
.tm-member-menu{position:relative;flex:none}.tm-member-menu>summary{list-style:none;display:grid;place-items:center;width:32px;height:36px;color:#9bb0c7;cursor:pointer;border-radius:6px}.tm-member-menu>summary::-webkit-details-marker{display:none}.tm-member-menu[open]>summary{color:#ffd078;background:#3a4858}.tm-member-actions{position:absolute;right:0;top:40px;z-index:3;display:grid;gap:6px;padding:8px;width:130px;background:#142234;border:1px solid #536980;border-radius:9px;box-shadow:0 12px 24px #0005}.tm-member-actions .pc-button{font-size:11px}
.tm-team-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;padding-top:16px;border-top:1px solid #8092a71c;color:var(--tm-muted);font-size:11px}.tm-team-options{width:100%}.tm-team-options summary{display:flex;gap:7px;align-items:center;cursor:pointer;font-size:11px;color:#adbed2;list-style:none}.tm-team-options summary .pc-icon{width:14px;height:14px}.tm-team-options p{margin-top:14px;color:#c4b9b1}.tm-workspace .pc-button.tm-danger{background:transparent;color:#efb4aa;border-color:#775552}.tm-workspace .pc-button.tm-muted{background:transparent;color:#b6c4d6}
.tm-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tm-help{font-size:11px;line-height:1.85;color:var(--tm-muted)}.tm-empty{color:var(--tm-muted);font-size:12px;padding:15px 0}.tm-quiet-empty{display:grid;justify-items:center;padding:12px 0}.tm-quiet-empty>.pc-icon{width:26px;height:26px;color:#8da6be}.tm-quiet-empty .tm-empty{margin:0;padding-bottom:0}
.tm-requests>li{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;border-top:1px solid #8092a726;padding:16px 0}.tm-requests>li:last-child{padding-bottom:0}.tm-requests .tm-avatar{width:34px;height:34px}.tm-requests>li>div:not(.tm-actions){min-width:0;flex:1}.tm-requests strong{font-size:12px;font-weight:600;overflow-wrap:anywhere}.tm-requests p{font-size:11px;color:#b9c9da;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.tm-requests .tm-actions{flex-basis:100%;padding-left:44px}.tm-requests .pc-button{flex:1;min-height:34px;font-size:11px;padding:6px 10px}
.tm-field{display:grid;gap:7px;font-size:12px;color:#d6e0ec;margin-bottom:15px}.tm-field>span{display:flex;gap:8px;flex-wrap:wrap}.tm-field input,.tm-field select,.tm-field textarea{width:100%;min-width:0;min-height:42px;padding:10px 12px;border:1px solid #4a6078;border-radius:8px;background:#142132;color:#e8edf5;font:inherit;line-height:1.6;outline:none;caret-color:var(--tm-orange);transition:border-color .18s}.tm-field textarea{resize:vertical;min-height:84px}.tm-field input:focus,.tm-field select:focus,.tm-field textarea:focus{border-color:var(--tm-orange);box-shadow:none}.tm-field input::placeholder{color:#99aec5}.lp.is-center .tm-field :is(input,select,textarea):focus-visible{outline:none;outline-offset:0}
.tm-form{padding-top:18px}.tm-team>.tm-form{position:relative;margin-top:24px;padding-top:24px;border-top:1px solid #70839a44;max-width:620px}.tm-logo-preview{width:64px;height:64px;object-fit:cover;border-radius:12px;margin-bottom:14px}
.tm-outgoing>li,.tm-records>li{display:flex;gap:8px;align-items:center;padding:13px 0;border-bottom:1px solid #8092a726}.tm-outgoing>li:last-child,.tm-records>li:last-child{border:0}.tm-outgoing>li>div,.tm-records>li>div{min-width:0;flex:1}.tm-outgoing small,.tm-records small{display:block;margin-top:4px;font-size:10px;overflow-wrap:anywhere}.tm-outgoing .pc-button{min-height:32px;padding:5px 8px;font-size:10px}
.tm-timeline{background:transparent;padding:16px 0;border:0;border-radius:0}.tm-timeline summary,.tm-invite-history summary{cursor:pointer;color:#aabdd2;font-size:11px}.tm-timeline ul{padding-top:12px}.tm-timeline li{display:grid;gap:4px;padding:10px 0;border-top:1px solid #8092a726;font-size:12px}.tm-invite-history{margin-top:16px}.tm-invite-history>div{display:flex;align-items:center;gap:7px;padding:10px 0;font-size:11px}.tm-invite-history>div>span:first-child{margin-right:auto}.tm-invite-history .pc-button{padding:4px 8px;min-height:32px;font-size:10px}.tm-invite-result{margin-top:16px}.tm-invitation{margin-top:18px;padding-top:16px;border-top:1px solid var(--tm-edge)}.tm-invitation .pc-button{margin-top:12px;display:flex}.tm-invitation strong{font-size:18px}.tm-invitation p{color:var(--tm-muted);margin-top:6px}
.tm-intro{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px 34px;border:1px solid #485c73;border-radius:16px;background:radial-gradient(ellipse at 100% 0,#596e7e33,transparent 75%),linear-gradient(115deg,#2a3f53,#192b3e)}.tm-intro h3{font-size:28px;letter-spacing:-.025em;margin-bottom:12px}.tm-intro p{color:#b9c9dc;font-size:12px;line-height:1.9}.tm-intro .pc-button{margin-top:6px}.tm-team-stack{display:flex;align-items:center;padding:20px 12px}.tm-team-stack>.tm-mark{width:88px;height:100px;border:1px solid #6d809377;border-radius:16px;box-shadow:0 16px 30px #06101d66;transform:rotate(-9deg);background:#172537}.tm-team-stack>.tm-mark+ .tm-mark{margin-left:-20px;transform:translateY(14px) rotate(8deg)}
.tm-search{display:flex;align-items:flex-end;gap:10px;margin-bottom:12px}.tm-search>.tm-field{flex:1;margin:0}.tm-search>.tm-field>span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.tm-search>button{min-height:42px}.tm-application-note{margin-bottom:18px}.tm-application-note>summary{display:flex;gap:7px;align-items:center;color:#bac9dc;cursor:pointer;font-size:11px;list-style:none;min-height:30px}.tm-application-note>summary>.pc-icon{width:13px;height:13px;transition:transform .2s}.tm-application-note[open]>summary>.pc-icon{transform:rotate(180deg)}.tm-application-note>.tm-field{margin-top:10px}
.tm-directory{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tm-directory article{display:flex;flex-direction:column;min-width:0;padding:21px 18px;border:1px solid #41566e;border-radius:14px;background:linear-gradient(145deg,#2a3d53,#1a2a3d);transition:transform .25s,border-color .25s,box-shadow .25s}.tm-directory article>header{display:flex;align-items:center;gap:12px}.tm-directory article>header>div{min-width:0}.tm-directory h4{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.tm-directory article>p{font-size:11px;color:#b5c6da;line-height:1.85;margin:18px 0 24px;overflow-wrap:anywhere;flex:1}.tm-directory article>footer{display:flex;border-top:1px solid #7f95ae26;padding-top:14px}.tm-directory article>footer .pc-button{width:100%;justify-content:space-between;background:#293d53;border-color:#60738b;color:#ffce75}.tm-directory article>footer .pc-button:disabled{opacity:1;color:#9dafc5;border-color:#495e76;background:#1a2b3d}.tm-directory article>footer .pc-button.primary:hover{background:#3c4a58;color:#ffdfa0}.tm-directory .tm-mark{width:48px;height:48px;border-radius:10px}.tm-directory .pc-icon{width:15px;height:15px}.tm-pagination{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.tm-periods>li{display:grid;gap:4px;padding:12px 0;border-bottom:1px solid var(--tm-edge)}.tm-periods>li:last-child{border:0}.tm-requirement{display:flex;align-items:center;gap:12px;padding:15px 18px;background:#283746;border-radius:10px;margin-bottom:18px}.tm-requirement>p{margin:0;flex:1}
.tm-confirm{padding:22px;margin-top:20px;background:#302e2a;border:1px solid #826d4b;border-radius:12px}.tm-confirm p{color:#d5c9b5}.tm-admin{max-width:1180px}.tm-admin>.tm-panel{margin-top:20px}.tm-review{display:flex;align-items:flex-start;gap:20px;padding:20px 0;border-top:1px solid var(--tm-edge)}.tm-review>div:first-child{flex:1;min-width:0}.tm-review p{overflow-wrap:anywhere}.tm-review .tm-actions{flex:none}
@keyframes tm-arrive{from{transform:translateY(6px);filter:blur(2px)}to{transform:translateY(0);filter:blur(0)}}.tm-enter{animation:tm-arrive .35s cubic-bezier(.16,1,.3,1)}
@media(max-width:1150px){.tm-layout{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.tm-panel{padding:20px}.tm-team{padding:26px}.tm-team-heading{gap:17px}.tm-team-heading>.tm-mark{width:76px;height:76px}.tm-name-line h3{font-size:30px}.tm-intro{padding:28px}.tm-intro h3{font-size:25px}.tm-team-stack>.tm-mark{width:70px;height:84px}}
@media(max-width:980px){.tm-layout{grid-template-columns:1fr}.tm-side{grid-template-columns:1fr 1fr}.tm-discover-layout .tm-side{grid-template-columns:1fr 1fr}.tm-team-heading>.tm-mark{width:80px;height:80px}.tm-intro h3{font-size:27px}.tm-member-actions{width:130px}.tm-review{flex-wrap:wrap}}
@media(max-width:620px){.tm-stage{gap:20px}.tm-layout,.tm-main,.tm-side{gap:16px}.tm-side,.tm-discover-layout .tm-side{grid-template-columns:1fr}.tm-team{padding:24px 20px}.tm-team-heading{gap:14px;flex-wrap:wrap;align-items:center}.tm-team-heading>.tm-mark{width:64px;height:64px;border-radius:15px}.tm-team-copy{flex:1;min-width:150px}.tm-name-line{gap:8px}.tm-name-line h3{font-size:27px}.tm-team-copy>p{font-size:11px}.tm-team-meta{gap:9px;font-size:10px;margin-top:10px}.tm-workspace .tm-edit{min-height:38px;margin-left:auto}.tm-team-cover>.tm-mark{right:-40px;opacity:.04}.tm-panel{padding:20px 18px}.tm-members>li{gap:11px;padding:17px 0}.tm-members strong{font-size:12px}.tm-avatar{width:40px;height:40px}.tm-intro{padding:26px 22px}.tm-intro h3{font-size:25px}.tm-intro p{font-size:11px}.tm-team-stack{display:none}.tm-directory{gap:12px}.tm-directory article{padding:17px 14px}.tm-directory article>header{flex-direction:column;align-items:flex-start;gap:12px}.tm-directory h4{font-size:16px}.tm-directory article>p{font-size:11px;margin:14px 0 19px}.tm-directory .tm-mark{width:46px;height:46px}.tm-workspace .pc-button,.tm-admin .pc-button{min-height:44px}.tm-workspace .tm-refresh{min-height:32px}.tm-requests .pc-button{min-height:40px}.tm-team-footer{flex-wrap:wrap}.tm-confirm{padding:18px}.tm-requirement{flex-wrap:wrap}.tm-requirement>p{flex-basis:calc(100% - 35px)}.tm-search .pc-button{padding:8px 11px}.tm-search .pc-icon{display:none}}
@media(prefers-reduced-motion:reduce){.tm-workspace *,.tm-admin *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


.tm-toolbar{justify-content:flex-end;margin-bottom:10px}.tm-wide{grid-template-columns:1fr}.tm-wide>.tm-side:empty{display:none}

/* Isolate team forms from the sign-in modal's generic form grid/padding. */
.tm-workspace form{display:block;padding:0}.tm-workspace form.tm-search{display:flex;gap:10px;padding:0}.tm-workspace form.tm-panel{padding:23px}
@media(max-width:1150px){.tm-workspace form.tm-panel{padding:20px}}
@media(max-width:620px){.tm-workspace form.tm-panel{padding:20px 18px}}

.tm-avatar-link{display:flex;flex:none;text-decoration:none}.tm-player-name{color:inherit;text-decoration:none;text-underline-offset:3px}.tm-player-name:hover{color:#ffd078;text-decoration:underline}.tm-player-name:focus-visible,.tm-avatar-link:focus-visible{outline:2px solid var(--tm-orange);outline-offset:3px;border-radius:4px}
.tm-badge.locked{color:#c3d7e8;background:#263b4b;border-color:#3c5367}.tm-lock-note{display:inline-flex;align-items:center;gap:8px;color:#b9cbdc;font-size:12px;line-height:1.6}.tm-lock-note .pc-icon{width:16px;height:16px;flex:none}.tm-admin-competitions{margin-bottom:22px}.tm-admin-competitions .tm-records>li{flex-wrap:wrap}.tm-admin .tm-confirm{margin:0 0 22px}
