/* Elshai. Warm stone neutrals, deep teal as the one brand colour, ember for what needs attention. Public Sans (self-hosted, fonts/) for the interface, the headings and the numerals, following the shared design kit (gb-design.css): radii 4 and 8 px, 44 px targets, 3 px focus ring.
   WCAG AA in light and dark (checked), visible focus, reduced motion respected. Everything is prefixed mh- (mht- for the table, mhc- for charts); no name that a blocker would match. */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/PublicSans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/PublicSans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root, :root[data-theme="light"] {
  --bg: #f3eee6; --surface: #fbf8f3; --surface2: #ece6db; --raise: #ffffff; --text: #1c1a17; --muted: #5e574d; --line: #cfc5b4; --line2: #e1d9cb;
  --primary: #0f5c55; --on-primary: #ffffff; --primary-soft: #d5eae6; --link: #0b4f91; --focus: #0b57d0;
  --ok: #17663a; --ok-bg: #dcefe2; --bad: #a52a1f; --bad-bg: #f9dfda; --warn: #8f4305; --warn-bg: #fbe6cc; --info: #2b4f7e; --info-bg: #dfe8f3; --mute-bg: #e7e0d3;
  --control: #6f6556;
  --bar: #0f5c55; --bar2: #8fb8b2; --ember: #c2570e; --shadow: 0 1px 2px rgba(40, 28, 10, .07), 0 6px 18px rgba(40, 28, 10, .05); --scrim: rgba(24, 18, 8, .55);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"], :root:not([data-theme]) {
    --bg: #11141a; --surface: #181c24; --surface2: #20252f; --raise: #1d222c; --text: #ece7de; --muted: #aaa397; --line: #3a414e; --line2: #282d38;
    --primary: #5fd3c2; --on-primary: #06231f; --primary-soft: #123a36; --link: #9cc4ff; --focus: #9cc4ff;
    --ok: #7fd9a1; --ok-bg: #123422; --bad: #ff9d8f; --bad-bg: #44201b; --warn: #f0b25c; --warn-bg: #3a2a10; --info: #9bbcf0; --info-bg: #1b2a40; --mute-bg: #262b36;
    --control: #8b97aa;
    --bar: #5fd3c2; --bar2: #2d6a62; --ember: #f0a05a; --shadow: none; --scrim: rgba(0, 0, 0, .66);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11141a; --surface: #181c24; --surface2: #20252f; --raise: #1d222c; --text: #ece7de; --muted: #aaa397; --line: #3a414e; --line2: #282d38;
  --primary: #5fd3c2; --on-primary: #06231f; --primary-soft: #123a36; --link: #9cc4ff; --focus: #9cc4ff;
  --ok: #7fd9a1; --ok-bg: #123422; --bad: #ff9d8f; --bad-bg: #44201b; --warn: #f0b25c; --warn-bg: #3a2a10; --info: #9bbcf0; --info-bg: #1b2a40; --mute-bg: #262b36;
  --control: #8b97aa;
  --bar: #5fd3c2; --bar2: #2d6a62; --ember: #f0a05a; --shadow: none; --scrim: rgba(0, 0, 0, .66);
  color-scheme: dark;
}
:root {
  --font-ui: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 8px; --r-sm: 4px; --rail: 15rem; --tab: 3.8rem;
}
* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.mh-skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 200; }
.mh-skip:focus { left: 8px; top: 8px; }
.mh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mh-noscroll { overflow: hidden; }
.mh-noscript { padding: 2rem 1rem; color: var(--muted); }
.mh-mono { font-family: var(--font-mono); width: 100%; word-break: break-all; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem); margin: 0 0 .2rem; }
h2 { font-size: 1.2rem; margin: 0; }
h3 { font-size: 1.02rem; margin: .5rem 0; }
.mh-ic { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.mh-ic-sm { width: 1rem; height: 1rem; }
.mh-ic-lg { width: 1.6rem; height: 1.6rem; }

/* boot and skeletons */
.mh-boot { min-height: 100vh; display: grid; place-items: center; }
.mh-boot-mark { width: 3rem; height: 3rem; border-radius: var(--r); background: var(--primary); animation: mh-pulse 1.2s ease-in-out infinite; }
@keyframes mh-pulse { 50% { opacity: .35; transform: scale(.92); } }
.mh-skel { display: grid; gap: .8rem; }
.mh-skel-line, .mh-skel-card { background: linear-gradient(90deg, var(--surface2), var(--line2), var(--surface2)); background-size: 220% 100%; animation: mh-shimmer 1.4s linear infinite; border-radius: var(--r-sm); }
.mh-skel-line { height: 1rem; }
.mh-skel-line.mh-w60 { width: 60%; }
.mh-skel-card { height: 7.5rem; border-radius: var(--r); }
.mh-skel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
@keyframes mh-shimmer { to { background-position: -220% 0; } }

/* shell: rail on wide screens, bottom tabs on phones */
.mh-app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.mh-rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.1rem .8rem; border-right: 1px solid var(--line2); background: var(--surface); display: flex; flex-direction: column; gap: .3rem; }
.mh-brand { display: flex; align-items: center; gap: .6rem; padding: .2rem .5rem 1rem; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.mh-mark { width: 2rem; height: 2rem; border-radius: var(--r-sm); background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.15rem; }
.mh-nav-group { margin: .8rem .6rem .2rem; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mh-nav a, .mh-drawer-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 500; }
.mh-nav a:hover, .mh-drawer-nav a:hover { background: var(--surface2); }
.mh-nav a[aria-current="page"], .mh-drawer-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 650; box-shadow: inset 3px 0 0 var(--primary); }
.mh-nav-badge { margin-left: auto; min-width: 1.4rem; padding: 0 .4rem; border-radius: var(--r-sm); background: var(--warn); color: var(--warn-bg); font-size: .75rem; font-weight: 700; text-align: center; }
.mh-rail-foot { margin-top: auto; display: grid; gap: .3rem; padding-top: 1rem; }
.mh-col { min-height: 100vh; min-width: 0; display: flex; flex-direction: column; }
.mh-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .6rem; padding: .6rem 1.2rem; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line2); }
.mh-top .mh-brand { display: none; padding: 0; font-size: 1.15rem; }
.mh-chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .15rem; flex: 1 1 auto; min-width: 0; }
.mh-chips::-webkit-scrollbar { display: none; }
.mh-chip { flex: none; font: inherit; font-size: .9rem; font-weight: 550; padding: .3rem .85rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; min-height: 2.2rem; }
.mh-chip:hover { background: var(--surface2); }
.mh-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.mh-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); }
.mh-dot-ok { background: var(--ok); } .mh-dot-bad { background: var(--bad); } .mh-dot-warn { background: var(--ember); }
.mh-chip[aria-pressed="true"] .mh-dot { box-shadow: 0 0 0 2px var(--on-primary); }
.mh-top-tools { display: flex; gap: .3rem; align-items: center; margin-left: auto; }
.mh-iconbtn { font: inherit; display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; }
.mh-iconbtn:hover { background: var(--surface2); border-color: var(--line2); }
.mh-palbtn { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: 0 .8rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; cursor: pointer; min-width: 14rem; }
.mh-palbtn:hover { border-color: var(--primary); color: var(--text); }
.mh-kbd { font-family: var(--font-mono); font-size: .75rem; padding: .05rem .35rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r-sm); background: var(--surface2); color: var(--text); }
.mh-palbtn .mh-kbd { margin-left: auto; }
.mh-main { min-width: 0; flex: 1 1 auto; padding: 1.4rem 1.2rem 3rem; width: 100%; max-width: 78rem; margin: 0 auto; }
.mh-main:focus { outline: none; }
.mh-page > * + * { margin-top: 1.1rem; }
.mh-foot { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem 1.5rem; color: var(--muted); font-size: .88rem; flex-wrap: wrap; }
.mh-tabbar { display: none; }
@media (max-width: 960px) {
  .mh-app { display: block; }
  .mh-rail { display: none; }
  .mh-top { flex-wrap: wrap; padding: .5rem .75rem; row-gap: .3rem; }
  .mh-top .mh-brand { display: flex; }
  .mh-top .mh-chips { order: 5; flex-basis: 100%; }
  .mh-palbtn { min-width: 0; padding: 0; width: 2.5rem; justify-content: center; }
  .mh-palbtn span, .mh-palbtn .mh-kbd { display: none; }
  .mh-main { padding: 1rem .75rem calc(var(--tab) + 2.5rem); }
  .mh-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); }
  .mh-tabbar a, .mh-tabbar button { font: inherit; border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; font-size: .72rem; text-decoration: none; cursor: pointer; position: relative; }
  .mh-tabbar a[aria-current="page"] { color: var(--primary); font-weight: 650; }
  .mh-tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 2rem; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
  .mh-tab-badge { position: absolute; top: .35rem; left: calc(50% + .45rem); min-width: 1.1rem; padding: 0 .3rem; border-radius: var(--r-sm); background: var(--warn); color: var(--warn-bg); font-size: .68rem; font-weight: 700; }
  .mh-foot { padding-bottom: calc(var(--tab) + 1rem); }
}
.mh-drawer-back { position: fixed; inset: 0; background: var(--scrim); z-index: 70; display: flex; align-items: flex-end; }
.mh-drawer { width: 100%; max-height: 80vh; overflow-y: auto; background: var(--surface); border-radius: var(--r) var(--r) 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); border: 1px solid var(--line); }
.mh-drawer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: .3rem; }
.mh-drawer-tools { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.mh-grab { width: 2.5rem; height: .3rem; border-radius: 3px; background: var(--line); margin: 0 auto .8rem; }

/* page header */
.mh-head { display: flex; flex-wrap: wrap; gap: .8rem 1rem; justify-content: space-between; align-items: flex-end; }
.mh-sub, .mh-meta { color: var(--muted); margin: 0; font-size: .95rem; }
.mh-head-actions, .mh-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.mh-row-between { justify-content: space-between; }
.mh-stack { display: flex; flex-direction: column; gap: .9rem; }

/* forms */
.mh-form { display: flex; flex-direction: column; gap: .9rem; }
.mh-field { display: flex; flex-direction: column; gap: .3rem; }
.mh-field label { font-weight: 600; font-size: .94rem; }
.mh-hint { color: var(--muted); font-size: .9rem; margin: 0; }
.mh-err { color: var(--bad); min-height: 1.2em; font-size: .95rem; }
.mh-err:empty { min-height: 0; }
.mh-check { display: flex; gap: .55rem; align-items: flex-start; }
.mh-field-check { flex-direction: row; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="date"], select, textarea {
  font: inherit; color: var(--text); background: var(--raise); border: 2px solid var(--control); border-radius: var(--r-sm); padding: .45rem .75rem; width: 100%; min-height: 44px;
}
input:hover, select:hover, textarea:hover { border-color: var(--text); }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--primary); flex: none; margin-top: .2rem; }
textarea { resize: vertical; }
.mh-formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .9rem; }

