/* ORBIT-BG-V1: public-only, independent pattern layer. Do not affect admin/maintenance. */
html{background-color:var(--bg)}
body.site-body,body.landing-page{isolation:isolate;background-color:transparent}
body.site-body::before,body.landing-page::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:var(--orb-bg-image,none);background-repeat:repeat;background-size:var(--orb-bg-tile,256px) var(--orb-bg-tile,256px);opacity:var(--orb-bg-opacity,.2)}
body.site-body > main,body.site-body > .footer,body.landing-page > main,body.landing-page > .footer{position:relative;z-index:1}
body.site-body[data-orbit-bg-scope="landing"]::before,body.landing-page[data-orbit-bg-scope="news"]::before{display:none}
body[data-orbit-bg-pattern="clean"]{--orb-bg-image:none}
html[data-theme="light"] body[data-orbit-bg-pattern="orbit-lines"]{--orb-bg-image:url("/static/uploads/orbit-bg/orbit-lines-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="orbit-lines"]{--orb-bg-image:url("/static/uploads/orbit-bg/orbit-lines-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="orbit-dots"]{--orb-bg-image:url("/static/uploads/orbit-bg/orbit-dots-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="orbit-dots"]{--orb-bg-image:url("/static/uploads/orbit-bg/orbit-dots-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="star-chart"]{--orb-bg-image:url("/static/uploads/orbit-bg/star-chart-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="star-chart"]{--orb-bg-image:url("/static/uploads/orbit-bg/star-chart-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="lunar-rings"]{--orb-bg-image:url("/static/uploads/orbit-bg/lunar-rings-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="lunar-rings"]{--orb-bg-image:url("/static/uploads/orbit-bg/lunar-rings-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="trajectory"]{--orb-bg-image:url("/static/uploads/orbit-bg/trajectory-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="trajectory"]{--orb-bg-image:url("/static/uploads/orbit-bg/trajectory-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="orbital-grid"]{--orb-bg-image:url("/static/uploads/orbit-bg/orbital-grid-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="orbital-grid"]{--orb-bg-image:url("/static/uploads/orbit-bg/orbital-grid-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="cosmos-particles"]{--orb-bg-image:url("/static/uploads/orbit-bg/cosmos-particles-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="cosmos-particles"]{--orb-bg-image:url("/static/uploads/orbit-bg/cosmos-particles-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="solar-arcs"]{--orb-bg-image:url("/static/uploads/orbit-bg/solar-arcs-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="solar-arcs"]{--orb-bg-image:url("/static/uploads/orbit-bg/solar-arcs-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="girih-teal"]{--orb-bg-image:url("/static/uploads/orbit-bg/girih-teal-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="girih-teal"]{--orb-bg-image:url("/static/uploads/orbit-bg/girih-teal-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="shamseh"]{--orb-bg-image:url("/static/uploads/orbit-bg/shamseh-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="shamseh"]{--orb-bg-image:url("/static/uploads/orbit-bg/shamseh-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="arabesque"]{--orb-bg-image:url("/static/uploads/orbit-bg/arabesque-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="arabesque"]{--orb-bg-image:url("/static/uploads/orbit-bg/arabesque-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="muqarnas"]{--orb-bg-image:url("/static/uploads/orbit-bg/muqarnas-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="muqarnas"]{--orb-bg-image:url("/static/uploads/orbit-bg/muqarnas-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="tiled-star"]{--orb-bg-image:url("/static/uploads/orbit-bg/tiled-star-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="tiled-star"]{--orb-bg-image:url("/static/uploads/orbit-bg/tiled-star-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="persian-wave"]{--orb-bg-image:url("/static/uploads/orbit-bg/persian-wave-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="persian-wave"]{--orb-bg-image:url("/static/uploads/orbit-bg/persian-wave-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="turquoise-flower"]{--orb-bg-image:url("/static/uploads/orbit-bg/turquoise-flower-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="turquoise-flower"]{--orb-bg-image:url("/static/uploads/orbit-bg/turquoise-flower-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="saffron-geometry"]{--orb-bg-image:url("/static/uploads/orbit-bg/saffron-geometry-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="saffron-geometry"]{--orb-bg-image:url("/static/uploads/orbit-bg/saffron-geometry-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="soft-grid"]{--orb-bg-image:url("/static/uploads/orbit-bg/soft-grid-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="soft-grid"]{--orb-bg-image:url("/static/uploads/orbit-bg/soft-grid-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="paper"]{--orb-bg-image:url("/static/uploads/orbit-bg/paper-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="paper"]{--orb-bg-image:url("/static/uploads/orbit-bg/paper-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="mist"]{--orb-bg-image:url("/static/uploads/orbit-bg/mist-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="mist"]{--orb-bg-image:url("/static/uploads/orbit-bg/mist-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="matrix-dots"]{--orb-bg-image:url("/static/uploads/orbit-bg/matrix-dots-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="matrix-dots"]{--orb-bg-image:url("/static/uploads/orbit-bg/matrix-dots-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="diagonal"]{--orb-bg-image:url("/static/uploads/orbit-bg/diagonal-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="diagonal"]{--orb-bg-image:url("/static/uploads/orbit-bg/diagonal-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="gentle-waves"]{--orb-bg-image:url("/static/uploads/orbit-bg/gentle-waves-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="gentle-waves"]{--orb-bg-image:url("/static/uploads/orbit-bg/gentle-waves-dark.svg")}
html[data-theme="light"] body[data-orbit-bg-pattern="gradient-sky"]{--orb-bg-image:url("/static/uploads/orbit-bg/gradient-sky-light.svg")}
html:not([data-theme="light"]) body[data-orbit-bg-pattern="gradient-sky"]{--orb-bg-image:url("/static/uploads/orbit-bg/gradient-sky-dark.svg")}
body[data-orbit-bg-strength="0"]{--orb-bg-opacity:0}
body[data-orbit-bg-strength="5"]{--orb-bg-opacity:0.05}
body[data-orbit-bg-strength="10"]{--orb-bg-opacity:0.1}
body[data-orbit-bg-strength="15"]{--orb-bg-opacity:0.15}
body[data-orbit-bg-strength="20"]{--orb-bg-opacity:0.2}
body[data-orbit-bg-strength="25"]{--orb-bg-opacity:0.25}
body[data-orbit-bg-strength="30"]{--orb-bg-opacity:0.3}
body[data-orbit-bg-strength="35"]{--orb-bg-opacity:0.35}
body[data-orbit-bg-strength="40"]{--orb-bg-opacity:0.4}

/* Editor: layout, controls, previews */
.orb-bg-editor{grid-column:1/-1;overflow:hidden;padding:clamp(15px,2vw,28px)!important}
.orb-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.orb-editor-heading h2{font-size:clamp(19px,2vw,25px);margin:5px 0}.orb-editor-heading p{color:var(--muted);font-size:12px;max-width:650px}
.orb-kicker{font-size:10px;letter-spacing:1.5px;color:var(--accent);font-weight:750;direction:ltr;display:inline-block}.orb-editor-count{font-size:11px;background:var(--panel2);border:1px solid var(--line);padding:8px 12px;border-radius:40px;white-space:nowrap}
.orb-workspace{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(290px,.85fr);gap:25px;padding-top:23px}.orb-library{min-width:0}.orb-library-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:10px}.orb-library-heading strong{font-size:14px}.orb-library-heading small{font-size:11px;color:var(--muted)}
.orb-filterbar{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}.orb-filterbar button{font-size:11px;font-weight:700;border:1px solid var(--line);color:var(--muted);border-radius:9px;padding:8px 11px;background:var(--panel2);transition:.15s}.orb-filterbar button.is-active{background:color-mix(in srgb,var(--accent) 15%,var(--panel));color:var(--text);border-color:var(--accent)}.orb-filterbar button:focus-visible,.orb-pattern-card:focus-within,.orb-mode-switch button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.orb-pattern-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.orb-pattern-card{display:grid;position:relative;cursor:pointer;border:1px solid var(--line);border-radius:13px;background:var(--panel2);padding:6px;gap:7px;min-width:0;transition:transform .15s,border-color .15s,box-shadow .15s}.orb-pattern-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}.orb-pattern-card:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.orb-pattern-card input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden}.orb-thumb{height:78px;position:relative;border-radius:9px;overflow:hidden;background-color:#eff4f8;background-image:var(--tile-light);background-size:100% 100%;display:grid;place-items:center;isolation:isolate}.orb-thumb-circle{width:52px;height:39px;border-radius:9px;background:rgba(255,255,255,.8);border:1px solid rgba(37,67,88,.1);box-shadow:0 3px 12px #112b4510}.orb-card-name{font-size:10px;font-weight:700;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline:2px}.orb-card-check{display:none;position:absolute;top:10px;left:10px;width:20px;height:20px;border-radius:50%;background:var(--accent);color:white;align-items:center;justify-content:center;font-size:11px}.orb-pattern-card:has(input:checked) .orb-card-check{display:flex}
.orb-preview-panel{min-width:0;background:var(--panel2);border:1px solid var(--line);border-radius:17px;padding:15px;align-self:start}.orb-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.orb-preview-head>span{font-size:12px;font-weight:800}.orb-mode-switch{display:flex;gap:3px;padding:3px;border-radius:9px;background:var(--panel);border:1px solid var(--line)}.orb-mode-switch button{border:0;background:transparent;color:var(--muted);padding:5px 9px;font-size:10px;border-radius:7px;font-weight:800}.orb-mode-switch button.is-active{color:var(--text);background:var(--panel2);box-shadow:0 1px 3px #0002}
.orb-preview-stage{position:relative;overflow:hidden;isolation:isolate;border-radius:13px;min-height:262px;background:#101c2c;color:#edf6ff;border:1px solid #263b53;transition:background-color .2s}.orb-preview-stage[data-preview-mode="light"]{background:#eff4f8;color:#17283d;border-color:#d8e3ec}.orb-preview-art{position:absolute;inset:0;z-index:-1;opacity:.2;background-size:256px 256px;background-repeat:repeat;pointer-events:none}.orb-preview-content{padding:15px;position:relative;z-index:1}.orb-mini-header{display:flex;align-items:center;gap:7px;border-bottom:1px solid currentColor;padding-bottom:10px;font-size:11px;letter-spacing:.8px}.orb-mini-logo{font-size:23px;color:#68cde0}.orb-mini-menu{margin-right:auto}.orb-mini-label{display:block;margin-top:18px;color:#5bbacb;font-size:10px;font-weight:700}.orb-preview-stage[data-preview-mode="light"] .orb-mini-label{color:#237e98}.orb-preview-stage h3{font-size:17px!important;margin-top:5px!important;line-height:1.75}.orb-preview-stage p{font-size:10px;opacity:.82}.orb-mini-news{display:flex;gap:10px;align-items:center;background:rgba(23,42,65,.92);border:1px solid rgba(141,177,202,.18);padding:10px;border-radius:11px;margin-top:17px}.orb-mini-news div{display:grid;gap:3px}.orb-mini-news strong{font-size:11px}.orb-mini-news small{font-size:9px;opacity:.7}.orb-preview-stage[data-preview-mode="light"] .orb-mini-news{background:rgba(255,255,255,.95);border-color:#d6e1ea}.orb-mini-photo{flex:none;width:59px;height:50px;border-radius:7px;background:radial-gradient(circle at 68% 33%,#8de8ed 0 6px,transparent 8px),radial-gradient(ellipse at 40% 130%,#225c94 0 45%,transparent 47%),linear-gradient(145deg,#05162a,#285d85)}
.orb-preview-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:13px 0 18px}.orb-preview-caption strong{font-size:12px}.orb-preview-caption small{font-size:9px;color:var(--muted)}.orb-setting-row{display:flex!important;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;font-size:12px;font-weight:800}.orb-setting-row span{display:block}.orb-setting-row small{display:block;color:var(--muted);font-size:10px;font-weight:400}.orb-setting-row b{font-variant-numeric:tabular-nums;color:var(--accent)}.orb-range{appearance:none;width:100%;background:transparent!important;accent-color:var(--accent);margin:11px 0 4px;padding:0!important;border:0!important}.orb-range::-webkit-slider-runnable-track{height:5px;border-radius:10px;background:linear-gradient(90deg,var(--panel),var(--accent))}.orb-range::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border-radius:50%;border:3px solid var(--panel);background:var(--accent);margin-top:-5px;box-shadow:0 0 0 1px var(--accent)}.orb-range::-moz-range-track{height:5px;background:var(--accent);border-radius:10px}.orb-range-ticks{display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}.orb-scope-label{margin-top:22px}.orb-scope-select{width:100%;border:1px solid var(--line);border-radius:9px;padding:9px;background:var(--panel);color:var(--text);font-size:11px;min-width:0}.orb-actions{display:flex;gap:8px;margin-top:19px}.orb-save-button{flex:1;background:var(--accent);border:0;color:white;padding:10px;border-radius:9px;font-size:11px;font-weight:800}.orb-reset{background:var(--panel);border:1px solid var(--line);border-radius:9px;color:var(--text);padding:9px 12px;font-size:11px}.orb-note{color:var(--muted);font-size:10px;line-height:1.9;padding-top:13px;margin-top:14px;border-top:1px solid var(--line)}
@media(max-width:1100px){.orb-workspace{grid-template-columns:1fr}.orb-pattern-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:620px){.orb-editor-heading{align-items:flex-start}.orb-editor-count{font-size:9px}.orb-pattern-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.orb-thumb{height:67px}.orb-bg-editor{padding:13px!important}.orb-preview-panel{padding:12px}}
@media(prefers-reduced-motion:reduce){.orb-pattern-card{transition:none}}
.orb-pattern-card[hidden]{display:none!important}
