/* Shared charcoal helpdesk palette. Status colours retain their meaning. */
[data-theme=dark]{color:#ededed;background:#141414;color-scheme:dark}
[data-theme=dark] body,[data-theme=dark] main{background:#141414;color:#ededed}
[data-theme=dark] .application-bar{background:#191919;border-bottom:1px solid #353535;box-shadow:none}
[data-theme=dark] aside{background:linear-gradient(150deg,#222,#191919);border-color:#353535}
[data-theme=dark] .brand-icon{background:#34302b;color:#ffb56b;border:1px solid #514436}
[data-theme=dark] .app-search{background:#252525!important;color:#d4d4d4!important;border:1px solid #3b3b3b;border-radius:9px}
[data-theme=dark] aside nav button{color:#c4c4c4;border-radius:9px;border-left:3px solid transparent}
[data-theme=dark] aside nav button.selected{background:linear-gradient(110deg,#35312c,#2c2c2c)!important;color:#fff0df!important;border-left-color:#f29a43}
[data-theme=dark] aside nav button:hover{background:#2c2c2c}
[data-theme=dark] .metrics article,[data-theme=dark] .insight-card,[data-theme=dark] .insight-card:first-child,[data-theme=dark] .insight-card:last-child,[data-theme=dark] .instance{background:linear-gradient(130deg,#252525,#1b1b1b);border-color:#3a3a3a;border-radius:14px;box-shadow:0 8px 24px #0002}
[data-theme=dark] .metrics article{border-top:2px solid #484848}
[data-theme=dark] .metrics article:nth-child(2){border-top-color:#51b482}
[data-theme=dark] .metrics article:nth-child(3){border-top-color:#e89749}
[data-theme=dark] .metrics strong{color:#f7f7f7}
[data-theme=dark] header,[data-theme=dark] .card-actions{border-color:#353535}
[data-theme=dark] .muted,[data-theme=dark] small,[data-theme=dark] .eyebrow,[data-theme=dark] .identity small,[data-theme=dark] .nav-label,[data-theme=dark] .activity-timeline time{color:#b0b0b0}
[data-theme=dark] .identity span,[data-theme=dark] .url,[data-theme=dark] .text-button{color:#edb47c}
[data-theme=dark] button,[data-theme=dark] .button,[data-theme=dark] .dialog-actions button[type=submit]{background:#ed9d50;color:#21160c;border-color:#efad70;border-radius:9px}
[data-theme=dark] .secondary,[data-theme=dark] .dialog-close{background:#292929;color:#ededed;border-color:#494949}
[data-theme=dark] .text-button,[data-theme=dark] .instance-name,[data-theme=dark] .star{background:transparent;border-color:transparent;color:#edbd8e}
[data-theme=dark] .fleet-tabs{background:#1b1b1b;border-color:#383838}
[data-theme=dark] .fleet-tabs button{background:transparent;color:#c1c1c1;border-radius:8px}
[data-theme=dark] .fleet-tabs button.selected{background:#38312a;border-color:#65503b;color:#ffd1a1}
[data-theme=dark] .fleet-toolbar,[data-theme=dark] .queue-toolbar,[data-theme=dark] .fleet-workspace,[data-theme=dark] .table-wrap{background:#1c1c1c;border-color:#3a3a3a;border-radius:12px}
[data-theme=dark] th,[data-theme=dark] .fleet-table th{background:#252525;color:#cdcdcd;border-color:#3a3a3a}
[data-theme=dark] td,[data-theme=dark] .fleet-table td{border-color:#333;color:#dedede}
[data-theme=dark] tbody tr:hover,[data-theme=dark] .fleet-table tbody tr:hover{background:#2b2b2b}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#202020;color:#f1f1f1;border-color:#505050;border-radius:8px}
[data-theme=dark] input:focus,[data-theme=dark] select:focus,[data-theme=dark] textarea:focus{border-color:#e4a266;outline-color:#e4a266}
[data-theme=dark] button:focus-visible,[data-theme=dark] a:focus-visible{outline-color:#f1b475}
[data-theme=dark] .good{background:#20372b;color:#93d9ac}
[data-theme=dark] .bad{background:#442a28;color:#ffb9af}
[data-theme=dark] .neutral{background:#403224;color:#f3c08a}
[data-theme=dark] .insight-icon,[data-theme=dark] .insight-icon.warm{background:#3d3025;color:#f7b16b}
[data-theme=dark] .chart-value{fill:#eb9b4b}
[data-theme=dark] .chart-track{fill:#303030}
[data-theme=dark] .chart-grid{stroke:#404040}
[data-theme=dark] .health-chart text,[data-theme=dark] .chart-note{fill:#bababa;color:#bababa}
[data-theme=dark] .timeline-dot{background:#eca05d;border-color:#252525}
[data-theme=dark] .notice,[data-theme=dark] .login{background:#242424;color:#e0e0e0;border-color:#444}
[data-theme=dark] .notice p{color:#c6c6c6}
[data-theme=dark] dialog,[data-theme=dark] dialog .dialog-head,[data-theme=dark] .dialog-actions{background:#202020;color:#ededed;border-color:#424242}
[data-theme=dark] dialog{box-shadow:0 24px 80px #0009;border-radius:18px;border:1px solid #484848}
[data-theme=dark] dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}
.support-history{padding:8px;max-height:420px;display:flex;flex-direction:column;gap:16px}
.support-history .conversation-message{max-width:88%;margin:0;padding:14px 16px;align-self:flex-start;background:#f0f2f3;border-color:#d7dfe2;border-radius:4px 15px 15px 15px}
.support-history .from-support{align-self:flex-end;background:#e6f2f7;border-color:#c4dce7;border-radius:15px 4px 15px 15px}
.support-history .conversation-message b{font-size:12px;font-weight:600}
.support-history .conversation-message small{margin-top:4px;font-size:11px}
.support-history .conversation-message p{margin:10px 0 0;line-height:1.65}
[data-theme=dark] .support-history .from-requester{background:#303030;border-color:#434343}
[data-theme=dark] .support-history .from-support{background:#20333f;border-color:#354e5e;color:#d9ecf6}
[data-theme=dark] .page-result:hover{background:#333}
@media(max-width:650px){.support-history .conversation-message{max-width:96%}}
/* Support-first workspace: queue, conversation, context. */
.desk-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:6px 0 24px}.desk-intro h2{font-size:22px;margin:0}.desk-intro p{margin:8px 0;color:#64747b}.support-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}.support-metric{text-align:left;display:grid;gap:10px;padding:18px;border-radius:12px;font-weight:400}.support-metric strong{font-size:34px;line-height:1.1;font-weight:550}.support-metric small{font-size:11px}.desk-overview-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.desk-panel{background:#fff;border:1px solid #d7dfe3;border-radius:14px;padding:20px;min-width:0}.desk-panel .section-heading{margin:0 0 18px}.desk-panel .section-heading span{font-size:12px;color:#64747b}.attention-row{display:flex;justify-content:space-between;align-items:center;gap:12px;background:transparent;color:inherit;text-align:left;border:0;border-bottom:1px solid #d7dfe3;border-radius:0;width:100%;padding:16px 0;font-weight:400}.attention-row small{display:block;line-height:1.6;margin-top:5px}.attention-row>span:last-child{display:flex;gap:4px;flex-wrap:wrap}.desk-empty{padding:28px 18px;color:#64747b;text-align:center}.desk-empty h2,.desk-empty h3{color:inherit;font-size:17px}.desk-empty p{font-size:13px}.desk-monitoring{margin-top:24px}.desk-monitoring>summary{cursor:pointer;padding:16px 0;font-weight:600}.desk-toolbar{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}.desk-views{display:flex;gap:6px;flex-wrap:wrap}.desk-views button{padding:8px 12px;font-size:12px}.desk-views .selected{background:#e6eef1;border-color:#7f9da8;color:#203e48}.desk-layout{display:grid;grid-template-columns:250px minmax(280px,1fr) 260px;border:1px solid #ccd8de;border-radius:14px;overflow:hidden;background:#fff;height:calc(100dvh - 250px);min-height:420px}.desk-queue,.desk-conversation,.desk-details{min-width:0;min-height:0}.desk-queue{padding:14px;overflow:auto;background:#f4f6f7;border-right:1px solid #d6dfe3}.desk-filter-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.desk-layout label{display:grid;gap:6px;font-size:12px}.desk-layout input,.desk-layout select,.desk-layout textarea{width:100%;min-width:0;font-size:13px;border-radius:7px;min-height:36px}.desk-layout textarea{height:auto;padding:10px;resize:vertical}.desk-count{font-size:11px;color:#64747b;margin:14px 0 8px}.desk-ticket-list{display:grid;gap:8px}.desk-ticket{width:100%;display:grid;gap:8px;text-align:left;background:#fff;color:#273f49;border:1px solid #d6dfe3;border-radius:10px;padding:13px;font-weight:400}.desk-ticket strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.desk-ticket small{font-size:11px;line-height:1.5;overflow-wrap:anywhere}.desk-ticket.selected{border-color:#678d9b;background:#eaf2f5;box-shadow:inset 3px 0 #638c9d}.desk-ticket-top,.desk-ticket-bottom{display:flex;gap:5px;align-items:center;justify-content:space-between}.desk-ticket-top b{font-size:11px}.desk-unread{color:#a45414;font-size:10px;white-space:nowrap}.desk-ticket-bottom{justify-content:flex-start;flex-wrap:wrap}.desk-conversation{display:flex;flex-direction:column;overflow:hidden}.desk-conversation-head{padding:18px;border-bottom:1px solid #d6dfe3}.desk-conversation-head h2{font-size:20px;line-height:1.4;margin:10px 0;overflow-wrap:anywhere}.desk-conversation-head .eyebrow{font-size:10px;letter-spacing:.5px}.desk-conversation-head button{font-size:11px;min-height:30px;padding:5px 8px;margin-left:8px}.desk-messages{flex:1;max-height:none;min-height:110px;padding:20px;overflow:auto;background:#fafbfc}.desk-composer{padding:16px;border-top:1px solid #d6dfe3;background:#fff}.desk-composer>div{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.desk-composer small{font-size:11px}.desk-composer textarea{min-height:78px}.desk-details{overflow:auto;padding:18px;background:#f8fafb;border-left:1px solid #d6dfe3}.desk-person{border-bottom:1px solid #d6dfe3;padding-bottom:16px;overflow-wrap:anywhere}.desk-person h3{font-size:15px;margin:10px 0 5px}.desk-person p{margin:3px 0;font-size:12px}.desk-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e3e8ec;color:#354d58;font-weight:700}.desk-context{margin:16px 0}.desk-context div{display:block;margin:10px 0}.desk-context dd{text-align:left;margin:5px 0;font-size:12px;overflow-wrap:anywhere}.desk-context dt{font-size:11px}.desk-details form{display:grid;gap:12px}.desk-details form small{font-size:11px;line-height:1.5}.desk-quick{display:flex;gap:6px}.desk-quick button{flex:1;font-size:12px;padding:7px}.desk-reference{margin-top:18px;font-size:11px}.desk-reference small{overflow-wrap:anywhere;display:block;margin-top:8px}.desk-error{color:#b13224;padding:0 16px;white-space:pre-wrap}.desk-error:empty{display:none}.desk-readonly{padding:16px}.desk-back{display:none}.desk-conversation [hidden]{display:none!important}#desk-update-notice{font-size:12px;color:#9c5f1a;line-height:1.5}
[data-theme=dark] .desk-intro p,[data-theme=dark] .desk-count,[data-theme=dark] .desk-empty,[data-theme=dark] .desk-panel .section-heading span{color:#b0b0b0}
[data-theme=dark] .support-metric,[data-theme=dark] .desk-panel{background:#202020;border-color:#393939;color:#e8e8e8}
[data-theme=dark] .support-metric strong{color:#f3f3f3}[data-theme=dark] .support-metric:nth-child(2) strong,[data-theme=dark] .support-metric:nth-child(3) strong{color:#f0b478}
[data-theme=dark] .attention-row{background:transparent;color:#e8e8e8;border-color:#393939}
[data-theme=dark] .desk-layout{background:#171717;border-color:#3b3b3b}
[data-theme=dark] .desk-queue,[data-theme=dark] .desk-details{background:#202020;border-color:#383838}
[data-theme=dark] .desk-ticket{background:#272727;color:#e3e3e3;border-color:#3b3b3b}
[data-theme=dark] .desk-ticket.selected{background:#35302b;border-color:#916c48;box-shadow:inset 3px 0 #efa357}
[data-theme=dark] .desk-views .selected{background:#3b3025;border-color:#896544;color:#ffd0a0}
[data-theme=dark] .desk-ticket:hover{background:#333}
[data-theme=dark] .desk-unread{color:#ffc180}
[data-theme=dark] .desk-messages{background:#181818}
[data-theme=dark] .desk-composer{background:#222;border-color:#3b3b3b}
[data-theme=dark] .desk-conversation-head,[data-theme=dark] .desk-person{border-color:#383838}
[data-theme=dark] .desk-avatar{background:#3a3028;color:#f3bc86}
[data-theme=dark] .desk-error{color:#ffb5a8}[data-theme=dark] #desk-update-notice{color:#f7bb80}
@media(min-width:1600px){.desk-layout{grid-template-columns:300px minmax(360px,1fr) 290px}}
@media(max-width:1150px){.desk-layout{grid-template-columns:230px minmax(260px,1fr);height:auto;min-height:600px}.desk-queue{grid-row:span 2;max-height:1000px}.desk-conversation{height:650px}.desk-details{grid-column:2;border-left:0;border-top:1px solid #444}.desk-details form{grid-template-columns:1fr 1fr}.desk-person,.desk-context{display:block}.desk-overview-grid{grid-template-columns:1fr}.support-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.desk-intro{align-items:flex-start;flex-direction:column}.desk-layout{display:block;height:auto;min-height:360px}.desk-queue{border:0;max-height:none}.desk-layout .desk-conversation,.desk-layout .desk-details{display:none}.desk-layout.has-ticket .desk-queue{display:none}.desk-layout.has-ticket .desk-conversation{display:flex;height:75dvh;min-height:470px}.desk-layout.has-ticket .desk-details{display:block}.desk-back{display:inline-block!important;margin:0 0 12px!important}.desk-details form{grid-template-columns:1fr}.desk-person,.desk-context{display:block}.support-metrics{gap:10px}.support-metric{padding:14px}.support-metric strong{font-size:28px}.desk-views{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}.desk-views button{white-space:nowrap}.desk-composer>div{align-items:flex-end}.desk-conversation-head h2{font-size:18px}}