/* buttons, pills */
.mh-btn { font: inherit; font-weight: 550; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .4rem 1.1rem; border-radius: var(--r-sm); border: 2px solid var(--primary); background: var(--raise); color: var(--text); cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s, transform .06s; }
.mh-btn { color: var(--link); }
.mh-btn:hover:not(:disabled) { background: var(--primary-soft); border-color: var(--link); }
.mh-btn:active:not(:disabled) { transform: translateY(1px); }
.mh-btn:disabled { opacity: .55; cursor: not-allowed; }
.mh-btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); font-weight: 650; }
.mh-btn-primary:hover:not(:disabled) { color: var(--on-primary); }
.mh-btn-primary:hover:not(:disabled) { background: var(--primary); filter: brightness(1.1); border-color: var(--primary); }
.mh-btn-danger { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); font-weight: 650; }
.mh-btn-danger:hover:not(:disabled) { background: var(--bad-bg); filter: brightness(.96); border-color: var(--bad); }
.mh-btn-quiet { border-color: transparent; background: transparent; }
.mh-btn-danger { color: var(--bad); }
.mh-btn-sm { min-height: 36px; padding: .15rem .75rem; font-size: .92rem; }
.mh-btn-icon { padding: .4rem; min-width: 44px; }
.mh-btn-sm.mh-btn-icon { min-width: 36px; }
.mh-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .08rem .6rem; border-radius: var(--r-sm); font-size: .8rem; font-weight: 650; margin: 0 .25rem .2rem 0; border: 1px solid transparent; white-space: nowrap; }
.mh-pill-ok { background: var(--ok-bg); color: var(--ok); }
.mh-pill-bad { background: var(--bad-bg); color: var(--bad); }
.mh-pill-warn { background: var(--warn-bg); color: var(--warn); }
.mh-pill-info { background: var(--info-bg); color: var(--info); }
.mh-pill-mute { background: var(--mute-bg); color: var(--muted); }

/* cards and layout */
.mh-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.mh-card > * + * { margin-top: .8rem; }
.mh-card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.mh-callout { border: 1px solid var(--line); border-left: 6px solid var(--primary); background: var(--surface2); border-radius: var(--r-sm); padding: .8rem 1rem; display: flex; gap: .7rem; align-items: flex-start; }
.mh-callout > div, .mh-callout > p { margin: 0; flex: 1; }
.mh-callout-bad { border-color: var(--bad); background: var(--bad-bg); color: var(--text); }
.mh-callout-bad > .mh-ic, .mh-callout-bad strong { color: var(--bad); }
.mh-callout-warn { border-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
.mh-callout-ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.mh-empty { color: var(--muted); text-align: center; padding: 2rem 1rem; margin: 0; display: grid; justify-items: center; gap: .5rem; }
.mh-empty .mh-ic { width: 2.2rem; height: 2.2rem; color: var(--line); }
.mh-empty strong { color: var(--text); font-family: var(--font-display); font-size: 1.1rem; }
.mh-ents { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.mh-ents a { padding: .35rem .85rem; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); text-decoration: none; background: var(--surface); }
.mh-ents a[aria-current="page"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); font-weight: 650; }
.mh-details { margin-top: 1rem; color: var(--muted); }
.mh-dl { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr); gap: .6rem 1.2rem; margin: 0; }
.mh-dl dt { color: var(--muted); font-weight: 600; font-size: .92rem; }
.mh-dl dd { margin: 0; word-break: break-word; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 560px) { .mh-dl { grid-template-columns: 1fr; gap: .1rem; } .mh-dl dd { margin-bottom: .6rem; } }
.mh-val-open { background: var(--warn-bg); color: var(--warn); padding: 0 .4rem; border-radius: var(--r-sm); }
.mh-hist, .mh-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mh-hist li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line2); padding-bottom: .5rem; }
.mh-sub-card { border: 1px solid var(--line2); border-radius: var(--r); padding: .8rem 1rem; margin-top: .6rem; background: var(--raise); }
.mh-searchform { max-width: 42rem; }
.mh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .75rem; margin: .75rem 0; }
.mh-tile { background: var(--surface2); border: 1px solid var(--line2); border-radius: var(--r); padding: .8rem; }
.mh-tile-v { font-family: var(--font-display); font-size: 1.7rem; font-weight: 650; }
.mh-tile-l, .mh-tile-s { color: var(--muted); font-size: .9rem; }

