
#pcs {--pc-line:#d7dfe7;--pc-violet:#6148a6;--pc-paper:#fff;--pc-soft:#f3f2fa;--pc-dark:#172332;color:#233347}
#pcs .pc-glyph {width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
#pcs .pc-symbols {position:absolute;pointer-events:none}
#pcs .pc-deck {display:grid;grid-template-columns:clamp(160px,17%,238px) minmax(0,1fr);gap:12px;align-items:stretch}
#pcs .pc-rail,#pcs .pc-work {border:1px solid var(--pc-line);background:var(--pc-paper);border-radius:14px;min-width:0}
#pcs .pc-rail {padding:16px 12px;overflow-wrap:anywhere}
#pcs h2,#pcs h3 {margin:0}
#pcs .pc-caption,#pcs .pc-heading small {color:#657486;font-size:12px}
#pcs .pc-rail h2 {font-size:17px;margin:4px 0 16px}
#pc-machine-list {display:grid;gap:6px}
#pc-machine-list button {display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:10px;background:#f5f7fa;border:1px solid transparent;border-radius:10px;color:#334357}
#pc-machine-list button[aria-pressed=true],#pcs .pc-sections button[aria-pressed=true] {background:#eee9fb;color:#4d3588;border-color:#b9a8df}
#pc-machine-list span {display:grid;gap:4px;min-width:0}
#pc-machine-list small {font-size:11px;font-weight:500;color:#596a7c}
#pcs .pc-mobile-picker,#pcs #pc-enroll:not([open]) {display:none}
#pcs #pc-add-shortcut {margin:14px 0 4px;width:100%;display:flex;justify-content:center;align-items:center;gap:6px}
#pcs .pc-links {display:flex;flex-wrap:wrap;gap:8px;font-size:12px;border-top:1px solid var(--pc-line);margin-top:16px;padding-top:12px}
#pcs .pc-work {padding:14px}
#pcs .pc-heading {display:flex;align-items:center;gap:12px;padding:2px 0 12px}
#pcs .pc-heading h2 {font-size:clamp(17px,1.7vw,24px);overflow-wrap:anywhere}
#pcs .pc-device-mark {display:grid;place-items:center;width:46px;height:46px;background:var(--pc-soft);color:var(--pc-violet);border-radius:11px}
#pcs .pc-device-mark svg {width:28px;height:28px}
#pc-state {font-size:12px;color:#52677a;overflow-wrap:anywhere}
#pcs .pc-sections {display:flex;gap:5px;overflow:auto;padding-bottom:10px}
#pcs .pc-sections button,#pcs .pc-terminal-actions button {display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;font-size:12px;padding:7px 10px;background:#f4f6f9;border:1px solid var(--pc-line);border-radius:8px;color:#35455a}
#pcs .pc-workgrid {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(190px,.85fr);gap:10px;align-items:start}
#pcs .pc-workgrid>[hidden],#pcs .pc-workgrid>details>summary {display:none}
#pcs .pc-workgrid>details {margin:0;padding:12px;min-width:0;border:1px solid var(--pc-line);border-radius:10px;box-shadow:none}
#pcs .pc-workgrid>details:not([data-pc-view=desktop]) {grid-column:1/-1}
#pcs .pc-workgrid>details:not([data-pc-view=desktop])>summary {display:flex;align-items:center;gap:8px;margin:0 0 12px;font-weight:700}
#pcs .pc-display {position:relative;display:grid;place-items:center;min-height:160px;aspect-ratio:16/9;background:var(--pc-dark);color:#bac7d9;border-radius:8px;margin:8px 0;overflow:hidden}
#pcs .pc-standby {display:grid;justify-items:center;gap:8px;font-size:12px}
#pcs .pc-standby svg {width:34px;height:34px}
#pcs .pc-display:has(img:not([hidden])) .pc-standby {display:none}
#pcs .pc-display img {max-height:100%;margin:0}
#pcs #pc-live:fullscreen .pc-display {height:70vh;aspect-ratio:auto}
#pcs .pc-terminal {min-width:0;background:var(--pc-dark);color:#e3eaf5;border-radius:10px;padding:12px}
#pcs .pc-terminal h3 {display:flex;align-items:center;gap:8px;font-size:14px}
#pcs .pc-terminal pre {min-height:110px;max-height:18rem;background:#101924;color:#c8dfd5;padding:12px;font:12px/1.55 Consolas,monospace}
#pcs .pc-terminal label {color:#d1dbe7;font-size:12px}#pcs .pc-terminal-actions {display:flex;gap:6px;margin-top:8px}
@media(max-width:1250px){#pcs .pc-workgrid {grid-template-columns:minmax(0,1.15fr) minmax(175px,.85fr)}}
@media(max-width:1050px){#pcs .pc-workgrid{grid-template-columns:1fr}#pcs .pc-terminal pre{min-height:55px}}
@media(max-width:760px){#pcs .pc-deck{grid-template-columns:minmax(0,1fr)}#pcs .pc-mobile-picker{display:block}#pc-machine-list{display:none}#pcs .pc-rail h2,#pcs .pc-caption{display:none}#pcs .pc-work{padding:10px}#pcs .pc-sections button{flex:none}}

/* Tool workspaces: keep navigation and forms readable as capabilities grow. */
#pcs [hidden]{display:none!important}
#pcs .pc-sections{flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--pc-line);margin-bottom:14px}
#pcs .pc-sections button{min-height:38px;flex:0 0 auto}
#pcs .pc-command-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}
#pcs .pc-command-form{display:grid;align-content:start;gap:10px;padding:16px;border:1px solid var(--pc-line);border-radius:12px;background:#f8f9fc;margin:0 0 12px}
#pcs .pc-command-form h3{font-size:15px;line-height:1.4}
#pcs .pc-command-form label{display:grid;gap:6px;font-size:13px;color:#52677a}
#pcs .pc-command-form input:not([type=checkbox]),#pcs .pc-command-form textarea,#pcs .pc-command-form select{width:100%;min-width:0;box-sizing:border-box;background:white;color:#233347;border:1px solid var(--pc-line);border-radius:8px;padding:9px}
#pcs .pc-command-form input[type=checkbox]{width:20px;height:20px}
#pcs .pc-command-form button{justify-self:start;margin-top:4px}
#pcs .pc-result{min-width:0;margin-top:16px}
#pcs pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:32rem;overflow:auto}
#pcs .pc-table-scroll,#pcs #pc-proc-view,#pcs #pc-report-view{overflow:auto;max-width:100%}
#pcs table{width:100%;border-collapse:collapse;font-size:13px}
#pcs th,#pcs td{padding:10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--pc-line);max-width:420px;overflow-wrap:anywhere;min-width:80px}
#pcs th{background:#f1f3f9;position:sticky;top:0}
#pcs button:disabled{opacity:.45;cursor:not-allowed}
#pcs button:focus-visible,#pcs input:focus-visible,#pcs textarea:focus-visible,#pcs select:focus-visible{outline:3px solid #ad95e9;outline-offset:2px}
#pcs[data-page=power] .pc-command-form button,#pcs [data-command=file_delete] button,#pcs [data-command=uninstall] button{background:#fff0ee;color:#a43131;border:1px solid #e8b2ac}
@media(max-width:760px){#pcs .pc-sections{flex-wrap:nowrap}#pcs .pc-command-form{padding:12px}#pcs .pc-workgrid>details{padding:10px}}

#pcs .pc-command-layout{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.5fr);gap:18px;align-items:start}
#pcs .pc-command-menu{min-width:0}
#pcs .pc-sections{display:grid;grid-template-columns:1fr 1fr;overflow:visible}
#pcs .pc-sections button{white-space:normal;justify-content:flex-start;text-align:left}
#pcs .pc-workgrid{display:block}
#pcs .pc-command-grid{grid-template-columns:1fr}
#pcs .pc-terminal{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}
#pcs .pc-terminal #pc-last-output{display:none}
#pcs .pc-terminal pre{min-height:0;max-height:26rem}
#pcs .pc-terminal .card{color:#233347;background:white;margin-top:14px;padding:12px}
#pcs .pc-job{border:1px solid #405267;border-radius:9px;margin:12px 0;padding:12px;background:#1d2d40}
#pcs .pc-job summary{cursor:pointer;font-weight:600}
#pcs .pc-job p{font-size:12px;color:#b9ccdf}
#pcs .pc-job small{overflow-wrap:anywhere;color:#9aafc6}
#pcs .pc-job-error{border-left:4px solid #ff7182;background:#492a35;color:#ffd6dc;padding:12px}
#pcs .pc-job-error p{color:#ffd6dc}
#pcs .pc-job-ok{border-left:4px solid #53cc9a}
#pcs .pc-job-queued,#pcs .pc-job-dispatched{border-left:4px solid #f3c76a}
#pcs .pc-terminal table{color:#dce7f4}#pcs .pc-terminal th{background:#2c4057}
#pcs .pc-offline{margin-top:12px;color:#66788b}#pcs .pc-offline summary{cursor:pointer;padding:10px}
@media(max-width:1000px){#pcs .pc-command-layout{grid-template-columns:1fr}#pcs .pc-terminal{position:static;max-height:none}}

#pcs .pc-hardware-report{display:grid;grid-template-columns:100px minmax(0,1fr);gap:0;margin:12px 0}#pcs .pc-hardware-report dt,#pcs .pc-hardware-report dd{margin:0;padding:10px;border-bottom:1px solid #405267;overflow-wrap:anywhere}#pcs .pc-hardware-report dt{color:#9bb7d5;font-weight:600}

/* Device rail and task navigation share the left column. */
#pcs .pc-rail .pc-sections{display:flex;flex-direction:column;gap:5px;margin-top:12px;overflow:visible;border:0}
#pcs .pc-rail>h3{font-size:13px;margin-top:22px;color:#657486}
#pcs .pc-rail .pc-sections button{width:100%;justify-content:flex-start;text-align:left;padding:10px}
#pcs .pc-work>.pc-workgrid{display:block}
#pcs .pc-work .pc-command-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
#pcs .pc-work>.pc-terminal{position:static;max-height:none;margin-top:20px}
#pcs .pc-terminal>h3{display:flex;justify-content:space-between;gap:16px}
#pcs .pc-terminal>h3 button{font-size:12px;padding:7px 10px}
#pcs .pc-task-results{padding:16px 0;overflow:auto;min-width:0}
#pcs .pc-task-results:has(#pc-report-output:empty){display:none}
#pcs #pc-report-output{overflow:auto}
#pcs #pc-report-output pre{background:#f2f5fa;color:#233347;padding:14px;border-radius:10px}
#pcs .pc-terminal img{max-width:100%}
#pcs .pc-terminal .pc-job>details{margin:8px 0;font-size:11px;color:#a8bbce}
@media(max-width:760px){#pcs .pc-rail .pc-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#pcs .pc-rail .pc-sections button{font-size:12px}}

#pcs .pc-stat-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}#pcs .pc-stat-cards>div{display:grid;gap:8px;padding:16px;border:1px solid #8394aa55;border-radius:10px}#pcs .pc-stat-cards small{opacity:.7}#pcs .pc-stat-cards strong{font-size:18px}

#pcs .pc-command-form{padding:10px;gap:6px;margin-bottom:8px;border-radius:8px}
#pcs .pc-command-form h3{font-size:13px}#pcs .pc-command-form label{font-size:12px;gap:3px}
#pcs .pc-command-form input:not([type=checkbox]),#pcs .pc-command-form textarea,#pcs .pc-command-form select{padding:6px;font-size:12px}
#pcs .pc-command-form textarea{max-height:90px}#pcs .pc-workgrid>details{padding:10px}
#pcs .pc-task-results{padding:8px 0}#pcs .pc-task-results>h3{font-size:14px}
#pcs table{font-size:12px}#pcs td,#pcs th{padding:5px 7px;min-width:0}
#pcs .pc-process-results{width:min(441px,100%);height:min(490px,70vh);display:flex;flex-direction:column;gap:6px;box-sizing:border-box}
#pcs .pc-process-scroll{overflow:auto;flex:1;min-height:0;border:1px solid var(--pc-line);border-radius:8px}
#pcs .pc-process-scroll tr:not(:first-child){cursor:pointer}#pcs .pc-process-scroll tr.selected{background:#e9e2fb;color:#432780}
#pcs .pc-process-scroll td{max-width:230px}#pcs .pc-process-results>button{align-self:start;font-size:12px;padding:6px 9px}
#pcs .pc-work>.pc-terminal{padding:10px;margin-top:10px;max-height:min(40vh,320px);overflow:auto;resize:vertical}
#pcs .pc-terminal>h3{font-size:12px}#pcs .pc-job{padding:7px;margin:6px 0}#pcs .pc-job pre{padding:6px;font-size:11px}
#pcs #pc-report-output td button{background:none;border:0;color:#6148a6;padding:2px;text-align:left;font:inherit;text-decoration:underline;cursor:pointer}

#pcs .pc-task-results>h3{display:flex;align-items:center;gap:12px;justify-content:space-between}
#pcs .pc-task-results>h3 button{font-size:11px;padding:5px 8px}
#pcs #pc-report-output[data-kind=clipboard_get]{max-width:441px;max-height:180px;overflow:auto}
#pcs #pc-report-output[data-kind=clipboard_get] pre{padding:8px;margin:4px 0;max-height:125px;font-size:12px}
#pcs .pc-service-actions{display:flex;gap:5px;flex-wrap:wrap}#pcs .pc-service-actions button{padding:5px 7px;font-size:11px}

#pcs .pc-display{aspect-ratio:auto;min-height:160px;overflow:auto}
#pcs .pc-display img{display:block;width:auto;height:auto;max-width:100%;max-height:none;object-fit:contain;margin:auto}
#pcs .pc-display img[hidden]{display:none}
#pcs #pc-live.pc-phone-mode .pc-display{min-height:0;height:auto;aspect-ratio:auto;overflow:visible}
#pcs #pc-live.pc-phone-mode .pc-display img{width:auto;height:auto;max-width:100%;max-height:65vh;max-height:65dvh;margin:auto;object-fit:contain}
#pcs #pc-live.pc-phone-mode:fullscreen{box-sizing:border-box;width:100%;height:100%;overflow:auto}
#pcs #pc-live.pc-phone-mode:fullscreen .pc-display{height:auto;max-height:none;aspect-ratio:auto}
#pcs #pc-live.pc-phone-mode:fullscreen .pc-display img{max-width:100%;max-height:65vh;max-height:65dvh}
#pcs #pc-phone-mode[aria-pressed=true]{background:#e9e2fb;color:#432780}
#pcs #pc-export-html{margin:8px 0}

#pcs .pc-shell{background:#0c1523;color:#e2ebf6;border:1px solid #33475e;border-radius:10px;padding:12px;font:13px/1.5 Consolas,monospace}
#pcs .pc-shell-header{font-weight:700;color:#a9bfd9;border-bottom:1px solid #33475e;padding-bottom:8px}
#pcs #pc-shell-output{height:320px;max-height:50vh;overflow:auto;white-space:pre-wrap;margin:8px 0}
#pcs #pc-shell-output pre{background:transparent;color:inherit;padding:0;margin:6px 0;max-height:none;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
#pcs .pc-shell-entry{border-bottom:1px solid #25354b;padding:6px 0}
#pcs .pc-shell-entry>pre:first-child,#pcs .pc-shell-prompt{color:#8cd6aa}
#pcs #pc-shell-output .pc-shell-error{color:#ff8b9c}
#pcs #pc-shell-form{display:flex;align-items:start;gap:8px;border-top:1px solid #33475e;padding-top:10px}
#pcs #pc-shell-input{flex:1;min-width:0;background:#121f30;color:white;border:1px solid #405772;border-radius:5px;padding:6px;font:inherit;resize:vertical}
#pcs .pc-shell small{font:11px/1.5 system-ui;color:#97adc7;display:block;margin-top:8px}
#pcs .pc-shell-presets{margin-top:12px}#pcs .pc-shell-presets>summary{cursor:pointer;font-weight:600}
@media(max-width:760px){#pcs #pc-shell-form{flex-wrap:wrap}#pcs .pc-shell-prompt{display:none}#pcs #pc-shell-input{flex-basis:70%}#pcs .pc-shell{padding:8px}}

#pcs .pc-shell-header{display:flex;align-items:center;justify-content:space-between;gap:8px}#pcs .pc-shell-header button{font:12px system-ui;padding:5px 9px;white-space:nowrap}

#pcs .pc-nearby {
 display: grid;
 grid-template-columns: minmax(0, 1fr) auto;
 align-items: center;
 gap: 10px;
 padding: 16px;
 margin-bottom: 14px;
 border: 1px solid var(--pc-line);
 border-radius: 12px;
 background: #f8f9fc;
}
#pcs .pc-nearby h3, #pcs .pc-nearby p { margin: 0; }
#pcs .pc-nearby input, #pcs .pc-nearby p, #pcs .pc-nearby ul,
#pcs .pc-nearby > small { grid-column: 1 / -1; }
#pcs .pc-nearby ul {
 display: grid;
 gap: 6px;
 max-height: 23rem;
 overflow: auto;
 list-style: none;
 padding: 0;
 margin: 0;
}
#pcs .pc-nearby ul[data-empty]:not([data-empty=""])::after { content: attr(data-empty); }
#pcs .pc-nearby li {
 display: grid;
 grid-template-columns: 5.5rem minmax(0, 1fr);
 align-items: center;
 gap: 3px 10px;
 padding: 8px;
 border: 1px solid var(--pc-line);
 border-radius: 8px;
 background: white;
 overflow-wrap: anywhere;
}
#pcs .pc-nearby li small { grid-column: 2; }
#pcs .pc-nearby-type {
 justify-self: start;
 border-radius: 999px;
 background: #e7ecff;
 color: #30458b;
 font-size: 12px;
 padding: 3px 8px;
}
@media (max-width: 460px) {
 #pcs .pc-nearby { grid-template-columns: minmax(0, 1fr); }
 #pcs .pc-nearby button { justify-self: start; }
}
#pc-batch-pcs,#pc-batch-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:4px 12px;max-height:240px;overflow:auto;padding:6px 2px}
#pc-batch-pcs label,#pc-batch-groups label{display:flex;align-items:center;gap:6px;margin:0;overflow-wrap:anywhere}
#pc-batch-pcs input,#pc-batch-groups input{flex:none;width:18px;height:18px;min-height:0;margin:0}
#pc-batch-form>details{margin:12px 0}
#pc-batch-result pre{white-space:pre-wrap;overflow-wrap:anywhere}
.pc-inventory { margin-block: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line,var(--pc-line,#d7dfe7)); }
.pc-inventory-sections {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
 gap: 0.35rem 0.75rem;
 margin: 0.75rem 0;
}
.pc-inventory-sections label { margin: 0; }
.pc-inventory-progress { width: 100%; height: 0.9rem; accent-color: #337b72; }
.pc-inventory-parts { list-style: none; padding: 0; margin: 0.75rem 0; }
.pc-inventory-parts li {
 display: grid;
 grid-template-columns: minmax(0, 1fr) auto;
 align-items: baseline;
 gap: 0.35rem 0.75rem;
 padding: 0.55rem 0;
 border-bottom: 1px solid var(--line,var(--pc-line,#d7dfe7));
}
.pc-inventory-badge { padding: 0.15rem 0.55rem; border-radius: 0.4rem; background: #e7edf4; color: #35495e; }
.pc-inventory-parts [data-status=dispatched] .pc-inventory-badge { background: #e3edff; color: #214a84; }
.pc-inventory-parts [data-status=ok] .pc-inventory-badge { background: #dbf4e7; color: #145c3d; }
.pc-inventory-parts :is([data-status=error],[data-status=unknown],[data-status=expired]) .pc-inventory-badge,
.pc-inventory-error { background: #ffebe6; color: #852f24; }
.pc-inventory-error { border-radius: 0.4rem; padding: 0.55rem; }
.pc-inventory-part-message { grid-column: 1 / -1; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.pc-file-dialog{box-sizing:border-box;width:min(760px,94vw);max-height:90vh;overflow:auto;border:1px solid #65778b;border-radius:14px;padding:20px;background:#202b39;color:#edf3fa;box-shadow:0 18px 70px #0009}
.pc-file-dialog::backdrop{background:#0009}
.pc-file-dialog h3{margin:0 0 8px}.pc-file-dialog p{overflow-wrap:anywhere}
.pc-file-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0}
.pc-file-toolbar input{flex:1;min-width:150px}
.pc-file-dialog input{box-sizing:border-box;width:100%;padding:10px;border:1px solid #65778b;border-radius:7px;background:#15202d;color:inherit}
.pc-file-dialog button{padding:9px 12px;border:1px solid #65778b;border-radius:7px;background:#31475d;color:inherit;cursor:pointer;font:inherit}
.pc-file-dialog button:disabled{opacity:.5;cursor:default}.pc-file-dialog button:focus-visible,.pc-file-dialog input:focus-visible{outline:2px solid #68c9ff;outline-offset:2px}
.pc-file-entries{min-height:120px;max-height:42vh;overflow:auto;display:flex;flex-direction:column;gap:4px}
.pc-file-entries button{text-align:left;overflow-wrap:anywhere}.pc-file-entries button[aria-pressed=true]{background:#176394;border-color:#68c9ff}
.pc-file-dialog small{display:block;color:#bccbdc}
#pcs .pc-location-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
#pcs .pc-location-cards>div{min-width:0;overflow-wrap:anywhere}

#pcs .pc-offline-toggle{display:flex;align-items:center;gap:8px;font-size:12px;margin:10px 0}#pcs .pc-offline-toggle input{width:15px;height:15px;min-height:0;margin:0;padding:0}#pcs #pc-machine-list .pc-machine-group{border:0;background:transparent;padding:0;margin:6px 0}#pcs #pc-machine-list .pc-machine-group>summary{padding:7px 2px;margin:0;font-size:11px;color:var(--muted,#8897aa)}#pcs #pc-machine-list .pc-machine-group>button{width:100%;text-align:left}

/* Machine list: search and favourites. */
#pcs .pc-machine-search{width:100%;box-sizing:border-box;margin:0 0 8px;padding:8px 10px;font-size:12px;border:1px solid var(--pc-line);border-radius:8px;background:#fff;color:#233347}
#pcs .pc-machine-row{display:flex;gap:4px;align-items:stretch}
#pcs .pc-machine-row>button:first-child{flex:1;min-width:0}
#pcs #pc-machine-list .pc-fav{flex:none;width:34px;padding:0;justify-content:center;background:transparent;border-color:transparent;color:#8a7bb8;font-size:16px}
#pcs #pc-machine-list .pc-fav[aria-pressed=true]{background:transparent;border-color:transparent;color:#c78a00}
@media(max-width:760px){#pcs .pc-machine-search{display:none}}

/* Load charts and inventory diff. */
#pcs .pc-spark-box{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:8px}
#pcs .pc-spark{margin:0;min-width:0}
#pcs .pc-spark svg{display:block;width:100%;height:48px;color:#6148a6;background:#f3f2fa;border-radius:8px}
#pcs .pc-spark figcaption{font-size:11px;color:#657486;margin-top:4px}
#pcs .pc-inventory-diff{margin:10px 0}
#pcs .pc-inventory-diff h4{margin:0 0 6px;font-size:13px}
#pcs .pc-inventory-diff ul{margin:6px 0 10px 18px;padding:0;max-height:18rem;overflow:auto;font-size:12px}
#pcs .pc-inventory-diff details{margin:4px 0}
#pcs td button{font:inherit;font-size:11px}

/* Touch devices: larger targets, no iOS zoom on focus. */
@media (pointer:coarse){
 #pcs .pc-service-actions button,#pcs .pc-process-results>button,#pcs .pc-task-results>h3 button,#pcs .pc-terminal>h3 button{min-height:40px;font-size:13px}
 #pcs td,#pcs th{padding:9px 8px}
 #pcs .pc-command-form input:not([type=checkbox]),#pcs .pc-command-form textarea,#pcs .pc-command-form select,#pcs .pc-machine-search{font-size:16px}
}
@media (prefers-reduced-motion:reduce){.pc-update-pulse,.pc-update-badge{animation:none!important}}

/* Waiting indicators. */
@keyframes pc-spin{to{transform:rotate(360deg)}}
@keyframes pc-shimmer{to{background-position:-200% 0}}
.pc-spinner,#pcs button[aria-busy=true]::after,.pc-file-dialog button[aria-busy=true]::after{display:inline-block;box-sizing:border-box;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:pc-spin .7s linear infinite}
.pc-spinner{margin-right:6px;opacity:.85}
#pcs button[aria-busy=true]::after,.pc-file-dialog button[aria-busy=true]::after{content:"";width:12px;height:12px;margin-left:8px}
#pcs button[aria-busy=true],.pc-file-dialog button[aria-busy=true]{cursor:progress}
#pcs [aria-busy=true]>small,.pc-file-dialog [aria-busy=true]>small{display:inline;font-size:inherit;opacity:.8}
#pcs #pc-report-output[aria-busy=true]{display:flex;align-items:center;flex-wrap:wrap;padding:12px 4px;color:#52677a}
#pcs .pc-terminal #pc-report-output[aria-busy=true]{color:#bccbdc}
#pcs summary>.pc-spinner{width:12px;height:12px}
.pc-skel-row{display:block;height:34px;border-radius:8px;background:linear-gradient(90deg,#e6e9f0 25%,#f3f5f9 50%,#e6e9f0 75%);background-size:200% 100%;animation:pc-shimmer 1.2s ease-in-out infinite}
.pc-skel-row:nth-child(3n+2){width:82%}
.pc-skel-row:nth-child(3n){width:66%}
.pc-file-dialog .pc-skel-row{background-image:linear-gradient(90deg,#27374a 25%,#34495f 50%,#27374a 75%)}
@media (prefers-reduced-motion:reduce){
 .pc-spinner,#pcs button[aria-busy=true]::after,.pc-file-dialog button[aria-busy=true]::after{animation-duration:2.4s}
 .pc-skel-row{animation-duration:3s}
}
