/* ITSM night palette. Scoped to dark mode; light theme and layouts are unchanged. */
html[data-theme=dark]{
  --bg:#10161d;--surface:#18212b;--raised:#202d39;--field:#121c26;
  --ink:#eef3f7;--muted:#b0bec9;--line:#354454;
  --brand:#8cdbba;--tint:#203a34;--gold:#dfc183;
  --action:#26785f;--action-hover:#2e876c;--action-ink:#ffffff;
  --success-bg:#1c392f;--success-ink:#a0dfbb;
  --info-bg:#1e3148;--info-ink:#afcef5;
  --warning-bg:#3b3221;--warning-ink:#f0d29a;
  --danger-bg:#3c282c;--danger-ink:#ffb9b4;
  --shadow:0 3px 16px #00000018;color-scheme:dark;
}
html[data-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-theme=dark] .topbar{background:#151e27;border-color:var(--line)}
html[data-theme=dark] .sidebar{background:linear-gradient(160deg,#122329 0%,#12201f 58%,#142a25 100%);border-color:#30413f}
html[data-theme=dark] .sidebar :is(.brand small,.workspace-label,.sidebar-user small,.ux-nav-tools summary){color:#b6c8c4}
html[data-theme=dark] .sidebar .nav-link{color:#d3e1de}
html[data-theme=dark] .sidebar .nav-link:hover{background:#243a35;color:#f1f8f5}
html[data-theme=dark] .sidebar .nav-link.active{background:#26483c;color:#e0f5e8;box-shadow:inset 0 0 0 1px #406756}
html[data-theme=dark] .sidebar .nav-link.active:before{background:var(--brand)}
html[data-theme=dark] .sidebar .sidebar-footer .btn{color:#cce3d8}
html[data-theme=dark] .sidebar .avatar{background:#30463e;color:#d8eadf}
html[data-theme=dark] :is(.panel,.stat,.service-card,.settings-content,.bundle-card){border-color:var(--line)}
html[data-theme=dark] .panel-head{background:#1b2631}
html[data-theme=dark] :is(.secondary,.icon-btn){background:var(--raised);border-color:#435565;color:var(--ink)}
html[data-theme=dark] :is(.secondary,.icon-btn):hover{background:#2a3b49;filter:none}
html[data-theme=dark] :is(.primary,.hero-search .btn){background:var(--action);color:var(--action-ink);border-color:#3e9a7b;box-shadow:0 3px 9px #00000024}
html[data-theme=dark] :is(.primary,.hero-search .btn):hover{background:var(--action-hover);filter:none}
html[data-theme=dark] .ghost:hover{background:var(--tint);filter:none}
html[data-theme=dark] :is(input,textarea,select){background:var(--field);border-color:#546475;color:var(--ink);accent-color:var(--brand)}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#a5b4c1;opacity:1}
html[data-theme=dark] :is(input,textarea,select):focus-visible{border-color:var(--brand);outline-color:var(--brand)}
html[data-theme=dark][data-input-mode=pointer] :is(input,textarea,select):focus{border-color:#546475}
html[data-theme=dark] input[type=file]::file-selector-button{background:var(--raised);border:1px solid #546475;border-radius:6px;color:var(--ink);padding:6px 10px;margin-inline-end:12px}
html[data-theme=dark] :is(input,select,textarea):disabled{background:#1e2730;color:#9daab7}
html[data-theme=dark] .role-select{background:var(--tint);color:#cdf1de;border:1px solid #466456}
html[data-theme=dark] :is(.top-search,.ux-search-field){background:var(--field);border-color:#435565;color:var(--muted)}
html[data-theme=dark] .ux-search-field>input{background:transparent}
html[data-theme=dark] :is(.hero,.access-visual){background:linear-gradient(120deg,#1c342f,#192a31);border:1px solid #3d574e;color:var(--ink)}
html[data-theme=dark] .hero.support{background:linear-gradient(120deg,#1d3046,#1b2835);border-color:#3c526c;color:var(--ink)}
html[data-theme=dark] .hero.administration{background:linear-gradient(120deg,#302c43,#242936);border-color:#504762;color:var(--ink)}
html[data-theme=dark] :is(.hero,.hero.support,.hero.administration,.access-visual) p{color:#bed0cb}
html[data-theme=dark] :is(.hero .greeting,.access-tag,.access-benefits,.access-visual>small){color:#b0c8bd}
html[data-theme=dark] .hero:after{border-color:#58766b44}
html[data-theme=dark] .hero-search{background:var(--field);border-color:#536b62;box-shadow:none}
html[data-theme=dark] .hero-search input{background:transparent;color:var(--ink)}
html[data-theme=dark] .hero-search .icon{color:var(--brand)}
html[data-theme=dark] :is(.scene [fill="#fff"],.scene [fill="#f1f5f2"]){fill:#2b3c42}
html[data-theme=dark] .scene [fill="#e5eee7"]{fill:#344e45}
html[data-theme=dark] .scene [fill="#f1e8d2"]{fill:#5a503c}
html[data-theme=dark] .scene [fill="#e5e4f0"]{fill:#454258}
html[data-theme=dark] :is(.mint,.avatar){background:#233e35;color:#a7d9bf}
html[data-theme=dark] :is(.blue,.avatar.blue){background:#27394d;color:#b0ccef}
html[data-theme=dark] :is(.lavender,.avatar.lavender){background:#363046;color:#d4bfee}
html[data-theme=dark] .sand{background:#3e3627;color:#e4cc9a}
html[data-theme=dark] .rose{background:#402e35;color:#efbcc7}
html[data-theme=dark] .art-object{background:#ffffff08;border-color:#ffffff26;box-shadow:9px 9px 0 #00000012}
html[data-theme=dark] .service-art{border-bottom:1px solid #ffffff0a}
html[data-theme=dark] .service-card:hover{border-color:#648d7d;box-shadow:0 8px 24px #00000030}
html[data-theme=dark] .badge{background:#2c3745;color:#c5d1df}
html[data-theme=dark] :is(.badge.progress,.badge.triage,.badge.approved,.badge.submitted){background:var(--info-bg);color:var(--info-ink)}
html[data-theme=dark] :is(.badge.waiting,.badge.approval,.badge.pending,.badge.paused,.badge.degraded,.badge.suspended,.badge.retired){background:var(--warning-bg);color:var(--warning-ink)}
html[data-theme=dark] :is(.badge.closed,.badge.resolved,.badge.active,.badge.healthy){background:var(--success-bg);color:var(--success-ink)}
html[data-theme=dark] :is(.badge.failed,.badge.rejected,.badge.unknown,.badge.disabled){background:var(--danger-bg);color:var(--danger-ink)}
html[data-theme=dark] :is(.notice,.demo-pill){background:var(--warning-bg);border-color:#6a5637;color:var(--warning-ink)}
html[data-theme=dark] .notice.info{background:var(--info-bg);border-color:#415b7d;color:var(--info-ink)}
html[data-theme=dark] .notice.success{background:var(--success-bg);border-color:#3b6650;color:var(--success-ink)}
html[data-theme=dark] :is(.notice p,.notice .caption){color:inherit}
html[data-theme=dark] :is(.danger,.demand-error){background:var(--danger-bg);border-color:#7b4e55;color:var(--danger-ink)}
html[data-theme=dark] .danger:hover{background:#503038;filter:none}
html[data-theme=dark] .priority.P1{color:var(--danger-ink)}
html[data-theme=dark] .priority.P1:before{background:#efaaa6}
html[data-theme=dark] .priority.P2:before{background:var(--warning-ink)}
html[data-theme=dark] .priority.P3:before{background:var(--brand)}
html[data-theme=dark] .priority.P4:before{background:#a5bfd7}
html[data-theme=dark] .risk-time{color:#f0bf9c}
html[data-theme=dark] .priority-choice{background:var(--field);border-color:#46596a}
html[data-theme=dark] .priority-choice:has(input:checked){background:var(--tint);border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
html[data-theme=dark] :is(.tab.active,.pill.active,.ux-type-tab.active){background:var(--tint);color:#c9f0de;box-shadow:inset 0 0 0 1px #486d5d}
html[data-theme=dark] .pill{border-color:#46596a}
html[data-theme=dark] :is(.tab,.pill):hover{background:var(--raised);color:var(--ink)}
html[data-theme=dark] :is(th,.ux-result-heading){background:#1c2935;color:var(--muted)}
html[data-theme=dark] tr[data-nav-row]:hover{background:#21342f}
html[data-theme=dark] .record-row:hover{background:#202e35}
html[data-theme=dark] .steps li>span{background:var(--field);border-color:#5c6e7c}
html[data-theme=dark] :is(.steps li.current>span,.steps li.done>span){background:var(--brand);border-color:var(--brand);color:#10271d}
html[data-theme=dark] .steps li.current>span{box-shadow:0 0 0 4px #8cdbba15}
html[data-theme=dark] .steps li.done{color:#bdcfc6}
html[data-theme=dark] :is(.incident-next,.review-facts,.offering-facts){background:#1b2d2a;border-color:#3c5a4d}
html[data-theme=dark] .incident-next blockquote{background:var(--field);border-color:#476457}
html[data-theme=dark] .record-message{background:var(--raised);border-color:#435363}
html[data-theme=dark] .record-message.requester{background:#233e35;border-color:#466958}
html[data-theme=dark] :is(.record-message.internal,.timeline li.internal){background:#342e23;color:var(--warning-ink);border-color:#6b5c3f}
html[data-theme=dark] .record-message.internal p{color:#eedab2}
html[data-theme=dark] .record-history-icon{background:var(--tint);color:var(--brand)}
html[data-theme=dark] .incident-timeline .record-history-icon{background:var(--gold)}
html[data-theme=dark] .incident-timeline .record-history li:last-child .record-history-icon{background:var(--brand)}
html[data-theme=dark] .ux-thread.selected{background:#223c33;border-inline-start-color:var(--brand)}
html[data-theme=dark] .ux-thread:hover{background:#24313d}
html[data-theme=dark] .ux-conversation-head{background:#1c2934}
html[data-theme=dark] .ux-messages{background:var(--field)}
html[data-theme=dark] .ux-compose{background:var(--surface)}
html[data-theme=dark] :is(dialog,.ux-notification-panel){background:var(--surface);border-color:#506272;box-shadow:0 22px 80px #00000070}
html[data-theme=dark] dialog::backdrop{background:#050a10b3;backdrop-filter:blur(5px)}
html[data-theme=dark] dialog.ux-notification-panel::backdrop{background:#050a1070;backdrop-filter:none}
html[data-theme=dark] .ux-notification.unread{background:#223a32}
html[data-theme=dark] .ux-notification-count{background:#a7dfbd;color:#10291e;box-shadow:0 0 0 2px #151e27}
html[data-theme=dark] .ux-notification-summary{background:var(--field)}
html[data-theme=dark] .quick-conversation{background:#225b48;border-color:#719b86;box-shadow:0 6px 25px #00000050;color:#effaf4}
html[data-theme=dark] .quick-conversation:hover{background:#2b6d56}
html[data-theme=dark] .quick-conversation>span{background:var(--raised);border-color:#4b6156}
html[data-theme=dark] #toast{background:#243c32;border:1px solid #61846e;color:#edf8f0;box-shadow:0 8px 24px #00000040}
html[data-theme=dark] :is(.access-tools .btn,.access-benefits){color:var(--brand)}
html[data-theme=dark] :is(.persona-option.selected,.persona-card.selected,.bundle-card.active,.list-choice.active){background:var(--tint);border-color:#6b9d83;box-shadow:none}
html[data-theme=dark] :is(.radio-dot,.persona-card .radio){border-color:#8ba899}
html[data-theme=dark] .top-search kbd{border-color:#56697a;color:#c1cfda}
html[data-theme=dark] .breadcrumbs span{color:#8196a4}
html[data-theme=dark] .availability i{background:#578e72}
html[data-theme=dark] .availability i.warn{background:#b59a61}
html[data-theme=dark] .progress-track i{background:#8cbb9f}
html[data-theme=dark] .progress-track.risk i{background:#d4b578}
html[data-theme=dark] :focus-visible{outline-color:var(--brand)}
html[data-theme=dark] ::selection{background:#426959;color:#fff}