/* home: what needs me now */
.mh-hero { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-end; }
.mh-hero-num { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 3vw, 4rem); line-height: 1; font-weight: 600; color: var(--primary); }
.mh-need-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 1rem; }
.mh-need { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line2); border-top: 4px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .12s, border-color .12s; }
.mh-need:hover { transform: translateY(-2px); border-color: var(--primary); }
.mh-need-urgent { border-top-color: var(--bad); }
.mh-need-attn { border-top-color: var(--ember); }
.mh-need-calm { border-top-color: var(--primary); }
.mh-need-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--muted); font-weight: 600; font-size: .9rem; }
.mh-need-num { font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 600; }
.mh-need-urgent .mh-need-num { color: var(--bad); }
.mh-need-attn .mh-need-num { color: var(--warn); }
.mh-need-label { font-weight: 600; }
.mh-need-apps { display: flex; flex-wrap: wrap; gap: .25rem; }
.mh-spark { width: 100%; height: 2.4rem; display: block; }
.mh-spark-line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mh-spark-area { fill: var(--primary-soft); stroke: none; }
.mh-spark-dot { fill: var(--primary); }
.mh-need-urgent .mh-spark-line, .mh-need-urgent .mh-spark-dot { stroke: var(--bad); fill: none; } .mh-need-urgent .mh-spark-dot { fill: var(--bad); }
.mh-need-attn .mh-spark-line { stroke: var(--ember); } .mh-need-attn .mh-spark-dot { fill: var(--ember); }
.mh-section-title { display: flex; align-items: center; justify-content: space-between; margin-top: 1.6rem !important; }
.mh-app-card { display: flex; flex-direction: column; gap: .55rem; }
.mh-today { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.mh-today li { display: flex; align-items: baseline; gap: .6rem; padding: .25rem .5rem; border-radius: var(--r-sm); }
.mh-today li.mh-item-warn { background: var(--warn-bg); }
.mh-item-link { display: flex; align-items: baseline; gap: .6rem; color: var(--text); text-decoration: none; width: 100%; }
.mh-item-link:hover .mh-lab { text-decoration: underline; }
.mh-num { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 2.2rem; text-align: right; }
.mh-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mh-queue-item { display: flex; align-items: center; gap: .9rem; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r); padding: .75rem 1rem; flex-wrap: wrap; box-shadow: var(--shadow); }
.mh-queue-item .mh-num { font-family: var(--font-display); font-size: 1.8rem; color: var(--warn); }
.mh-queue-text { flex: 1 1 12rem; display: grid; }

/* client 360 */
.mh-c360 { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 860px) { .mh-c360 { grid-template-columns: 1fr; } }
.mh-avatar { width: 4rem; height: 4rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.mh-c360-id { display: grid; gap: .5rem; justify-items: start; }
.mh-hit { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.mh-hit:last-child { border-bottom: 0; }
.mh-hit-main { flex: 1 1 12rem; display: grid; min-width: 0; }
.mh-hit-main a { font-weight: 600; word-break: break-word; }
.mh-quick { display: flex; gap: .2rem; }

/* dialogs, sheets, toasts */
.mh-modal-back { position: fixed; inset: 0; background: var(--scrim); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 1rem 2rem; overflow-y: auto; z-index: 90; }
.mh-modal { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; width: 100%; max-width: 34rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.mh-modal-wide { max-width: 54rem; }
.mh-modal > * + * { margin-top: .9rem; }
.mh-modal-body > * + * { margin-top: .8rem; }
.mh-modal-foot { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 560px) { .mh-modal-back { padding: 0; align-items: flex-end; } .mh-modal { border-radius: var(--r) var(--r) 0 0; max-width: none; padding-bottom: calc(1.3rem + env(safe-area-inset-bottom)); } .mh-modal-foot .mh-btn { flex: 1; } }
.mh-toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 120; max-width: min(26rem, calc(100vw - 2rem)); }
@media (max-width: 960px) { .mh-toasts { left: .75rem; right: .75rem; bottom: calc(var(--tab) + .75rem + env(safe-area-inset-bottom)); max-width: none; } }
.mh-toast { display: flex; align-items: center; gap: .8rem; background: var(--text); color: var(--bg); padding: .7rem .9rem .7rem 1rem; border-radius: var(--r); box-shadow: 0 6px 24px rgba(0, 0, 0, .3); animation: mh-rise .18s ease-out; }
.mh-toast span { flex: 1; }
.mh-toast button { font: inherit; font-weight: 700; border: 0; background: transparent; color: inherit; text-decoration: underline; cursor: pointer; padding: .2rem .4rem; }
.mh-toast-bad { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad); }
.mh-toast-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok); }
@keyframes mh-rise { from { opacity: 0; transform: translateY(8px); } }

/* command palette and help sheet */
.mh-pal-back { position: fixed; inset: 0; background: var(--scrim); z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 1rem 1rem; }
.mh-pal { width: 100%; max-width: 40rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .4); display: flex; flex-direction: column; max-height: 75vh; }
.mh-pal-in { display: flex; align-items: center; gap: .6rem; padding: .3rem 1rem; border-bottom: 1px solid var(--line2); }
.mh-pal-in input { border: 0; background: transparent; min-height: 3.2rem; font-size: 1.05rem; padding: 0; }
.mh-pal-in input:focus-visible { outline: none; }
.mh-pal-list { list-style: none; margin: 0; padding: .4rem; overflow-y: auto; }
.mh-pal-group { padding: .6rem .7rem .2rem; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mh-pal-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: var(--r-sm); cursor: pointer; }
.mh-pal-item[aria-selected="true"] { background: var(--primary-soft); color: var(--primary); }
.mh-pal-item small { margin-left: auto; color: var(--muted); }
.mh-pal-foot { display: flex; gap: 1rem; padding: .5rem 1rem; border-top: 1px solid var(--line2); color: var(--muted); font-size: .82rem; flex-wrap: wrap; }
.mh-keys { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; align-items: center; }

