/* TradeMargin AI — first-paint loading. No external fonts or images except official brand. */
.tm-boot{position:relative;isolation:isolate;display:grid;place-items:center;min-height:100vh;min-height:100svh;overflow:hidden;padding:32px 20px;color:#e9fcf7;background:radial-gradient(ellipse at 50% 44%,#103b43 0%,#0b2535 38%,#081927 78%);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:center;box-sizing:border-box}
.tm-boot::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(#4affc90a 1px,transparent 1px),linear-gradient(90deg,#4affc90a 1px,transparent 1px);background-size:56px 56px;mask-image:radial-gradient(ellipse,#000 5%,transparent 76%);pointer-events:none}
.tm-boot-scene{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}.tm-boot-orbit{position:absolute;left:50%;top:49%;width:min(78vw,900px);height:min(35vw,360px);border:1px solid #59efc333;border-radius:50%;transform:translate(-50%,-50%) rotate(-17deg);box-shadow:0 0 45px #1fd5a00c,inset 0 0 32px #1fd5a00b}.tm-boot-orbit:nth-child(2){transform:translate(-50%,-50%) rotate(17deg);width:min(83vw,960px);border-color:#59efc317}.tm-boot-dot{position:absolute;left:12%;top:17%;width:7px;height:7px;background:#79ffd4;border-radius:50%;box-shadow:0 0 18px #44ffc8;animation:tm-boot-pulse 2.4s ease-in-out infinite}.tm-boot-dot:nth-child(2){left:87%;top:77%;animation-delay:.8s}.tm-boot-ghost{position:absolute;width:220px;height:140px;border:1px solid #83ffdd20;border-radius:20px;background:linear-gradient(145deg,#25596930,#09252f20);padding:20px;box-shadow:0 20px 70px #0004;opacity:.65;transform:perspective(700px) rotateY(18deg) rotateZ(-8deg);left:8%;top:23%;animation:tm-boot-drift 5s ease-in-out infinite}.tm-boot-ghost:last-child{left:auto;right:8%;top:60%;transform:perspective(700px) rotateY(-18deg) rotateZ(8deg);animation-delay:-2s}.tm-boot-ghost span{display:block;background:#80d8c423;height:7px;border-radius:8px;margin:0 0 12px;width:55%}.tm-boot-ghost span:nth-child(2){width:78%}.tm-boot-ghost i{display:inline-block;width:12%;height:48%;margin:0 3%;vertical-align:bottom;border-radius:5px;background:linear-gradient(#7affce45,#1a8e7c25)}.tm-boot-ghost i:nth-of-type(2){height:62%}.tm-boot-ghost i:nth-of-type(3){height:40%}.tm-boot-ghost i:nth-of-type(4){height:68%}
.tm-boot-card{width:min(100%,480px);box-sizing:border-box;padding:clamp(25px,5vw,44px);border:1px solid #70f9d23b;border-radius:30px;background:linear-gradient(155deg,#183d49ee,#0b2636fa 65%);box-shadow:0 30px 100px #020b1480,inset 0 1px #9dffe626,0 0 60px #3bffbf0b;position:relative;overflow:hidden;animation:tm-boot-enter .22s ease-out both}.tm-boot-card::before{content:"";position:absolute;top:0;left:15%;width:70%;height:1px;background:linear-gradient(90deg,transparent,#8bffde,transparent)}.tm-boot-brand{display:block;width:min(100%,254px);height:auto;margin:0 auto 26px;object-fit:contain}.tm-boot-object{position:relative;width:126px;height:126px;margin:0 auto 24px;display:grid;place-items:center;perspective:500px}.tm-boot-ring{position:absolute;inset:0;border:1px solid #5dfbd62d;border-top:2px solid #6affd1;border-right:2px solid #6affd166;border-radius:50%;animation:tm-boot-spin 2.3s linear infinite;box-shadow:0 0 20px #38f4b718}.tm-boot-ring:nth-child(2){inset:11px;border-top-color:transparent;border-bottom:2px solid #4ee3bd;animation-direction:reverse;animation-duration:3.6s}.tm-boot-device{width:75px;height:75px;border:1px solid #99ffe995;border-radius:19px;background:linear-gradient(140deg,#1d7d71,#0a2a35 70%);box-shadow:5px 6px 0 #164f51,0 12px 28px #00141b80,inset 0 1px #afffec88;display:flex;align-items:flex-end;justify-content:center;gap:5px;padding:14px;box-sizing:border-box;transform:rotate(-8deg) rotateY(-10deg)}.tm-boot-device i{width:12px;height:var(--h);border-radius:3px 3px 1px 1px;background:linear-gradient(90deg,#079d82,#82ffd2);box-shadow:0 0 10px #26ffc455;transform-origin:bottom;animation:tm-boot-bars 1.8s ease-in-out infinite;animation-delay:var(--d)}.tm-boot h1{font-size:clamp(20px,4vw,27px);line-height:1.2;color:#f0fffb;margin:0 0 10px;font-weight:750;letter-spacing:-.025em}.tm-boot p{font-size:14px;line-height:1.6;margin:0;color:#bdd9df}.tm-boot-track{height:5px;margin:24px 0 13px;background:#92d8c51c;border-radius:100px;overflow:hidden}.tm-boot-track::before{content:"";display:block;width:43%;height:100%;background:linear-gradient(90deg,transparent,#47edb9,#9dffe3,transparent);border-radius:100px;animation:tm-boot-scan 1.6s ease-in-out infinite}.tm-boot-status{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:#a4d7cc}.tm-boot-status::before{content:"";width:7px;height:7px;border-radius:50%;background:#68ffd1;animation:tm-boot-pulse 1.7s ease-in-out infinite}.tm-boot-retry{margin-top:18px;border-top:1px solid #90e8cc25;padding-top:15px}.tm-boot-retry[hidden]{display:none}.tm-boot-retry a{display:inline-block;margin-top:10px;padding:9px 16px;border:1px solid #79fbd18c;border-radius:10px;color:#c5fff0;text-decoration:none;font-weight:650;font-size:13px}.tm-boot-retry a:focus-visible{outline:2px solid #fff;outline-offset:3px}.tm-boot noscript{display:block;margin-top:12px;color:#e6f5f2;font-size:13px}
@keyframes tm-boot-spin{to{transform:rotate(360deg)}}@keyframes tm-boot-bars{0%,100%{transform:scaleY(.75)}50%{transform:scaleY(1)}}@keyframes tm-boot-scan{0%{transform:translateX(-110%)}100%{transform:translateX(340%)}}@keyframes tm-boot-pulse{0%,100%{opacity:.45}50%{opacity:1}}@keyframes tm-boot-drift{0%,100%{translate:0 0}50%{translate:0 -12px}}@keyframes tm-boot-enter{from{opacity:.7;translate:0 4px}to{opacity:1;translate:0 0}}
@media(max-width:650px){.tm-boot-ghost{display:none}.tm-boot{padding:20px 16px}.tm-boot-card{border-radius:24px}.tm-boot-object{width:110px;height:110px}.tm-boot-brand{margin-bottom:20px}}@media(prefers-reduced-motion:reduce){.tm-boot *,.tm-boot *::before{animation:none!important}.tm-boot-track::before{width:100%;opacity:.65}}
/* Workspace section loading: keep the sidebar and header in place. */
.tm-section-loading{box-sizing:border-box;position:relative;overflow:hidden;isolation:isolate;display:grid;gap:20px;padding:clamp(18px,3vw,30px);margin:0 0 18px;border:1px solid #d6e8e7;border-radius:20px;background:linear-gradient(145deg,#fff,#f3faf8);box-shadow:0 14px 36px #102e3810;color:#10283b;text-align:left}
.tm-section-loading::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#68f3cb,#12a98c,transparent)}.tm-section-head{display:flex;align-items:center;gap:16px}.tm-section-head>div{min-width:0}.tm-section-kicker{display:block;font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:800;color:#087e67;margin-bottom:4px}.tm-section-loading h2{margin:0 0 5px;font-size:clamp(17px,2.2vw,23px);line-height:1.25;color:#10283b}.tm-section-loading p{margin:0;font-size:13px;color:#4f6576}.tm-section-icon,.tm-section-alert{width:58px;height:58px;flex:0 0 58px;border-radius:16px;display:flex;align-items:flex-end;justify-content:center;gap:4px;padding:13px;box-sizing:border-box;background:linear-gradient(145deg,#164b51,#0b2335);border:1px solid #51c8aa;box-shadow:3px 4px 0 #c6e9e2,0 8px 19px #0b776c24,inset 0 1px #a5ffde70}.tm-section-icon i{width:9px;height:36%;background:linear-gradient(90deg,#1ab398,#9affdd);border-radius:3px;transform-origin:bottom;animation:tm-boot-bars 1.8s ease-in-out infinite}.tm-section-icon i:nth-child(2){height:62%;animation-delay:.18s}.tm-section-icon i:nth-child(3){height:95%;animation-delay:.36s}.tm-section-track{height:4px;background:#dcece9;border-radius:20px;overflow:hidden}.tm-section-track::before{content:"";display:block;height:100%;width:44%;border-radius:inherit;background:linear-gradient(90deg,transparent,#0ca889,#60e9bf,transparent);animation:tm-boot-scan 1.6s ease-in-out infinite}.tm-section-skeleton{display:grid;gap:12px}.tm-section-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:12px}.tm-section-tiles>div,.tm-section-rows{border:1px solid #dce9e8;border-radius:13px;background:#fff;padding:14px}.tm-section-tiles span,.tm-section-tiles b,.tm-section-row>*{display:block;background:linear-gradient(100deg,#e2eeec 20%,#f5faf9 50%,#e2eeec 80%);background-size:250% 100%;border-radius:6px;animation:tm-section-shimmer 1.8s linear infinite}.tm-section-tiles span{width:54%;height:9px;margin-bottom:13px}.tm-section-tiles b{width:72%;height:22px}.tm-section-row{display:grid;grid-template-columns:25px 1fr minmax(35px,18%);gap:12px;align-items:center;padding:10px 0}.tm-section-row+.tm-section-row{border-top:1px solid #edf3f2}.tm-section-row i{height:25px;border-radius:8px}.tm-section-row span{width:70%;height:10px}.tm-section-row b{height:10px}.tm-section-row:nth-child(2) span{width:52%}.tm-section-compact{padding:15px;gap:13px;margin:0;text-align:left;box-shadow:none}.tm-section-compact .tm-section-icon{width:42px;height:42px;flex-basis:42px;padding:9px}.tm-section-compact h2{font-size:15px}.tm-section-failed .tm-section-alert{align-items:center;color:#ffdfad;font-size:24px;font-weight:800}.tm-section-failed>.btn{justify-self:start}.tm-section-failed::before{background:linear-gradient(90deg,#e6ad62,transparent)}
@keyframes tm-section-shimmer{from{background-position:100% 0}to{background-position:-150% 0}}@media(max-width:550px){.tm-section-tiles{grid-template-columns:1fr 1fr}.tm-section-head{gap:11px}.tm-section-loading{gap:15px}.tm-section-icon,.tm-section-alert{width:46px;height:46px;flex-basis:46px;padding:9px}}@media(prefers-reduced-motion:reduce){.tm-section-loading *,.tm-section-loading *::before{animation:none!important}.tm-section-track::before{width:100%;opacity:.65}}
