/* PanelimAze 1.0.4 — local theme engine. Original theme is untouched. */
[data-theme=classic]{--t-bg:#f4f6fb;--t-panel:#fff;--t-text:#182438;--t-muted:#617089;--t-line:#e2e7ef;--t-accent:#4357cc;--t-ink:#fff;--t-nav:#11182c;--t-hero:#203c9d;--t-glow:#4c72ee;--t-radius:16px}
[data-theme=obsidian]{--t-bg:#111110;--t-panel:#1b1b19;--t-text:#f6f0e4;--t-muted:#bcb5a5;--t-line:#36332b;--t-accent:#dfbe79;--t-hover:#f2d69c;--t-ink:#201609;--t-nav:#141411;--t-navtext:#ddd1b7;--t-navmuted:#b5a88d;--t-hero:#252018;--t-glow:#806536;--t-soft:#332b1e;--t-radius:8px;--t-shadow:0 12px 34px #0005;--t-font:Georgia,'Times New Roman',serif;--t-status-ok:#9ae5b8;--t-status-warn:#f0cb77;--t-status-bad:#ffadb1;--t-status-neutral:#c6c1b5;color-scheme:dark}
[data-theme=aurora]{--t-bg:#edf0fa;--t-panel:#fbfcff;--t-text:#242643;--t-muted:#5d6180;--t-line:#d7ddf0;--t-accent:#6250bd;--t-hover:#4b399e;--t-ink:#fff;--t-nav:#252247;--t-navtext:#f1edff;--t-navmuted:#c9c0ed;--t-hero:#5140a4;--t-glow:#3e89bd;--t-soft:#ede9fc;--t-radius:26px;--t-shadow:0 16px 40px #514b9318;--t-font:system-ui,sans-serif}
[data-theme=cyber]{--t-bg:#080f19;--t-panel:#101e2c;--t-text:#e1f7fa;--t-muted:#9ab7c5;--t-line:#24404e;--t-accent:#55efd9;--t-hover:#8ff8e8;--t-ink:#052d2b;--t-nav:#0a141e;--t-navtext:#d5f8f5;--t-navmuted:#94bfc3;--t-hero:#0d303b;--t-glow:#146c78;--t-soft:#143b40;--t-radius:4px;--t-shadow:0 10px 25px #0006;--t-font:ui-monospace,Consolas,monospace;--t-status-ok:#9ae5b8;--t-status-warn:#f0cb77;--t-status-bad:#ffadb1;--t-status-neutral:#c6d6dc;color-scheme:dark}
[data-theme=ivory]{--t-bg:#f5efe5;--t-panel:#fffdf7;--t-text:#3a2c24;--t-muted:#726052;--t-line:#ded2c2;--t-accent:#795036;--t-hover:#603c27;--t-ink:#fff;--t-nav:#392d27;--t-navtext:#f6e9d7;--t-navmuted:#d2bdad;--t-hero:#49382b;--t-glow:#967352;--t-soft:#f1e4d5;--t-radius:3px;--t-shadow:0 9px 25px #5a422013;--t-font:Georgia,'Times New Roman',serif}
[data-theme=emerald]{--t-bg:#eaf3ee;--t-panel:#fffefa;--t-text:#15372b;--t-muted:#506e60;--t-line:#c9ded3;--t-accent:#17664e;--t-hover:#0c4938;--t-ink:#fff;--t-nav:#103c30;--t-navtext:#e8fff2;--t-navmuted:#a9d6c1;--t-hero:#124937;--t-glow:#368c70;--t-soft:#e2f0e8;--t-radius:14px;--t-shadow:0 12px 30px #1a573413;--t-font:system-ui,sans-serif}
[data-theme=ocean]{--t-bg:#e9f3fa;--t-panel:#fff;--t-text:#143148;--t-muted:#4f6e84;--t-line:#cbdfea;--t-accent:#126d9a;--t-hover:#095579;--t-ink:#fff;--t-nav:#10334e;--t-navtext:#e8f7ff;--t-navmuted:#adcee2;--t-hero:#124d78;--t-glow:#27a0c4;--t-soft:#e2f1f9;--t-radius:20px;--t-shadow:0 14px 34px #225b7f16;--t-font:system-ui,sans-serif}
[data-theme=royal]{--t-bg:#f3edf7;--t-panel:#fffafd;--t-text:#392344;--t-muted:#735a7c;--t-line:#e4d3e7;--t-accent:#83448c;--t-hover:#682c71;--t-ink:#fff;--t-nav:#34213e;--t-navtext:#f9eaff;--t-navmuted:#dcc0e2;--t-hero:#57316e;--t-glow:#c07fba;--t-soft:#f1e2f3;--t-radius:30px;--t-shadow:0 16px 40px #6e3b7c16;--t-font:Georgia,'Times New Roman',serif}
body[data-theme]:not([data-theme=classic]){--bg:var(--t-bg);--panel:var(--t-panel);--text:var(--t-text);--muted:var(--t-muted);--line:var(--t-line);--primary:var(--t-accent);--primary-dark:var(--t-hover);--nav:var(--t-nav);--radius:var(--t-radius);--shadow:var(--t-shadow);--green:var(--t-status-ok,#08754b);--red:var(--t-status-bad,#a32340);--amber:var(--t-status-warn,#835700);background:var(--bg);color:var(--text)}
body:not([data-theme=classic])[data-theme] h1,body:not([data-theme=classic])[data-theme] .banner h2,body:not([data-theme=classic])[data-theme] .auth-inner h2,body:not([data-theme=classic])[data-theme] .price{font-family:var(--t-font);letter-spacing:-.035em}
body:not([data-theme=classic])[data-theme] :is(.sidebar,.public-story){background:radial-gradient(ellipse at 100% 0,var(--t-glow),transparent 60%),var(--nav);border-color:var(--line);color:var(--t-navtext)}
body:not([data-theme=classic])[data-theme] :is(.sidebar nav a,.side-label){color:var(--t-navmuted)}
body:not([data-theme=classic])[data-theme] .sidebar nav a .ui-icon{color:inherit}
body:not([data-theme=classic])[data-theme] .sidebar nav a:is(:hover,.active){color:var(--t-ink);background:var(--primary);box-shadow:none;border-radius:var(--radius)}
body:not([data-theme=classic])[data-theme] .brand-accent{color:var(--primary)}
body:not([data-theme=classic])[data-theme] .sidebar .brand-accent{color:var(--t-navtext)}
body:not([data-theme=classic])[data-theme] :is(.logo,.orbit-core){background:linear-gradient(135deg,var(--t-accent),var(--t-hover));color:var(--t-ink);box-shadow:none;border-radius:var(--radius)}
body:not([data-theme=classic])[data-theme] :is(.logo,.orbit-core) .ui-icon{fill:currentColor}
body:not([data-theme=classic])[data-theme] :is(.topbar,.public-grid,.auth-inner input,.public-auth,input,select,textarea){background:var(--panel);color:var(--text);border-color:var(--line)}
body:not([data-theme=classic])[data-theme] :is(.card,.table-wrap,.public-grid,.banner,.button,button,input,select,textarea,.message,.empty,.bank .card-number){border-radius:var(--radius)}
body:not([data-theme=classic])[data-theme] :is(label,details summary,.public-info,.brand-caption,.auth-note,.breadcrumb strong){color:var(--text)}
body:not([data-theme=classic])[data-theme] :is(.eyebrow,.auth-kicker,.link,.password-wrap .password-toggle){color:var(--primary)}
body:not([data-theme=classic])[data-theme] :is(.auth-tabs,.tag,.role,.avatar,.count,.empty,.message,.bank .card-number,.service-icon,.stat-icon,.menu-toggle,.password-wrap .password-toggle:hover,input::file-selector-button){background:var(--t-soft);color:var(--text);border-color:var(--line)}
body:not([data-theme=classic])[data-theme] .auth-tabs a{color:var(--muted)}
body:not([data-theme=classic])[data-theme] .auth-tabs a.selected{background:var(--panel);color:var(--primary)}
body:not([data-theme=classic])[data-theme] .password-wrap .password-toggle{background:transparent}
body:not([data-theme=classic])[data-theme] :is(button,.button,.auth-inner form button[type=submit]){background:var(--primary);color:var(--t-ink);box-shadow:none}
body:not([data-theme=classic])[data-theme] :is(button,.button,.auth-inner form button[type=submit]):hover{background:var(--primary-dark);color:var(--t-ink)}
body:not([data-theme=classic])[data-theme] :is(button.secondary,.button.secondary){background:var(--panel);color:var(--text);border-color:var(--line)}
body:not([data-theme=classic])[data-theme] :is(button.danger,.button.danger){background:var(--t-soft);color:var(--red);border-color:var(--line)}
body:not([data-theme=classic])[data-theme] :is(button.success,.button.success){background:#126744;color:#fff}
body:not([data-theme=classic])[data-theme] .banner{background:radial-gradient(ellipse at right top,var(--t-glow),transparent 65%),var(--t-hero);padding:36px;color:#fff;box-shadow:var(--shadow);isolation:isolate}
body:not([data-theme=classic])[data-theme] .banner:after{content:"";position:absolute;z-index:-1;width:280px;height:280px;right:-80px;top:-110px;border:1px solid #ffffff30;border-radius:50%;box-shadow:0 0 0 26px #ffffff0d,0 0 0 52px #ffffff0a;pointer-events:none}
body:not([data-theme=classic])[data-theme] :is(.banner p,.banner .eyebrow,.story-kicker,.story-content>p,.story-about p,.story-features span){color:#fff}
body:not([data-theme=classic])[data-theme] .public-story h1 span{color:#f5e7d1}
body:not([data-theme=classic])[data-theme] :is(.story-features .ui-icon,.story-about strong){color:#fff}
body:not([data-theme=classic])[data-theme] .orbit-dot{background:#fff;box-shadow:0 0 14px #fff9}
body:not([data-theme=classic])[data-theme] :is(.orbit,.orbit-two,.orbit-three){border-color:#ffffff50}
body:not([data-theme=classic])[data-theme] .public-grid{box-shadow:var(--shadow)}
body:not([data-theme=classic])[data-theme] :is(.package,.admin-package){position:relative;overflow:hidden;border-top:3px solid var(--primary);padding:26px;min-height:320px}
body:not([data-theme=classic])[data-theme] .package:hover{border-color:var(--primary);box-shadow:var(--shadow)}
body:not([data-theme=classic])[data-theme] :is(input,select,textarea):focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--t-soft)}
body:not([data-theme=classic])[data-theme] :is(th,tbody tr:hover,.message.staff,.alert){background:var(--t-soft);color:var(--text);border-color:var(--line)}
body:not([data-theme=classic])[data-theme] :is(.alert.error,.cancelled){color:var(--red);background:var(--t-soft);border-color:var(--line)}
body:not([data-theme=classic])[data-theme] :is(.approved,.answered,.wallet){color:var(--green);background:var(--t-soft);border-color:var(--line)}
body:not([data-theme=classic])[data-theme] :is(.pending,.open){color:var(--amber);background:var(--t-soft);border-color:var(--line)}
body:not([data-theme=classic])[data-theme] .closed{color:var(--t-status-neutral,var(--muted));background:var(--t-soft);border-color:var(--line)}
/* Distinct layouts and motifs, not just different accent colours. */
body[data-theme=obsidian] .public-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);border:1px solid #8a704b;border-radius:8px}
body[data-theme=obsidian] .public-story:before{background:repeating-linear-gradient(120deg,transparent 0 22px,#dfbe791a 23px 24px)}
body[data-theme=obsidian] .orbit-core{transform:rotate(65deg);border:1px solid #f2d69c}
body[data-theme=obsidian] .orbit-core .ui-icon{transform:rotate(-45deg)}
body[data-theme=obsidian] .package{border-top:1px solid #9d8050;border-left:3px solid var(--primary)}
body[data-theme=obsidian] .section-head{padding-bottom:15px;border-bottom:1px solid var(--line)}
body[data-theme=aurora]{background:radial-gradient(ellipse at 85% 0,#d6d4fd,transparent 55%),radial-gradient(ellipse at 20% 70%,#d8edf7,transparent 60%),var(--bg);background-attachment:fixed}
body[data-theme=aurora] .public-grid{grid-template-columns:1fr 1fr;border:5px solid #ffffff80;border-radius:38px}
body[data-theme=aurora] .public-story{border-radius:32px;min-height:570px}
body[data-theme=aurora] .card,body[data-theme=aurora] .topbar{background:#ffffffdc;backdrop-filter:blur(15px)}
body[data-theme=aurora] .package{border:1px solid #fff;border-top:4px solid #9d8bef}
body[data-theme=aurora] .orbit-core{border-radius:50%;box-shadow:0 0 60px #b0b2ff90}
body[data-theme=cyber] .public-story:before{background-image:linear-gradient(#55efd913 1px,transparent 1px),linear-gradient(90deg,#55efd913 1px,transparent 1px);background-size:24px 24px;opacity:1}
body[data-theme=cyber] .public-grid{border:1px solid #337279;grid-template-columns:1fr 1fr}
body[data-theme=cyber] .card{border-left:2px solid #337279}
body[data-theme=cyber] .orbit-core{border:1px solid #55efd9;box-shadow:0 0 40px #55efd960}
body[data-theme=cyber] .banner:after{border-radius:0;transform:rotate(45deg)}
body[data-theme=ivory] .public-grid{grid-template-columns:.9fr 1.1fr;max-width:1120px;width:100%;margin:auto;border:1px solid #cbb8a1}
body[data-theme=ivory] .public-story{grid-column:2;grid-row:1}
body[data-theme=ivory] .public-auth{grid-column:1;grid-row:1}
body[data-theme=ivory] .public-story:before{background:repeating-linear-gradient(90deg,transparent 0 46px,#fff1d51a 47px 48px)}
body[data-theme=ivory] .group-title{border-bottom:1px solid var(--line);padding-bottom:13px}
body[data-theme=ivory] .package{border-top:0;border-bottom:3px double var(--primary)}
body[data-theme=emerald] .public-grid{border-radius:26px 4px 26px 4px}
body[data-theme=emerald] .public-story:before{background:repeating-linear-gradient(60deg,transparent 0 35px,#c4ffe315 36px 37px)}
body[data-theme=emerald] .orbit{border-radius:32%;transform:rotate(25deg)}
body[data-theme=emerald] .package{border-top:0;border-left:4px solid var(--primary);border-radius:5px 24px 24px 5px}
body[data-theme=emerald] .banner{border-radius:5px 28px 28px 5px}
body[data-theme=ocean] .public-shell{max-width:1600px}
body[data-theme=ocean] .public-grid{grid-template-columns:1.3fr .7fr;border-radius:40px}
body[data-theme=ocean] .public-story:before{background:repeating-radial-gradient(ellipse at 90% 5%,transparent 0 35px,#ffffff20 36px 37px)}
body[data-theme=ocean] .banner:after{width:450px;height:450px;right:-120px;top:-300px}
body[data-theme=ocean] .package{border-top:0;border-bottom:4px solid var(--primary)}
body[data-theme=royal] .public-grid{grid-template-columns:.95fr 1.05fr;border-radius:45px}
body[data-theme=royal] .public-story:before{background:repeating-radial-gradient(ellipse at 70% 20%,transparent 0 24px,#f8d5fa19 25px 26px)}
body[data-theme=royal] .orbit-core{border-radius:60% 40% 55% 45%;box-shadow:0 0 55px #ffb6ed55}
body[data-theme=royal] .package{border:1px solid var(--line);border-radius:30px 30px 8px 30px}
body[data-theme=royal] .package-top{padding-bottom:14px;border-bottom:1px solid var(--line)}
@media(max-width:860px){body:not([data-theme=classic])[data-theme] .banner{padding:25px}body:not([data-theme=classic])[data-theme] .sidebar{box-shadow:0 0 0 100vmax #0008}}
@media(max-width:760px){body:not([data-theme=classic])[data-theme] .public-grid{grid-template-columns:1fr;border-radius:22px}body:not([data-theme=classic])[data-theme] .public-auth{grid-row:1;grid-column:1}body:not([data-theme=classic])[data-theme] .public-story{grid-row:2;grid-column:1;min-height:0;border-radius:0}body:not([data-theme=classic])[data-theme] .package{padding:20px;min-height:270px}}
/* Admin theme library (always uses original admin shell). */
.theme-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px;background:linear-gradient(115deg,#fff,#edf0ff)}.theme-intro p{max-width:660px;margin:0}.theme-total{font-size:42px;line-height:1;color:#4357cc;font-weight:800;white-space:nowrap}.theme-total small{font-size:14px}.theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:20px}.theme-tile{padding:0;overflow:hidden;margin:0;display:flex;flex-direction:column}.theme-current{border:2px solid #4357cc}.theme-info{padding:20px;display:flex;flex:1;flex-direction:column}.theme-info h2{font-size:20px;margin:9px 0}.theme-info p{min-height:43px;font-size:13px}.theme-meta{display:flex;justify-content:space-between;align-items:center;gap:8px}.theme-meta small{font-size:10px;letter-spacing:.13em}.theme-actions{margin-top:auto}.theme-actions form,.theme-actions button{margin:0;width:100%}.theme-active-label{display:block;text-align:center;padding:9px;background:#eef2ff;color:#4357cc;border-radius:8px;font-weight:700}.theme-preview{display:grid;grid-template-columns:24% 76%;height:185px;background:var(--t-bg);color:var(--t-text);overflow:hidden;pointer-events:none}.tp-side{background:var(--t-nav);padding:14px 10px;display:flex;flex-direction:column;gap:9px;color:white}.tp-side b{font-size:18px;letter-spacing:-.1em;margin-bottom:8px}.tp-side b span{color:var(--t-accent)}.tp-side i{height:7px;border-radius:4px;background:#ffffff33}.tp-side i:first-of-type{background:var(--t-accent);height:16px}.tp-side i:nth-of-type(3){width:75%}.tp-main{padding:12px 10px;min-width:0}.tp-bar{display:flex;justify-content:space-between;align-items:center;font-size:9px;margin-bottom:9px}.tp-bar i{height:13px;width:13px;background:var(--t-accent);border-radius:50%}.tp-hero{padding:12px;position:relative;overflow:hidden;border-radius:var(--t-radius);background:radial-gradient(ellipse at right top,var(--t-glow),transparent 70%),var(--t-hero);color:white;display:flex;flex-direction:column;gap:3px}.tp-hero small{font-size:7px;letter-spacing:.1em;color:#fff}.tp-hero strong{font:700 16px/1.2 var(--t-font,system-ui);color:white}.tp-hero span{width:40%;height:5px;background:#ffffff55;border-radius:4px}.tp-cards{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.tp-cards>div{min-width:0;background:var(--t-panel);border:1px solid var(--t-line);border-radius:var(--t-radius);padding:8px;display:flex;flex-direction:column;gap:5px}.tp-cards i{width:12px;height:12px;background:var(--t-accent);border-radius:3px}.tp-cards b{font-size:10px;white-space:nowrap}.tp-cards span{height:5px;background:var(--t-accent);border-radius:4px;width:80%}.theme-preview[data-theme=cyber] .tp-hero{background-image:linear-gradient(#55efd91c 1px,transparent 1px),linear-gradient(90deg,#55efd91c 1px,transparent 1px);background-size:12px 12px}.theme-preview[data-theme=ivory] .tp-cards>div{border-bottom:2px solid var(--t-accent)}.theme-preview[data-theme=emerald] .tp-cards>div{border-left:3px solid var(--t-accent)}.theme-preview[data-theme=obsidian] .tp-cards>div{border-top:2px solid var(--t-accent)}
/* Individual desktop compositions; mobile retains the familiar navigation drawer. */
body[data-theme]:not([data-theme=classic]) .sidebar .side-label{color:var(--t-navmuted)}
body[data-theme]:not([data-theme=classic]) .sidebar .side-bottom button.secondary{background:#ffffff0c;border-color:#ffffff40;color:#fff}
body[data-theme]:not([data-theme=classic]) .banner .button.secondary{background:var(--panel);color:var(--text)}
body[data-theme]:not([data-theme=classic]) input::file-selector-button{background:var(--t-soft);color:var(--text)}
body[data-theme=obsidian] .price{font-size:38px;font-weight:600}
body[data-theme=cyber] .group-title{font-family:var(--t-font);letter-spacing:.015em}
body[data-theme=cyber] .package:after{content:"";position:absolute;top:0;right:0;width:20px;height:20px;background:linear-gradient(45deg,transparent 49%,var(--primary) 50%,var(--primary) 53%,transparent 54%);pointer-events:none}
body[data-theme=royal] .price{font-size:38px;font-weight:600}
@media(min-width:1101px){
 body[data-theme=obsidian] .layout{grid-template-columns:218px minmax(0,1fr)}
 body[data-theme=obsidian] .content{padding:36px 42px}
 body[data-theme=aurora] .layout{grid-template-columns:250px minmax(0,1fr);gap:10px;padding:14px}
 body[data-theme=aurora] .sidebar{top:14px;height:calc(100dvh - 28px);border:0;border-radius:25px;box-shadow:0 16px 40px #453d7f22}
 body[data-theme=aurora] .topbar{top:14px;border:1px solid #fff;border-radius:20px}
 body[data-theme=aurora] .content{padding:26px 16px}
 body[data-theme=cyber] .layout{grid-template-columns:232px minmax(0,1fr)}
 body[data-theme=cyber] .content{padding:27px 34px}
 body[data-theme=cyber] .banner{border:1px solid #2f737b}
 body[data-theme=ivory] .layout{grid-template-columns:220px minmax(0,1fr)}
 body[data-theme=ivory] .content{max-width:1250px;padding:44px 45px}
 body[data-theme=ivory] .banner{padding:42px}
 body[data-theme=ivory] .package-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:22px}
 body[data-theme=emerald] .layout{grid-template-columns:265px minmax(0,1fr)}
 body[data-theme=emerald] .package-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr))}
 body[data-theme=emerald] .package{min-height:276px}
 body[data-theme=ocean] .layout{display:block}
 body[data-theme=ocean] .sidebar{position:static;display:flex;flex-direction:row;align-items:center;gap:26px;width:100%;height:auto;padding:15px 25px;overflow:visible;border:0}
 body[data-theme=ocean] .sidebar .brand{margin:0;flex:none}
 body[data-theme=ocean] .side-label{display:none}
 body[data-theme=ocean] .sidebar nav{display:flex;flex-wrap:wrap;gap:4px;align-items:center;flex:1}
 body[data-theme=ocean] .sidebar nav a{font-size:12px;padding:9px 11px;gap:7px;white-space:nowrap}
 body[data-theme=ocean] .side-bottom{margin:0;padding:0;border:0;flex:none}
 body[data-theme=ocean] .side-bottom small{display:none}
 body[data-theme=ocean] .side-bottom form,body[data-theme=ocean] .side-bottom button{margin:0}
 body[data-theme=ocean] .topbar{height:60px}
 body[data-theme=ocean] .content{max-width:1240px;padding:34px}
 body[data-theme=ocean] .package-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr))}
 body[data-theme=royal] .layout{grid-template-columns:265px minmax(0,1fr);padding:16px;gap:12px}
 body[data-theme=royal] .sidebar{top:16px;height:calc(100dvh - 32px);border-radius:34px 34px 8px 34px;border:0}
 body[data-theme=royal] .topbar{top:16px;border-radius:22px;border:1px solid var(--line)}
 body[data-theme=royal] .content{padding:34px 18px}
 body[data-theme=royal] .banner{padding:44px;border-radius:42px 42px 10px 42px}
}
