/* Dark mode for the portal and Raya (toggled with [data-theme=dark] on <html>). Documents always print light. */
:root[data-theme=dark]{
  --bg:#141113;--surface:#1c181b;--surface-2:#221d21;--ink:#efe8ea;--text:#d9cfd2;--muted:#a3979b;
  --line:#342d32;--line-2:#4a4147;--ivory:#2a2226;--accent-bg:#2e1f25;--accent:#e0a8b8;
  --ok:#8fd1a8;--ok-bg:#16291e;--bad:#f0a29d;--bad-bg:#2e1717;--warn:#e8c57e;--warn-bg:#2d2414;--info:#9cc3e8;--info-bg:#152331;
  color-scheme:dark;
}
[data-theme=dark] body{background:var(--bg);color:var(--text)}
[data-theme=dark] a{color:#e6b3c1}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#16131a;border-color:var(--line-2);color:var(--ink)}
[data-theme=dark] .card,[data-theme=dark] .table,[data-theme=dark] .empty,[data-theme=dark] .doc,[data-theme=dark] .aside--card,
[data-theme=dark] .aside-nav,[data-theme=dark] .result-list,[data-theme=dark] .svc-list,[data-theme=dark] .news-card,[data-theme=dark] .ent,
[data-theme=dark] .cat,[data-theme=dark] .site-list a,[data-theme=dark] .stats__grid div,[data-theme=dark] .quick,[data-theme=dark] .masthead,
[data-theme=dark] .tabs a[aria-current=page],[data-theme=dark] .pager a,[data-theme=dark] .mast-search,[data-theme=dark] .btn--line{background:var(--surface);border-color:var(--line);color:var(--text)}
[data-theme=dark] .table th{background:var(--surface-2);color:var(--ink);border-color:var(--line-2)}
[data-theme=dark] .table td{border-color:var(--line)}
[data-theme=dark] .table tbody tr:hover,[data-theme=dark] .svc-list a:hover,[data-theme=dark] .quick__item:hover,[data-theme=dark] .aside-nav a:hover{background:var(--surface-2)}
[data-theme=dark] .block--alt{background:#19151a;border-color:var(--line)}
[data-theme=dark] .brand__p,[data-theme=dark] .stats__grid b,[data-theme=dark] .cat .ic,[data-theme=dark] .quick__item .ic,[data-theme=dark] .site-list a > .ic:first-child{color:#e6b3c1}
[data-theme=dark] .ent__icon,[data-theme=dark] .tag{background:#2e1f25;color:#e6b3c1}
[data-theme=dark] .mast-search button{background:var(--surface-2);color:#e6b3c1}
[data-theme=dark] .figure-emblem,[data-theme=dark] .figure-flag,[data-theme=dark] .org__row div{background:var(--surface-2);border-color:var(--line)}
[data-theme=dark] .aside-nav a[aria-current=page]{background:#2e1f25;color:#f1c6d2}
[data-theme=dark] .btn--line:hover{border-color:#e6b3c1;color:#e6b3c1}
[data-theme=dark] .badge.st-off{background:#262126;color:var(--muted);border-color:var(--line-2)}
/* Raya */
[data-theme=dark] .raya,[data-theme=dark] body.raya{--bg:#141113;--surface-2:#221d21;--line:#342d32;--line-2:#4a4147;--ink:#efe8ea;--muted:#a3979b;--accent:#e0a8b8;--accent-bg:#2e1f25}
[data-theme=dark] .side,[data-theme=dark] .kpi,[data-theme=dark] .toolbar,[data-theme=dark] details.panel,[data-theme=dark] .notif,[data-theme=dark] .seg,[data-theme=dark] .cred,[data-theme=dark] .receipt{background:var(--surface);border-color:var(--line);color:var(--text)}
[data-theme=dark] .side a{color:var(--text)}
[data-theme=dark] .side a:hover{background:var(--surface-2)}
[data-theme=dark] .kpi b,[data-theme=dark] .raya .kpi b{color:#e6b3c1}
[data-theme=dark] .raya a.btn--line{color:var(--ink)}
[data-theme=dark] .person__photo,[data-theme=dark] .person__nophoto{background:var(--surface-2);border-color:var(--line-2)}
[data-theme=dark] .note-box,[data-theme=dark] .timeline-r .note{background:var(--surface-2);border-color:var(--line)}
[data-theme=dark] .notif li.unread{background:#241c20}
[data-theme=dark] .bars__bar{background:#c27c90}
[data-theme=dark] .login,[data-theme=dark] .bare-card,[data-theme=dark] .login__form{background:var(--surface);color:var(--text)}
[data-theme=dark] .gz-item,[data-theme=dark] .law-text,[data-theme=dark] .ent-lead,[data-theme=dark] .ent-units>li,[data-theme=dark] .vcheck,
[data-theme=dark] .theme-pick__i,[data-theme=dark] .vote-form{background:var(--surface);border-color:var(--line);color:var(--text)}
[data-theme=dark] .gz-item h2 a{color:var(--ink)}
[data-theme=dark] .gz-no span:first-child,[data-theme=dark] .law-art{color:#e6b3c1}
[data-theme=dark] .input-suffix span{background:var(--surface-2);border-color:var(--line-2)}
