/* A quiet illustrated workspace. Brand actions and RS status colors keep their roles. */
[data-sphere]{--sphere:#667087;--sphere-wash:#f1f3f8}
[data-sphere=restaurant]{--sphere:#94754c;--sphere-wash:#f7f3eb}
[data-sphere=construction]{--sphere:#59758e;--sphere-wash:#edf3f8}
[data-sphere=trade]{--sphere:#627d91;--sphere-wash:#eff4f7}
[data-sphere=hotel]{--sphere:#8c6f95;--sphere-wash:#f5f0f7}
[data-sphere=production]{--sphere:#677b85;--sphere-wash:#eff3f5}
[data-sphere=agro]{--sphere:#637e59;--sphere-wash:#f0f5ed}
[data-sphere=services]{--sphere:#667bb2;--sphere-wash:#f0f2fa}
body[data-sphere] h1,body[data-sphere] h2,body[data-sphere] h3{letter-spacing:normal;text-transform:none}
body[data-sphere] button,body[data-sphere] a{transition-property:transform,opacity}
.sphere-scene{display:block;width:100%;height:auto;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;color:var(--sphere);pointer-events:none}
.sphere-scene>use:first-child{stroke-dasharray:1;stroke-dashoffset:0;animation:sphere-draw 1.2s ease-out both}
.sphere-drift{animation:sphere-breathe 6s 1.2s ease-in-out infinite alternate;transform-origin:center;transform-box:view-box}
[data-sphere=restaurant] .sphere-drift{animation-name:sphere-steam}
[data-sphere=construction] .sphere-drift{animation-name:sphere-sway;transform-origin:376px 120px}
[data-sphere=agro] .sphere-drift{animation-name:sphere-sun;transform-origin:394px 62px}
@keyframes sphere-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes sphere-breathe{from{opacity:.65;transform:translateY(1px)}to{opacity:1;transform:translateY(-3px)}}
@keyframes sphere-steam{from{opacity:.4;transform:translateY(4px)}to{opacity:.9;transform:translateY(-5px)}}
@keyframes sphere-sway{from{transform:rotate(-3deg)}to{transform:rotate(3deg)}}
@keyframes sphere-sun{from{opacity:.65;transform:rotate(-7deg)}to{opacity:1;transform:rotate(7deg)}}
@keyframes sphere-float{from{transform:translateY(2px)}to{transform:translateY(-4px)}}
.sphere-banner{position:relative;isolation:isolate;overflow:hidden;padding:24px 28px 18px;background:var(--sphere-wash);border-bottom:1px solid var(--line)}
.sphere-banner,body[data-org-id] .shell>header{--muted:#5c667a}
.sphere-banner>.sphere-scene{position:absolute;z-index:-1;right:0;top:0;width:min(56%,450px);height:100%;opacity:.25}
body[data-org-id] .shell>header{isolation:isolate;background:var(--sphere-wash);border-bottom:0}
body[data-org-id] .shell>header>.sphere-scene{position:absolute;right:0;bottom:0;width:min(52%,420px);height:90%;opacity:.2;z-index:-1}
body[data-org-id] .shell>header>.muted{background:var(--sphere-wash)}
body[data-org-id] .sphere-banner{padding-top:12px}
.shell:has(#page-sale) .sphere-identity strong,.shell:has(#page-sale) #sphere-connection{display:none}
.shell:has(#page-sale) .sphere-banner{padding-top:0}
.sphere-identity{display:grid;gap:5px;max-width:75%;color:var(--ink);font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.sphere-identity strong{font-size:clamp(17px,2vw,22px);font-weight:650}
.sphere-identity>span{width:fit-content;background:var(--sphere-wash)}
#sphere-connection{display:flex;align-items:center;gap:7px}
#sphere-connection::before{content:'';width:7px;height:7px;border-radius:50%;background:#667087}
#sphere-connection.is-connected::before{background:#0f6b43}
.sphere-settings{position:relative;width:fit-content;max-width:100%;margin-top:8px;font-size:13px}
.sphere-settings summary{min-height:44px;color:var(--ink);font-size:13px;line-height:1.6}
#sphere-form{width:min(420px,100%);padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px}
#sphere-form label{margin-top:0}#sphere-status{color:#a32929}
.sphere-label{font-size:12px;line-height:1.7;color:var(--ink);margin:8px 0 0}
.org-card>.sphere-label{border-top:1px solid var(--line);padding-top:10px}
.sphere-quick{padding:22px 28px 26px;border-bottom:1px solid var(--line)}
.sphere-quick h2{margin:0 0 14px;font-size:16px}
.sphere-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sphere-action{display:flex;gap:12px;align-items:center;min-height:88px;min-width:0;padding:16px;text-decoration:none;border:1px solid var(--line);border-radius:16px;color:var(--ink);background:#fff;font-size:13px;line-height:1.65;transition:transform .2s,opacity .2s;animation:sphere-enter .55s backwards}
.sphere-action-copy{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.sphere-action-title{font-weight:600}.sphere-action-subtitle{font-size:12px;line-height:1.6;color:#5c667a}
.sphere-action:nth-child(2){animation-delay:60ms}.sphere-action:nth-child(3){animation-delay:120ms}.sphere-action:nth-child(4){animation-delay:180ms}
.shell a.sphere-action{color:var(--ink)}
.sphere-action-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid color-mix(in srgb,var(--sphere) 14%,transparent);border-radius:13px;color:var(--sphere);background:var(--sphere-wash)}
.sphere-action-icon svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sphere-action:focus-visible{outline:3px solid var(--sphere);outline-offset:3px}
.hero-grid>.sphere-hero-art{display:flex;align-items:center;min-height:330px;position:relative;isolation:isolate;overflow:hidden;border:1px solid color-mix(in srgb,var(--sphere) 20%,#fff);border-radius:30px;background:radial-gradient(ellipse at 22% 12%,#fff 0,transparent 65%),linear-gradient(145deg,#fff,var(--sphere-wash) 60%,color-mix(in srgb,var(--sphere) 12%,#fff));box-shadow:inset 0 1px 0 #fff,0 24px 50px -32px color-mix(in srgb,var(--sphere) 38%,transparent)}
.sphere-hero-art::before,.sphere-hero-art::after{content:'';position:absolute;width:65%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--sphere) 16%,transparent),transparent 68%);pointer-events:none;z-index:-1}
.sphere-hero-art::before{left:-18%;bottom:-44%}.sphere-hero-art::after{right:-18%;top:-40%;opacity:.7}
.sphere-hero-art>.sphere-scene{width:100%;padding:22px 14px;position:relative;animation:sphere-float 8s 1.2s ease-in-out infinite alternate}
.hero-grid:has(.sphere-hero-art) h1{font-size:clamp(27px,3.3vw,46px);line-height:1.5}
.hero-grid>*,.login-grid>*{min-width:0}.login-grid,.hero-grid{min-width:0}
.hero:has(.sphere-hero-art){position:relative;isolation:isolate}
body[data-sphere] #main .btn{white-space:normal;text-align:center;overflow-wrap:anywhere;max-width:100%}
body[data-sphere] .burger:not([open]) .mnav{display:none}
.sphere-login{position:relative;isolation:isolate;overflow:hidden}.sphere-login>.sphere-scene{position:absolute;z-index:-1;left:-5%;top:30px;width:min(650px,70%);opacity:.16}
.welcome-hero>.sphere-scene{position:absolute;inset:auto 0 0 auto;width:55%;opacity:.16;z-index:-1}
.motion-ready{opacity:0;transform:translateY(10px);transition:opacity .5s,transform .5s}.motion-visible{opacity:1;transform:none}
main[id^=page-]:not([hidden]),.rs-results,.rs-sheet[open],.invoice-panel:not([hidden]),.ptabs+section:not([hidden]){animation:sphere-enter .3s both}
@keyframes sphere-enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
.sphere-skeleton{display:grid;gap:12px;padding:12px 0}.skeleton-row{height:96px;border:1px solid var(--line);border-radius:12px;overflow:hidden;position:relative;background:var(--soft)}
.skeleton-row::before{content:'';display:block;width:65%;height:12px;margin:20px;background:var(--line);box-shadow:0 25px 0 var(--line)}
.skeleton-row::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,#ffffff95,transparent);animation:sphere-sweep 1.5s infinite}
@keyframes sphere-sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
body[data-sphere] button:not(:disabled):active,.sphere-action:active{transform:scale(.98)}
@media(hover:hover){.sphere-action:hover,.org-card:hover{transform:translateY(-3px)}.sphere-action:hover{border-color:var(--sphere)}.sphere-action:active{transform:scale(.98)}}
@media(min-width:901px){body[data-org-id] .shell>header>.sphere-scene{right:8px;width:min(48%,420px);height:100%;opacity:.58;mask-image:linear-gradient(90deg,transparent,#000 35%)}body[data-org-id] .shell>header>div{max-width:66%}}
@media(max-width:900px){.hero-grid:has(.sphere-hero-art){gap:28px}.hero-grid>.sphere-hero-art{width:100%;min-height:0;height:220px;border-radius:24px}.sphere-hero-art>.sphere-scene{height:100%;max-height:220px;padding:10px 14px}}
@media(max-width:560px){.sphere-banner{padding:18px 16px 12px}.sphere-banner>.sphere-scene{width:54%;opacity:.2}.sphere-identity{max-width:100%}.sphere-identity strong{max-width:82%}.sphere-quick{padding:20px 16px}.sphere-actions{gap:8px}.sphere-action{display:grid;gap:10px;align-content:start;min-height:96px;padding:12px;font-size:12px}.sphere-action-icon{width:38px;height:38px;border-radius:11px}.sphere-action-icon svg{width:22px;height:22px}.sphere-action-subtitle{font-size:11px}.sphere-settings summary{font-size:12px}.shell:has(#page-sale) .sphere-banner{padding-bottom:4px}}
@media(prefers-color-scheme:dark){.sphere-login .sphere-scene{--sphere:#bdc5d7}.hero-grid>.sphere-hero-art{border-color:color-mix(in srgb,var(--sphere) 35%,#303c54);background:radial-gradient(ellipse at 20% 15%,color-mix(in srgb,var(--sphere) 18%,#192239),transparent 70%),linear-gradient(145deg,#192239,#151e33);box-shadow:inset 0 1px 0 #ffffff0a,0 24px 50px -32px #0008}.hero-grid .sphere-scene{color:color-mix(in srgb,var(--sphere) 48%,#fff)}}
/* All shared motion, including inherited cabinet/welcome effects, stops here. */
@media(prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}body[data-sphere] *,body[data-sphere] *::before,body[data-sphere] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.motion-ready{opacity:1;transform:none}body[data-sphere] button:not(:disabled):active,.sphere-action:active,.sphere-action:hover,.org-card:hover{transform:none}}
@media print{.sphere-banner,.sphere-quick{display:none}}