/* lock screen and sign-in */
.mh-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); }
.mh-auth-side { background: var(--primary); color: var(--on-primary); padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.mh-auth-side h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem); margin: 0; }
.mh-auth-side p { max-width: 26rem; font-size: 1.1rem; opacity: .92; }
.mh-auth-side .mh-meta { color: inherit; opacity: .9; }
.mh-auth-side .mh-mark { background: var(--on-primary); color: var(--primary); }
.mh-auth-main { display: flex; flex-direction: column; justify-content: center; padding: 2rem 1.5rem; gap: 1rem; }
.mh-auth-tools { display: flex; gap: .4rem; justify-content: flex-end; }
.mh-auth-card > * + * { margin-top: 1rem; }
@media (max-width: 860px) { .mh-auth { grid-template-columns: 1fr; } .mh-auth-side { padding: 1.4rem; } .mh-auth-side p { display: none; } .mh-auth-side h1 { font-size: 2rem; } }
.mh-lock { position: fixed; inset: 0; z-index: 150; background: var(--bg); display: grid; place-items: center; padding: 1rem; }
.mh-qr-wrap { display: inline-block; line-height: 0; padding: .5rem; background: #ffffff; border: 1px solid var(--border, #c9c2b6); border-radius: var(--r-sm); margin: .3rem 0 .6rem; }
.mh-qr { width: min(15rem, 70vw); height: auto; display: block; }
.mh-totp-setup { display: flex; flex-direction: column; align-items: flex-start; }
.mh-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem .8rem; font-family: var(--font-mono); font-size: 1.02rem; padding: .8rem; background: var(--surface2); border-radius: var(--r-sm); }
.mh-qr { word-break: break-all; }

/* table (mht-) */
.mht-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; align-items: center; }
.mht-search { flex: 1 1 14rem; max-width: 24rem; }
.mht-filter, .mht-size { width: auto; max-width: 14rem; flex: 0 1 auto; }
.mht-bulk { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .5rem .8rem; margin-bottom: .6rem; background: var(--primary-soft); border: 1px solid var(--primary); border-radius: var(--r-sm); position: sticky; top: 4rem; z-index: 5; }
.mht-bulk[hidden] { display: none; }
.mht-count { font-weight: 650; margin-right: auto; color: var(--primary); }
.mht-wrap { overflow-x: auto; border: 1px solid var(--line2); border-radius: var(--r); background: var(--surface); }
.mht-table { width: 100%; border-collapse: collapse; }
.mht-table th { text-align: left; padding: .6rem .8rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface2); white-space: nowrap; }
.mht-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.mht-table tbody tr:last-child td { border-bottom: 0; }
.mht-table tbody tr:hover { background: color-mix(in srgb, var(--primary-soft) 45%, transparent); }
.mht-table tr.mht-sel { background: var(--primary-soft); }
.mht-check { width: 2.6rem; }
.mht-end { text-align: right; }
.mht-sort, .mht-open { font: inherit; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; text-align: left; text-transform: inherit; letter-spacing: inherit; font-weight: inherit; }
.mht-open { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mht-empty { text-align: center; color: var(--muted); padding: 2rem 1rem !important; }
.mht-pager[hidden] { display: none; }
.mht-pager.mht-pager-top { margin: 0 0 .7rem; }
.mht-pager { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .7rem; }
.mht-info { margin-right: auto; color: var(--muted); font-size: .92rem; }
.mht-selpage { display: none; }
.mht-skel td { padding: .8rem; }
.mht-skel .mh-skel-line { height: .9rem; }
.mht-rowact { display: inline-flex; gap: .2rem; }
@media (max-width: 640px) {
  .mht-wrap { border: 0; background: transparent; overflow: visible; }
  .mht-table, .mht-table tbody, .mht-table tr, .mht-table td { display: block; width: 100%; }
  .mht-table thead { display: none; }
  .mht-table tr { position: relative; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r); padding: .6rem .8rem; margin-bottom: .7rem; box-shadow: var(--shadow); }
  .mht-table td { border: 0; padding: .25rem 0; display: grid; grid-template-columns: minmax(5.5rem, 36%) minmax(0, 1fr); gap: .5rem; align-items: baseline; text-align: left; }
  .mht-table td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
  .mht-table td.mht-check { position: absolute; top: .5rem; right: .6rem; width: auto; display: block; padding: 0; }
  .mht-table td.mht-check::before { content: none; }
  .mht-table td.mht-end { text-align: left; }
  .mht-table td.mht-actions-cell { grid-template-columns: 1fr; padding-top: .5rem; }
  .mht-table td.mht-actions-cell::before { content: none; }
  .mht-table td.mht-empty { display: block; }
  .mht-table td.mht-empty::before { content: none; }
  .mht-selpage { display: flex; gap: .6rem; align-items: center; margin-bottom: .5rem; font-weight: 600; }
  .mht-bulk { top: .25rem; }
  .mht-search, .mht-filter { max-width: none; flex: 1 1 100%; }
}

/* charts (mhc-) */
.mhc { margin: .5rem 0; }
.mhc-svg { width: 100%; height: auto; max-width: 40rem; }
.mhc-lab { fill: var(--muted); font-size: 11px; }
.mhc-val { fill: var(--text); font-size: 11px; font-weight: 600; }
.mhc-bar { fill: var(--bar); }
.mhc-bar-hidden { fill: var(--bar2); }
.mhc-axis { stroke: var(--line); }
.mhc-line { stroke: var(--bar); stroke-width: 2; }

/* security posture */
.mh-post { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mh-post li { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .8rem; align-items: start; padding: .6rem .8rem; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--raise); }
.mh-post li > .mh-ic { margin-top: .15rem; }
.mh-post-ok > .mh-ic { color: var(--ok); } .mh-post-warn > .mh-ic { color: var(--ember); } .mh-post-bad > .mh-ic { color: var(--bad); } .mh-post-info > .mh-ic { color: var(--muted); }
.mh-post-fix { grid-column: 2 / 4; color: var(--muted); font-size: .9rem; }
.mh-score { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mh-score-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; }

