*{box-sizing:border-box}
:root{--bg:#f6f8fb;--surface:#fff;--surface2:#edf2f7;--text:#111827;--muted:#637083;--line:#dbe2ea;--accent:#174a6b;--accent2:#0c755e;--shadow:0 18px 55px rgba(20,40,60,.09);--shell:min(1180px,calc(100% - 40px))}
@media(prefers-color-scheme:dark){:root{--bg:#0d1117;--surface:#141a22;--surface2:#1b2430;--text:#edf3f8;--muted:#a9b4c0;--line:#2b3643;--accent:#68bbe8;--accent2:#62d6b7;--shadow:0 18px 55px rgba(0,0,0,.26)}}
html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;line-height:1.65}button,input{font:inherit}a{color:inherit;text-decoration:none}.shell{width:var(--shell);margin-inline:auto}
.skip{position:absolute;inset-inline-start:-9999px}.skip:focus{inset-inline-start:10px;top:10px;background:var(--surface);padding:8px;z-index:99}
.topbar{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(15px);border-bottom:1px solid var(--line)}.nav{min-height:76px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:40px;height:40px;display:grid;place-items:center;background:var(--text);color:var(--bg);border-radius:13px;font-weight:800}.brand strong{display:block;letter-spacing:.08em}.brand small{display:block;color:var(--muted);font-size:11px}.nav-links{display:flex;gap:22px;margin-inline:auto;color:var(--muted);font-size:14px}.nav-actions{display:flex;gap:10px;align-items:center}
.ghost,.secondary,.primary{border-radius:999px;padding:10px 17px;border:1px solid var(--line);cursor:pointer}.ghost,.secondary{background:var(--surface);color:var(--text)}.primary{background:var(--text);color:var(--bg);display:inline-flex}.system-pill{display:flex;align-items:center;gap:7px;border:1px solid var(--line);padding:8px 11px;border-radius:999px;background:var(--surface);color:var(--muted);font-size:12px}.dot,.mini-dot{width:8px;height:8px;border-radius:50%;background:#d3a318;display:inline-block}.system-pill.ok .dot{background:#19a974}.system-pill.bad .dot{background:#dc4a4a}
.hero{padding:95px 0 70px;background:radial-gradient(circle at 85% 20%,color-mix(in srgb,var(--accent) 13%,transparent),transparent 35%)}.hero-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:70px;align-items:center}.eyebrow,.kicker{font-size:12px;font-weight:750;letter-spacing:.13em;color:var(--accent);margin:0 0 12px}.hero h1{font-size:clamp(42px,6vw,78px);letter-spacing:-.045em;line-height:1.08;margin:0}.hero-lead{font-size:19px;color:var(--muted);max-width:720px;margin:26px 0}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.release-note{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px;margin-top:28px}.mini-dot{background:var(--accent2)}
.hero-panel{background:var(--surface);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);padding:28px}.metric{display:flex;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line)}.metric strong{font-size:25px}.architecture{display:grid;grid-template-columns:1fr 18px 1fr 18px 1fr;gap:8px;align-items:center;margin-top:24px;font-size:11px;text-align:center;color:var(--muted)}.architecture i{height:1px;background:var(--line)}
.section{padding:80px 0}.section.alt{background:var(--surface2)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:30px}.section-head h2{font-size:36px;margin:0}.section-head p:not(.kicker){color:var(--muted);margin:4px 0 0}.search{width:min(320px,70vw);border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:999px;padding:12px 17px;outline:none}
.grid{display:grid;gap:18px}.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.publications{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:23px;box-shadow:0 8px 30px rgba(24,40,55,.035);min-height:180px;display:flex;flex-direction:column}.card:hover{transform:translateY(-2px);transition:.18s;box-shadow:var(--shadow)}.card-label{font-size:11px;letter-spacing:.1em;color:var(--accent);text-transform:uppercase}.card h3{font-size:20px;line-height:1.35;margin:11px 0 9px}.card p{color:var(--muted);margin:0 0 20px}.card-meta{margin-top:auto;display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}.card button{align-self:flex-start;border:0;background:none;color:var(--accent);padding:0;margin-top:15px;cursor:pointer;font-weight:650}
.empty{grid-column:1/-1;padding:45px;border:1px dashed var(--line);border-radius:22px;text-align:center;color:var(--muted)}.section-foot{display:flex;justify-content:center;margin-top:28px}.hidden{display:none!important}.footer{padding:45px 0;border-top:1px solid var(--line)}.footer-row{display:flex;justify-content:space-between;gap:30px;color:var(--muted);font-size:13px}.footer strong{color:var(--text);font-size:18px}.footer p{margin:4px 0;max-width:580px}.footer-meta{display:flex;gap:14px;align-items:center;direction:ltr}
.dialog{width:min(720px,calc(100% - 28px));border:1px solid var(--line);border-radius:25px;background:var(--surface);color:var(--text);padding:30px;box-shadow:var(--shadow)}.dialog::backdrop{background:rgba(5,12,18,.55);backdrop-filter:blur(4px)}.dialog-close{position:absolute;top:12px;inset-inline-end:15px;border:0;background:transparent;color:var(--muted);font-size:28px;cursor:pointer}.detail-json{background:var(--surface2);border-radius:15px;padding:15px;white-space:pre-wrap;word-break:break-word;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}
@media(max-width:850px){.nav-links{display:none}.hero-grid{grid-template-columns:1fr}.cards,.publications{grid-template-columns:1fr 1fr}.section-head{align-items:flex-start;flex-direction:column}}@media(max-width:570px){:root{--shell:min(100% - 26px,1180px)}.system-pill{display:none}.hero h1{font-size:42px}.cards,.publications{grid-template-columns:1fr}.footer-row{flex-direction:column}}

