/* The original bitmap remains unchanged. Its red SVG variant preserves its resolution and geometry. */
body{isolation:isolate}
.admin-trigger{display:flex;width:max-content;margin-top:3px;text-decoration:none;font-size:18px;letter-spacing:.015em}.admin-trigger:focus-visible{outline:2px solid #75c6ff;outline-offset:5px}
.brand{position:relative}
.hero h1{position:relative}
.hero h1>.headline-copy{display:block;color:inherit}
.hero h1>.headline-copy[data-theme=admin]{position:absolute;inset:0;visibility:hidden}
html.admin-theme .hero h1>.headline-copy[data-theme=workspace]{visibility:hidden}
html.admin-theme .hero h1>.headline-copy[data-theme=admin]{visibility:visible}
html.admin-entering{overflow:hidden;scroll-snap-type:none}
html.admin-entering body{height:100svh;overflow:hidden}
#admin-transfer{position:fixed;inset:0;z-index:25;pointer-events:none;outline:none}
#admin-transfer[hidden]{display:none}
.admin-preview-card{position:absolute;top:45px;left:6.5vw;width:min(450px,calc(100vw - 40px));height:min(730px,calc(100svh - 90px));padding:24px 34px;border-radius:24px;border:0;background:transparent;box-shadow:none;opacity:1;transform:none;pointer-events:auto;display:flex;flex-direction:column;color:#f8f2f3;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden}
.admin-preview-card::before{z-index:1;opacity:0;transition:opacity .3s;content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#ff9d8840 0,#e5503520 10px,transparent 36px),linear-gradient(90deg,#ff837338 0,#d43f3419 9px,transparent 28px),linear-gradient(270deg,#ef817530 0,#bf3b3215 8px,transparent 26px),linear-gradient(0deg,#ea8a7f30 0,#bc3f3414 8px,transparent 29px)}
.admin-preview-card img{position:relative;z-index:2;opacity:0;width:265px;max-width:85%;height:auto;margin:5px auto 24px;flex:none}
.admin-preview-card h2{text-align:center;font-size:27px;font-weight:500;line-height:1.12;letter-spacing:.015em;margin:0 0 13px}
.admin-preview-content>p:not(.admin-transfer-status){text-align:center;font-size:12px;color:#d2c2c5;margin:0 0 18px;line-height:1.6}
.admin-preview-card label{font-size:11px;margin:13px 0 6px;color:#d8c9ca;line-height:1.6}
.admin-preview-field{display:block;height:43px;margin-top:6px;border-bottom:1px solid #bd8b8177;background:linear-gradient(0deg,#ff8b733d,transparent 27px)}
.admin-preview-card button{font:500 14px/1.6 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border:1px solid #76534f;border-radius:9px;min-height:42px;padding:10px 18px;color:#d7c4c6;background:#241216;margin-top:9px;cursor:pointer}
.admin-preview-card .admin-preview-primary{background:linear-gradient(110deg,#b6382c,#862a21);color:#fff;border-color:#c8857a70;cursor:wait}
.admin-preview-card .admin-transfer-status{font-size:11px;line-height:1.6;color:#cfbabd;margin:12px 0}
.admin-preview-legal{margin-top:auto;padding-top:13px;border-top:1px solid #bd7d6e26;color:#b9a4a8;font-size:10px;line-height:1.5}
html.admin-frame-ready .admin-preview-content{opacity:1;transform:none}
@media(max-width:850px){.admin-preview-card{left:20px;width:calc(100vw - 40px);padding:22px 26px;max-width:500px;left:50%;transform:translateX(-50%)}.admin-preview-card img{position:relative;z-index:2;opacity:0;width:245px}}
@media(max-height:650px){.admin-preview-card{top:24px;height:calc(100svh - 75px)}.admin-preview-card img{position:relative;z-index:2;opacity:0;width:210px;margin-bottom:15px}.admin-preview-card h2{font-size:25px}}

#admin-color-reveal{position:fixed;inset:0;z-index:5;pointer-events:none;background:#230907 url('/assets/workspace-background-admin-v1.svg') center/cover no-repeat;clip-path:url('#admin-reveal-mask')}
#admin-color-reveal>.hero{position:absolute;inset:0;background:none;min-height:100svh}
#admin-color-reveal .brand-blue{color:#f04a3e}
#admin-color-reveal .login-arrow,#admin-color-reveal .login-light{color:#ff7460!important}
.admin-wave-text{position:fixed;inset:0;z-index:6;pointer-events:none}
.admin-wave-text.workspace{-webkit-mask-image:url('#admin-workspace-text-mask');mask-image:url('#admin-workspace-text-mask')}
.admin-wave-text.admin{-webkit-mask-image:url('#admin-admin-text-mask');mask-image:url('#admin-admin-text-mask')}
.admin-wave-headline{position:absolute;margin:0;padding:0}
.admin-wave-headline>.headline-copy{display:block;color:inherit}
.admin-wave-headline .admin-common-placeholder{visibility:hidden}
.admin-wave-text.workspace .brand-blue{color:var(--workspace-text-blue)}
.admin-wave-text.admin .brand-blue{color:#f04a3e}
.admin-flood-front{position:fixed;inset:0;width:100%;height:100%;z-index:7;pointer-events:none;overflow:hidden}
.admin-flood-front path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.admin-flood-glow{stroke:#ff806a;stroke-width:18;opacity:.13;filter:blur(7px)}
.admin-flood-edge{stroke:#ffd4c6;stroke-width:1.2;opacity:.38}
.admin-flood-front[data-direction=back] .admin-flood-glow{stroke:#62b7ff}
.admin-flood-front[data-direction=back] .admin-flood-edge{stroke:#c1e2ff}
.admin-globe-copy{position:absolute;display:block;pointer-events:none}
.admin-retract-blue,.admin-retract-red{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.admin-retract-blue{z-index:4}
.admin-retract-blue path{fill:none;stroke:#9ccae8;stroke-width:1.8;stroke-linecap:butt}
.admin-retract-blue circle{fill:#9ccae8}
.admin-retract-red path{fill:none;stroke:#ff6b57;stroke-width:1.8;stroke-linecap:butt}
.admin-retract-red circle{fill:#ff6b57}
.admin-motion-wire{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;overflow:visible;opacity:0}
.admin-motion-frame{fill:none;stroke:#ff7663;stroke-width:1.8;stroke-linecap:butt;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.admin-preview-content{position:relative;z-index:2;display:flex;flex-direction:column;flex:1;min-height:0;opacity:0;transform:translateY(7px);transition:opacity .25s,transform .25s}
.admin-panel-light{position:absolute;inset:1px;border-radius:24px;pointer-events:none;opacity:0;background:linear-gradient(135deg,#25110df5,#190c0af7);box-shadow:inset 0 1px 0 #ffd3cd78,inset 1px 0 0 #efa69c48,inset -1px 0 0 #d78c8444,inset 0 -1px 0 #eeaba14c}
html.admin-light-ready .admin-preview-card::before,html.admin-light-ready .admin-panel-light{opacity:1}
html.admin-light-ready main .brand,html.admin-light-ready #admin-color-reveal .brand{visibility:hidden}
html.admin-light-ready .admin-preview-card img{opacity:1}
@media(prefers-reduced-motion:reduce){.admin-preview-content,.admin-preview-card::before{transition:none!important}}


/* Persistent warning-red theme after the fluid reveal. Status retains its actual health colour. */
html.admin-theme{--blue:#f04a3e;--bg:#230907;--muted:#c1a6a2}
html.admin-theme body{background:#230907 url('/assets/workspace-background-admin-v1.svg') center/cover fixed no-repeat}
html.admin-theme .brand-blue{color:#f04a3e}
html.admin-theme #planet{filter:url('#admin-warning-tone')}
html.admin-theme #thread-base,html.admin-theme #thread-progress,html.admin-theme #thread-branches{stroke:#ff6b57}
html.admin-theme #thread-start,html.admin-theme #thread-workspace,html.admin-theme #thread-nodes circle{fill:#ff806a}
html.admin-theme .thread circle:not(#thread-start){stroke:#230907}
html.admin-theme .login-trigger{color:#ead6d2}
html.admin-theme .login-arrow{color:#ef6c59}
html.admin-theme .login-trigger.is-lit .login-arrow{color:#ff9b83;filter:drop-shadow(0 0 4px #ff493888)}
html.admin-theme .login-light{color:#ff7460!important}
html.admin-theme .login-label::before{background:radial-gradient(ellipse,#ff493822,transparent 68%)}
html.admin-theme button:focus-visible,html.admin-theme a:focus-visible{outline-color:#ff806a}
html.admin-theme #admin-open{visibility:hidden;pointer-events:none}
#admin-color-reveal [data-admin-source="admin-open"]{visibility:hidden}
.admin-access-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Exact timeline values avoid a second CSS transition when reversing mid-frame. */
html.admin-motion-active .admin-preview-content,html.admin-motion-active .admin-preview-card::before{transition:none}
html.admin-motion-active .admin-preview-card::before{opacity:var(--admin-edge-opacity,0)}

/* Modal colours follow the same wave as the scene. The contour stays single. */
.admin-modal-reveal{position:absolute;inset:0;z-index:12;pointer-events:none;clip-path:url('#admin-modal-reveal-mask');padding:inherit;border-radius:inherit;overflow:hidden}
.admin-mirror-logo{position:absolute;top:24px;left:50%;transform:translateX(-50%);width:265px;height:auto}
.admin-mirror-logo img{width:100%;height:auto}
.admin-surface .auth-light,html.admin-theme .auth-light{background:radial-gradient(ellipse at 100% 0%,#aa291d18,transparent 55%),linear-gradient(155deg,#201016,#180b11 60%,#281117);box-shadow:inset 0 1px 0 #ffd1c478,inset 1px 0 0 #ff9d8848,inset -1px 0 0 #e6796744,inset 0 -1px 0 #ef92804c,0 22px 65px #0005}
.admin-surface .auth-light::after,html.admin-theme .auth-light::after{background:linear-gradient(180deg,#ff9d8840,transparent 36px),linear-gradient(90deg,#ff837338,transparent 28px),linear-gradient(270deg,#ef817530,transparent 26px),linear-gradient(0deg,#ea8a7f30,transparent 29px)}
.admin-surface .auth-primary,html.admin-theme .auth-primary{background:linear-gradient(115deg,#b6382c,#862a21);border-color:#c8857a}
.admin-surface .auth-secondary,html.admin-theme .auth-secondary{background:#241216;border-color:#76534f}
.admin-surface input,html.admin-theme .auth-content input{border-bottom-color:#b6827777}
html.admin-theme .auth-frame path{stroke:#c88679}
.pin-fields{direction:ltr;margin:22px 0 28px}.pin-fields input{font-size:26px}
.auth-content:has(#admin-pin-form:not([hidden])) .auth-description{font-size:13px;line-height:1.65}
.auth-content:has(#admin-pin-form:not([hidden])) h2{font-size:25px;line-height:1.25}
@media(max-width:850px){.admin-mirror-logo{width:245px}}
@media(max-height:650px){.admin-mirror-logo{width:210px;top:18px}}

/* One scene, one globe: the Admin origin supplies only its isolated UI. */
html.admin-embedded-open #auth-content{display:flex;flex-direction:column;overflow:hidden}
html.admin-embedded-open #auth-content> :not(#admin-session-frame){display:none!important}
#admin-session-frame{flex:1;min-height:0;width:100%;height:100%;border:0;background:transparent;color-scheme:dark}
html.admin-panel-open #auth-dialog{inset:18px!important;left:18px!important;width:calc(100vw - 36px);height:calc(100svh - 36px);padding:0;background:#230907;border-radius:20px;overflow:hidden}
html.admin-panel-open #auth-logo,html.admin-panel-open .auth-frame,html.admin-panel-open .auth-light{display:none}
html.admin-panel-open .auth-content{padding:0;height:100%}
html.admin-panel-open .auth-viewport{height:calc(100% - 40px)}
html.admin-panel-open .site-legal{display:flex;bottom:14px}