/* print: the record and the person pages, as plain paper */
@media (max-width: 560px) { .mh-ents { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; } .mh-ents a { flex: none; } }
.mh-lock .mh-card { width: 100%; max-width: 30rem; }
@media print {
  .mh-rail, .mh-top, .mh-tabbar, .mh-foot, .mh-head-actions, .mh-toasts, .mht-tools, .mht-bulk, .mht-pager, .mh-quick, .mh-skip, button, .mh-btn { display: none !important; }
  .mh-app { display: block; }
  body { background: #fff; color: #000; }
  .mh-main { padding: 0; max-width: none; }
  .mh-card, .mh-sub-card { box-shadow: none; border: 1px solid #999; background: #fff; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Everything, My day, calendar, workflows (version 3) ---------- */
.mh-head-ic { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: var(--r); background: var(--primary-soft); color: var(--primary); flex: none; }
.mh-head-ic .mh-ic { width: 1.35rem; height: 1.35rem; }
.mh-head { align-items: center; }
.mh-flip { transform: scaleX(-1); }
.mh-flip-v { transform: scaleY(-1); }
.mh-seg { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.mh-twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; margin: .5rem 0 1rem; }
@media (max-width: 860px) { .mh-twocol { grid-template-columns: 1fr; } }
.mh-ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1rem; margin: 1rem 0; }
.mh-ev-tile { border-left: 4px solid var(--ok); }
.mh-ev-tile.mh-ev-warn { border-left-color: var(--warn); }
.mh-ev-tile.mh-ev-bad { border-left-color: var(--bad); }
.mh-ev-h { font-family: var(--font-ui); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: .9rem 0 .25rem; }
.mh-ev-links { margin-top: .9rem; }
.mh-ev-logins { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.mh-ev-table h3 { font-size: 1.02rem; margin: 0 0 .4rem; }
.mh-ev-table { min-width: 0; }
.mh-num-bad { color: var(--bad); font-weight: 700; }
.mh-num-warn { color: var(--warn); font-weight: 700; }
.mh-num-ok { color: var(--ok); font-weight: 700; }
.mh-mono-inline { font-family: var(--font-mono); font-size: .88em; }
.mh-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.mh-timeline li { padding: .4rem .6rem; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); }
.mht-table-plain td, .mht-table-plain th { white-space: normal; }
.mh-print-head { display: none; }
.mh-load { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; margin: 1rem 0; }
.mh-meter { width: 100%; height: .9rem; margin: .45rem 0 .2rem; accent-color: var(--primary); }
.mh-meter-full { accent-color: var(--warn); }
.mh-meter-over { accent-color: var(--bad); }
.mh-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mh-plan-item { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; padding: .55rem .7rem; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); }
.mh-plan-main { flex: 1 1 14rem; min-width: 0; display: grid; gap: .1rem; }
.mh-plan-main strong { overflow-wrap: anywhere; }
.mh-plan-item select { max-width: 9rem; }
.mh-qadd-row { flex-wrap: nowrap; }
.mh-qadd-row input { flex: 1 1 auto; min-width: 0; }
.mh-qadd-out { margin-top: .6rem; display: grid; gap: .5rem; }
.mh-pick { max-height: 11rem; overflow: auto; list-style: none; padding: .3rem; border: 1px solid var(--line2); border-radius: var(--r-sm); margin: .4rem 0; }
.mh-gallery { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.mh-gallery li { border: 1px solid var(--line2); border-radius: var(--r-sm); padding: .7rem .8rem; background: var(--surface); }
.mh-versions { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.mh-sticky-actions { position: sticky; bottom: calc(var(--tab) + .5rem); background: var(--bg); padding: .6rem 0; z-index: 5; border-top: 1px solid var(--line2); }
@media (min-width: 961px) { .mh-sticky-actions { bottom: 0; } }
.mh-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.mh-step { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: .7rem .85rem; position: relative; }
.mh-step-head { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.mh-step-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: .85rem; font-weight: 700; }
.mh-step-tools { margin-left: auto; display: inline-flex; gap: .3rem; }
.mh-step-body { margin-top: .6rem; display: grid; gap: .3rem; }
.mh-step .mh-steps { margin-left: .6rem; padding-left: .8rem; border-left: 2px dashed var(--line); }
.mh-step-add { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.mh-conds { display: grid; gap: .5rem; }
.mh-cond { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: .4rem; align-items: center; }
@media (max-width: 640px) { .mh-cond { grid-template-columns: 1fr 1fr; } .mh-cond input[type="text"]:nth-child(3) { grid-column: 1 / -1; } }
.mh-runlog { margin: 0; padding-left: 0; list-style: none; display: grid; gap: .35rem; }
.mh-runlog-err { color: var(--bad); }
/* the calendar */
.mh-cal-tools { display: flex; flex-wrap: wrap; gap: .6rem 1rem; justify-content: space-between; align-items: center; margin: .6rem 0; }
.mh-cal-title { margin: 0 0 0 .4rem; text-transform: capitalize; }
.mh-cal { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.mh-cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface2); font-size: .82rem; font-weight: 650; color: var(--muted); text-align: center; text-transform: capitalize; }
.mh-cal-head div { padding: .45rem 0; }
.mh-cal-body { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mh-cal-cell { min-height: 6.2rem; border-top: 1px solid var(--line2); border-left: 1px solid var(--line2); padding: .2rem; min-width: 0; display: grid; align-content: start; gap: .15rem; }
.mh-cal-cell:nth-child(7n + 1) { border-left: 0; }
.mh-cal-out { background: var(--surface2); }
.mh-cal-out .mh-cal-num { color: var(--muted); }
.mh-cal-today .mh-cal-num { background: var(--primary); color: var(--on-primary); }
.mh-cal-sel { box-shadow: inset 0 0 0 2px var(--primary); }
.mh-cal-num { font: inherit; font-size: .85rem; font-weight: 650; border: 0; background: transparent; color: var(--text); width: 1.7rem; height: 1.7rem; border-radius: 50%; cursor: pointer; }
.mh-cal-chips { display: grid; gap: 2px; min-width: 0; }
.mh-cal-chip { font: inherit; font-size: .76rem; text-align: left; padding: 1px .35rem; border-radius: 4px; border: 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; width: 100%; display: block; }
.mh-cal-k-event { background: var(--primary-soft); color: var(--text); }
.mh-cal-k-task { background: var(--warn-bg); color: var(--text); }
.mh-cal-k-session { background: var(--info-bg); color: var(--text); }
.mh-cal-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; }
i.mh-cal-k-event { background: var(--primary); }
i.mh-cal-k-task { background: var(--warn); }
i.mh-cal-k-session { background: var(--info); }
.mh-cal-dots { display: none; gap: 3px; flex-wrap: wrap; padding: 0 .2rem; }
.mh-cal-more { font: inherit; font-size: .74rem; border: 0; background: transparent; color: var(--link); cursor: pointer; text-align: left; padding: 0 .3rem; }
.mh-cal-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin: .6rem 0; font-size: .88rem; color: var(--muted); }
.mh-cal-thead, .mh-cal-allday { display: grid; grid-template-columns: 3.4rem repeat(var(--cols, 7), minmax(0, 1fr)); background: var(--surface2); }
.mh-cal-thead .mh-cal-dayname { font: inherit; font-weight: 650; font-size: .85rem; border: 0; background: transparent; color: var(--text); padding: .45rem .2rem; cursor: pointer; text-transform: capitalize; }
.mh-cal-allday { border-top: 1px solid var(--line2); min-height: 1.6rem; }
.mh-cal-adcol { padding: 2px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.mh-cal-scroll { max-height: 34rem; overflow: auto; }
.mh-cal-time { display: grid; grid-template-columns: 3.4rem repeat(var(--cols, 7), minmax(0, 1fr)); position: relative; }
.mh-cal-hours .mh-cal-hr { height: 40px; font-size: .72rem; color: var(--muted); text-align: right; padding-right: .4rem; border-top: 1px solid var(--line2); box-sizing: border-box; }
.mh-cal-col { position: relative; height: 960px; border-left: 1px solid var(--line2); background-image: linear-gradient(var(--line2) 1px, transparent 1px); background-size: 100% 40px; min-width: 0; }
.mh-cal-col.mh-cal-today { background-color: var(--primary-soft); }
.mh-cal-ev { position: absolute; white-space: normal; padding: 2px .3rem; line-height: 1.2; border-left: 3px solid var(--primary); }
.mh-cal-now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--bad); }
@media (max-width: 640px) {
  .mh-cal-cell { min-height: 3.4rem; }
  .mh-cal-chips { display: none; }
  .mh-cal-dots { display: flex; }
  .mh-cal-time, .mh-cal-thead, .mh-cal-allday { grid-template-columns: 2.6rem repeat(var(--cols, 7), minmax(3.6rem, 1fr)); }
  .mh-cal-scroll, .mh-cal-thead, .mh-cal-allday { overflow-x: auto; }
}
@media print {
  .mh-print-head { display: block; }
  .mh-twocol { display: block; }
  .mh-ev-tile, .mh-ev-table, .mht-wrap, figure { break-inside: avoid; }
  .mht-wrap { overflow: visible; }
  .mh-seg, .mh-head-ic, .mh-cal-tools, .mh-sticky-actions, .mh-ev-links, .mh-field, .mh-callout .mh-btn { display: none !important; }
  .mhc-bar { fill: #444; }
  .mhc-bar-hidden { fill: #bbb; }
  .mhc-lab, .mhc-val { fill: #000; }
  .mh-card { padding: .5rem; }
}

/* the menu grew: tighter on a wide screen so most of it fits, and the sign-out buttons stay in reach */
.mh-rail .mh-nav a { padding: .38rem .65rem; }
.mh-rail .mh-nav-group { margin-top: .55rem; }
.mh-rail-foot { position: sticky; bottom: -1.1rem; background: var(--surface); padding-bottom: .8rem; }
@media (min-height: 900px) { .mh-rail .mh-nav a { padding: .5rem .7rem; } }

/* ---------- polish pass: setup hints, next best steps, filter bars, drawers, alert rules ---------- */
.mh-sethint { margin: .35rem 0 1rem; padding: .7rem .85rem; border: 1px solid var(--line2); border-left: 4px solid var(--primary); border-radius: var(--r-sm); background: var(--surface2); font-size: .92rem; }
.mh-sethint-h { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; font-weight: 650; margin-bottom: .3rem; }
.mh-sethint-l { margin: .2rem 0; }
.mh-sethint-st { margin-left: auto; font-size: .82rem; font-weight: 650; padding: .05rem .55rem; border-radius: 4px; }
.mh-sethint-ok { background: var(--ok-bg); color: var(--ok); }
.mh-sethint-diff { background: var(--warn-bg); color: var(--warn); }
.mh-tilelist { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.mh-tilerow { display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--raise); color: var(--text); text-decoration: none; }
.mh-tilerow:hover { border-color: var(--primary); }
.mh-tilerow-t { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.mh-chip-ic { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--primary); }
.mh-tilerow-bad .mh-chip-ic { background: var(--bad-bg); color: var(--bad); }
.mh-tilerow-warn .mh-chip-ic { background: var(--warn-bg); color: var(--warn); }
.mh-tilerow-info .mh-chip-ic { background: var(--info-bg); color: var(--info); }
.mh-chev { color: var(--muted); display: inline-flex; }
.mh-ok-line { display: flex; align-items: center; gap: .6rem; padding: .6rem .2rem; color: var(--ok); font-weight: 600; }
.mh-next { margin-bottom: 1rem; }
.mh-tile-a { color: inherit; text-decoration: none; display: block; }
.mh-tile-a:hover .mh-tile, .mh-tile-link:hover { border-color: var(--primary); }
.mh-tile-link { display: block; color: var(--text); text-decoration: none; }
.mh-tile-s { font-size: .82rem; }
.mh-drill { display: inline-flex; align-items: center; gap: .3rem; color: inherit; text-decoration: none; }
.mh-drill:hover { text-decoration: underline; }
.mh-filterbar { display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: center; margin: .8rem 0; }
.mh-filterbar .mht-filter, .mh-filterbar select, .mh-filterbar input[type="date"], .mh-filterbar input[type="text"] { width: auto; min-width: 9rem; }
.mh-inl { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; color: var(--muted); }
.mh-views { display: inline-flex; gap: .4rem; align-items: center; margin-left: auto; }
.mh-rules { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: .45rem; }
.mh-rule { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; padding: .55rem .8rem; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); }
.mh-rule-t { display: flex; flex-direction: column; flex: 1 1 14rem; min-width: 0; }
.mh-dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: .6rem 0; }
.mh-dl dt { color: var(--muted); font-weight: 600; } .mh-dl dd { margin: 0; word-break: break-word; }
.mh-modal-back-side { justify-content: flex-end; align-items: stretch; padding: 0; }
.mh-modal-side { max-width: 30rem; width: 100%; height: 100%; max-height: 100vh; border-radius: 0; overflow-y: auto; display: flex; flex-direction: column; }
.mh-modal-side .mh-modal-body { flex: 1; overflow-y: auto; }
@media (max-width: 560px) { .mh-modal-back-side { align-items: flex-end; } .mh-modal-side { height: auto; max-height: 90vh; border-radius: 8px 8px 0 0; } .mh-views { margin-left: 0; } .mh-dl { grid-template-columns: 1fr; } }
.mht-table td { overflow-wrap: anywhere; } .mh-tile-link { min-width: 0; }
.mh-btn[hidden] { display: none; }

/* ---------- design kit pass: tiles, rows, numerals ---------- */
.mh-tile-v, .mh-hero-num, .mh-need-num, .mh-score-num, .mh-queue-item .mh-num { font-weight: 700; letter-spacing: -.01em; }
.mh-chip-ic, .mh-head-ic { background: var(--primary); color: var(--on-primary); border-radius: var(--r-sm); }
.mh-tilerow-bad .mh-chip-ic { background: var(--bad); color: var(--bad-bg); } .mh-tilerow-warn .mh-chip-ic { background: var(--warn); color: var(--warn-bg); } .mh-tilerow-info .mh-chip-ic { background: var(--info); color: var(--info-bg); }
.mh-tilerow { border-width: 2px; border-color: var(--line); } .mh-tilerow:hover { border-color: var(--link); background: var(--primary-soft); }
.mh-chev { color: var(--link); }

/* "Powered by Daibley": the shared signature (style: _local-only/POWERED-BY-STYLE.md). Small, plain words, bold link, readable in light and dark. */
.mh-power { font-size: 10px; font-weight: 400; text-align: center; padding: .4rem 1rem 1rem; color: var(--muted, #475569); font-family: inherit; }
.mh-power a { color: var(--primary, #1e3a5f); font-weight: 700; text-decoration: none; }
.mh-power a:hover { text-decoration: underline; }
:root[data-theme="dark"] .mh-power { color: #94a3b8; }
:root[data-theme="dark"] .mh-power a { color: #93c5fd; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .mh-power, :root:not([data-theme]) .mh-power { color: #94a3b8; } :root[data-theme="auto"] .mh-power a, :root:not([data-theme]) .mh-power a { color: #93c5fd; } }
.mh-lock { align-content: center; }
.mh-col > .mh-power { padding-bottom: 1.2rem; }
@media (max-width: 900px) { .mh-col > .mh-power { padding-bottom: calc(var(--tab) + 1rem); } }
@media print { .mh-power { display: none !important; } }

/* sign-in: brand panel, points, card, password row */
.mh-auth-side { background: radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .16), transparent 55%), linear-gradient(165deg, var(--primary), var(--primary)); }
.mh-auth-side .mh-mark { width: 3rem; height: 3rem; font-size: 1.6rem; border-radius: var(--r); }
.mh-auth-points { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .8rem; max-width: 26rem; }
.mh-auth-points li { display: flex; gap: .7rem; align-items: center; font-size: 1rem; }
.mh-auth-points .mh-ic { padding: .45rem; box-sizing: content-box; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: rgba(255, 255, 255, .18); }
:root[data-theme="dark"] .mh-auth-points .mh-ic { background: rgba(0, 0, 0, .22); }
.mh-auth-main { background: var(--bg); }
.mh-auth-card { background: var(--raise); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.8rem 1.6rem; }
.mh-auth-card h2 { font-size: 1.6rem; }
.mh-auth-lead { margin: .3rem 0 0; color: var(--muted); }
.mh-pwrow { display: flex; gap: .3rem; align-items: center; }
.mh-pwrow input { flex: 1; min-width: 0; }
.mh-eye { border-color: var(--line); }
.mh-caps { margin: .25rem 0 0; font-size: .88rem; color: var(--warn); }
.mh-caps[hidden] { display: none; }
@media (max-width: 860px) { .mh-auth-points { display: none; } .mh-auth-main { padding: 1.2rem 1rem; } .mh-auth-card { padding: 1.3rem 1.1rem; } }

/* ---- fit (2026-11-06): nothing sticks out of its box on narrow screens ----
   Grid and flex children may shrink, long machine text (codes, addresses, links) wraps inside its card, pills wrap. */
.mh-card, .mh-tile, .mh-grid > *, .mh-tiles > *, .mh-tilerow { min-width: 0; max-width: 100%; }
.mh-card > *, .mh-tile > * { min-width: 0; max-width: 100%; }
.mh-card, .mh-tile, .mh-tilerow, td, th, li, dd { overflow-wrap: break-word; }
code, kbd, samp, .mh-mono { overflow-wrap: anywhere; }
pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: auto; }
.mh-pill { max-width: 100%; white-space: normal; line-height: 1.3; }

/* FORM-ALIGN-MH:BEGIN (2026-11-07) same rule as the Pathways family and the console kit: a .mh-field is a subgrid of three rows (label, control, hint),
   so fields on one visual row of a .mh-formgrid share one label row, one control row and one hint row; labels sit at the bottom of the label row, controls are 44 px high.
   The grid row gap equals the subgrid gap (a different gap shifts the control line by half the difference); the space between rows is gap + margin under each field. */
.mh-formgrid { align-items: start; row-gap: .3rem; }
.mh-formgrid > .mh-field:not(.mh-field-check) { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: inherit; align-content: start; margin-bottom: .6rem; min-width: 0; }
.mh-formgrid > .mh-field:not(.mh-field-check) > label { align-self: end; line-height: 1.3; overflow-wrap: anywhere; }
.mh-formgrid > .mh-field:not(.mh-field-check) > :not(label) { align-self: start; min-width: 0; }
.mh-formgrid > .mh-field:not(.mh-field-check) > input:not([type="checkbox"]):not([type="radio"]), .mh-formgrid > .mh-field:not(.mh-field-check) > select { box-sizing: border-box; height: 44px; min-height: 44px; }
.mh-formgrid > .mh-field-check { grid-row: span 3; align-self: end; margin-bottom: .6rem; }
/* FORM-ALIGN-MH:END */
/* FORM-DESIGN:BEGIN elshai (generated by _local-only/pathways/gen-form-align.mjs via gen-form-design.mjs, do not edit by hand) */
html body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]), html body select:not([data-gbf]), html body textarea:not([data-gbf]) { box-sizing: border-box; border: 1px solid var(--control); border-radius: var(--r-sm); background-color: var(--raise); color: var(--text); font-family: inherit; line-height: 1.4; transition: border-color .15s, background-color .15s; }
html body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):hover:not(:focus):not(:disabled):not([readonly]), html body select:not([data-gbf]):hover:not(:focus):not(:disabled):not([readonly]), html body textarea:not([data-gbf]):hover:not(:focus):not(:disabled):not([readonly]) { border-color: var(--text); }
html body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):focus, html body select:not([data-gbf]):focus, html body textarea:not([data-gbf]):focus { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus); box-shadow: none; }
html body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"])::placeholder, html body select:not([data-gbf])::placeholder, html body textarea:not([data-gbf])::placeholder { color: var(--muted); opacity: 1; }
html body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):disabled, html body select:not([data-gbf]):disabled, html body textarea:not([data-gbf]):disabled { background-color: var(--bg); color: var(--muted); opacity: .75; cursor: not-allowed; border-style: dashed; }
html body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"])[readonly], html body select:not([data-gbf])[readonly], html body textarea:not([data-gbf])[readonly] { background-color: var(--bg); }
html body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"])[aria-invalid="true"], html body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]).is-invalid, html body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]).invalid, html body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):user-invalid, html body select:not([data-gbf])[aria-invalid="true"], html body select:not([data-gbf]).is-invalid, html body select:not([data-gbf]).invalid, html body select:not([data-gbf]):user-invalid, html body textarea:not([data-gbf])[aria-invalid="true"], html body textarea:not([data-gbf]).is-invalid, html body textarea:not([data-gbf]).invalid, html body textarea:not([data-gbf]):user-invalid, html body .mh-field.error input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]), html body .mh-field.error select:not([data-gbf]), html body .mh-field.error textarea:not([data-gbf]) { border-color: var(--bad); box-shadow: inset 4px 0 0 var(--bad); }
html body input[type="date"], html body input[type="time"], html body input[type="datetime-local"], html body input[type="month"], html body input[type="week"], html body input[type="tel"], html body input[type="url"], html body input[type="number"] { font: inherit; min-height: 44px; padding-inline: .85rem; }
html body input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
html body input[type="number"]::-webkit-outer-spin-button, html body input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html body input[type="search"] { -webkit-appearance: none; appearance: none; }
html body textarea:not([data-gbf]) { line-height: 1.5; padding: .65rem .85rem; min-height: 6.5rem; resize: vertical; }
html body select:not([data-gbf]):not([multiple]):not([size]) { -webkit-appearance: none; appearance: none; padding-right: 2.5rem; text-overflow: ellipsis; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px); background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; cursor: pointer; }
html body select:not([data-gbf])[multiple], html body select:not([data-gbf])[size]:not([size="1"]) { padding: .4rem; height: auto; }
html body input[type="checkbox"], html body input[type="radio"] { width: 1.3rem; height: 1.3rem; margin: .1rem 0 0; flex: none; accent-color: var(--primary); cursor: pointer; }
html body input[type="checkbox"]:focus-visible, html body input[type="radio"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
html body .mh-check { display: flex; align-items: flex-start; gap: .7rem; min-height: 40px; padding-block: .4rem; cursor: pointer; font-weight: 400; line-height: 1.4; text-transform: none; letter-spacing: 0; }
html body input[type="file"] { box-sizing: border-box; width: 100%; min-height: 44px; padding: .5rem; border: 1px solid var(--control); border-radius: var(--r-sm); background-color: var(--raise); color: var(--text); font: inherit; }
html body input[type="file"]::file-selector-button { margin-right: .85rem; min-height: 32px; padding: .3rem .9rem; border: 1px solid var(--control); border-radius: var(--r-sm); background: var(--raise); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; }
html body input[type="file"]:hover::file-selector-button { border-color: var(--primary); color: var(--primary); }
html body input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--primary); background: transparent; }
html body input[type="color"] { width: 3.5rem; height: 44px; padding: 4px; border: 1px solid var(--control); border-radius: var(--r-sm); background-color: var(--raise); cursor: pointer; }
html body legend { padding: 0; font-weight: 650; font-size: .92rem; margin-bottom: .4rem; }
html body .mh-err:not(:empty) { font-weight: 600; border-left: 3px solid var(--bad); padding-left: .55rem; line-height: 1.4; }
@media (forced-colors: active) { html body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]), html body select:not([data-gbf]), html body textarea:not([data-gbf]) { border-color: ButtonText; } html body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):focus, html body select:not([data-gbf]):focus, html body textarea:not([data-gbf]):focus { outline-color: Highlight; } }
/* FORM-DESIGN:END */
/* STATCARD:BEGIN elshai (generated by _local-only/pathways/gen-stat-card.mjs, do not edit by hand) */
/* ONE stat-card row: every card of every row has the same size and shape (2026-11-12). See the header of gen-stat-card.mjs for the markup. */
html body .gb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); grid-auto-rows: 1fr; align-items: stretch; justify-items: stretch; gap: .75rem; margin: 0 0 .75rem; padding: 0; list-style: none; }
html body .gb-stats[hidden] { display: none; }
html body .gb-stats > * { box-sizing: border-box; min-width: 0; min-height: 6.5rem; margin: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: .2rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; padding: .8rem .95rem; border: 1px solid var(--line2); border-radius: var(--r); background: var(--surface2); color: var(--text); text-align: left; }
html body .gb-stats > :is(a, button) { cursor: pointer; text-decoration: none; color: var(--text); font: inherit; }
html body .gb-stats > :is(a, button):hover { border-color: var(--primary); }
html body .gb-stats > :is(a, button):focus-visible { outline: 3px solid var(--focus, var(--primary)); outline-offset: 2px; }
html body .gb-stats > :not(:has(.gb-stat-s, .mc-stat-s))::after { content: "\00a0"; display: block; min-height: 1.2em; font-size: .85rem; order: 9; }
html body .gb-stats .gb-stat-l { order: 1; font-size: .8125rem; font-weight: 650; line-height: 1.3; color: var(--muted); text-transform: none; letter-spacing: 0; }
html body .gb-stats .gb-stat-v { order: 2; font-size: 1.9rem; font-weight: 700; line-height: 1.1; letter-spacing: 0; color: var(--text); font-variant-numeric: tabular-nums; }
html body .gb-stats .gb-stat-s { order: 3; font-size: .85rem; line-height: 1.3; color: var(--muted); }
@media (max-width: 30rem) { html body .gb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } html body .gb-stats > * { min-height: 6rem; } html body .gb-stats .gb-stat-v { font-size: 1.6rem; } }
@media (max-width: 20rem) { html body .gb-stats { grid-template-columns: minmax(0, 1fr); } }
html body .gb-stats > .mh-tile-a { display: block; padding: 0; border: 0; background: none; min-height: 0; }
html body .gb-stats > .mh-tile-a > .mh-tile { box-sizing: border-box; height: 100%; min-height: 6.5rem; }
/* STATCARD:END */

