/* Maintenance Hub — Dispatch Desk
   Tokens: 8px grid · 60/30/10 · Syne + IBM Plex · fixed viewport shell */

:root{
  --paper:#D5DEE8;
  --paper-deep:#C5D0DC;
  --surface:#F3F6F9;
  --ink:#0B1520;
  --ink-mid:#3A4B5C;
  --ink-soft:#667889;
  --line:#C8D3DE;
  --line-soft:#DCE4EC;
  --ok:#0D8A66;
  --ok-soft:#E3F4EE;
  --attention:#B86E00;
  --attention-soft:#F8EFDC;
  --critical:#C12B1A;
  --critical-soft:#F8E9E6;
  --offline:#7A8694;
  --accent:#1A56DB;
  --accent-soft:#E4ECFB;
  --signal:#E89A12;
  --rail:#0B1520;
  --rail-muted:#8A9AAB;
  --sans:"IBM Plex Sans",system-ui,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,monospace;
  --display:"Syne",var(--sans);
  --r:0;
  --ease:cubic-bezier(.2,.8,.3,1);
  --focus:0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
}

/* —— Kill Twenty Twenty-Five chrome + top gap —— */
body.mhub-app-page .wp-site-blocks > header,
body.mhub-app-page header.wp-block-template-part,
body.mhub-app-page footer.wp-block-template-part,
body.mhub-app-page .wp-site-blocks > footer,
body.mhub-app-page .entry-header,
body.mhub-app-page .wp-block-post-title,
body.mhub-app-page .skip-link{
  display:none !important;
}

