/* CONCILION ORQION — final premium theme layer.
 * Loaded last on purpose: one semantic token system, one responsive matrix.
 */
:root[data-theme="orqion"]{
  --app-bg:#070d1d;--sidebar-bg:#081326;--surface:#101a33;--surface-2:#172444;
  --surface-glass:#0b1b34e8;--line:#235284;--ink:#f7faff;--muted:#a9bad9;
  --accent:#00d9ff;--accent-2:#8257e5;--success:#12deb0;--focus:#62e7ff;
  --hero:url('/assets/orqion-hero-premium-v3.jpg');--hero-pos:62% center;
  --hero-mask:linear-gradient(90deg,#071226 0%,#071226f5 25%,#071226b8 39%,transparent 54%);
  --hero-card:#071a33e8;--hero-card-line:#185b94;--map-image:url('/assets/orqion-global-map-dark-v2.jpg');--map-filter:saturate(1.08) contrast(1.03);
  --card-shadow:0 8px 24px #0005;--glow:0 0 22px #008cff28;
}
:root[data-theme="black"]{
  --app-bg:#050608;--sidebar-bg:#090a0d;--surface:#111318;--surface-2:#191c22;
  --surface-glass:#0b0d11ed;--line:#30343b;--ink:#f1f3f6;--muted:#a0a5b0;
  --accent:#00bceb;--accent-2:#3478f6;--success:#20c99b;--focus:#64d8f2;
  --hero:url('/assets/orqion-hero-black-v3.jpg');--hero-pos:61% center;
  --hero-mask:linear-gradient(90deg,#050608 0%,#050608f6 27%,#050608bd 42%,transparent 56%);
  --hero-card:#0b0e12ed;--hero-card-line:#343a42;--map-image:url('/assets/orqion-global-map-dark-v2.jpg');--map-filter:grayscale(.28) saturate(.72) contrast(1.06) brightness(.82);
  --card-shadow:0 8px 22px #0008;--glow:none;
}
:root[data-theme="light"]{
  --app-bg:#f5f7fc;--sidebar-bg:#fff;--surface:#fff;--surface-2:#edf2fa;
  --surface-glass:#fffffff2;--line:#dce4f0;--ink:#14213d;--muted:#52627a;
  --accent:#2563eb;--accent-2:#8257e5;--success:#058c70;--focus:#2563eb;
  --hero:url('/assets/orqion-hero-light-v3.jpg');--hero-pos:63% center;
  --hero-mask:linear-gradient(90deg,#fff 0%,#fffffff8 27%,#ffffffc9 42%,transparent 56%);
  --hero-card:#fffffff2;--hero-card-line:#d8e4f0;--map-image:url('/assets/orqion-global-map-light-v2.jpg');--map-filter:saturate(.88) contrast(.96);
  --card-shadow:0 6px 20px #17325a12;--glow:none;
}

html[data-theme],html[data-theme] body{background:var(--app-bg);color:var(--ink)}
body[data-theme] .n3-dashboard{color:var(--ink)}
body[data-theme]:has(.n3-dashboard) .main{background:var(--app-bg)}
body[data-theme]:has(.n3-dashboard) .sidebar{background:var(--sidebar-bg);border-color:var(--line)}
body[data-theme]:has(.n3-dashboard) .topbar{background:color-mix(in srgb,var(--sidebar-bg),transparent 4%);border-color:var(--line)}
body[data-theme] .n3-panel{background:var(--surface);border-color:var(--line);box-shadow:var(--card-shadow)}
body[data-theme] button:focus-visible,body[data-theme] [tabindex]:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* Hero and infrastructure panel */
body[data-theme] .n3-toprow{display:grid;grid-template-columns:minmax(0,3.1fr) minmax(340px,1fr);gap:10px;min-height:clamp(326px,19vw,360px);margin-bottom:10px}
body[data-theme] .n3-hero,body[data-theme] .n3-global-panel{height:auto;min-height:clamp(326px,19vw,360px);border-radius:12px}
body[data-theme] .n3-hero{position:relative;overflow:hidden;background:var(--app-bg)}
body[data-theme] .n3-hero-art{position:absolute;inset:0;background:var(--hero) var(--hero-pos)/auto 108% no-repeat;filter:none;opacity:1;pointer-events:none}
body[data-theme] .n3-hero:after{content:"";position:absolute;z-index:1;inset:0 190px 0 0;background:var(--hero-mask);pointer-events:none}
body[data-theme] .n3-hero-layout{position:relative;z-index:2;display:grid;grid-template-columns:minmax(380px,34%) minmax(250px,1fr) 190px;min-height:inherit;height:100%}
body[data-theme] .n3-hero-content{position:relative;width:auto;min-width:0;height:auto!important;min-height:0!important;padding:22px 16px 20px 26px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
body[data-theme] .n3-hero-stage{min-width:0}
body[data-theme] .n3-hero-brand{display:flex;align-items:center;gap:15px;margin:0 0 10px;color:var(--accent);text-shadow:0 0 18px color-mix(in srgb,var(--accent),transparent 56%)}
body[data-theme] .n3-hero-mark{width:82px;height:87px;display:block;flex:none;filter:drop-shadow(0 0 10px color-mix(in srgb,var(--accent),transparent 50%))}
body[data-theme] .n3-hero-mark svg{width:100%;height:100%}
body[data-theme] .n3-hero-brand>span:last-child{display:flex;flex-direction:column;line-height:.94}
body[data-theme] .n3-hero-brand b{font-family:"Space Grotesk",Inter,sans-serif;font-size:clamp(23px,1.55vw,29px);font-weight:800;letter-spacing:.6px;color:var(--ink)}
body[data-theme] .n3-hero-brand strong{font-family:"Space Grotesk",Inter,sans-serif;font-size:clamp(38px,2.55vw,48px);font-weight:800;letter-spacing:.4px;background:linear-gradient(90deg,var(--accent),#2181ff 55%,var(--accent-2));background-clip:text;-webkit-background-clip:text;color:transparent}
body[data-theme] .n3-hero-brand small{font-size:10px;line-height:1.2;letter-spacing:2.5px;color:var(--muted);font-weight:750;margin-top:7px}
body[data-theme] .n3-hero-content h1{font-family:"Space Grotesk",Inter,sans-serif;font-size:clamp(24px,1.8vw,34px)!important;font-weight:780!important;line-height:1.1!important;letter-spacing:-.7px!important;color:var(--ink)!important;margin:0 0 7px!important;white-space:normal}
body[data-theme] .n3-hero-content h1 em{font-style:normal;background:linear-gradient(90deg,var(--accent),#1886ff 56%,var(--accent-2));background-clip:text;-webkit-background-clip:text;color:transparent}
body[data-theme] .n3-hero-content p{max-width:470px;font-size:12px!important;line-height:1.45!important;color:var(--muted)!important;margin:0 0 13px!important;white-space:normal}
body[data-theme] .n3-hero-actions{display:flex;gap:10px;margin:0;flex-wrap:wrap}
body[data-theme] .n3-primary,body[data-theme] .n3-secondary{height:40px;border-radius:9px!important;font-size:12px!important}
body[data-theme] .n3-primary{background:linear-gradient(110deg,#00ceda,#1686f7 66%,#7655eb)!important;color:#fff!important;border-color:#16a5ed!important;box-shadow:0 7px 18px #087fd032!important}
body[data-theme] .n3-secondary{background:var(--surface-glass)!important;color:var(--ink)!important;border-color:color-mix(in srgb,var(--line),white 12%)!important;box-shadow:none!important}

body[data-theme] .n3-hero-benefit-rail{position:relative;inset:auto;width:auto;height:auto;margin:12px 12px 12px 0;display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:7px}
body[data-theme] .n3-benefit-card{min-height:0;display:flex;align-items:center;gap:10px;padding:9px;border:1px solid var(--hero-card-line);border-radius:10px;background:var(--hero-card);box-shadow:var(--glow);backdrop-filter:blur(8px)}
body[data-theme] .n3-benefit-card>span{width:40px;height:40px;display:grid;place-items:center;flex:none;border-radius:9px;color:#fff;box-shadow:none}
body[data-theme] .n3-benefit-card b{display:block;font-size:12px;line-height:1.2;color:var(--ink);margin:0 0 3px}
body[data-theme] .n3-benefit-card small{display:block;font-size:11px;line-height:1.35;color:var(--muted)}

body[data-theme] .n3-global-panel{position:relative;padding:12px;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(155deg,var(--surface),color-mix(in srgb,var(--surface),var(--accent) 3%))!important;box-shadow:var(--card-shadow),inset 0 1px #ffffff0b}
body[data-theme] .n3-global-head{min-height:46px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
body[data-theme] .n3-global-title{display:flex;align-items:center;gap:9px;min-width:0}.n3-global-title>span{width:32px;height:32px;display:grid;place-items:center;flex:none;border:1px solid color-mix(in srgb,var(--accent),transparent 48%);border-radius:9px;background:color-mix(in srgb,var(--accent),transparent 84%);color:var(--accent);box-shadow:0 0 15px color-mix(in srgb,var(--accent),transparent 78%)}.n3-global-title>span .n3-ico{width:18px;height:18px}
body[data-theme] .n3-global-title h3{font-family:"Space Grotesk",Inter,sans-serif;font-size:14px;line-height:1.15;color:var(--ink);margin:0}.n3-global-title small{display:block;font-size:10px;line-height:1.3;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-theme] .n3-global-badge{display:flex;align-items:center;gap:6px;border:1px solid color-mix(in srgb,var(--success),transparent 40%);background:color-mix(in srgb,var(--success),transparent 86%);color:var(--success);border-radius:15px;padding:6px 9px;font-size:9px;font-weight:850;white-space:nowrap;box-shadow:0 0 14px color-mix(in srgb,var(--success),transparent 84%)}
body[data-theme] .n3-global-badge i{width:8px;height:8px;border-radius:50%;background:var(--success);box-shadow:0 0 8px color-mix(in srgb,var(--success),transparent 25%)}
body[data-theme] .n3-global-map{position:relative;flex:1;min-height:175px;border:1px solid color-mix(in srgb,var(--line),var(--accent) 14%);border-radius:10px;background:var(--map-image) center/cover no-repeat #061a31;filter:var(--map-filter);box-shadow:inset 0 0 30px #00162d99,0 8px 20px #0004;overflow:hidden}
body[data-theme] .n3-global-map:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 58%,#031126a6);pointer-events:none}
body[data-theme] .n3-global-map>span{position:absolute;z-index:1;left:9px;bottom:8px;padding:4px 6px;border:1px solid #56cfff55;border-radius:5px;background:#04172bb8;color:#8edff1;font-size:8px;font-weight:850;letter-spacing:1px;backdrop-filter:blur(5px)}
body[data-theme="light"] .n3-global-map{background-color:#eaf2fb;box-shadow:inset 0 0 28px #d8eaff,0 7px 18px #244b7214}body[data-theme="light"] .n3-global-map:after{background:linear-gradient(180deg,transparent 68%,#eaf4ffd4)}body[data-theme="light"] .n3-global-map>span{background:#ffffffe0;border-color:#87bfe8;color:#216a9f}
body[data-theme] .n3-global-footer{min-height:68px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;margin-top:8px}
body[data-theme] .n3-global-stats{height:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;border:1px solid color-mix(in srgb,var(--line),transparent 15%);border-radius:9px;overflow:hidden;background:color-mix(in srgb,var(--surface-2),transparent 28%)}
body[data-theme] .n3-global-stats>div{min-width:0;min-height:54px;padding:7px 6px;display:flex;align-items:center;gap:6px;border-right:1px solid var(--line)}body[data-theme] .n3-global-stats>div:last-child{border-right:0}
body[data-theme] .n3-global-stats>div>span{width:24px;height:24px;display:grid;place-items:center;flex:none;border-radius:6px;background:color-mix(in srgb,var(--accent),transparent 84%);color:var(--accent)}body[data-theme] .n3-global-stats .n3-ico{width:14px;height:14px}
body[data-theme] .n3-global-stats b,body[data-theme] .n3-global-stats small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-theme] .n3-global-stats b{font-size:13px;line-height:1.2;color:var(--ink)}
body[data-theme] .n3-global-stats small{font-size:9px;line-height:1.3;color:var(--muted);margin-top:2px}
body[data-theme] .n3-global-action{position:static;height:38px;padding:0 11px;display:flex;align-items:center;gap:7px;border:1px solid color-mix(in srgb,var(--accent),var(--line) 42%);border-radius:8px;background:linear-gradient(135deg,color-mix(in srgb,var(--accent),transparent 85%),color-mix(in srgb,var(--accent-2),transparent 90%));color:var(--accent)!important;font-size:10px;font-weight:850;white-space:nowrap;box-shadow:0 5px 14px color-mix(in srgb,var(--accent),transparent 86%)}body[data-theme] .n3-global-action .n3-ico{width:14px;height:14px}

/* Theme picker: lightweight previews and accessible modal behavior. */
body.n3-theme-open{overflow:hidden}
body[data-theme] .n3-theme-backdrop{position:fixed;inset:0;z-index:90;width:100%;height:100%;padding:0;border:0;border-radius:0;background:#0207119c;backdrop-filter:blur(7px);opacity:0;visibility:hidden;pointer-events:none}
body[data-theme] .n3-theme-picker{position:fixed;z-index:91;left:50%;bottom:24px;transform:translate(-50%,24px) scale(.98);width:min(1050px,calc(100vw - 36px));padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 24px 80px #0009;opacity:0;visibility:hidden;pointer-events:none}
body.n3-theme-open .n3-theme-backdrop,body.n3-theme-open .n3-theme-picker{opacity:1;visibility:visible;pointer-events:auto}
body.n3-theme-open .n3-theme-picker{transform:translate(-50%,0) scale(1)}
body[data-theme] .n3-theme-heading strong{color:var(--muted)}
body[data-theme] .n3-theme-option{background:var(--surface-2);border-color:var(--line);color:var(--ink)}
body[data-theme] .n3-theme-option.selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent),transparent 45%)}
body[data-theme] .n3-theme-copy small{font-size:11px;line-height:1.4;color:var(--muted)}
.n3-theme-preview.preview-orqion{background-image:url('/assets/orqion-theme-premium-thumb.jpg')!important}.n3-theme-preview.preview-black{background-image:url('/assets/orqion-theme-black-thumb.jpg')!important}.n3-theme-preview.preview-light{background-image:url('/assets/orqion-theme-light-thumb.jpg')!important}

@media(max-width:1450px){
  body[data-theme] .n3-toprow{grid-template-columns:minmax(0,2.55fr) minmax(310px,1fr)}
  body[data-theme] .n3-hero-layout{grid-template-columns:minmax(340px,38%) minmax(190px,1fr) 172px}
  body[data-theme] .n3-hero:after{right:172px}
  body[data-theme] .n3-hero-mark{width:66px;height:71px}
  body[data-theme] .n3-hero-brand strong{font-size:34px}
  body[data-theme] .n3-hero-brand b{font-size:21px}
}
@media(max-width:1120px){
  body[data-theme] .n3-toprow{grid-template-columns:1fr}
  body[data-theme] .n3-global-panel{min-height:270px}
  body[data-theme] .n3-global-map{min-height:155px}
}
@media(max-width:760px){
  body[data-theme] .n3-hero-layout{grid-template-columns:1fr;grid-template-rows:auto 120px auto}
  body[data-theme] .n3-hero:after{inset:0;background:color-mix(in srgb,var(--app-bg),transparent 7%)}
  body[data-theme="light"] .n3-hero:after{background:#ffffffe9}
  body[data-theme] .n3-hero-content{padding:20px 18px 8px}
  body[data-theme] .n3-hero-stage{min-height:120px}
  body[data-theme] .n3-hero-benefit-rail{margin:8px 12px 12px;grid-template:repeat(2,minmax(66px,auto))/repeat(2,1fr)}
  body[data-theme] .n3-global-footer{grid-template-columns:1fr}
  body[data-theme] .n3-global-action{justify-self:stretch;justify-content:center}
  body[data-theme] .n3-theme-options{grid-template-columns:1fr}
}
@media(max-width:480px){
  body[data-theme] .n3-hero-brand strong{font-size:29px}
  body[data-theme] .n3-hero-brand b{font-size:18px}
  body[data-theme] .n3-hero-mark{width:55px;height:60px}
  body[data-theme] .n3-hero-benefit-rail{grid-template-columns:1fr}
  body[data-theme] .n3-hero-layout{grid-template-rows:auto 100px auto}
  body[data-theme] .n3-theme-picker{bottom:8px;width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto}
}
@media(prefers-reduced-motion:reduce){body[data-theme] *,body[data-theme] *:before,body[data-theme] *:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* Official CONCILION ORQION brand assets. */
body[data-theme] .n3-sidebar .brand{padding:8px 14px!important;justify-content:center}
body[data-theme] .n3-official-sidebar-logo{display:block;width:100%;max-width:204px;height:auto;object-fit:contain;filter:drop-shadow(0 3px 8px color-mix(in srgb,var(--accent),transparent 62%))}
body[data-theme] .n3-hero-brand{width:min(100%,380px);margin:0 0 10px;text-shadow:none}
body[data-theme] .n3-hero-brand>img{display:block;width:100%;height:auto;object-fit:contain;object-position:left center;filter:drop-shadow(0 4px 10px color-mix(in srgb,var(--accent),transparent 68%))}
body[data-theme="black"] .n3-hero-brand>img{filter:saturate(.84) brightness(.94) drop-shadow(0 4px 10px #0008)}
body[data-theme="light"] .n3-hero-brand>img{filter:drop-shadow(0 1px 1px #243956) drop-shadow(0 5px 12px #24518a24)}
@media(max-width:1450px){body[data-theme] .n3-hero-brand{width:min(100%,325px)}}
@media(max-width:480px){body[data-theme] .n3-hero-brand{width:min(100%,290px)}body[data-theme] .n3-official-sidebar-logo{max-width:48px}}