/* GROUPS (2026-11-07): the group, client and "group by" selects next to the app chips, the breadcrumb under a name, the sections of a grouped screen, the group manager.
   Colours come from the page's variables, so light and dark follow the theme (muted text on the surfaces is above 4.5:1 in both). */
.mh-field[hidden] { display: none !important; }
.mh-top { flex-wrap: wrap; }
.mh-gbar { order: 9; flex: 1 1 100%; min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.mh-gbar[hidden] { display: none; }
.mh-chip-sel { flex: none; width: auto; max-width: 13rem; min-height: 2.2rem; font-size: .9rem; padding-block: .2rem; }
.mh-crumb { display: block; color: var(--muted); font-weight: 600; }
.mh-grp { margin-top: 1.2rem; }
.mh-grp-t { font-size: 1.05rem; margin: 0 0 .6rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line2); color: var(--text); }
.mh-grp-list { list-style: none; margin: .6rem 0 1rem; padding: 0; display: grid; gap: .3rem; }
.mh-grp-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; justify-content: space-between; padding: .4rem .6rem; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); }
.mh-grp-name { font-weight: 600; flex: 1 1 10rem; min-width: 0; }
.mh-grp-d1 { padding-inline-start: 1rem; } .mh-grp-d2 { padding-inline-start: 2rem; } .mh-grp-d3 { padding-inline-start: 3rem; }
@media (max-width: 640px) { .mh-gbar .mh-chip-sel { flex: 1 1 7rem; max-width: none; min-width: 0; } .mht-tools .mht-filter { min-width: 0; max-width: 100%; } }
.mh-gbar .mh-chip-sel { text-overflow: ellipsis; }
/* GROUPS fixes (2026-11-08, found in a real browser): the row actions of Connections were squeezed to a narrow column (each row about 300px tall); the actions now keep room to wrap in two lines.
   Long group paths: the cell stays on one line with an ellipsis and carries the full text in its title; the manager rows wrap long names instead of overflowing. */