html:has(body.mhub-app-page),
body.mhub-app-page{
  margin:0 !important;
  padding:0 !important;
  width:100% !important;
  max-width:none !important;
  overflow:hidden !important;
  background:var(--paper) !important;
  font-family:var(--sans);
  color:var(--ink);
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

body.mhub-app-page #page,
body.mhub-app-page .wp-site-blocks,
body.mhub-app-page .wp-site-blocks > main,
body.mhub-app-page main#wp--skip-link--target,
body.mhub-app-page .wp-block-group,
body.mhub-app-page main,
body.mhub-app-page .wp-block-post-content,
body.mhub-app-page .entry-content,
body.mhub-app-page article,
body.mhub-app-page .wp-block-post,
body.mhub-app-page .is-layout-constrained,
body.mhub-app-page .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.mhub-app-page .has-global-padding,
body.mhub-app-page .alignwide,
body.mhub-app-page .alignfull{
  max-width:none !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}

/* Fixed shell — ignores leftover theme offsets */
body.mhub-app-page .mhub-app{
  position:fixed !important;
  inset:0 !important;
  left:0 !important;
  top:0 !important;
  transform:none !important;
  width:100vw !important;
  max-width:100vw !important;
  height:100vh !important;
  min-height:100vh !important;
  margin:0 !important;
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  background:#f4f7fb;
  color:var(--ink);
  font-family:var(--sans);
  z-index:100000;
  animation:mhub-in .45s var(--ease) both;
}
@keyframes mhub-in{
  from{opacity:0}
  to{opacity:1}
}

.mhub-app *{box-sizing:border-box}
.mhub-app button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
.mhub-app a{color:inherit;text-decoration:none}
.mhub-app :focus-visible{outline:none;box-shadow:var(--focus)}
.mhub-app button:disabled,
.mhub-app a[aria-disabled="true"]{opacity:.45;cursor:not-allowed}

/* —— Rail —— */
.mhub-rail{
  background:#0f1725;
  color:#d8dfeb;
  padding:24px 16px;
  display:flex;
  flex-direction:column;
  gap:24px;
  min-height:100vh;
  position:relative;
}
.mhub-rail::after{display:none}
.mhub-brand{padding:0 10px}
.mhub-brand button{
  display:flex;align-items:center;gap:10px;width:100%;text-align:left;
  color:#fff;padding:0;font:inherit;
  transition:opacity .15s ease-out;
}
.mhub-brand button:hover{opacity:.88}
.mhub-brand button:active{opacity:.75;transform:translateY(1px)}
.mhub-brand-mark{
  width:34px;height:34px;flex:none;
  display:grid;place-items:center;
  border-radius:10px;background:#fff;color:#0f1725;
  font-size:16px;font-weight:900;font-family:var(--sans);
}
.mhub-brand-copy{display:block;min-width:0}
.mhub-brand-copy strong{
  display:block;color:#fff;font-size:15px;font-weight:800;letter-spacing:-.01em;
}
.mhub-brand-copy span{
  display:block;margin-top:2px;
  color:#758196;font-size:10px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;
}
.mhub-nav-label{
  padding:0 10px;margin-bottom:8px;
  color:#6f7b8f;font-size:11px;font-weight:800;
  letter-spacing:.08em;text-transform:uppercase;
}
.mhub-nav{display:grid;gap:6px;padding:0}
.mhub-nav button,
.mhub-nav-link{
  display:flex;align-items:center;justify-content:space-between;
  padding:11px 12px;border-radius:9px;font-size:14px;font-weight:700;
  color:#aeb8c7;width:100%;text-align:left;min-height:44px;
  border-left:0;transition:background .15s ease-out,color .15s ease-out;
}
.mhub-nav button:hover,
.mhub-nav-link:hover{background:#182338;color:#fff}
.mhub-nav button:active,
.mhub-nav-link:active{background:#1c2940}
.mhub-nav button[aria-current="true"]{
  background:#1c2940;color:#fff;box-shadow:inset 3px 0 0 #4f8cff;
}
.mhub-tally{
  min-width:24px;height:22px;padding:0 7px;
  display:grid;place-items:center;border-radius:7px;
  background:#25334a;color:#d8dfeb;font-size:11px;font-weight:900;
}
.mhub-tally.hot{background:#842f2f;color:#ffe2e2}
.mhub-rail-foot{
  margin-top:auto;padding:16px 10px 0;
  border-top:1px solid rgba(255,255,255,.07);
  color:#7b8799;font-size:12px;line-height:1.4;
}

/* —— Main —— */
.mhub-main{display:flex;flex-direction:column;min-width:0;min-height:100vh;background:transparent}
.mhub-home{display:flex;flex-direction:column;min-height:0;flex:1}
.mhub-scroll{flex:1;overflow:auto;padding:0 34px 44px}
.mhub-page-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:28px;
  padding:28px 34px 0;
}
.mhub-page-head h1{
  margin:0;font-size:32px;line-height:1.12;letter-spacing:-.03em;font-weight:800;
}
.mhub-page-head p{margin:7px 0 0;color:#6b778a;font-size:14px}
.mhub-fleet-stat{min-width:210px;text-align:right}
.mhub-fleet-stat strong{
  display:block;font-size:34px;line-height:1;letter-spacing:-.04em;
}
.mhub-fleet-row{
  margin-top:6px;display:flex;justify-content:flex-end;gap:14px;
  color:#7b8494;font-size:12px;font-weight:600;
}
.mhub-live{display:inline-flex;align-items:center;gap:6px;color:#3e6e5c}
.mhub-live i{width:8px;height:8px;border-radius:50%;background:#19a06e;display:inline-block}
.mhub-accent{
  height:3px;border-radius:99px;margin:20px 34px 24px;
  background:linear-gradient(90deg,#f59e0b 0%,#2563eb 58%,#8ab0ff 100%);
}

.mhub-overview{
  display:grid;grid-template-columns:1.25fr .75fr;gap:16px;margin-bottom:18px;
}
.mhub-attention{
  background:#fff;border:1px solid #e4e9f0;border-radius:14px;
  box-shadow:0 8px 28px rgba(16,24,40,.06);overflow:hidden;
}
.mhub-attention-head{
  padding:18px 20px 13px;display:flex;justify-content:space-between;gap:16px;align-items:center;
  border-bottom:1px solid #e4e9f0;
}
.mhub-attention-head h2{margin:0;font-size:17px;letter-spacing:-.01em}
.mhub-attention-head span{color:#7c8798;font-size:12px}
.mhub-issue{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;
  padding:18px 20px;
}
.mhub-issue-main{
  display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:center;min-width:0;
}
.mhub-site-name strong{display:block;font-size:14px;line-height:1.35}
.mhub-site-name span{display:block;margin-top:4px;color:#7b8494;font-size:12px}
.mhub-problem strong{display:block;font-size:13px}
.mhub-problem p{margin:4px 0 0;color:#7b8494;font-size:12px;line-height:1.45}

.mhub-badge{
  display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;
  border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.03em;
  text-transform:uppercase;white-space:nowrap;
}
.mhub-badge.red{background:#fff0f0;color:#c93f3f}
.mhub-badge.amber{background:#fff6df;color:#b56c08}
.mhub-badge.green{background:#eaf8f2;color:#17875e}
.mhub-badge.blue{background:#eef4ff;color:#3664be}
.mhub-badge.gray{background:#f1f3f6;color:#667085}

.mhub-btn{
  border:1px solid #cfd9e6;background:#fff;color:#263244;border-radius:9px;
  padding:9px 12px;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap;
  min-height:36px;display:inline-flex;align-items:center;justify-content:center;
  transition:background .15s ease-out,border-color .15s ease-out;
}
.mhub-btn:hover{background:#f8fafc;border-color:#a8b8cd}
.mhub-btn.primary{background:#2563eb;color:#fff;border-color:#2563eb}
.mhub-btn.primary:hover{background:#1f57cf;border-color:#1f57cf}
.mhub-btn.go{background:#2563eb;color:#fff;border-color:#2563eb;font-weight:900}
.mhub-btn.go:hover{background:#1f57cf;border-color:#1f57cf}

.mhub-health-card{
  background:#fff;border:1px solid #e4e9f0;border-radius:14px;
  box-shadow:0 8px 28px rgba(16,24,40,.06);padding:20px;
  display:flex;flex-direction:column;justify-content:space-between;
}
.mhub-health-card h3{margin:0;font-size:15px}
.mhub-health-card p{margin:6px 0 18px;color:#7b8494;font-size:12px;line-height:1.45}
.mhub-health-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.mhub-health-row strong{font-size:32px;letter-spacing:-.04em}
.mhub-health-row span{color:#667085;font-size:12px;text-align:right}

.mhub-history{
  background:#fff;border:1px solid #e4e9f0;border-radius:14px;
  box-shadow:0 8px 28px rgba(16,24,40,.06);margin-bottom:18px;overflow:hidden;
}
.mhub-history-head{
  padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;
  border-bottom:1px solid #e4e9f0;background:#fbfcfe;
}
.mhub-history-head h2{margin:0;font-size:15px}
.mhub-history-grid{
  display:grid;grid-template-columns:220px repeat(4,minmax(0,1fr)) auto;
  gap:14px;align-items:center;padding:16px 18px;
}
.mhub-metric{
  padding:12px 13px;border:1px solid #e4e9f0;border-radius:10px;background:#f9fbfd;
}
.mhub-metric strong{display:block;font-size:20px;line-height:1}
.mhub-metric span{display:block;margin-top:5px;color:#7b8494;font-size:11px;font-weight:700}

.mhub-table-card{
  background:#fff;border:1px solid #e4e9f0;border-radius:14px;
  box-shadow:0 8px 28px rgba(16,24,40,.06);overflow:hidden;margin-bottom:8px;
}
.mhub-table-toolbar{
  padding:14px 16px;display:flex;justify-content:space-between;gap:16px;align-items:center;
  border-bottom:1px solid #e4e9f0;background:#fbfcfe;
}
.mhub-filters{
  display:flex;gap:6px;padding:4px;border:1px solid #e4e9f0;background:#fff;border-radius:10px;
}
.mhub-filter{
  border:0;background:transparent;color:#667085;padding:8px 12px;border-radius:7px;
  font-size:12px;font-weight:800;cursor:pointer;
}
.mhub-filter:hover{color:#172033}
.mhub-filter.active,
.mhub-filter[aria-pressed="true"]{background:#172033;color:#fff}
.mhub-table-card .mhub-search{
  width:240px;margin-left:0;padding:9px 11px;border:1px solid #d6dde7;border-radius:9px;
  outline:none;background:#fff;color:#273142;font-size:14px;min-height:40px;
}
.mhub-table-card .mhub-search:focus{
  border-color:#8fb1f8;box-shadow:0 0 0 3px rgba(37,99,235,.08);
}
.mhub-table-card table{width:100%;border-collapse:collapse;table-layout:fixed;background:transparent;border:0}
.mhub-table-card thead th{
  text-align:left;padding:12px 16px;background:#f5f7fa;color:#7b8494;
  font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;
  border-bottom:1px solid #e4e9f0;white-space:nowrap;
}
.mhub-table-card tbody td{
  padding:16px;border-bottom:1px solid #edf0f4;vertical-align:middle;font-size:12px;
}
.mhub-table-card tbody tr{cursor:pointer;border-bottom:0}
.mhub-table-card tbody tr:last-child td{border-bottom:0}
.mhub-table-card tbody tr:hover{background:#fbfdff}
.mhub-website strong{display:block;font-size:13px}
.mhub-website span{display:block;margin-top:4px;color:#7b8494;font-size:11px}
.mhub-url-cell .mhub-url{font-weight:700;color:#344054;word-break:break-word;font-size:12px}
.mhub-url-cell .mhub-url:hover{color:#2563eb;text-decoration:none}
.mhub-score-row{display:flex;gap:7px;flex-wrap:wrap}
.mhub-score-pill{
  padding:5px 8px;border-radius:7px;background:#fff7e7;color:#a65f00;
  border:1px solid #f2d9aa;font-size:11px;font-weight:900;
}
.mhub-score-pill.psi-good{background:#eaf8f2;color:#17875e;border-color:#b7e2cf}
.mhub-score-pill.psi-mid{background:#fff7e7;color:#a65f00;border-color:#f2d9aa}
.mhub-score-pill.psi-bad{background:#fff0f0;color:#c93f3f;border-color:#f0c7c7}
.mhub-score-pill.muted{background:#f1f3f6;color:#667085;border-color:#e4e9f0;font-weight:700}
.mhub-status{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700}
.mhub-status i{width:8px;height:8px;border-radius:50%;display:inline-block}
.mhub-status.good{color:#287b60}.mhub-status.good i{background:#1a9a6a}
.mhub-status.bad{color:#667085}.mhub-status.bad i{background:#8a96a8}
.mhub-checked{color:#667085;line-height:1.4}
.mhub-empty-note{
  text-align:center;padding:18px;color:#8a94a4;font-size:12px;
}
.mhub-empty-note[hidden]{display:none !important}

/* legacy head / bands kept for older markup if any */
.mhub-head{
  background:linear-gradient(180deg, rgba(243,246,249,.96), rgba(243,246,249,.88));
  border-bottom:1px solid var(--line);
  padding:24px 32px 20px;
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;
  position:relative;
  backdrop-filter:blur(8px);
}
.mhub-head::after{
  content:"";
  position:absolute;left:32px;right:32px;bottom:-1px;height:2px;
  background:linear-gradient(90deg, var(--signal) 0%, var(--accent) 38%, transparent 78%);
  animation:mhub-scan 1.1s var(--ease) both;
}
@keyframes mhub-scan{
  from{transform:scaleX(0);transform-origin:left}
  to{transform:scaleX(1);transform-origin:left}
}
.mhub-head-copy{min-width:0}
.mhub-head h1{
  font-family:var(--display);font-size:30px;font-weight:700;
  letter-spacing:-0.04em;margin:0;line-height:1.1;
}
.mhub-sub{font-size:14px;color:var(--ink-soft);margin-top:8px;line-height:1.4}
.mhub-head-meta{display:flex;align-items:flex-end;gap:24px}
.mhub-fleet-count{text-align:right}
.mhub-fleet-count .n{
  font-family:var(--mono);font-size:40px;font-weight:600;letter-spacing:-0.04em;
  line-height:1;color:var(--ink);font-variant-numeric:tabular-nums;
}
.mhub-fleet-count .l{
  display:block;margin-top:4px;
  font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-soft);
}
.mhub-sweep{
  font-family:var(--mono);font-size:11px;color:var(--ink-soft);
  display:flex;align-items:center;gap:8px;padding:8px 0;
}
.mhub-pulse{
  width:8px;height:8px;border-radius:50%;background:var(--ok);
  box-shadow:0 0 0 0 rgba(13,138,102,.45);
  animation:mhub-pulse 2.4s ease-out infinite;
}
@keyframes mhub-pulse{
  0%{box-shadow:0 0 0 0 rgba(13,138,102,.4)}
  70%{box-shadow:0 0 0 10px rgba(13,138,102,0)}
  100%{box-shadow:0 0 0 0 rgba(13,138,102,0)}
}

/* —— Dispatch bands (legacy) —— */
.mhub-board{padding:24px 32px 8px}
.mhub-band{
  background:var(--surface);
  border:1px solid var(--line);
  border-left:3px solid var(--line);
  margin-bottom:16px;
  overflow:hidden;
  transition:border-color .15s ease-out, background .15s ease-out;
}
.mhub-band-head{
  display:flex;align-items:center;gap:12px;
  padding:16px;width:100%;text-align:left;min-height:52px;
  transition:background .15s ease-out;
}
.mhub-band-head:hover{background:rgba(11,21,32,.02)}
.mhub-band-head:active{background:rgba(11,21,32,.04)}
.mhub-band-head h2{
  font-family:var(--display);font-size:16px;font-weight:700;
  letter-spacing:-0.02em;margin:0;
}
.mhub-why{font-size:13px;color:var(--ink-soft)}
.mhub-caret{margin-left:auto;color:var(--ink-soft);font-size:12px;transition:transform .18s ease-out}
.mhub-band.closed .mhub-caret{transform:rotate(-90deg)}
.mhub-band.closed .mhub-band-body{display:none}
.mhub-band.urgent{border-left-color:var(--critical);border-color:#E5C4BD;background:var(--critical-soft)}
.mhub-band.urgent h2{color:var(--critical)}
.mhub-band.due{border-left-color:var(--attention);border-color:#E2D2AE;background:var(--attention-soft)}
.mhub-band.due h2{color:var(--attention)}
.mhub-band.fine{border-left-color:var(--ok)}

.mhub-prob{
  display:flex;align-items:center;gap:16px;
  padding:12px 16px;border-top:1px solid rgba(0,0,0,.06);
  width:100%;text-align:left;min-height:56px;
  transition:background .15s ease-out;
}
.mhub-prob:hover{background:rgba(0,0,0,.03)}
.mhub-prob:active{background:rgba(0,0,0,.05)}
.mhub-prob-mark{width:3px;align-self:stretch;background:var(--critical);flex:none}
.mhub-prob-id{width:160px;flex:none}
.mhub-prob-id .s{font-size:14px;font-weight:600;letter-spacing:-0.01em;display:block}
.mhub-prob-id .c{font-size:12px;color:var(--ink-soft);margin-top:2px;display:block}
.mhub-prob-what{flex:1;min-width:0}
.mhub-prob-what .w{font-size:14px;font-weight:500;display:block}
.mhub-prob-what .d{font-size:12px;color:var(--ink-soft);margin-top:2px;display:block}
.mhub-prob-when{font-family:var(--mono);font-size:12px;color:var(--ink-soft);white-space:nowrap;flex:none}
.mhub-prob-act{flex:none;font-size:13px;font-weight:600;color:var(--accent);white-space:nowrap}

.mhub-upd-row{
  display:flex;align-items:center;gap:16px;
  padding:12px 16px;border-top:1px solid rgba(0,0,0,.06);
  width:100%;text-align:left;min-height:48px;
  transition:background .15s ease-out;
}
.mhub-upd-row:hover{background:rgba(0,0,0,.03)}
.mhub-upd-row .s{width:168px;flex:none;font-size:14px;font-weight:500;text-align:left}
.mhub-upd-row .list{flex:1;min-width:0;font-size:13px;color:var(--ink-mid);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.mhub-upd-row .n{font-family:var(--mono);font-size:12px;color:var(--ink-soft);flex:none}

.mhub-calm{display:flex;align-items:center;gap:8px;padding:16px;font-size:14px;color:var(--ink-mid)}
.mhub-calm b{font-weight:600;color:var(--ok)}
.mhub-allclear{padding:32px 24px;text-align:left}
.mhub-allclear .big{font-family:var(--display);font-size:20px;font-weight:700;letter-spacing:-0.03em;color:var(--ok)}
.mhub-allclear .small{font-size:14px;color:var(--ink-soft);margin-top:8px}

/* —— Fleet table (legacy) —— */
.mhub-tablewrap{padding:8px 32px 0}
.mhub-tabletop{
  display:flex;align-items:center;gap:8px;padding:16px 0;
  flex-wrap:wrap;border-top:1px solid var(--line);
}
.mhub-tabletop h3{
  font-family:var(--mono);font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-soft);font-weight:600;margin:0 8px 0 0;
}
.mhub-chip{
  padding:8px 14px;border:1px solid var(--line);font-size:13px;
  color:var(--ink-mid);background:var(--surface);min-height:36px;
  transition:background .15s ease-out,color .15s ease-out,border-color .15s ease-out;
}
.mhub-chip:hover{border-color:var(--ink-soft);color:var(--ink)}
.mhub-chip:active{transform:translateY(1px)}
.mhub-chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.mhub-search{
  margin-left:auto;border:1px solid var(--line);padding:8px 12px;
  font-size:14px;font-family:var(--sans);width:200px;min-height:40px;
  background:var(--surface);color:var(--ink);
  transition:border-color .15s ease-out,box-shadow .15s ease-out;
}
.mhub-search:hover{border-color:var(--ink-soft)}
.mhub-search:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(26,86,219,.18)}

.mhub-tablewrap table{
  width:100%;border-collapse:collapse;background:var(--surface);
  border:1px solid var(--line);border-left:3px solid var(--accent);
}
.mhub-tablewrap thead th{
  text-align:left;font-family:var(--mono);font-size:10px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--ink-soft);font-weight:600;
  padding:12px 12px;border-bottom:1px solid var(--line);white-space:nowrap;
  background:rgba(213,222,232,.45);
}
.mhub-tablewrap tbody tr{
  border-bottom:1px solid var(--line-soft);cursor:pointer;
  transition:background .15s ease-out;
}
.mhub-tablewrap tbody tr:last-child{border-bottom:none}
.mhub-tablewrap tbody tr:hover{background:var(--accent-soft)}
.mhub-tablewrap tbody tr:active{background:#D7E3F8}
.mhub-tablewrap td{padding:12px}
.mhub-mono{font-family:var(--mono);font-size:12px;font-variant-numeric:tabular-nums}
.mhub-muted{color:var(--ink-soft)}
.mhub-row-label{font-size:12px;margin-top:2px;line-height:1.35}
.mhub-url{color:var(--accent);text-decoration:none;font-size:13px;word-break:break-all;font-weight:500}
.mhub-url:hover{text-decoration:underline}
.mhub-url:active{opacity:.8}
.mhub-psi-row{display:inline-flex;gap:8px;flex-wrap:wrap;align-items:center}
.mhub-psi{
  display:inline-flex;align-items:center;
  font-family:var(--mono);font-size:12px;font-weight:600;
  padding:4px 8px;border:1px solid var(--line);background:var(--paper);color:var(--ink-mid);
  white-space:nowrap;
}
.mhub-psi.psi-good{color:var(--ok);border-color:#A9D5C6;background:var(--ok-soft)}
.mhub-psi.psi-mid{color:var(--attention);border-color:#E2D2AE;background:var(--attention-soft)}
.mhub-psi.psi-bad{color:var(--critical);border-color:#E5C4BD;background:var(--critical-soft)}
.mhub-psi.psi-na{font-weight:500;color:var(--ink-soft)}
.mhub-state{display:inline-flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap}
.mhub-dot{width:8px;height:8px;border-radius:50%;flex:none;display:inline-block}
.st-ok{color:var(--ok)} .st-ok .mhub-dot{background:var(--ok)}
.st-attention{color:var(--attention)} .st-attention .mhub-dot{background:var(--attention)}
.st-critical{color:var(--critical);font-weight:600} .st-critical .mhub-dot{background:var(--critical)}
.st-offline{color:var(--offline)} .st-offline .mhub-dot{background:var(--offline)}
.mhub-empty{
  text-align:center;padding:40px 24px;color:var(--ink-soft);
  background:var(--surface);border:1px solid var(--line);border-top:none;
}

/* —— Drawer —— */
.mhub-scrim{
  position:fixed;inset:0;background:rgba(11,21,32,.4);z-index:100010;
  opacity:0;pointer-events:none;transition:opacity .2s ease-out;
}
.mhub-scrim.show{opacity:1;pointer-events:auto}
.mhub-drawer{
  position:fixed;top:0;right:0;bottom:0;width:min(520px,94vw);z-index:100020;
  background:var(--surface);border-left:1px solid var(--line);
  transform:translateX(101%);transition:transform .24s var(--ease);
  display:flex;flex-direction:column;font-family:var(--sans);color:var(--ink);
}
.mhub-drawer.show{transform:none}
.mhub-d-head{padding:24px 24px 0;border-bottom:1px solid var(--line)}
.mhub-d-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.mhub-d-title h2{font-family:var(--display);font-size:22px;font-weight:700;letter-spacing:-0.03em;margin:0}
.mhub-d-url{font-family:var(--mono);font-size:12px;color:var(--ink-soft);margin-top:4px;word-break:break-all}
.mhub-close{font-size:22px;color:var(--ink-soft);padding:4px 8px;min-width:44px;min-height:44px;line-height:1}
.mhub-close:hover{color:var(--ink)}
.mhub-tabs{display:flex;gap:2px;margin-top:16px}
.mhub-tab{padding:10px 14px;font-size:13px;color:var(--ink-soft);border-bottom:2px solid transparent;min-height:44px}
.mhub-tab:hover{color:var(--ink)}
.mhub-tab[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}
.mhub-d-body{flex:1;overflow:auto;padding:24px}
.mhub-facts{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line-soft);border:1px solid var(--line-soft);margin-bottom:24px}
.mhub-fact{background:var(--surface);padding:12px}
.mhub-fact dt{font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);font-weight:600}
.mhub-fact dd{font-family:var(--mono);font-size:14px;margin-top:4px}
.mhub-feed{position:relative;padding-left:16px}
.mhub-feed::before{content:"";position:absolute;left:3px;top:5px;bottom:5px;width:1px;background:var(--line)}
.mhub-ev{position:relative;padding:0 0 16px}
.mhub-ev::before{content:"";position:absolute;left:-16px;top:5px;width:8px;height:8px;border-radius:50%;background:var(--ink-soft);box-shadow:0 0 0 3px var(--surface)}
.mhub-ev.ok::before{background:var(--ok)}
.mhub-ev.warn::before{background:var(--attention)}
.mhub-ev.bad::before{background:var(--critical)}
.mhub-ev-t{font-family:var(--mono);font-size:11px;color:var(--ink-soft)}
.mhub-ev-b{font-size:14px;margin-top:2px}
.mhub-d-foot{
  border-top:1px solid var(--line);padding:16px 24px;display:flex;gap:8px;
  align-items:center;background:var(--paper);flex-wrap:wrap;
}
.mhub-warn{font-size:12px;color:var(--ink-soft);margin-left:auto;text-align:right;max-width:200px;line-height:1.4}

/* —— Audit —— */
.mhub-audit-head{background:rgba(243,246,249,.96);border-bottom:1px solid var(--line);padding:16px 32px 0}
.mhub-back-row{margin-bottom:12px}
.mhub-back-home{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 14px;border:1px solid var(--line);background:var(--surface);
  font-size:14px;font-weight:600;color:var(--ink);min-height:44px;
  transition:border-color .15s ease-out,background .15s ease-out;
}
.mhub-back-home:hover{border-color:var(--ink-soft);background:#fff}
.mhub-back-arrow{font-size:16px;line-height:1;color:var(--accent)}
.mhub-crumb{font-size:12px;color:var(--ink-soft);margin-bottom:4px}
.mhub-crumb b{color:var(--ink-mid);font-weight:500}
.mhub-audit-head h1{font-family:var(--display);font-size:26px;font-weight:700;letter-spacing:-0.03em;margin:0}
.mhub-h-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;flex-wrap:wrap}
.mhub-stamp{font-family:var(--mono);font-size:11px;color:var(--ink-soft);text-align:right;line-height:1.6}
.mhub-ribbon{display:flex;height:8px;overflow:hidden;margin:16px 0 8px;background:var(--line-soft)}
.mhub-ribbon i{display:block;height:100%}
.mhub-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--ink-mid);padding-bottom:16px}
.mhub-legend span{display:flex;align-items:center;gap:8px}
.mhub-legend i{width:8px;height:8px;display:inline-block}
.mhub-legend b{font-family:var(--mono);font-variant-numeric:tabular-nums}
.mhub-viewtabs{display:flex;gap:2px}
.mhub-vt{padding:10px 14px;font-size:14px;color:var(--ink-soft);border-bottom:2px solid transparent;min-height:44px}
.mhub-vt:hover{color:var(--ink)}
.mhub-vt[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}
.mhub-bar{display:flex;align-items:center;gap:8px;padding:12px 32px;background:var(--surface);border-bottom:1px solid var(--line);flex-wrap:wrap}
.mhub-bar .mhub-chip .n{font-family:var(--mono);font-size:11px;opacity:.65;margin-left:6px}
.mhub-sep{width:1px;height:20px;background:var(--line);margin:0 4px}
.mhub-audit-scroll{flex:1;overflow:auto;padding:24px 32px 64px;background:transparent;min-height:50vh}
.mhub-note{
  background:var(--accent-soft);border:1px solid #C3D2EC;border-left:3px solid var(--accent);
  padding:12px 16px;font-size:13px;color:var(--ink-mid);margin-bottom:16px;line-height:1.55;
}
.mhub-note b{color:var(--ink)}
.mhub-note code{font-family:var(--mono);font-size:12px;background:var(--paper);padding:0 4px}
.mhub-grp{background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--line);margin-bottom:12px;overflow:hidden}
.mhub-grp-head{display:flex;align-items:center;gap:12px;padding:12px 16px;width:100%;text-align:left;min-height:48px}
.mhub-grp-head:hover{background:rgba(11,21,32,.02)}
.mhub-grp-head h2{font-family:var(--display);font-size:15px;font-weight:700;letter-spacing:-0.02em;margin:0}
.mhub-counts{margin-left:auto;display:flex;gap:8px;align-items:center}
.mhub-pipn{font-family:var(--mono);font-size:11px;padding:2px 8px;border:1px solid}
.mhub-pipn.f{color:var(--critical);border-color:#E4C4BD;background:var(--critical-soft)}
.mhub-pipn.w{color:var(--attention);border-color:#E2D2AE;background:var(--attention-soft)}
.mhub-pipn.p{color:var(--ok);border-color:#A9D5C6;background:var(--ok-soft)}
.mhub-grp.closed .mhub-caret{transform:rotate(-90deg)}
.mhub-grp.closed .mhub-grp-body{display:none}
.mhub-it{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border-top:1px solid var(--line-soft)}
.mhub-it:hover{background:#FAFBFC}
.mhub-it.f{background:var(--critical-soft)}.mhub-it.f:hover{background:#F3DDD8}
.mhub-it.w{background:var(--attention-soft)}.mhub-it.w:hover{background:#F1E4C8}
.mhub-pill{flex:none;width:88px;font-size:11px;letter-spacing:.05em;text-transform:uppercase;font-weight:600;padding:2px 0;text-align:left}
.mhub-pill.f{color:var(--critical)}.mhub-pill.w{color:var(--attention)}.mhub-pill.p{color:var(--ok)}
.mhub-pill.n{color:var(--ink-soft)}.mhub-pill.x{color:var(--offline)}
.mhub-ibody{flex:1;min-width:0}
.mhub-ibody .nm{font-size:14px;font-weight:500;display:block}
.mhub-ibody .dt{font-size:13px;color:var(--ink-soft);margin-top:2px;line-height:1.5;display:block}
.mhub-ibody .dt code{font-family:var(--mono);font-size:12px;background:var(--paper);padding:0 4px}
.mhub-who{flex:none;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-soft);border:1px solid var(--line);padding:2px 8px;white-space:nowrap;margin-top:2px}
.mhub-who.auto{color:var(--accent);border-color:#C3D2EC;background:var(--accent-soft)}
.mhub-who.you{color:var(--attention);border-color:#E2D2AE;background:var(--attention-soft)}
.mhub-fix{flex:none;font-size:13px;font-weight:600;color:var(--accent);white-space:nowrap;margin-top:2px}
.mhub-chk{display:flex;align-items:center;gap:16px;padding:12px 16px;border-top:1px solid var(--line-soft);width:100%;text-align:left;min-height:48px}
.mhub-chk:hover{background:var(--accent-soft)}
.mhub-chk .nm{width:240px;flex:none;font-size:14px;font-weight:500;text-align:left}
.mhub-meter{flex:1;min-width:80px;height:8px;background:var(--line-soft);overflow:hidden;display:flex}
.mhub-meter i{height:100%;display:block}
.mhub-chk .cnt{flex:none;font-family:var(--mono);font-size:12px;color:var(--ink-mid);width:120px;text-align:right}
.mhub-chk .cnt b{color:var(--critical);font-weight:600}
#mhub-audit-view{display:flex;flex-direction:column;min-height:100vh}
#mhub-audit-view[hidden]{display:none !important}
#mhub-fleet-view[hidden]{display:none !important}

/* —— Approved single-site audit (maintenance_audit_approved.html) —— */
.mhub-audit-head.is-report{
  background:#fff;
  border-bottom:1px solid #e5eaf1;
  padding:18px 34px 0;
}
.mhub-audit-head.is-report .mhub-back-home{
  border:0;background:transparent;padding:0;min-height:auto;
  color:#667085;font-size:13px;font-weight:600;
}
.mhub-audit-head.is-report .mhub-back-home:hover{background:transparent;color:#172033}
.mhub-audit-head.is-report .mhub-crumb{display:none}
.mhub-audit-head.is-report h1{display:none}
.mhub-audit-head.is-report .mhub-h-row{display:none}
.mhub-audit-head.is-report .mhub-viewtabs{
  margin-top:14px;gap:6px;padding:4px;border:1px solid #e5eaf1;
  background:#fff;border-radius:10px;display:inline-flex;width:auto;
}
.mhub-audit-head.is-report .mhub-vt{
  border:0;background:transparent;padding:9px 12px;border-radius:7px;
  font-size:12px;font-weight:700;color:#667085;border-bottom:0;
}
.mhub-audit-head.is-report .mhub-vt[aria-selected="true"]{
  background:#172033;color:#fff;border-bottom:0;
}
.mhub-audit-scroll.is-report{
  background:#f4f7fb;
  color:#172033;
  padding:18px 34px 44px;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

.mhub-apr{max-width:1100px}
.mhub-apr-topline{
  display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;
}
.mhub-apr-run{color:#7b8494;font-size:12px;text-align:right;line-height:1.5}
.mhub-apr-run strong{color:#3a4453}

.mhub-apr-hero{
  background:#fff;border:1px solid #e5eaf1;border-radius:14px;
  box-shadow:0 8px 28px rgba(16,24,40,.06);padding:24px;margin-bottom:18px;
}
.mhub-apr-hero-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}
.mhub-apr-eyebrow{font-size:12px;font-weight:700;color:#7b8494;margin-bottom:6px}
.mhub-apr-hero h1{
  font-size:30px;line-height:1.15;letter-spacing:-.03em;margin:0;font-weight:800;color:#172033;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
}
.mhub-apr-site{margin-top:8px;color:#667085;font-size:14px}
.mhub-apr-score{text-align:right;min-width:160px}
.mhub-apr-score strong{display:block;font-size:34px;line-height:1;letter-spacing:-.04em;color:#172033}
.mhub-apr-score span{color:#667085;font-size:12px}

.mhub-apr-progress{
  height:10px;background:#edf1f5;border-radius:999px;overflow:hidden;
  margin:22px 0 18px;display:flex;
}
.mhub-apr-progress i{display:block;height:100%}

.mhub-apr-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mhub-apr-stat{
  padding:14px 15px;border:1px solid #e5eaf1;border-radius:11px;background:#f8fafc;
}
.mhub-apr-stat .n{font-size:22px;font-weight:800;line-height:1;color:#172033}
.mhub-apr-stat .label{margin-top:5px;color:#667085;font-size:12px;font-weight:600}
.mhub-apr-stat.fail .n{color:#c43e3e}
.mhub-apr-stat.work .n{color:#b66a05}
.mhub-apr-stat.pass .n{color:#16835b}

.mhub-apr-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin:18px 0 14px;flex-wrap:wrap;
}
.mhub-apr-tabs{
  display:flex;gap:6px;padding:4px;border:1px solid #e5eaf1;background:#fff;
  border-radius:10px;box-shadow:0 2px 8px rgba(16,24,40,.03);
}
.mhub-apr-tab{
  border:0;background:transparent;padding:9px 12px;border-radius:7px;
  font-size:12px;font-weight:700;color:#667085;cursor:pointer;
}
.mhub-apr-tab[aria-pressed="true"]{background:#172033;color:#fff}
.mhub-apr-quick{display:flex;gap:8px;flex-wrap:wrap}
.mhub-apr-chip{
  padding:8px 10px;background:#fff;border:1px solid #e5eaf1;border-radius:999px;
  color:#5d6675;font-size:12px;font-weight:700;
}

.mhub-apr-summary{
  display:flex;align-items:flex-start;justify-content:space-between;gap:18px;
  background:#eef4ff;border:1px solid #d7e4ff;border-radius:12px;
  padding:15px 16px;margin-bottom:18px;
}
.mhub-apr-summary strong{display:block;font-size:14px;color:#172033}
.mhub-apr-summary p{margin:4px 0 0;color:#5f6f87;font-size:13px;line-height:1.45}
.mhub-apr-summary ul{margin:8px 0 0;padding-left:18px;color:#5f6f87;font-size:13px}
.mhub-apr-summary li{margin:4px 0}

.mhub-apr-section{
  background:#fff;border:1px solid #e5eaf1;border-radius:14px;
  box-shadow:0 5px 20px rgba(16,24,40,.035);margin-top:14px;overflow:hidden;
}
.mhub-apr-section-head{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:15px 17px;border-bottom:1px solid #e5eaf1;background:#fbfcfe;
}
.mhub-apr-section-title{display:flex;align-items:center;gap:10px;min-width:0}
.mhub-apr-section-title h2{margin:0;font-size:15px;letter-spacing:-.01em;color:#172033;font-weight:700}
.mhub-apr-section-title span{color:#7c8798;font-size:12px}
.mhub-apr-counts{display:flex;gap:7px;flex-wrap:wrap}
.mhub-apr-badge{
  display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:4px 8px;
  border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;
}
.mhub-apr-badge.fail{background:#fff0f0;color:#c43e3e}
.mhub-apr-badge.work{background:#fff6df;color:#b66a05}
.mhub-apr-badge.pass{background:#e9f8f1;color:#16835b}
.mhub-apr-badge.note{background:#f1f3f6;color:#667085}
.mhub-apr-badge.owner{background:#edf3ff;color:#3d64b8}

.mhub-apr-item{
  display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:18px;
  align-items:center;padding:15px 17px;border-top:1px solid #edf0f4;
}
.mhub-apr-item:first-child{border-top:0}
.mhub-apr-status{
  display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;
  text-transform:uppercase;letter-spacing:.04em;
}
.mhub-apr-dot{width:8px;height:8px;border-radius:50%;flex:none}
.mhub-apr-status.fail{color:#c43e3e} .mhub-apr-status.fail .mhub-apr-dot{background:#c43e3e}
.mhub-apr-status.work{color:#b66a05} .mhub-apr-status.work .mhub-apr-dot{background:#b66a05}
.mhub-apr-status.pass{color:#16835b} .mhub-apr-status.pass .mhub-apr-dot{background:#16835b}
.mhub-apr-status.note{color:#667085} .mhub-apr-status.note .mhub-apr-dot{background:#667085}
.mhub-apr-main{min-width:0}
.mhub-apr-main strong{display:block;font-size:13px;line-height:1.35;color:#172033}
.mhub-apr-main p{
  margin:4px 0 0;color:#7b8494;font-size:12px;line-height:1.4;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.mhub-apr-actions{display:flex;align-items:center;gap:9px}
.mhub-apr-review{
  border:1px solid #cfd9e6;background:#fff;color:#263244;padding:8px 10px;
  border-radius:8px;font-size:11px;font-weight:800;cursor:pointer;
}
.mhub-apr-review:hover{border-color:#95a8c2;background:#f8fafc}
.mhub-apr-review.primary{background:#2563eb;border-color:#2563eb;color:#fff}
.mhub-apr-review.primary:hover{background:#1d55cf}
.mhub-apr-foot{
  text-align:center;color:#8b95a5;font-size:11px;padding-top:18px;
}

@media (max-width:980px){
  .mhub-audit-head.is-report,.mhub-audit-scroll.is-report{padding-left:22px;padding-right:22px}
  .mhub-apr-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mhub-apr-item{grid-template-columns:90px minmax(0,1fr)}
  .mhub-apr-actions{grid-column:2}
}
@media (max-width:680px){
  .mhub-apr-hero-head{display:block}
  .mhub-apr-score{text-align:left;margin-top:18px}
  .mhub-apr-hero h1{font-size:24px}
  .mhub-apr-summary{display:block}
  .mhub-apr-item{grid-template-columns:1fr;gap:8px}
  .mhub-apr-actions{grid-column:auto}
  .mhub-apr-section-head{align-items:flex-start}
}

@media (max-width:1100px){
  .mhub-overview{grid-template-columns:1fr}
  .mhub-history-grid{grid-template-columns:1fr 1fr 1fr}
  .mhub-history-grid .mhub-site-name{grid-column:1/-1}
  .mhub-history-grid .mhub-btn{justify-self:start}
  .mhub-table-card{overflow:auto}
  .mhub-table-card table{min-width:950px}
}
@media (max-width:860px){
  body.mhub-app-page .mhub-app{grid-template-columns:84px minmax(0,1fr)}
  .mhub-rail{gap:12px;padding:16px 12px}
  .mhub-brand-copy,.mhub-nav-label,.mhub-nav .label,.mhub-rail-foot{display:none}
  .mhub-brand{padding:0;justify-content:center}
  .mhub-brand button{justify-content:center}
  .mhub-nav button,.mhub-nav-link{justify-content:center}
  .mhub-tally{display:none}
  .mhub-page-head,.mhub-accent,.mhub-scroll{padding-left:22px;padding-right:22px}
  .mhub-accent{margin-left:22px;margin-right:22px}
  .mhub-issue-main{grid-template-columns:1fr}
  .mhub-main{min-height:0}
  .mhub-head{padding:16px}
  .mhub-head h1{font-size:22px}
  .mhub-fleet-count{display:none}
  .mhub-board,.mhub-tablewrap,.mhub-audit-head,.mhub-bar,.mhub-audit-scroll{padding-left:16px;padding-right:16px}
  .mhub-prob{flex-wrap:wrap;gap:8px}
  .mhub-prob-id{width:auto}
  .mhub-prob-when,.mhub-prob-act{display:none}
  .mhub-who,.mhub-fix{display:none}
  .mhub-chk .nm{width:auto}
  .mhub-chk .cnt{width:auto}
  .col-hide{display:none}
}
@media (max-width:620px){
  body.mhub-app-page .mhub-app{display:block;height:auto !important;min-height:100vh !important;overflow:auto !important}
  .mhub-rail{
    position:static;height:auto;min-height:0;
    flex-direction:row;align-items:center;padding:12px;gap:8px;overflow-x:auto;
  }
  .mhub-nav{display:flex}
  .mhub-nav button,.mhub-nav-link{padding:8px 10px}
  .mhub-page-head{display:block;padding-top:16px}
  .mhub-fleet-stat{text-align:left;margin-top:16px;min-width:0}
  .mhub-fleet-row{justify-content:flex-start}
  .mhub-history-grid{grid-template-columns:1fr}
  .mhub-table-toolbar{align-items:stretch;flex-direction:column}
  .mhub-table-card .mhub-search{width:100%}
  .mhub-issue{grid-template-columns:1fr}
  .mhub-issue .mhub-btn{justify-self:start}
}
@media (prefers-reduced-motion:reduce){
  .mhub-app,
  .mhub-app *,
  .mhub-scrim,
  .mhub-drawer,
  .mhub-head::after,
  .mhub-pulse{
    animation:none !important;
    transition:none !important;
  }
}