.auth-identity{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted);direction:auto}
.auth-action{white-space:nowrap;font-weight:650}
.auth-action:disabled{cursor:wait;opacity:.65}
.auth-notice{margin-top:18px;padding:12px 15px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:13px}
.auth-notice.error{border-color:color-mix(in srgb,#dc4a4a 45%,var(--line));color:#b93838}
@media(max-width:720px){.auth-identity{display:none}.auth-action{padding-inline:13px}}

/* SciQ brand identity release — palette derived from the approved SciQ logo. */
:root{
  --sciq-navy:#062c5d;
  --sciq-blue:#124a75;
  --sciq-teal:#0c9d9f;
  --sciq-teal-bright:#5dcdcc;
  --sciq-sky:#688ea8;
  --sciq-soft:#d4e2e5;
  --bg:#f7fbfc;
  --surface:#ffffff;
  --surface2:#eef7f8;
  --text:#062c5d;
  --muted:#536b7d;
  --line:#d4e5e9;
  --accent:#0c9d9f;
  --accent2:#124a75;
  --shadow:0 22px 65px rgba(6,44,93,.12)
}
body{background:linear-gradient(180deg,#fff 0,#f7fbfc 38%,#eef7f8 100%);color:var(--text)}
.topbar{background:rgba(255,255,255,.91);border-bottom:1px solid rgba(12,157,159,.22);box-shadow:0 8px 28px rgba(6,44,93,.055)}
.nav{min-height:84px}
.brand{gap:0;min-width:190px}
.brand-logo-frame{display:block;width:196px;height:58px;overflow:hidden;border-radius:13px;background:#fff;box-shadow:0 7px 20px rgba(6,44,93,.07)}
.brand-logo{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 49%;transform:scale(1.035)}
.nav-links a{position:relative;color:#38566e;font-weight:650;transition:color .18s ease}
.nav-links a::after{content:"";position:absolute;inset-inline:10%;bottom:-8px;height:2px;border-radius:10px;background:linear-gradient(90deg,var(--sciq-teal),var(--sciq-navy));transform:scaleX(0);transition:transform .18s ease}
.nav-links a:hover,.nav-links a:focus-visible{color:var(--sciq-navy)}
.nav-links a:hover::after,.nav-links a:focus-visible::after{transform:scaleX(1)}
.ghost,.secondary{background:#fff;color:var(--sciq-navy);border-color:rgba(18,74,117,.22)}
.ghost:hover,.secondary:hover{border-color:var(--sciq-teal);box-shadow:0 7px 22px rgba(12,157,159,.10)}
.primary{background:linear-gradient(135deg,var(--sciq-navy) 0%,var(--sciq-blue) 56%,var(--sciq-teal) 100%);color:#fff;border-color:transparent;box-shadow:0 12px 28px rgba(6,44,93,.20);font-weight:700}
.primary:hover{transform:translateY(-1px);box-shadow:0 15px 32px rgba(6,44,93,.25)}
.system-pill{background:#f8fcfd;border-color:rgba(12,157,159,.24);color:#486579}
.hero{padding-top:86px;background:
  radial-gradient(circle at 84% 14%,rgba(93,205,204,.22),transparent 29%),
  radial-gradient(circle at 12% 6%,rgba(18,74,117,.10),transparent 30%),
  linear-gradient(180deg,#fff 0%,#f7fbfc 100%)}
.eyebrow,.kicker{color:var(--sciq-blue)}
.hero h1{color:var(--sciq-navy);text-wrap:balance}
.hero-lead{color:#506b7c}
.release-note{color:#577184}
.mini-dot{background:var(--sciq-teal)}
.hero-panel{border-color:rgba(12,157,159,.20);background:linear-gradient(155deg,#fff 0%,#f8fcfd 72%,#eef9f9 100%);box-shadow:0 30px 80px rgba(6,44,93,.14)}
.hero-logo-frame{height:118px;overflow:hidden;border-radius:20px;border:1px solid rgba(18,74,117,.08);background:#fff;margin-bottom:10px}
.hero-logo{width:100%;height:100%;display:block;object-fit:cover;object-position:50% 49%;transform:scale(1.055)}
.metric strong{color:var(--sciq-teal);font-weight:800}
.architecture{color:var(--sciq-blue)}
.section.alt{background:linear-gradient(180deg,#eef7f8 0%,#f7fbfc 100%)}
.card{border-color:rgba(18,74,117,.14);box-shadow:0 10px 30px rgba(6,44,93,.055)}
.card:hover{border-color:rgba(12,157,159,.38);box-shadow:0 18px 42px rgba(6,44,93,.095);transform:translateY(-2px)}
.card .badge,.tag{background:rgba(12,157,159,.10);color:#086f72;border-color:rgba(12,157,159,.18)}
.search{border-color:rgba(18,74,117,.18);background:#fff;color:var(--sciq-navy)}
.search:focus{outline:3px solid rgba(12,157,159,.16);border-color:var(--sciq-teal)}
.footer{background:var(--sciq-navy);color:#fff;border-top:none}
.footer p,.footer-meta{color:#c6d8e2}
.dialog{border-color:rgba(12,157,159,.28);box-shadow:0 35px 95px rgba(6,44,93,.28)}
.auth-action{border-color:rgba(12,157,159,.35);color:var(--sciq-navy)}
.auth-notice{border-color:rgba(12,157,159,.24);background:#f6fcfc}
@media(max-width:900px){.brand-logo-frame{width:172px;height:52px}.nav{min-height:76px}.hero-logo-frame{height:102px}}
@media(max-width:720px){.brand{min-width:auto}.brand-logo-frame{width:146px;height:46px}.nav{gap:12px}.nav-actions{gap:6px}}
@media(max-width:570px){.brand-logo-frame{width:128px;height:42px}.hero-logo-frame{height:86px}}
/* SciQ logo scale refinement — header only. Approved logo asset remains unchanged. */
.brand{min-width:148px}
.brand-logo-frame{width:148px;height:44px;border-radius:11px}
.brand-logo{transform:scale(1)}
@media(max-width:900px){.brand{min-width:132px}.brand-logo-frame{width:132px;height:40px}}
@media(max-width:720px){.brand{min-width:auto}.brand-logo-frame{width:116px;height:36px}}
@media(max-width:570px){.brand-logo-frame{width:104px;height:32px}}
/* SciQ header-logo clarity refinement.
   Keep the approved square source file unchanged; display it smaller inside the
   existing wide frame so the full horizontal mark is visible without cover-crop. */
.brand-logo-frame{position:relative}
.brand-logo{
  position:absolute;
  left:50%;
  top:50%;
  width:70%;
  height:auto;
  max-width:none;
  object-fit:contain;
  object-position:center;
  transform:translate(-50%,-50%);
}