@media (min-width: 641px) { .mht-table td.mht-actions-cell, .mht-table.tt-trunc td.mht-actions-cell { min-width: 30rem; white-space: normal; overflow: visible; text-overflow: clip; max-width: none; } .mht-table td .mh-pill { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; } }
.mh-grp-name { overflow-wrap: anywhere; }
.mh-crumb { overflow-wrap: anywhere; }
/* phone width: the group select takes a full line, client and group by share the next; on card rows a long group path or client wraps instead of being cut */
@media (max-width: 640px) {
  .mh-gbar .mh-chip-sel:first-child { flex: 1 1 100%; }
  .mh-gbar .mh-chip-sel { flex: 1 1 8rem; }
  .mht-table.tt-trunc td:not(.tt-act):not(.mc-tb-sel) { white-space: normal; max-width: none; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
}

/* Connection doctor (assets/mh-doctor.js) */
.mh-doc-steps, .mh-doc-guide { margin: 0; padding-left: 0; list-style: none; display: grid; gap: .75rem; }
.mh-doc-guide { list-style: decimal; padding-left: 1.4rem; gap: .6rem; }
.mh-doc-step { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r); padding: .7rem .9rem; background: var(--surface); }
.mh-doc-step > * + * { margin-top: .45rem; }
.mh-doc-step p { margin: 0; }
.mh-doc-ok { border-left-color: var(--ok); }
.mh-doc-warn { border-left-color: var(--warn); }
.mh-doc-bad { border-left-color: var(--bad); }
.mh-doc-skip, .mh-doc-info { border-left-color: var(--line); }
.mh-doc-fix { color: var(--text); }
.mh-doc-copy { align-items: center; }
.mh-doc-val { word-break: break-all; user-select: all; }
.mh-doc-sum { margin: 0; font-size: 1.05rem; }
.mh-doc-out { margin-top: 1rem; }
