/* Compact add-printer workspace and consolidated Agent actions */
.printer-discovery-agent-body .agent-discovery-form .primary-button { position:static; height:auto; min-height:46px; white-space:normal; line-height:1.4; padding:10px 12px; font-size:12px; }
.printer-discovery-agent-body .agent-discovery-form .primary-button:disabled { background:#e4e9f0; color:#475467; border:1px solid #b8c5d4; opacity:1; cursor:not-allowed; }
.printer-add-back{margin-bottom:8px}
.printer-add-header{display:grid;grid-template-columns:auto minmax(360px,1fr) auto;align-items:center;gap:18px;margin-bottom:10px}
.printer-add-header h1{margin:2px 0 3px}
.printer-search-scope{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(240px,1.3fr) auto;align-items:center;gap:10px;padding:9px 12px;border:1px solid #9cc8e5;border-radius:10px;background:linear-gradient(135deg,#eef9ff,#fff);box-shadow:0 2px 8px rgba(15,35,62,.08)}
.printer-search-scope>span{display:grid;gap:1px;min-width:0}.printer-search-scope>span+span{padding-left:12px;border-left:1px solid #c9e1ef}.printer-search-scope small{color:#52677f;font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.printer-search-scope strong{overflow:hidden;color:#10233e;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.printer-search-scope em{overflow:hidden;color:#667085;font-size:8px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.printer-added-continue{margin:10px 14px 0}
.printer-add-workspace{overflow:hidden}
.printer-add-error{margin:10px 14px 0}
.printer-discovery-suggestion{display:flex;align-items:center;gap:10px;padding:9px 15px;border-bottom:1px solid #bfe0ef;background:#effaff}
.printer-discovery-suggestion>div{display:grid;gap:2px}.printer-discovery-suggestion small{color:#52677f}
.discovery-pulse{width:10px;height:10px;border-radius:50%;background:#16a3c7;box-shadow:0 0 0 0 rgba(22,163,199,.45);animation:agentPulse 1.8s infinite}
.printer-add-form{display:grid}
.printer-add-columns{display:grid;grid-template-columns:1fr 1fr}
.printer-add-section{padding:12px 15px 10px}
.printer-add-section+.printer-add-section{border-left:1px solid #dce3ec}
.printer-add-section-heading,.device-library-picker legend{display:flex;align-items:center;gap:9px;margin-bottom:9px}
.printer-add-section-heading>span,.device-library-picker legend>span{display:grid;width:24px;height:24px;place-items:center;border-radius:7px;background:#10233e;color:#fff;font-size:11px;font-weight:800}
.printer-add-section-heading>div,.device-library-picker legend>div{display:grid;gap:1px}.printer-add-section-heading small,.device-library-picker legend small{color:#667085;font-size:9px}
.printer-add-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}
.printer-add-grid .settings-field{gap:3px;margin:0}.printer-add-grid .settings-field>span{font-size:8px}.printer-add-grid input,.printer-add-grid select{min-height:34px;padding:6px 9px}.printer-add-grid small{font-size:8px;line-height:1.25}
.printer-layout-field{grid-column:1/-1}
.device-library-picker{min-width:0;margin:0;padding:10px 15px 12px;border:0;border-top:1px solid #dce3ec;background:#f8fafc}
.device-library-picker legend{float:left;width:100%;padding:0}
.device-library-options{clear:both;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.device-library-option{min-width:0;cursor:pointer}.device-library-option>input{position:absolute;opacity:0;pointer-events:none}
.device-library-option-card{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:8px;min-height:58px;padding:7px;border:1px solid #b9c5d4;border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.05)}
.device-library-option-card:hover{border-color:#16a3c7;background:#f1fbff}
.device-library-option input:checked+.device-library-option-card{border:2px solid #168bd2;padding:6px;background:#eef9ff;box-shadow:0 0 0 2px rgba(22,139,210,.12)}
.device-library-image{display:grid;width:42px;height:42px;place-items:center;overflow:hidden;border-radius:7px;background:#edf2f7;color:#52677f;font-size:8px;font-weight:800}.device-library-image img{width:100%;height:100%;object-fit:contain}
.device-library-option-card>span:nth-child(2){display:grid;min-width:0;gap:2px}.device-library-option-card strong{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.device-library-option-card small{overflow:hidden;color:#667085;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.device-library-option-card>b{display:none;color:#168bd2}.device-library-option input:checked+.device-library-option-card>b{display:block}
.printer-add-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 15px;border-top:1px solid #dce3ec;background:#fff}.printer-add-footer p{margin:0;color:#52677f;font-size:9px}.printer-add-footer>div{display:flex;gap:8px;white-space:nowrap}.printer-add-footer .primary-button,.printer-add-footer .secondary-button{min-height:34px}
.agent-summary-consolidated{grid-template-columns:1.25fr 1fr 1fr}
.agent-primary-status{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:11px;border-color:#8cd8b0!important;background:linear-gradient(135deg,#f0fff7,#fff)!important}
.agent-primary-status.health-danger{border-color:#f0a1a1!important;background:#fff5f5!important}
.agent-primary-status>div{display:grid;gap:2px}.agent-status-pulse{width:11px!important;height:11px!important}
.agent-status-pulse.online{box-shadow:0 0 0 0 rgba(34,197,94,.55);animation:agentPulse 1.8s infinite}
@keyframes agentPulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.5)}70%{box-shadow:0 0 0 7px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
.agent-tool-links .agent-add-printer-action{border-color:#168bd2;background:linear-gradient(135deg,#168bd2,#13a8c7);color:#fff;box-shadow:0 4px 10px rgba(22,139,210,.2)}
.agent-tool-links .agent-add-printer-action small{color:#e8faff}.agent-tool-links .agent-add-printer-action::after{background:#fff;color:#168bd2}
@media(max-width:1150px){.device-library-options{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.printer-add-columns{grid-template-columns:1fr}.printer-add-section+.printer-add-section{border-left:0;border-top:1px solid #dce3ec}.printer-add-grid{grid-template-columns:1fr}.printer-layout-field{grid-column:auto}.device-library-options{grid-template-columns:1fr 1fr}.printer-add-footer{align-items:stretch;flex-direction:column}.agent-summary-consolidated{grid-template-columns:1fr}}

.settings-field>span em{margin-left:4px;color:#168bd2;font-size:7px;font-style:normal;font-weight:750;text-transform:none}
.settings-field input[readonly]{border-style:dashed;background:#eef3f8;color:#40536a;font-weight:750}
.agent-search-field{position:relative}
.agent-search-field input[data-agent-search]{padding-right:30px;background-image:linear-gradient(45deg,transparent 50%,#52677f 50%),linear-gradient(135deg,#52677f 50%,transparent 50%);background-position:calc(100% - 15px) 14px,calc(100% - 10px) 14px;background-repeat:no-repeat;background-size:5px 5px,5px 5px}
.agent-search-field.is-invalid input[data-agent-search]{border-color:#ef4444;background-color:#fff5f5}

.device-library-first{border-top:0;border-bottom:1px solid #dce3ec}
.agent-combobox{position:relative}
.agent-search-results{position:absolute;z-index:40;top:calc(100% + 4px);left:0;right:0;display:none;max-height:240px;overflow:auto;padding:5px;border:1px solid #9fb1c5;border-radius:8px;background:#fff;box-shadow:0 12px 28px rgba(15,35,62,.2)}
.agent-search-results.open{display:grid}.agent-search-results.no-results::after{content:'No matching Agents';padding:12px;color:#667085;text-align:center}
.agent-search-results button{display:grid;grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) auto;gap:8px;align-items:center;padding:8px 9px;border:0;border-radius:6px;background:#fff;color:#10233e;text-align:left;cursor:pointer}
.agent-search-results button:hover,.agent-search-results button:focus{outline:0;background:#edf8ff}
.agent-search-results button strong{font-size:10px}.agent-search-results button span{font-size:9px}.agent-search-results button small{color:#667085;font-size:8px}
.settings-field[hidden]{display:none!important}
.layout-preview-picker{min-width:0;margin:0;padding:9px 15px 10px;border:0;border-top:1px solid #dce3ec;background:#f8fafc}
.layout-preview-picker legend{display:flex;align-items:center;gap:9px;float:left;width:100%;margin-bottom:8px;padding:0}
.layout-preview-picker legend>span{display:grid;width:24px;height:24px;place-items:center;border-radius:7px;background:#10233e;color:#fff;font-size:11px;font-weight:800}
.layout-preview-picker legend>div{display:grid;gap:1px}.layout-preview-picker legend small{color:#667085;font-size:9px}
.layout-preview-options{clear:both;display:flex;gap:8px;min-height:60px;overflow-x:auto}
.layout-preview-option{flex:0 0 225px;cursor:pointer}.layout-preview-option>input{position:absolute;opacity:0}
.layout-preview-card{display:grid;grid-template-columns:62px minmax(0,1fr) 18px;align-items:center;gap:8px;height:58px;padding:6px;border:1px solid #b9c5d4;border-radius:8px;background:#fff}
.layout-preview-option input:checked+.layout-preview-card{border:2px solid #168bd2;padding:5px;background:#eef9ff}
.layout-miniature{display:grid;width:62px;height:44px;place-items:center;overflow:hidden;border-radius:5px;background:#e9eef5}.layout-miniature img{max-width:100%;max-height:100%;object-fit:contain}
.layout-preview-card>span:nth-child(2){display:grid;min-width:0;gap:2px}.layout-preview-card strong{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.layout-preview-card small{color:#667085;font-size:8px}.layout-preview-card>b{display:none;color:#168bd2}.layout-preview-option input:checked+.layout-preview-card>b{display:block}
.layout-picker-placeholder{display:grid;flex:1;place-items:center;margin:0;border:1px dashed #b9c5d4;border-radius:8px;color:#667085;font-size:9px}
@media(max-width:800px){.agent-search-results button{grid-template-columns:1fr}.layout-preview-option{flex-basis:190px}}


/* Automatic discovery is the primary Add Printer path. */
.printer-auto-discovery{margin-bottom:10px;overflow:hidden}.printer-auto-discovery-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 15px;border-bottom:1px solid #dce3ec;background:linear-gradient(135deg,#f2fbff,#fff)}.printer-auto-discovery-heading h2{margin:1px 0 2px;font-size:16px}.printer-auto-discovery-heading p{max-width:900px;margin:0;color:#52677f;font-size:9px}.printer-discovery-agent-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px 15px}.printer-discovery-agent{min-width:0;border:1px solid #b9c5d4;border-radius:9px;background:#fff;overflow:hidden}.printer-discovery-agent[open]{grid-column:1/-1;border-color:#16a3c7;box-shadow:0 0 0 2px rgba(22,163,199,.1)}.printer-discovery-agent>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:10px 11px;cursor:pointer;list-style:none}.printer-discovery-agent>summary::-webkit-details-marker{display:none}.printer-discovery-agent>summary strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.printer-discovery-agent>summary small{color:#667085;font-size:8px}.printer-discovery-agent>summary b{color:#168bd2;font-size:8px}.printer-discovery-agent-body{display:grid;grid-template-columns:190px minmax(0,1fr);gap:10px;padding:10px;border-top:1px solid #dce3ec;background:#f8fafc}.printer-discovery-agent-body .agent-discovery-form button{width:100%}.printer-discovery-agent-body .agent-discovery-panel{min-width:0;border:0;background:transparent}.printer-discovery-agent-body .agent-discovery-live{min-height:64px}.printer-discovery-agent-body .discovery-device-list{grid-template-columns:repeat(2,minmax(0,1fr))}.printer-manual-path{padding:8px 15px;border-top:1px solid #dce3ec;background:#f8fafc}.printer-manual-path summary{color:#10233e;font-size:9px;font-weight:800;cursor:pointer}.printer-manual-path p{margin:4px 0 0;color:#667085;font-size:8px}@media(max-width:800px){.printer-discovery-agent-list{grid-template-columns:1fr}.printer-discovery-agent-body{grid-template-columns:1fr}.printer-discovery-agent-body .discovery-device-list{grid-template-columns:1fr}.printer-auto-discovery-heading{align-items:flex-start;flex-direction:column}}


/* Agent-scoped onboarding keeps discovery and manual entry distinct. */
.printer-onboarding-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 12px}
.printer-onboarding-paths>a{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:11px;padding:12px 14px;border:1px solid #b9c5d4;border-radius:10px;background:#fff;color:#10233e;text-decoration:none;box-shadow:0 2px 5px rgba(16,35,62,.05)}
.printer-onboarding-paths>a:hover{border-color:#168bd2;background:#f6fbff}
.printer-onboarding-paths>a.active{border:2px solid #168bd2;padding:11px 13px;background:linear-gradient(135deg,#edf9ff,#fff);box-shadow:0 0 0 3px rgba(22,139,210,.08)}
.printer-onboarding-paths .path-number{display:grid;width:30px;height:30px;place-items:center;border-radius:8px;background:#10233e;color:#fff;font-size:12px;font-weight:900}
.printer-onboarding-paths a.active .path-number{background:#168bd2}
.printer-onboarding-paths a>span:last-child{display:grid;gap:2px}.printer-onboarding-paths strong{font-size:12px}.printer-onboarding-paths small{color:#667085;font-size:9px}
.agent-scope-badge{display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #c9d5e3;border-radius:999px;background:#fff;color:#10233e;font-size:9px;font-weight:800}
.printer-discovery-agent-list.single-agent{display:block}.printer-discovery-agent.active-agent{border-color:#16a3c7;box-shadow:0 0 0 2px rgba(22,163,199,.1)}
.printer-discovery-agent.active-agent>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 11px;border-bottom:1px solid #dce3ec}
.printer-discovery-agent.active-agent>header strong{font-size:10px}.printer-discovery-agent.active-agent>header small{color:#667085;font-size:8px}
.manual-registration-banner{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #dce3ec;background:#fff8eb;color:#7a4a00}
.manual-registration-banner strong{font-size:11px}.manual-registration-banner span{font-size:9px}
.selected-agent-context{display:flex;align-items:center;gap:9px;margin:0 0 10px;padding:9px 10px;border:1px solid #cbd8e6;border-radius:8px;background:#f5f9fd}
.selected-agent-context>div{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:2px 8px;min-width:0}.selected-agent-context small{grid-column:1/-1;color:#667085;font-size:8px;text-transform:uppercase}.selected-agent-context strong{font-size:10px}.selected-agent-context em{color:#667085;font-size:8px;font-style:normal}
@media(max-width:800px){.printer-onboarding-paths{grid-template-columns:1fr}.manual-registration-banner{align-items:flex-start;flex-direction:column}}
@media(max-width:1050px){.printer-add-header{grid-template-columns:1fr auto}.printer-search-scope{grid-column:1/-1;grid-row:2;grid-template-columns:1fr 1.4fr auto}}

/* Live command exchange between Print Manager and the selected Agent. */
.discovery-conversation{display:grid;grid-template-columns:minmax(115px,1fr) auto minmax(115px,1fr) auto minmax(160px,1.35fr) auto minmax(115px,1fr);align-items:center;gap:8px;margin:10px 0;padding:10px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#f8fafc}
.discovery-conversation>i{color:#98a2b3;font-style:normal;font-weight:800;text-align:center}
.discovery-conversation-step{display:flex;min-width:0;align-items:center;gap:8px;color:#98a2b3}
.discovery-conversation-step>span{display:grid;flex:0 0 25px;width:25px;height:25px;place-items:center;border:1px solid #d0d5dd;border-radius:50%;background:#fff;font-weight:900}
.discovery-conversation-step strong,.discovery-conversation-step small{display:block}.discovery-conversation-step strong{font-size:10px}.discovery-conversation-step small{margin-top:2px;font-size:9px;line-height:1.2}
.discovery-live-meter{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;gap:8px;margin-top:8px}.discovery-live-meter-track{display:block;height:8px;overflow:hidden;border-radius:999px;background:#dbe7f4}.discovery-live-meter-track>i{display:block;height:100%;min-width:3px;border-radius:inherit;background:linear-gradient(90deg,#16a3c7,#175cd3);transition:width .45s ease}.discovery-live-meter>b{color:#175cd3;font-size:9px;font-variant-numeric:tabular-nums;text-align:right}
.discovery-conversation-step.complete{color:#027a48}.discovery-conversation-step.complete>span{border-color:#6ce9a6;background:#ecfdf3}
.discovery-conversation-step.active{color:#175cd3}.discovery-conversation-step.active>span{border-color:#84adff;background:#eff8ff;box-shadow:0 0 0 4px rgba(46,144,250,.12);animation:discovery-conversation-pulse 1.25s ease-in-out infinite}
@keyframes discovery-conversation-pulse{50%{box-shadow:0 0 0 8px rgba(46,144,250,.04)}}
@media(max-width:900px){.discovery-conversation{grid-template-columns:1fr 1fr}.discovery-conversation>i{display:none}}


/* The active registration path remains readable even where global navigation colors apply. */
.printer-onboarding-paths>a.active,.printer-onboarding-paths>a.active:hover{color:#10233e!important}
.printer-onboarding-paths>a.active small{color:#52677f!important}
