/* DIBANGKITKAN oleh alat/build-habs-dark.mjs dari habs-login.html (<style>, habs-auth.css) + habs-dark-manual.css.
   Jangan disunting tangan: ubah CSS terangnya atau habs-dark-manual.css, lalu jalankan node alat/build-habs-dark.mjs. */
/* <style> */
:root:root[data-theme="dark"]{--ink:#e8edf3;--ink-fill:#1b2633;--muted:#a9b4c1;--muted-fill:#2e3640;--line:#202831;--canvas:#0b121a;--canvas-text:#f5faff;--green:#91b5dd;--green-fill:#2c5d91;--deep:#83afdf;--deep-fill:#2c5d91;--pale:#202c39;--pale-text:#ecf1f7;--white:#131c26;--white-text:#ffffff}
html:root[data-theme="dark"]{background-color:var(--canvas);background-image:none}
:root[data-theme="dark"] body{color:var(--ink)}
:root[data-theme="dark"] ::selection{background-color:#252c34;background-image:none;color:var(--deep)}
:root[data-theme="dark"] :focus-visible{outline-color:var(--green)}
:root[data-theme="dark"] .topline{background-color:var(--deep-fill, var(--deep));background-image:none}
:root[data-theme="dark"] .topbar{border-bottom-color:var(--line)}
:root[data-theme="dark"] .brand{color:var(--deep)}
:root[data-theme="dark"] .help{color:var(--muted);border-bottom-color:transparent}
:root[data-theme="dark"] .help:hover{color:var(--deep);border-bottom-color:currentColor}
:root[data-theme="dark"] .story h1{color:var(--ink)}
:root[data-theme="dark"] .story>p{color:var(--muted)}
:root[data-theme="dark"] .visual{background-color:var(--white);background-image:none;border-color:var(--line)}
:root[data-theme="dark"] .visual-header{border-bottom-color:var(--line)}
:root[data-theme="dark"] .visual-header small{color:var(--muted)}
:root[data-theme="dark"] .tasklist{border-right-color:var(--line)}
:root[data-theme="dark"] .tasklist div{border-bottom-color:#1a212a;color:#c2c7cd}
:root[data-theme="dark"] .tasklist div:first-child{color:var(--ink)}
:root[data-theme="dark"] .tasklist i{background-color:#3b434c;background-image:none}
:root[data-theme="dark"] .timeline{background-color:transparent;background-image:repeating-linear-gradient(90deg,#131c26 0,#131c26 calc(20% - 1px),#0b121a calc(20% - 1px),#0b121a 20%)}
:root[data-theme="dark"] .timeline:before{background-color:#1c232b;background-image:none;border-bottom-color:#202730}
:root[data-theme="dark"] .timeline .month{color:var(--deep)}
:root[data-theme="dark"] .today{border-left-color:#b07547}
:root[data-theme="dark"] .bar{background-color:#576c82;background-image:none}
:root[data-theme="dark"] .bar.two{background-color:#444c55;background-image:none}
:root[data-theme="dark"] .bar.four{background-color:#333a43;background-image:none}
:root[data-theme="dark"] .visual-foot{background-color:#171d25;background-image:none;border-top-color:var(--line);color:var(--muted)}
:root[data-theme="dark"] .visual-foot svg{color:var(--green)}
:root[data-theme="dark"] .preview-note{color:#acb1b7}
:root[data-theme="dark"] .login-panel{background-color:var(--white);background-image:none;border-color:var(--line)}
:root[data-theme="dark"] .login-panel .intro{color:var(--muted)}
:root[data-theme="dark"] label{color:var(--ink)}
:root[data-theme="dark"] .forgot{color:var(--deep)}
:root[data-theme="dark"] input{border-color:#262e37;background-color:#131c26;background-image:none;color:var(--ink);outline-color:currentcolor}
:root[data-theme="dark"] input::placeholder{color:#d9dfe5}
:root[data-theme="dark"] input:hover{border-color:#3e4750}
:root[data-theme="dark"] input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(255,255,255,.12)}
:root[data-theme="dark"] .reveal{border-color:currentcolor;background-color:transparent;background-image:none;color:#b2b7bd}
:root[data-theme="dark"] .reveal:hover{background-color:var(--pale);background-image:none;color:var(--deep)}
:root[data-theme="dark"] .reveal svg{stroke:currentColor;fill:none}
:root[data-theme="dark"] .submit{border-color:var(--deep);background-color:var(--deep-fill, var(--deep));background-image:none;color:#ffffff}
:root[data-theme="dark"] .submit:hover{background-color:#385370;background-image:none}
:root[data-theme="dark"] .signup{color:var(--muted)}
:root[data-theme="dark"] .signup a{color:var(--deep)}
:root[data-theme="dark"] .mode-link{border-color:currentcolor;background-color:transparent;background-image:none;color:var(--deep)}
:root[data-theme="dark"] .terms{color:var(--muted)}
:root[data-theme="dark"] .terms input{accent-color:var(--deep)}
:root[data-theme="dark"] .terms label{color:var(--muted)}
:root[data-theme="dark"] .terms a{color:var(--deep)}
:root[data-theme="dark"] .field-hint{color:var(--muted)}
:root[data-theme="dark"] .status{color:var(--muted)}
:root[data-theme="dark"] .status[data-error="true"]{color:#ffa295}
:root[data-theme="dark"] .confirmation p{color:var(--muted)}
:root[data-theme="dark"] .account-note{color:var(--muted)}
:root[data-theme="dark"] .or{color:var(--muted)}
:root[data-theme="dark"] .or:before,:root[data-theme="dark"] .or:after{background-color:var(--line);background-image:none}
:root[data-theme="dark"] .google{border-color:#262e37;background-color:#131c26;background-image:none;color:var(--ink)}
:root[data-theme="dark"] .google:hover{border-color:#3e4750;background-color:#151c23;background-image:none}
:root[data-theme="dark"] .google-terms{color:var(--muted)}
:root[data-theme="dark"] .google-terms a{color:var(--deep)}
/* habs-auth.css */
:root[data-theme="dark"] .habs-account-popover{border-color:#1f2730;background-color:#131c26;background-image:none;color:#c8dbf0;box-shadow:0 12px 32px rgba(0,0,0,.208)}
:root[data-theme="dark"] .habs-account-popover::backdrop{background-color:transparent;background-image:none}
:root[data-theme="dark"] .habs-account-popover p{color:#b9bec4}
:root[data-theme="dark"] .habs-account-popover button{border-color:currentcolor;background-color:transparent;background-image:none;color:inherit}
:root[data-theme="dark"] .habs-account-popover button:hover{background-color:rgba(85,108,134,.12);background-image:none}
:root[data-theme="dark"] .habs-account-popover button:focus-visible{outline-color:#8299b2}
:root[data-theme="dark"] .habs-account-popover hr{border-color:currentcolor;border-top-color:#1f2730}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account]{--account-ink:#dde2e8;--account-ink-fill:#2e363e;--account-muted:#b5bac0;--account-muted-fill:#545c65;--account-line:rgba(149,169,192,.14);--account-green:#b8d0eb;--account-green-fill:#40556c;--account-paper:#161d24;--account-paper-text:#f5f9ff;--account-glass:rgba(19,28,38,.713);--account-glass-text:rgba(255,255,255,.66);--account-edge:inset 0 1px 1px rgba(255,255,255,.114),inset 1px 0 1px rgba(255,255,255,.086);color:var(--account-ink)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .crumb{color:var(--account-muted)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-card{background-color:var(--account-glass);background-image:none;border-color:rgba(255,255,255,.095);box-shadow:0 12px 36px -20px rgba(0,0,0,.48),var(--account-edge)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] label{color:var(--account-ink)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] input{border-color:rgba(129,148,168,.24);background-color:rgba(19,28,38,.67);background-image:none;color:var(--account-ink);caret-color:var(--account-green);outline-color:currentcolor}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] input:focus-visible{border-color:var(--account-green);outline-color:var(--account-green)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] input:is(:autofill,:-webkit-autofill){-webkit-text-fill-color:var(--account-ink);box-shadow:inset 0 0 0 1000px var(--account-paper);caret-color:var(--account-green)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] button{border-color:rgba(255,255,255,.112);background-color:rgba(19,28,38,.702);background-image:none;box-shadow:var(--account-edge),0 3px 8px -6px rgba(0,0,0,.502);color:var(--account-green)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] button.account-primary{border-color:rgba(147,170,196,.2);background-color:transparent;background-image:linear-gradient(155deg,#41556c,#42566c);box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 5px 13px -7px #000000;color:#ffffff}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] button.account-primary:hover:not(:disabled){background-color:#35475a;background-image:none;border-color:#9db1c8}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] button:not(.account-primary):hover:not(:disabled){background-color:#1b2129;background-image:none;border-color:#353d47}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] button:focus-visible,:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] a:focus-visible{outline-color:var(--account-green)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] a{color:var(--account-green)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-links{border-bottom-color:var(--account-line)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-message{color:var(--account-green)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-identity{border-bottom-color:var(--account-line)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-large-avatar{background-color:transparent;background-image:linear-gradient(140deg,#151c23,#232a32);box-shadow:var(--account-edge);color:var(--account-green)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-identity .account-photo-message{color:var(--account-green)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-identity p,:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-security p{color:var(--account-muted)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-badge{background-color:#1b2129;background-image:none;color:var(--account-green)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-sessions-heading{border-top-color:var(--account-line)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-session{border-bottom-color:var(--account-line)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-session small{color:var(--account-muted)}
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-security-message{color:var(--account-green)}
:root:root[data-theme="dark"]:has(.login-panel){--ink:#e8edf3;--ink-fill:#1b2633;--muted:#a9b4c1;--muted-fill:#2e3640;--line:rgba(149,169,192,.14);--canvas:#0b121a;--canvas-text:#eaeff5;--green:#91b5dd;--green-fill:#2c5d91;--deep:#83afdf;--deep-fill:#2c5d91;--pale:#202c39;--pale-text:#e5ebf1;--white:rgba(19,28,38,.713);--white-text:rgba(255,255,255,.66);--login-edge:inset 0 1px 1px rgba(255,255,255,.114),inset 1px 0 1px rgba(255,255,255,.086);color-scheme:dark}
:root[data-theme="dark"] body:has(.login-panel){background-color:transparent;background-image:radial-gradient(ellipse at 93% 0%,#151c23 0%,transparent 53%), radial-gradient(ellipse at 0 83%,#323942 0%,transparent 49%), linear-gradient(120deg,#0b121a,#252c34 50%,#0b121a)}
:root[data-theme="dark"] body:has(.login-panel)::before{background-color:transparent;background-image:linear-gradient(150deg,transparent 52%,rgba(19,28,38,.367) 52.2%,rgba(19,28,38,.54) 54%,transparent 68%)}
:root[data-theme="dark"] body:has(.login-panel) .topbar{border-color:rgba(255,255,255,.095);background-color:rgba(19,28,38,.713);background-image:none;box-shadow:0 12px 36px -20px rgba(0,0,0,.48),var(--login-edge)}
:root[data-theme="dark"] body:has(.login-panel) .brand{color:var(--ink)}
:root[data-theme="dark"] body:has(.login-panel) .visual{background-color:rgba(19,28,38,.648);background-image:none;border-color:rgba(255,255,255,.095);box-shadow:0 12px 36px -20px rgba(0,0,0,.48),var(--login-edge)}
:root[data-theme="dark"] body:has(.login-panel) .visual-header{border-color:var(--line)}
:root[data-theme="dark"] body:has(.login-panel) .timeline{background-color:transparent;background-image:repeating-linear-gradient(90deg,rgba(19,28,38,.271) 0,rgba(19,28,38,.271) calc(20% - 1px),rgba(87,105,124,.149) calc(20% - 1px),rgba(87,105,124,.149) 20%)}
:root[data-theme="dark"] body:has(.login-panel) .timeline:before{background-color:rgba(19,28,38,.648);background-image:none;border-color:var(--line)}
:root[data-theme="dark"] body:has(.login-panel) .visual-foot{background-color:rgba(19,28,38,.161);background-image:none;border-color:var(--line)}
:root[data-theme="dark"] body:has(.login-panel) .tasklist div{border-color:var(--line)}
:root[data-theme="dark"] body:has(.login-panel) .login-panel{background-color:rgba(19,28,38,.734);background-image:none;border-color:rgba(255,255,255,.112);box-shadow:0 20px 60px -32px rgba(0,0,0,.64),var(--login-edge)}
:root[data-theme="dark"] body:has(.login-panel) input:not([type=checkbox]){border-color:rgba(129,148,168,.24);background-color:rgba(19,28,38,.702);background-image:none;color:var(--ink)}
:root[data-theme="dark"] body:has(.login-panel) input:not([type=checkbox]):focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(255,255,255,.048)}
:root[data-theme="dark"] body:has(.login-panel) input::placeholder{color:var(--muted)}
:root[data-theme="dark"] body:has(.login-panel) input:is(:autofill,:-webkit-autofill){-webkit-text-fill-color:var(--ink);box-shadow:inset 0 0 0 1000px rgba(255,255,255,.12);caret-color:var(--green)}
:root[data-theme="dark"] body:has(.login-panel) .reveal{color:var(--muted)}
:root[data-theme="dark"] body:has(.login-panel) .submit{border-color:rgba(147,170,196,.2);background-color:transparent;background-image:linear-gradient(155deg,#41556c,#42566c);box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 5px 13px -7px #000000}
:root[data-theme="dark"] body:has(.login-panel) .submit:hover:not(:disabled){background-color:#35475a;background-image:none}
:root[data-theme="dark"] body:has(.login-panel) :is(button,input,a):focus-visible{outline-color:var(--green)}
:root[data-theme="dark"] body:has(.login-panel) .terms input{accent-color:var(--green)}
:root[data-theme="dark"] body:has(.login-panel) .google{border-color:rgba(129,148,168,.24);background-color:rgba(19,28,38,.702);background-image:none;box-shadow:var(--login-edge),0 3px 8px -6px rgba(0,0,0,.502)}
:root[data-theme="dark"] body:has(.login-panel) .google:hover{background-color:#1b2129;background-image:none;border-color:#353d47}
:root[data-theme="dark"] body:has(.login-panel) .status[data-error="true"]{color:#ffa59a}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-card,:root[data-theme="dark"] body:has(.login-panel) :is(.topbar,.visual,.login-panel){background-color:#181e26;background-image:none}
}
@media(prefers-reduced-transparency:reduce){
:root[data-theme="dark"] :is(#auth-root,#habs-suite) [data-ansta-account] .account-card,:root[data-theme="dark"] body:has(.login-panel) :is(.topbar,.visual,.login-panel){background-color:#181e26;background-image:none}
}
/* atribut SVG di habs-login.html dan skripnya */
:root[data-theme="dark"] [stroke="#406b4e"]{stroke:#a2c5ec}
:root[data-theme="dark"] [stroke="#b9d0d2"]{stroke:#d9dfe5}
/* habs-dark-manual.css */
/* HABS dark mode, aturan tangan (21 Okt 2026). alat/build-habs-dark.mjs menempelkan berkas ini di akhir tiap lembar
   gelap. Isinya yang tidak bisa diturunkan dari CSS terang: latar halaman yang dirancang ulang, warna yang ditulis di
   atribut SVG, isian tanpa latar sendiri, gambar yang terlalu terang. Palet Slate (Hann 23 Okt 2026, opsi 2): biru
   keabuan dekat navy logo ANSTA, aksen biru, tanpa hijau dan tanpa teal; logo sendiri tetap warna mereknya. HANYA
   aturan bercakupan :root[data-theme="dark"]: alat/habs-dark.test.mjs dan alat/habs-dark.browser.cjs menolak aturan
   yang mengubah tema terang. Docs/catatan/habs-dark-mode.md. */
:root[data-theme="dark"]{color-scheme:dark}
/* Latar halaman Liquid Glass dan layar pembuka: slate dengan cahaya biru tipis di pojok kanan atas. Gradien terangnya
   kalau dipetakan otomatis jadi abu sedang yang lebih terang dari kartu ("warnanya kurang gelap", Hann 21 Okt 2026).
   Pemilih sama dengan aturan terbangkitnya, jadi yang di sini menang karena datang belakangan. Pita kaca terangnya
   dimatikan di gelap. */
:root[data-theme="dark"] #habs-suite.hs,:root[data-theme="dark"] .hs-opening,:root[data-theme="dark"] body,:root[data-theme="dark"] body:has(.login-panel){background-color:#0b121a;background-image:radial-gradient(ellipse at 93% 0%,rgba(64,102,144,.10) 0%,transparent 53%),linear-gradient(120deg,#0b121a,#0d151d 50%,#0b121a)}
:root[data-theme="dark"] #habs-suite.hs .glass-light{background-image:none}
:root[data-theme="dark"] body::before,:root[data-theme="dark"] body:has(.login-panel)::before{background-image:none}
/* Isian tanpa latar sendiri (mis. Inisial proyek di Pengaturan): peramban bertema gelap memberinya abu netral
   #3b3b3b. Di HABS isian ikut permukaan slate. :where menahan bobotnya di (0,2,0), jadi aturan terbangkit tetap menang. */
:root[data-theme="dark"] :where(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=submit],[type=button],[type=reset],[type=image]),select,textarea){background-color:#1b2633;color:#e8edf3}
/* Ilustrasi gedung di Home: SVG putih yang menyilaukan di atas latar gelap. */
:root[data-theme="dark"] :is(.project-art img,#featured-art){filter:brightness(.74) saturate(.85)}
/* Logo ANSTA (viewBox 0 0 2503 1448) di kepala Home, login, ruang kerja dan layar memuat: seperti logo ANSTA Light,
   goresan kiri terang #ECEFEF, kanan teal #519499. Warna terangnya berbeda per halaman (#2d5558, #406b4e), jadi yang
   dipakai bentuk logonya, bukan warnanya. */
:root[data-theme="dark"] svg[viewBox="0 0 2503 1448"] path:first-child{stroke:#ecefef}
:root[data-theme="dark"] svg[viewBox="0 0 2503 1448"] path:last-child{stroke:#519499}
