/* v33.24 RC1: shared chrome only. No form, modal or widget DOM is changed. */
html body.jit-consistent-pages { --jit-rail:0px; --jit-content:1920px; --jit-space:24px; --jit-navy:#133c50; --jit-cyan:#16bad8; background:#edf4f8; color:#16354a; }
html body.jit-consistent-pages .page-shell { box-sizing:border-box; width:min(var(--jit-content),calc(100% - var(--jit-rail) - 40px)) !important; max-width:var(--jit-content) !important; margin:0 20px 0 calc(var(--jit-rail) + max(20px, (100% - var(--jit-rail) - var(--jit-content))/2)) !important; padding:28px 0 54px !important; min-width:0; }
@media(min-width:1100px) {
 html body.jit-consistent-pages.customer-shell-page { --jit-rail:250px; }
 html body.jit-consistent-pages.admin-shell-page { --jit-rail:276px; }
 html body.jit-consistent-pages.customer-shell-page.jit_customer_rail_collapsed-active { --jit-rail:92px; }
 html body.jit-consistent-pages.admin-shell-page.jit_admin_rail_collapsed-active { --jit-rail:96px; }
}
html body.jit-consistent-pages .page-shell > * { min-width:0; max-width:100%; box-sizing:border-box; }
html body.jit-consistent-pages .page-shell :where(.content-panel,.dashboard-panel) { border:1px solid #d4e3ed; border-radius:22px; background:#fff; box-shadow:0 8px 26px rgba(25,58,77,.035); }
html body.jit-consistent-pages .page-shell > :where(.content-panel,.admin-hero,.hero,.dashboard-hero) { margin-bottom:24px; }
html body.jit-consistent-pages .page-shell :where(.admin-hero,.portal-hero-small,.jit-page-hero) { background:linear-gradient(115deg,#143448,#0f5865); border:1px solid #1d5b69; border-radius:24px; padding:28px; color:#fff; box-shadow:0 12px 30px rgba(14,53,72,.10); }
html body.jit-consistent-pages .page-shell :where(.admin-hero,.portal-hero-small,.jit-page-hero) :where(h1,h2,h3,p,strong) { color:inherit; }
html body.jit-consistent-pages .page-shell :where(.admin-hero,.portal-hero-small,.jit-page-hero) .eyebrow { color:#9ce8f2; letter-spacing:.12em; }
html body.jit-consistent-pages .page-shell :where(.admin-hero,.portal-hero-small,.jit-page-hero) p { opacity:.94; max-width:95ch; }
html body.jit-consistent-pages h1 { font-size:clamp(26px,3vw,38px); line-height:1.16; letter-spacing:-.025em; }
html body.jit-consistent-pages h2 { line-height:1.25; letter-spacing:-.015em; }
html body.jit-consistent-pages .button { border-radius:12px; font-weight:700; min-height:40px; padding:10px 16px; line-height:1.25; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:7px; cursor:pointer; box-sizing:border-box; max-width:100%; }
html body.jit-consistent-pages .button.small { min-height:34px; padding:7px 11px; font-size:12px; }
html body.jit-consistent-pages .button.primary { background:linear-gradient(100deg,#13b7d7,#48d9f1); color:#073346; border:1px solid transparent; }
html body.jit-consistent-pages .button.ghost { background:#fff; color:#174659; border:1px solid #c8dce8; }
html body.jit-consistent-pages :where(.admin-hero,.portal-hero-small,.jit-page-hero) .button.ghost { color:#fff; border-color:#76a5b2; background:rgba(255,255,255,.08); }
html body.jit-consistent-pages .button.danger { background:#a32535; color:#fff; border:1px solid #a32535; }
html body.jit-consistent-pages .button:disabled,html body.jit-consistent-pages .button[aria-disabled=true] { opacity:.55; cursor:not-allowed; }
html body.jit-consistent-pages :where(a,button,input,select,textarea,summary):focus-visible { outline:3px solid #007b9b; outline-offset:3px; }
html body.jit-consistent-pages :where(input:not([type=checkbox]):not([type=radio]),select,textarea) { border-radius:11px; max-width:100%; box-sizing:border-box; }
html body.jit-consistent-pages :where(.form-grid,.portal-grid,.table-wrap,.table-responsive) { min-width:0; }
html body.jit-consistent-pages :where(.table-wrap,.table-responsive) { width:100%; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
html body.jit-consistent-pages .table-wrap th { background:#f3f8fb; color:#34586c; }
html body.jit-consistent-pages .table-wrap tbody tr:hover { background:#f5fafc; }
html body.jit-consistent-pages .cipp-product-highlight { outline:3px solid #1192b1; outline-offset:3px; background:#edfafe; scroll-margin:100px; }
.jit-coverage-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:18px 0 4px; }
.jit-coverage-metrics>div { display:flex; flex-direction:column; gap:6px; background:#f2f8fb; padding:16px; border-radius:14px; }
.jit-coverage-metrics strong { font-size:26px; }
.jit-coverage-metrics span { font-size:12px; color:#456478; }
@media(max-width:760px) {
 html body.jit-consistent-pages .page-shell { width:calc(100% - 24px) !important; margin:0 12px !important; padding-top:18px !important; }
 html body.jit-consistent-pages .page-shell :where(.admin-hero,.portal-hero-small,.jit-page-hero) { padding:20px; border-radius:18px; flex-wrap:wrap; }
 html body.jit-consistent-pages .page-shell > .content-panel { padding:18px; }
 html body.jit-consistent-pages .hero-action-stack { max-width:100%; }
 html body.jit-consistent-pages .form-grid > * { min-width:0; }
 .jit-coverage-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) { html body.jit-consistent-pages * { scroll-behavior:auto !important; } }
@media print { html body.jit-consistent-pages .page-shell { width:100% !important; margin:0 !important; padding:0 !important; } }

/* RC3: compact inline task actions. Override the legacy mobile full-width icons. */
html body.jit-consistent-pages .project-task-actions { display:inline-flex; flex-flow:row nowrap; gap:8px; align-items:center; justify-self:start; width:max-content; max-width:100%; }
html body.jit-consistent-pages .project-task-actions > form { display:inline-flex; margin:0; padding:0; width:auto; }
html body.jit-consistent-pages .project-task-actions .icon-button { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; min-width:40px; padding:8px; }
html body.jit-consistent-pages .project-task-row:not(.customer-project-board .project-task-row) { grid-template-columns:auto auto minmax(0,1fr) auto auto; }
@media(max-width:1100px) { html body.jit-consistent-pages .project-task-row:not(.customer-project-board .project-task-row) { grid-template-columns:auto auto minmax(0,1fr); } html body.jit-consistent-pages .project-task-actions { grid-column:3; } }
html body.jit-consistent-pages .customer-project-board .project-task-actions { grid-column:1; }
@media(max-width:720px) { html body.jit-consistent-pages .project-task-row:not(.customer-project-board .project-task-row) { grid-template-columns:1fr; } html body.jit-consistent-pages .project-task-actions { grid-column:1; } }
/* Status colour is explicit; only the existing OK meaning changes colour. */
html body.jit-consistent-pages #identity-table .identity-hibp-ok { background:#e8f8f0; color:#126641; }
html body.jit-consistent-pages #asset-table .status-pill.completed { background:#e8f8f0; color:#126641; }
html body.jit-consistent-pages .asset-huntress-health { display:flex; flex-direction:column; align-items:flex-start; gap:3px; min-width:175px; max-width:270px; }
html body.jit-consistent-pages .asset-huntress-health small { line-height:1.4; overflow-wrap:anywhere; }
html body.jit-consistent-pages .asset-huntress-name { font-weight:700; }
html body.jit-consistent-pages .asset-defender-state.needs-review { color:#9a4b04; font-weight:700; }
html body.jit-consistent-pages .asset-health-legend { margin:0 0 14px; max-width:115ch; }
/* Main destinations stay together. Customer switch and sign-out form a separate pair. */
html body.jit-consistent-pages .topbar .navlinks { flex:1 1 auto; min-width:0; gap:14px 24px; }
html body.jit-consistent-pages .topbar-destinations { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; min-width:0; }
html body.jit-consistent-pages .topbar-destination { display:inline-flex; align-items:center; gap:10px; white-space:nowrap; }
html body.jit-consistent-pages .topbar-separator { color:#8dabb9; font-weight:400; user-select:none; }
html body.jit-consistent-pages .topbar-account-actions { display:flex; flex-wrap:nowrap; align-items:center; gap:10px; margin-left:auto; min-width:0; }
html body.jit-consistent-pages .topbar .admin-customer-switch { margin:0; min-width:0; flex:0 1 auto; }
html body.jit-consistent-pages .topbar .admin-customer-switch select { min-width:0; width:clamp(130px,16vw,230px); max-width:100%; text-overflow:ellipsis; }
html body.jit-consistent-pages .topbar-signout { flex:0 0 auto; white-space:nowrap; }
@media(min-width:1100px) { html body.jit-consistent-pages .topbar { gap:22px; } html body.jit-consistent-pages .topbar .brand { flex:0 1 auto; min-width:0; } html body.jit-consistent-pages .topbar .navlinks { justify-content:space-between; } }
@media(max-width:1099px) {
 html body.jit-consistent-pages .topbar-destinations { flex-direction:column; align-items:stretch; width:100%; gap:6px; }
 html body.jit-consistent-pages .topbar-destination { white-space:normal; }
 html body.jit-consistent-pages .topbar-separator { display:none; }
 html body.jit-consistent-pages .topbar-account-actions { flex-wrap:wrap; margin:0; width:100%; }
 html body.jit-consistent-pages .topbar .admin-customer-switch select { width:100%; }
}

html body.jit-consistent-pages.managed-assets-page .section-heading > .form-actions { flex-wrap:wrap; min-width:0; max-width:100%; }
html body.jit-consistent-pages.managed-assets-page .section-heading .table-search { min-width:0; flex:1 1 200px; width:auto; }
@media(min-width:1100px) {
 html body.jit-consistent-pages .topbar .navlinks { flex-wrap:nowrap; }
 html body.jit-consistent-pages .topbar-destinations { font-size:14px; gap:6px 8px; }
 html body.jit-consistent-pages .topbar-destination { gap:8px; }
 html body.jit-consistent-pages .topbar .brand-copy strong { max-width:clamp(95px,11vw,180px); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
}
@media(min-width:1100px) and (max-width:1279px) {
 html body.jit-consistent-pages .topbar .brand-logo { width:112px; }
 html body.jit-consistent-pages .topbar-destinations { font-size:13px; gap:6px; }
 html body.jit-consistent-pages .topbar-destination { gap:6px; }
 html body.jit-consistent-pages .topbar .navlinks { gap:14px; }
}

/* RC5: compact inventory actions stay on one row when space permits. */
html body.jit-consistent-pages .inventory-hero-actions { flex:0 1 auto; min-width:0; max-width:100%; align-items:flex-end; }
html body.jit-consistent-pages .inventory-header-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:nowrap; gap:8px; max-width:100%; min-width:0; }
html body.jit-consistent-pages .inventory-header-actions > .button { width:auto; flex:0 0 auto; white-space:nowrap; font-size:12px; min-height:36px; padding:8px 11px; }
html body.jit-consistent-pages .inventory-hero-actions > form { max-width:100%; }
@media(max-width:1099px) {
 html body.jit-consistent-pages .inventory-hero-actions { width:100%; align-items:flex-start; }
 html body.jit-consistent-pages .inventory-header-actions { justify-content:flex-start; }
}
@media(max-width:600px) {
 html body.jit-consistent-pages .inventory-header-actions { flex-wrap:wrap; }
 html body.jit-consistent-pages .inventory-header-actions > .button { min-height:40px; }
}
/* Keep the existing staff scorecard grid inside the narrower mobile canvas too. */
html body.jit-consistent-pages .customer-scorecard-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr)); }
html body.jit-consistent-pages .customer-scorecard-grid > *,html body.jit-consistent-pages .customer-scorecard > * { min-width:0; overflow-wrap:anywhere; }

html body.jit-consistent-pages .inventory-hero-actions label { color:inherit; }
html body.jit-consistent-pages .identity-toolbar-panel .section-heading > * { min-width:0; max-width:100%; }
html body.jit-consistent-pages .identity-toolbar-panel .form-actions { flex-wrap:wrap; }

/* RC8: the backup reading guide must fit a narrow phone canvas. */
@media(max-width:600px){html body.jit-consistent-pages .backup-guide-grid{grid-template-columns:minmax(0,1fr)}html body.jit-consistent-pages .backup-guide-grid > *{min-width:0;overflow-wrap:anywhere}}

/* RC14: relationships are informational until explicitly linked. */
#asset-table .asset-link-unset{background:#eaf4ff!important;color:#285b80!important;border:1px solid #cfe3f7;}
#asset-table .asset-link-confirmed,#asset-table .asset-not-applicable{background:#e6f7ef!important;color:#126345!important;}

/* RC15: neutral missing relationships / backup matches, with a neighbouring compact action. */
#asset-table .inventory-unset,#identity-table .inventory-unset{background:#eaf4ff!important;color:#285b80!important;border:1px solid #cfe3f7;}
#identity-table .inventory-link-confirmed{background:#e6f7ef!important;color:#126345!important;}
#asset-table .inventory-link-row,#identity-table .inventory-link-row{display:inline-flex;align-items:center;gap:5px;max-width:100%;vertical-align:middle;}
#asset-table .inventory-link-row>.status-pill,#identity-table .inventory-link-row>.status-pill{min-width:0;white-space:normal;overflow-wrap:anywhere;}
#asset-table .inventory-link-action,#identity-table .inventory-link-action{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;min-width:28px;min-height:28px;padding:5px;border:1px solid #cfe3f7;border-radius:8px;background:#f6fbff;color:#285b80;cursor:pointer;margin:0;}
#asset-table .inventory-link-action:hover,#identity-table .inventory-link-action:hover{background:#dfedfa;color:#153d60;}
#asset-table .inventory-link-action:focus-visible,#identity-table .inventory-link-action:focus-visible{outline:2px solid #147ba3;outline-offset:2px;}
.inventory-link-action svg{display:block;flex:none;pointer-events:none;}
@media(pointer:coarse){#asset-table .inventory-link-action,#identity-table .inventory-link-action{flex-basis:36px;width:36px;height:36px;min-width:36px;min-height:36px;}}

/* Keep compact badges readable instead of shrinking them to one-character columns. */
#asset-table td:nth-child(3){min-width:170px;}
#asset-table .inventory-link-row,#identity-table .inventory-link-row{min-width:130px;}
#asset-table .inventory-link-row>.inventory-unset,#identity-table .inventory-link-row>.inventory-unset{white-space:nowrap;flex-shrink:0;}
#identity-table th.identity-hibp-cell{white-space:normal;}
html body.jit-consistent-pages #identity-table .identity-assets-col{width:14%;}
html body.jit-consistent-pages #identity-table .identity-actions-col{width:9%;}
html body.jit-consistent-pages #identity-table .identity-hibp-col{width:8%;}
html body.jit-consistent-pages #identity-table .identity-licences-col{width:14%;}

#identity-table td:last-child{padding-left:8px;padding-right:8px;}
#identity-table td:last-child .button{white-space:nowrap;gap:4px;padding-left:8px;padding-right:8px;}
