/* Made by tools/design/build_kit.py from design/mod-hub/project/components/bundle.css: the same rules, with
   each data image written out as a file under img/. Do not edit; change the kit and run the script. */
/* Mod Hub components. Every value comes from tokens.css custom properties. */

.mh-stage { background: var(--surface-000); color: var(--text); font-family: var(--font-ui); font-size: 14px; line-height: 19.6px; padding: var(--space-5); box-sizing: border-box; }
.mh-stage *, .mh-stage *::before, .mh-stage *::after { box-sizing: border-box; }
.mh-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

[class^="mh-"], [class*=" mh-"] { box-sizing: border-box; }
.mh-btn:focus-visible, .mh-tile:focus-visible, .mh-tab:focus-visible, .mh-table__sort:focus-visible, .mh-srv:focus-visible, .mh-modal__close:focus-visible, .mh-footnote a:focus-visible, .mh-fan a:focus-visible { outline: var(--border-strong) solid var(--focus); outline-offset: 2px; }

/* ---------- Frame ---------- */
/* Every bordered surface is a cartouche drawn by an SVG measured to its host (useFrame in bundle.js). The host only sets the --fr-* variables. Fills are the only gradients in the system: a radial vignette (--fr-c at the centre, --fr-m, --fr-e at the edge) on large surfaces, and a horizontal sheen (--fr-c in the middle, --fr-e at both ends) on small ones. Over each fill sits a grime mask (.mh-frame__dirt): large soft noise tinted by --fr-dirt at --fr-dirt-a opacity (3 to 6%), kept low enough that text stays at 4.5:1 or better. */
.mh-frame { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* a frame split in two (images): the fill lies under the picture, the outline and braid lie over it */
.mh-frame--top { z-index: 2; }
.mh-frame__dirt { fill: var(--fr-dirt); opacity: var(--fr-dirt-a); transition: fill 120ms; }
.mh-frame__ln { fill: none; stroke: var(--fr-line); stroke-width: 1; transition: stroke 120ms; }
.mh-frame__ec { fill: none; stroke: var(--fr-echo); stroke-width: 1; transition: stroke 120ms; }
.mh-frame__halo { fill: none; stroke: var(--fr-halo); stroke-width: 3; stroke-linecap: round; transition: stroke 120ms; }
.mh-frame__halo--ln { stroke-width: 2.6; stroke-linecap: butt; }
.mh-frame__br { fill: none; stroke: var(--fr-orn); stroke-width: 0.9; stroke-linecap: round; transition: stroke 120ms; }
.mh-frame__md { fill: var(--surface-000); stroke: var(--fr-orn); stroke-width: 1; transition: stroke 120ms; }
.mh-frame stop { transition: stop-color 120ms; }
.mh-frame__gl { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.mh-frame__em { filter: drop-shadow(0 0 3px var(--gold-100)); }
.mh-frame__em circle { fill: var(--gold-100); opacity: 0; transform-box: fill-box; transform-origin: center; animation: mh-ember 3.4s ease-out infinite; }
@keyframes mh-ember { 0% { transform: translate(0, 0) scale(0.7); opacity: 0; } 15% { opacity: 1; transform: translate(calc(var(--dx, 4px) * 0.15), calc(var(--rise, 18px) * -0.15)) scale(1); } 70% { opacity: 0.7; } 100% { transform: translate(var(--dx, 4px), calc(var(--rise, 18px) * -1)) scale(0.35); opacity: 0; } }
@keyframes mh-breathe { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.mh-frame__jw { fill: var(--fr-gem); transition: fill 120ms; }
/* the fill is the only layer a host may thin out: glass sets --fr-fill-a */
.mh-frame__bg { opacity: var(--fr-fill-a, 1); }
.mh-btn, .mh-panel, .mh-modal__dialog, .mh-server, .mh-srv, .mh-table-wrap, .mh-menu, .mh-notice, .mh-tile, .mh-field__control, .mh-imgp, .mh-file__zone {
  isolation: isolate;
  --fr-line: var(--bronze-600); --fr-line-lo: var(--bronze-700); --fr-orn: var(--fr-line); --fr-orn-lo: var(--fr-line-lo); --fr-halo: transparent; --fr-echo: rgba(137, 109, 81, 0.5); --fr-gem: var(--gold-500);
  --fr-c: var(--surface-200); --fr-m: var(--surface-100); --fr-e: var(--surface-000);
  --fr-dirt: var(--gold-500); --fr-dirt-a: 0.045;
}

/* inputs, notices and the select menu carry text on every pixel, so their grime is lighter */
.mh-field__control, .mh-notice, .mh-menu { --fr-dirt-a: 0.03; }
/* buttons and tiles are small and handled, so their grime is allowed to show: roughly three times the 3 to 6% used on large surfaces */
.mh-btn, .mh-tile { --fr-dirt-a: 0.13; }

/* ---------- Button ---------- */
/* Small surface: horizontal sheen, lit in the middle. Variants and states only set variables. */
.mh-btn {
  --fr-line: var(--gold-300); --fr-line-lo: var(--bronze-600); --fr-echo: rgba(185, 155, 119, 0.5); --fr-gem: var(--gold-300); --fr-c: transparent; --fr-e: transparent; /* experiment: the normal look has no fill; was --fr-c: surface-300, --fr-e: surface-100 */ --mh-text: var(--gold-100);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); box-sizing: border-box; min-height: 48px; padding: 0 var(--space-6); margin: 0; border: 0; background: none; color: var(--mh-text); cursor: pointer; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 20px; text-transform: uppercase; letter-spacing: 0.04em;
  transition: color 120ms, transform 60ms;
}
.mh-btn__label { position: relative; white-space: nowrap; }
.mh-btn--sm { min-height: 36px; padding: 0 var(--space-5); font-size: 14px; line-height: 16px; }
.mh-btn--full { display: flex; width: 100%; }

/* primary: parchment, lighter in the middle */
.mh-btn--primary { --fr-line: var(--gold-100); --fr-line-lo: var(--gold-400); --fr-orn: var(--gold-100); --fr-orn-lo: var(--gold-400); --fr-halo: rgba(29, 16, 3, 0.62); --fr-c: var(--parchment-200); --fr-e: var(--gold-300); --fr-echo: rgba(29, 16, 3, 0.32); --fr-gem: var(--gold-400); --mh-text: var(--ink); --fr-dirt: var(--ink); --fr-dirt-a: 0.17; }
/* danger: ember outline, fills ember on hover */
.mh-btn--danger { --fr-line: var(--status-danger); --fr-line-lo: var(--ember-600); --fr-echo: rgba(232, 116, 59, 0.45); --fr-gem: var(--status-danger); --mh-text: var(--status-danger); }

/* hover inverts to light parchment (danger: to ember), as on the site; pressed sinks 1px and darkens */
.mh-btn:hover:not([disabled]):not([aria-disabled="true"]) { --fr-c: var(--parchment-50); --fr-e: var(--parchment-200); --fr-line: var(--gold-100); --fr-line-lo: var(--gold-400); --fr-orn: var(--gold-100); --fr-orn-lo: var(--gold-400); --fr-halo: rgba(29, 16, 3, 0.62); --fr-echo: rgba(29, 16, 3, 0.32); --fr-gem: var(--gold-100); --mh-text: var(--ink); --fr-dirt: var(--ink); --fr-dirt-a: 0.17; }
.mh-btn--danger:hover:not([disabled]):not([aria-disabled="true"]) { --fr-c: var(--status-danger); --fr-e: var(--ember-400); --fr-line: var(--gold-100); --fr-line-lo: var(--gold-400); --fr-orn: var(--gold-100); --fr-orn-lo: var(--gold-400); --fr-halo: rgba(29, 16, 3, 0.62); --fr-echo: rgba(29, 16, 3, 0.4); --fr-gem: var(--status-danger); --fr-dirt: var(--parchment-50); --fr-dirt-a: 0.14; }
.mh-btn:active:not([disabled]):not([aria-disabled="true"]) { --fr-c: var(--gold-400); --fr-e: var(--gold-500); --fr-line: var(--gold-100); --fr-line-lo: var(--gold-400); --fr-orn: var(--gold-100); --fr-orn-lo: var(--gold-400); --fr-halo: rgba(29, 16, 3, 0.62); --fr-gem: var(--gold-300); --fr-dirt: var(--ink); --fr-dirt-a: 0.17; transform: translateY(1px); }
.mh-btn--danger:active:not([disabled]):not([aria-disabled="true"]) { --fr-c: var(--ember-400); --fr-e: var(--ember-400); --fr-line: var(--gold-100); --fr-line-lo: var(--gold-400); --fr-orn: var(--gold-100); --fr-orn-lo: var(--gold-400); --fr-halo: rgba(29, 16, 3, 0.62); --fr-gem: var(--ember-400); --fr-dirt: var(--parchment-50); --fr-dirt-a: 0.14; }

/* quiet: text only, no frame */
.mh-btn--quiet { min-height: 32px; padding: 0 var(--space-2); font-family: var(--font-ui); font-weight: 600; font-size: 13px; line-height: 18px; letter-spacing: 0.08em; color: var(--gold-300); }
.mh-btn--quiet:hover:not([disabled]) { color: var(--gold-100); text-decoration: underline; text-underline-offset: 4px; }
.mh-btn--quiet:active:not([disabled]) { transform: none; }
/* a quiet button that toggles something (aria-pressed) stays lit and underlined while it is on (an underline does not pass into a flex wrapper, so an icon + label is underlined on the label span) */
.mh-btn--quiet[aria-pressed="true"] { color: var(--gold-100); text-decoration: underline; text-underline-offset: 4px; }

.mh-btn[disabled], .mh-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
/* a disabled primary button goes grey instead of only fading: the parchment becomes cool stone and the lines lose their gold, so the one main action reads as unavailable at a glance (disabled text is exempt from the 4.5:1 rule, but the label still holds about 4.5:1 on the stone) */
.mh-btn--primary[disabled]:not([aria-busy="true"]), .mh-btn--primary[aria-disabled="true"]:not([aria-busy="true"]) { --fr-c: #b8b1a5; --fr-e: #a29b90; --fr-line: #c0b9ad; --fr-line-lo: #968f84; --fr-orn: #c9c2b6; --fr-orn-lo: #968f84; --fr-halo: rgba(0, 0, 0, 0.5); --fr-echo: rgba(0, 0, 0, 0.28); --fr-gem: #a29a8e; --mh-text: #1d1a16; --fr-dirt: #000; opacity: 1; }

/* ---------- Panel ---------- */
.mh-panel { position: relative; color: var(--text); }
.mh-panel--inset { --fr-c: var(--surface-300); --fr-m: var(--surface-200); --fr-e: var(--surface-100); }
.mh-panel__inner { position: relative; }
.mh-panel__head, .mh-panel__body { position: relative; z-index: 1; }
.mh-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: var(--border-hairline) solid transparent; border-image: linear-gradient(90deg, transparent, var(--bronze-600) 12%, var(--bronze-600) 88%, transparent) 1; }
.mh-panel__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 24px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-100); }
.mh-panel__actions { display: flex; align-items: center; gap: var(--space-2); }
.mh-panel__body { padding: var(--space-5); }
.mh-panel__body--flush { padding: 0; }

/* ---------- Divider ---------- */
.mh-divider { display: flex; align-items: center; gap: var(--space-2); color: var(--gold-400); margin: var(--space-5) 0; }
.mh-divider__line { flex: 1; height: var(--border-hairline); background: linear-gradient(90deg, transparent, var(--bronze-600) 45%, var(--gold-400)); }
.mh-divider__line:last-child { background: linear-gradient(270deg, transparent, var(--bronze-600) 45%, var(--gold-400)); }
.mh-divider__label { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 18px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--gold-100); }

/* ---------- SelectTile ---------- */
.mh-tile { --fr-c: var(--surface-200); --fr-e: var(--surface-100); position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); min-width: 120px; min-height: 56px; padding: var(--space-2) var(--space-5); margin: 0; border: 0; background: none; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 18px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); transition: color 120ms; }
.mh-tile:hover { --fr-line: var(--gold-300); --fr-line-lo: var(--bronze-600); --fr-gem: var(--gold-300); --fr-c: var(--surface-300); --fr-e: var(--surface-200); }
.mh-tile.is-selected, .mh-tile.is-selected:hover { color: var(--ink); --fr-line: var(--gold-100); --fr-line-lo: var(--gold-400); --fr-orn: var(--gold-100); --fr-orn-lo: var(--gold-400); --fr-halo: rgba(29, 16, 3, 0.62); --fr-gem: var(--gold-100); --fr-echo: rgba(29, 16, 3, 0.32); --fr-c: var(--parchment-50); --fr-e: var(--parchment-200); --fr-dirt: var(--ink); --fr-dirt-a: 0.17; }
.mh-tile[disabled] { opacity: 0.5; cursor: not-allowed; }
.mh-tile__meta { font-family: var(--font-ui); font-weight: 400; font-size: 12px; line-height: 16.8px; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.mh-tile.is-selected .mh-tile__meta { color: var(--ink); }

/* ---------- Tabs ---------- */
.mh-tabs { display: flex; gap: var(--space-5); border-bottom: var(--border-hairline) solid transparent; border-image: linear-gradient(90deg, var(--bronze-600) 65%, transparent) 1; }
.mh-tab { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0 0 -1px; padding: var(--space-3) 0; border: 0; border-bottom: var(--border-strong) solid transparent; background: none; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 22px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); transition: color 120ms; }
.mh-tab:hover { color: var(--gold-100); }
.mh-tab.is-active { color: var(--gold-100); border-bottom-color: var(--gold-100); }
.mh-tab[disabled] { opacity: 0.5; cursor: not-allowed; }
.mh-tab__count { padding: 0 var(--space-2); font-family: var(--font-ui); font-weight: 600; font-size: 12px; line-height: 18px; letter-spacing: 0; border: var(--border-hairline) solid var(--bronze-600); border-radius: var(--radius-sm); color: var(--text-muted); }

/* ---------- TextField / SelectField ---------- */
.mh-field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.mh-field__label { font-family: var(--font-ui); font-weight: 600; font-size: 14px; line-height: 19.6px; color: var(--text); }
.mh-field__req { color: var(--gold-100); }
.mh-field__control { position: relative; display: flex; align-items: stretch; --fr-c: var(--surface-200); --fr-m: var(--surface-200); --fr-e: var(--surface-200); }
.mh-field__control:hover { --fr-line: var(--gold-500); }
.mh-field__control:focus-within { --fr-line: var(--gold-100); --fr-gem: var(--gold-100); outline: var(--border-strong) solid var(--focus); outline-offset: 2px; }
.mh-field__input { flex: 1; min-width: 0; height: 42px; padding: 0 var(--space-3); margin: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text); font-family: var(--font-ui); font-size: 14px; line-height: 19.6px; outline: none; }
textarea.mh-field__input { height: auto; min-height: 96px; padding: var(--space-3); resize: vertical; }
.mh-field__input::placeholder { color: var(--text-subtle); opacity: 1; }
/* underline: no frame, no fill, one line; the line warms on hover and thickens in gold on focus */
.mh-field--underline .mh-field__control { border-bottom: var(--border-hairline) solid var(--bronze-600); background: transparent; transition: border-color 120ms; }
.mh-field--underline .mh-field__control > .mh-frame { display: none; }
.mh-field--underline .mh-field__control:hover { border-bottom-color: var(--gold-500); }
.mh-field--underline .mh-field__control:focus-within { border-bottom-color: var(--gold-100); box-shadow: 0 1px 0 var(--gold-100); outline: 0; }
.mh-field--underline .mh-field__input { padding: 0 var(--space-1); }
.mh-field--underline.has-error .mh-field__control { border-bottom-color: var(--status-danger); }

.mh-field__input[type="number"] { font-variant-numeric: tabular-nums; }
.mh-field__input.is-mono { font-family: var(--font-mono); font-size: 13px; }
.mh-field__affix { display: inline-flex; align-items: center; padding: 0 var(--space-3); font-size: 13px; color: var(--text-muted); }
.mh-field__hint { margin: 0; font-size: 12px; line-height: 16.8px; color: var(--text-muted); }
.mh-field__error { display: flex; align-items: center; gap: var(--space-1); margin: 0; font-size: 12px; line-height: 16.8px; font-weight: 600; color: var(--status-danger); }
.mh-field__errmark { width: 10px; height: 10px; flex: none; background: currentColor; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.mh-field.has-error .mh-field__control { --fr-line: var(--status-danger); --fr-gem: var(--status-danger); }
.mh-field.is-disabled { opacity: 0.5; }
.mh-field.is-disabled .mh-field__control:hover { --fr-line: var(--bronze-600); }
.mh-field__select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.mh-field__select option { background: var(--surface-200); color: var(--text); }
.mh-select { position: relative; }
/* the frame makes each field its own stacking context, so an open menu has to lift the whole field above the fields that follow it */
.mh-select.is-open { z-index: 1100; }
.mh-select.is-open { --fr-line: var(--gold-100); --fr-gem: var(--gold-100); }
.mh-select__btn { flex: 1; min-width: 0; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 0 var(--space-3); margin: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text); font-family: var(--font-ui); font-size: 14px; line-height: 19.6px; text-align: left; cursor: pointer; outline: none; }
.mh-select__btn[disabled] { cursor: not-allowed; }
.mh-select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-select__btn.is-placeholder .mh-select__value { color: var(--text-subtle); }
.mh-select__caret { flex: none; color: var(--gold-300); transition: transform 140ms; }
.mh-select.is-open .mh-select__caret { transform: rotate(180deg); color: var(--gold-100); }
.mh-menu { position: fixed; z-index: 1100; color: var(--text); font-family: var(--font-ui); font-size: 14px; line-height: 19.6px; --fr-line: var(--gold-400); --fr-gem: var(--gold-300); box-shadow: var(--shadow-lift); }
.mh-menu__list { position: relative; margin: 0; padding: var(--space-2); list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.mh-opt { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 40px; padding: 0 var(--space-3) 0 36px; border: var(--border-hairline) solid transparent; color: var(--text); font-family: var(--font-ui); font-size: 14px; line-height: 19.6px; cursor: pointer; }
.mh-opt__mark { position: absolute; left: 14px; top: 50%; margin-top: -5px; opacity: 0; color: var(--gold-100); }
.mh-opt.is-selected { color: var(--gold-100); font-weight: 600; }
.mh-opt.is-selected .mh-opt__mark { opacity: 1; }
.mh-opt.is-active { background: var(--surface-300); border-color: var(--gold-500); }
.mh-opt.is-disabled { color: var(--text-subtle); cursor: not-allowed; }
.mh-opt__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-opt__meta { margin-left: auto; padding-left: var(--space-3); flex: none; font-size: 12px; line-height: 16.8px; font-weight: 400; color: var(--text-muted); }
.mh-opt-group, .mh-opt-group__list { margin: 0; padding: 0; list-style: none; }
.mh-opt-group__label { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-1); font-family: var(--font-display); font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--gold-300); }
.mh-opt-group__label::after { content: ""; flex: 1; height: var(--border-hairline); background: linear-gradient(90deg, var(--gold-400), var(--bronze-600) 55%, transparent); }
.mh-menu__list > .mh-opt-group:first-child .mh-opt-group__label { padding-top: var(--space-1); }
.mh-opt-empty { padding: var(--space-4); text-align: center; color: var(--text-muted); }
.mh-field__caret { position: absolute; top: 50%; right: var(--space-3); display: flex; margin-top: -4px; pointer-events: none; }

/* ---------- Checkbox / Switch ---------- */
.mh-check, .mh-switch { position: relative; display: inline-flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; font-family: var(--font-ui); font-size: 14px; line-height: 20px; color: var(--text); }
.mh-check__input, .mh-switch__input { position: absolute; top: 0; left: 0; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.mh-check__box { position: relative; flex: none; width: 20px; height: 20px; border: var(--border-hairline) solid var(--gold-500); border-radius: var(--radius-sm); background: var(--surface-200); transition: background 120ms, border-color 120ms; }
.mh-check:hover .mh-check__box { border-color: var(--gold-100); }
.mh-check__input:checked + .mh-check__box { background: var(--parchment-200); border-color: var(--parchment-200); }
.mh-check__input:checked + .mh-check__box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mh-check__input:indeterminate + .mh-check__box { background: var(--parchment-200); border-color: var(--parchment-200); }
.mh-check__input:indeterminate + .mh-check__box::after { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 2px; background: var(--ink); }
/* oval: a translucent pill for options that sit on artwork; the tick is gold on a faint gold wash */
.mh-check--oval .mh-check__input { width: 34px; height: 20px; }
.mh-check--oval .mh-check__box { width: 34px; border-radius: 999px; border-color: rgba(193, 153, 118, 0.85); background: rgba(0, 0, 0, 0.38); }
.mh-check--oval:hover .mh-check__box { border-color: var(--gold-100); background: rgba(42, 26, 11, 0.55); }
.mh-check--oval .mh-check__input:checked + .mh-check__box { background: rgba(251, 206, 160, 0.3); border-color: var(--gold-100); }
.mh-check--oval .mh-check__input:checked + .mh-check__box::after { left: 50%; top: 3px; margin-left: -3px; width: 5px; height: 9px; border-color: var(--gold-100); }
.mh-check--oval .mh-check__input:indeterminate + .mh-check__box { background: rgba(251, 206, 160, 0.3); border-color: var(--gold-100); }
.mh-check--oval .mh-check__input:indeterminate + .mh-check__box::after { left: 50%; top: 8px; margin-left: -5px; background: var(--gold-100); }
.mh-check__input:focus-visible + .mh-check__box, .mh-switch__input:focus-visible + .mh-switch__track { outline: var(--border-strong) solid var(--focus); outline-offset: 2px; }
.mh-check__input:disabled ~ *, .mh-switch__input:disabled ~ * { opacity: 0.5; }
.mh-check__input:disabled, .mh-switch__input:disabled { cursor: not-allowed; }
.mh-check__text, .mh-switch__text { display: flex; flex-direction: column; }
.mh-check__hint, .mh-switch__hint { font-size: 12px; line-height: 16.8px; color: var(--text-muted); }

.mh-switch__input { width: 40px; height: 22px; }
.mh-switch__track { position: relative; flex: none; width: 40px; height: 22px; border: var(--border-hairline) solid var(--gold-500); border-radius: var(--radius-full); background: var(--surface-200); transition: background 120ms, border-color 120ms; }
.mh-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: var(--radius-full); background: var(--gold-300); transition: transform 120ms, background 120ms; }
.mh-switch__input:checked + .mh-switch__track { background: var(--parchment-200); border-color: var(--parchment-200); }
.mh-switch__input:checked + .mh-switch__track::after { transform: translateX(18px); background: var(--ink); }

/* ---------- Glyphs (status shapes) ---------- */
.mh-glyph { display: inline-block; flex: none; width: 10px; height: 10px; background: currentColor; }
.mh-glyph--dot { border-radius: var(--radius-full); }
.mh-glyph--ring { border-radius: var(--radius-full); background: transparent; border: var(--border-strong) solid currentColor; }
.mh-glyph--hollow { border-radius: var(--radius-full); background: transparent; border: var(--border-hairline) solid currentColor; }
.mh-glyph--square { border-radius: 1px; }
.mh-glyph--diamond { background: transparent; border: var(--border-strong) solid currentColor; transform: rotate(45deg) scale(0.85); }
.mh-glyph--triangle { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mh-glyph--star { width: 12px; height: 12px; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.mh-glyph--flag { clip-path: polygon(0 0, 100% 0, 70% 50%, 100% 100%, 0 100%); }
.mh-glyph--heart { width: 11px; height: 10px; clip-path: path('M5.5 9.6 C1.4 6.5 0 4.9 0 3.2 C0 1.4 1.3 0 3.1 0 C4.1 0 5 0.5 5.5 1.3 C6 0.5 6.9 0 7.9 0 C9.7 0 11 1.4 11 3.2 C11 4.9 9.6 6.5 5.5 9.6Z'); }
.mh-glyph--demon { width: 14px; height: 14px; clip-path: path('M7 3.2 C10.4 3.2 12.8 5.6 12.8 8.6 C12.8 11.3 10.0 13.2 7 14.0 C4.0 13.2 1.2 11.3 1.2 8.6 C1.2 5.6 3.6 3.2 7 3.2 Z M9.2 4.4 C9.0 2.2 10.6 0.6 13.0 0.0 C11.8 1.2 11.4 3.0 11.8 6.0 Z M2.2 6.0 C2.6 3.0 2.2 1.2 1.0 0.0 C3.4 0.6 5.0 2.2 4.8 4.4 Z M3.0 6.2 L3.4 8.0 L5.7 8.8 L6.2 7.6 Z M11.0 6.2 L7.8 7.6 L8.3 8.8 L10.6 8.0 Z M4.1 10.2 Q7.0 13.0 9.9 10.2 Q7.0 11.4 4.1 10.2 Z'); }
.mh-glyph--shield { width: 11px; height: 12px; clip-path: path('M5.5 0 L11 1.7 V6 C11 8.6 8.6 10.6 5.5 12 C2.4 10.6 0 8.6 0 6 V1.7 Z M2.7 6.2 L4.8 8.3 L8.5 4.2 L7.6 3.4 L4.8 6.6 L3.5 5.3 Z'); }
.mh-glyph--stop { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }

/* ---------- StatusBadge ---------- */
.mh-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px var(--space-2) 1px; border: var(--border-hairline) solid currentColor; font-family: var(--font-ui); font-weight: 600; font-size: 12px; line-height: 16.8px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.mh-badge > .mh-glyph { position: relative; top: -1px; }
.mh-badge--md { padding: 6px var(--space-3) 2px; font-size: 13px; line-height: 18px; }
.mh-badge--md > .mh-glyph { top: -2px; }
.mh-badge--online { color: var(--status-online); }
.mh-badge--full, .mh-badge--locked { color: var(--status-warning); }
.mh-badge--pending { color: var(--gold-300); }
.mh-badge--offline { color: var(--status-offline); }
.mh-badge--banned { color: var(--status-danger); }
/* promotion labels: Featured is a filled parchment plate, Sponsored an outline; each has its own glyph, so neither depends on color */
.mh-badge--featured { position: relative; isolation: isolate; overflow: hidden; color: var(--surface-100); background: var(--gold-100); border-color: var(--gold-100); }
/* a shine crosses the plate every few seconds, a horizontal sweep like the one on the border */
.mh-badge--featured::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 100%; z-index: -1; pointer-events: none; transform: translateX(-110%); animation: mh-shine 4s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.14) 40%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0.14) 60%, rgba(255, 255, 255, 0) 70%); }
@keyframes mh-shine { 0%, 12% { transform: translateX(-110%); } 52%, 100% { transform: translateX(110%); } }
@media (prefers-reduced-motion: reduce) { .mh-badge--featured::after, .mh-frame__em { animation: none; display: none; } }
/* Official reads like Sponsored (the same outline and color) with its own shield glyph and word; it is the hub's own, so it has none of Sponsored's motion */
.mh-badge--sponsored, .mh-badge--official { color: var(--gold-300); }
/* +18 is a bright filled purple plate with a heart and no visible outline (the border stays, transparent, so it is the same size as its neighbours): a flag beside the status, not a status. It keeps the plate and glyph even over a Featured or Sponsored row. */
.mh-badge--adult { color: var(--purple-100); background: var(--purple-600); border-color: transparent; }
/* Devious is the same kind of flag in crimson, with a flat horned face: a blue-leaning red, never the orange of an error. */
.mh-badge--devious { color: var(--crimson-100); background: var(--crimson-600); border-color: transparent; }

/* dot: only the colored mark (tooltip and accessible name carry the word), for dense rows. Every status stays a circle and keeps its own cut, so color is never the only cue: online solid, full a ring, password a slit, pending a target, offline a hairline ring, banned a slash. */
.mh-badge--dot { position: relative; box-sizing: content-box; gap: 0; padding: 4px; border: 0; line-height: 0; cursor: default; }
.mh-badge--dot > .mh-glyph { top: 0; width: 12px; height: 12px; border: 0; border-radius: 0; background: currentColor; transform: none; clip-path: path('M6 0A6 6 0 1 0 6 12A6 6 0 1 0 6 0Z'); }
.mh-badge--dot.mh-badge--full > .mh-glyph { clip-path: path(evenodd, 'M6 0A6 6 0 1 0 6 12A6 6 0 1 0 6 0ZM6 2.8A3.2 3.2 0 1 1 6 9.2A3.2 3.2 0 1 1 6 2.8Z'); }
.mh-badge--dot.mh-badge--locked > .mh-glyph { clip-path: path(evenodd, 'M6 0A6 6 0 1 0 6 12A6 6 0 1 0 6 0ZM2.4 5.1H9.6V6.9H2.4Z'); }
.mh-badge--dot.mh-badge--pending > .mh-glyph { clip-path: path(evenodd, 'M6 0A6 6 0 1 0 6 12A6 6 0 1 0 6 0ZM6 1.6A4.4 4.4 0 1 1 6 10.4A4.4 4.4 0 1 1 6 1.6ZM6 4A2 2 0 1 0 6 8A2 2 0 1 0 6 4Z'); }
.mh-badge--dot.mh-badge--offline > .mh-glyph { clip-path: path(evenodd, 'M6 0A6 6 0 1 0 6 12A6 6 0 1 0 6 0ZM6 1A5 5 0 1 1 6 11A5 5 0 1 1 6 1Z'); }
.mh-badge--dot.mh-badge--banned > .mh-glyph { clip-path: path(evenodd, 'M6 0A6 6 0 1 0 6 12A6 6 0 1 0 6 0ZM10.17 3.25L8.75 1.83L1.83 8.75L3.25 10.17Z'); }
.mh-badge--dot::after { content: attr(data-tip); position: absolute; left: calc(100% + 2px); top: 50%; z-index: 30; padding: 2px var(--space-2); transform: translateY(-50%); background: var(--surface-000); border: var(--border-hairline) solid var(--bronze-600); color: var(--text); font-family: var(--font-ui); font-weight: 600; font-size: 12px; line-height: 18px; letter-spacing: 0.06em; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 120ms; }
.mh-badge--dot:hover::after, .mh-srv:focus-visible .mh-badge--dot::after { opacity: 1; visibility: visible; }
/* in the last column of a table the tooltip opens to the left, so it never runs past the table's edge */
.mh-table td:last-child .mh-badge--dot::after { left: auto; right: calc(100% + 2px); }

/* ---------- Glass ---------- */
/* Fields and notices that sit on artwork. The fill turns see-through and the picture behind is blurred and kept warm, so the scene shows and the text still reads. Opt in with glass on TextField, SelectField or Notice, or give a container class mh-glass and everything inside takes it. The underline field has no fill and ignores it; the open select menu stays solid so options stay legible. */
.mh-glass .mh-field:not(.mh-field--underline) .mh-field__control,
.mh-field--glass:not(.mh-field--underline) .mh-field__control,
.mh-glass .mh-notice,
.mh-notice--glass {
  --fr-fill-a: var(--glass-fill, 0.4);
  -webkit-backdrop-filter: blur(var(--glass-blur, 10px)) saturate(var(--glass-saturate, 1.1));
  backdrop-filter: blur(var(--glass-blur, 10px)) saturate(var(--glass-saturate, 1.1));
}
/* no backdrop blur available: keep the fill nearly opaque so text never sits on a sharp picture */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mh-glass .mh-field:not(.mh-field--underline) .mh-field__control,
  .mh-field--glass:not(.mh-field--underline) .mh-field__control,
  .mh-glass .mh-notice,
  .mh-notice--glass { --fr-fill-a: 0.85; }
}
/* the person asked the system for less transparency: no blur, a near-solid fill */
@media (prefers-reduced-transparency: reduce) {
  .mh-glass .mh-field:not(.mh-field--underline) .mh-field__control,
  .mh-field--glass:not(.mh-field--underline) .mh-field__control,
  .mh-glass .mh-notice,
  .mh-notice--glass { --fr-fill-a: 0.92; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Notice ---------- */
.mh-notice { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); --fr-line: var(--mh-tone, var(--gold-400)); --fr-gem: var(--mh-tone, var(--gold-400)); --fr-c: var(--surface-100); --fr-e: var(--surface-100); position: relative; color: var(--text); font-family: var(--font-ui); font-size: 14px; line-height: 19.6px; }
.mh-notice--info { --mh-tone: var(--gold-400); }
.mh-notice--success { --mh-tone: var(--status-online); }
.mh-notice--warning { --mh-tone: var(--status-warning); }
.mh-notice--danger { --mh-tone: var(--status-danger); }
.mh-notice .mh-glyph { margin-top: 5px; color: var(--mh-tone); }
.mh-notice__body { flex: 1; min-width: 0; }
.mh-notice__lead { font-weight: 600; color: var(--mh-tone); }
.mh-notice--info .mh-notice__lead { color: var(--gold-100); }
.mh-notice__title { margin: 0; font-weight: 600; }
.mh-notice__text { margin: 0; color: var(--text-muted); }
.mh-notice__dismiss { flex: none; margin: -4px -8px 0 0; padding: 4px 8px; border: 0; background: none; cursor: pointer; font-family: var(--font-ui); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-300); }
.mh-notice__dismiss:hover { color: var(--gold-100); }
.mh-notice__dismiss:focus-visible { outline: var(--border-strong) solid var(--focus); outline-offset: 2px; }

/* ---------- DataTable ---------- */
.mh-table-wrap { position: relative; --fr-c: var(--surface-100); }
.mh-table-clip { position: relative; }
.mh-table-scroll { overflow-x: auto; }
/* scrolling: rows move under a header that stays put (the header, not its cells, is sticky, so its sweep stays whole; cells carry the rule as an inner shadow because borders do not travel with a sticky row) */
.mh-table-scroll.is-y { overflow-y: auto; }
.mh-table-scroll.is-y .mh-table thead { position: sticky; top: 0; z-index: 2; }
.mh-table-scroll.is-y .mh-table th { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--bronze-600); }
.mh-table-wrap--fill { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.mh-table-wrap--fill > .mh-table-clip { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.mh-table-wrap--fill .mh-table-scroll { flex: 1 1 auto; min-height: 0; }
.mh-table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 13px; line-height: 18.2px; color: var(--text); }
.mh-table th { padding: var(--space-3) var(--space-4); border-bottom: var(--border-hairline) solid var(--bronze-600); font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 18px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; text-align: left; color: var(--gold-300); white-space: nowrap; }
.mh-table td { padding: var(--space-3) var(--space-4); border-bottom: var(--border-hairline) solid var(--surface-300); vertical-align: middle; }
.mh-table tbody tr:last-child td { border-bottom: 0; }
/* dividers={false}: no line between rows (the header keeps its rule); rows are told apart by their spacing, hover and any picture */
.mh-table--plain td { border-bottom: 0; }
.mh-table thead { background: linear-gradient(90deg, var(--surface-100), var(--surface-200) 50%, var(--surface-100)); }
.mh-table tbody tr:hover { background: linear-gradient(90deg, var(--surface-300), var(--surface-200)); }
.mh-table tbody tr.is-selected { background: linear-gradient(90deg, var(--surface-300), var(--surface-200) 55%, var(--surface-100)); }
.mh-table tbody tr.is-selected td:first-child { box-shadow: inset 2px 0 0 var(--gold-500); }
.mh-table .is-right { text-align: right; }
.mh-table .is-center { text-align: center; }
.mh-table .is-mono { font-family: var(--font-mono); font-size: 13px; }
.mh-table__select { width: 44px; padding-right: 0; }
.mh-table__sort { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.mh-table__sort:hover { color: var(--gold-100); }
.mh-table__arrow { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--bronze-600); }
th[aria-sort="ascending"] .mh-table__arrow { border-top: 0; border-bottom: 5px solid var(--gold-100); }
th[aria-sort="descending"] .mh-table__arrow { border-top-color: var(--gold-100); }
.mh-table__empty { padding: var(--space-7) var(--space-5); text-align: center; color: var(--text-muted); }
.mh-table__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: linear-gradient(90deg, var(--surface-100), var(--surface-200) 50%, var(--surface-100)); border-top: var(--border-hairline) solid transparent; border-image: linear-gradient(90deg, transparent, var(--bronze-600) 12%, var(--bronze-600) 88%, transparent) 1; font-family: var(--font-ui); font-size: 13px; line-height: 18.2px; color: var(--text-muted); }
.mh-table__pager { display: flex; align-items: center; gap: var(--space-2); }
/* a quiet button has 8px of padding of its own; pull it out so its label sits 16px from the right edge, the same inset the first column has on the left */
.mh-table td.is-right:last-child .mh-btn--quiet, .mh-table__pager .mh-btn--quiet:last-child { margin-right: calc(var(--space-2) * -1); }
.mh-check--cell { display: inline-flex; }

/* ---------- Chip ---------- */
.mh-chip { display: inline-block; padding: 0 var(--space-2); border: var(--border-hairline) solid var(--bronze-600); border-radius: var(--radius-sm); font-family: var(--font-ui); font-size: 12px; line-height: 18px; color: var(--text-muted); }

/* ---------- ServerCard ---------- */
.mh-server { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-5); padding: var(--space-4) var(--space-5); color: var(--text); font-family: var(--font-ui); }
.mh-server:hover { --fr-line: var(--gold-400); --fr-c: var(--surface-300); --fr-m: var(--surface-200); --fr-e: var(--surface-100); }
.mh-server.is-selected { --fr-line: var(--gold-100); --fr-gem: var(--gold-100); --fr-echo: rgba(251, 206, 160, 0.4); }
.mh-server__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.mh-server__name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 24px; color: var(--gold-100); }
.mh-server__desc { margin: var(--space-1) 0 0; font-size: 13px; line-height: 18.2px; color: var(--text-muted); }
.mh-server__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.mh-server__meta { display: grid; grid-template-columns: repeat(var(--mh-fields, 4), auto); gap: var(--space-5); margin: 0; }
.mh-server__meta dt { margin: 0 0 2px; font-size: 11px; line-height: 15.4px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle); }
.mh-server__meta dd { margin: 0; font-size: 14px; line-height: 19.6px; font-weight: 600; color: var(--text); white-space: nowrap; }
.mh-server__bar { display: block; width: 72px; height: 4px; margin-top: 4px; background: var(--surface-300); }
.mh-server__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--bronze-600), var(--gold-300)); }
.mh-server--full .mh-server__fill { background: linear-gradient(90deg, var(--bronze-600), var(--status-warning)); }
.mh-server__q { margin-left: var(--space-1); font-weight: 400; font-size: 12px; color: var(--text-muted); }
.mh-server__q.is-good { color: var(--status-online); }
.mh-server__q.is-fair { color: var(--status-warning); }
.mh-server__q.is-poor { color: var(--status-danger); }
.mh-server__cta { display: flex; align-items: center; gap: var(--space-2); }
.mh-server--offline .mh-server__name { color: var(--text-muted); }
/* ---------- Image layer (ServerCard, ImagePanel) ---------- */
.mh-media { position: relative; overflow: hidden; isolation: isolate; background: var(--surface-100); }
.mh-media__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.92) saturate(0.95); transition: filter 160ms; }
/* grime printed over the picture: the frames' mottling, laid over as an overlay so it darkens and lightens the art */
.mh-media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--mh-dirt) 0 0 / 320px 320px; mix-blend-mode: overlay; opacity: 0.3; pointer-events: none; }
/* iced: most of the color goes, the picture takes the ice hue, and a pale speckle and rim light frost it */
.is-iced .mh-media__img { filter: grayscale(0.7) brightness(0.8) contrast(1.08); }
.is-iced .mh-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--ice-500); mix-blend-mode: color; opacity: 0.7; pointer-events: none; }
.is-iced .mh-media::after { background: var(--ice-300) var(--mh-dirt) 0 0 / 320px 320px; background-blend-mode: multiply; mix-blend-mode: screen; opacity: 0.26; }
.is-iced .mh-media { box-shadow: inset 0 0 28px rgba(223, 240, 249, 0.22); }
.mh-media-clip { position: absolute; inset: 0; pointer-events: none; }
/* a picture anchored to an edge keeps that edge's part of the art in view whatever the bar's shape */
.mh-media--left .mh-media__img { object-position: left center; }
.mh-media--right .mh-media__img { object-position: right center; }

/* server list: the picture spans the whole bar, full strength at one edge and easing out to nothing at the other; --mh-media-w only places the text start (and the mask stops), the text begins where the picture is about a quarter strength */
.mh-server--img { --mh-media-w: 260px; --fr-line: var(--gold-400); --fr-line-lo: var(--bronze-600); --fr-orn: var(--gold-400); --fr-orn-lo: var(--bronze-600); --fr-halo: rgba(0, 0, 0, 0.55); }
.mh-server--img-left { padding-left: calc(var(--mh-media-w) * 0.72 + var(--space-3)); }
.mh-server--img-right { padding-right: calc(var(--mh-media-w) * 0.72 + var(--space-3)); }
.mh-server--img .mh-media { position: absolute; inset: 0; }
.mh-server--img > .mh-server__main, .mh-server--img > .mh-server__meta, .mh-server--img > .mh-server__cta { position: relative; z-index: 1; }
.mh-server--img:hover .mh-media__img { filter: brightness(1) saturate(1); }
.mh-server--img.is-iced:hover .mh-media__img { filter: grayscale(0.55) brightness(0.95) contrast(1.08); }
.mh-server--img.mh-server--full .mh-media__img { filter: saturate(0.6) brightness(0.8); }
.mh-server--img.mh-server--offline .mh-media__img { filter: grayscale(1) brightness(0.55); }
.mh-server.is-iced { --fr-line: var(--ice-300); --fr-line-lo: var(--ice-700); --fr-orn: var(--ice-100); --fr-orn-lo: var(--ice-300); --fr-echo: rgba(156, 202, 226, 0.35); --fr-gem: var(--ice-100); --fr-c: var(--ice-900); --fr-m: color-mix(in srgb, var(--ice-900) 55%, var(--surface-000)); --fr-dirt: var(--ice-100); --fr-dirt-a: 0.04; }
.mh-server.is-iced:hover { --fr-line: var(--ice-100); --fr-c: var(--ice-900); }
.mh-server.is-iced .mh-server__name { color: var(--ice-100); }

/* reveal: the picture is the whole card at a fixed height (--mh-reveal-h), so showing the details never moves its neighbours. A translucent black plate at the foot holds the name and description; on hover or focus it darkens and the tags, facts and buttons slide up inside it. */
.mh-server--reveal { display: block; height: var(--mh-reveal-h, 260px); padding: 0; }
.mh-server--reveal .mh-media__img { filter: brightness(1) saturate(1); }
.mh-server__foot { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.mh-server__plate { position: relative; padding: var(--space-4) var(--space-5); background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); transition: background-color 160ms; }
.mh-server__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 200ms ease; }
.mh-server__more-in { display: grid; gap: var(--space-3); min-height: 0; overflow: hidden; }
.mh-server--reveal .mh-server__tags { margin: 0; }
.mh-server__more-in > :first-child { margin-top: var(--space-3); }
.mh-server--reveal:hover .mh-server__plate, .mh-server--reveal:focus-within .mh-server__plate, .mh-server--reveal.is-revealed .mh-server__plate { background: rgba(0, 0, 0, 0.86); }
.mh-server--reveal:hover .mh-server__more, .mh-server--reveal:focus-within .mh-server__more, .mh-server--reveal.is-revealed .mh-server__more { grid-template-rows: 1fr; }
@media (hover: none) { .mh-server--reveal .mh-server__more { grid-template-rows: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mh-server__plate, .mh-server__more { transition: none; } }

/* ---------- ServerList ---------- */
/* Compact server browser. The box carries the layout variables so a container query can reshape them; the picture works as on ServerCard: --mh-media-w only places where the text starts (0.72 of it), and the lead (or tail, for a picture on the right) keeps every row's columns aligned whether or not it has art. */
.mh-srvlist { container-type: inline-size; font-family: var(--font-ui); color: var(--text); }
.mh-srvlist__box { --srv-pad: 14px; --srv-logo: 40px; --mh-media-w: 170px; --srv-lead: calc(var(--srv-logo) + var(--space-3)); --srv-tail: 0px; --srv-cols: var(--srv-lead) minmax(0, 1fr) 108px 92px 88px; --srv-gap: var(--space-3); }
.mh-srvlist--dots { --srv-cols: var(--srv-lead) minmax(0, 1fr) 88px 92px 88px; }
.mh-srvlist--img-left { --srv-lead: calc(var(--mh-media-w) * 0.72 + var(--space-3) - var(--srv-pad)); }
.mh-srvlist--img-right { --srv-tail: calc(var(--mh-media-w) * 0.72 + var(--space-3) - var(--srv-pad)); }
.mh-srvlist__head { display: grid; grid-template-columns: var(--srv-cols); column-gap: var(--srv-gap); align-items: center; padding: 0 calc(var(--srv-pad) + var(--srv-tail)) var(--space-2) var(--srv-pad); font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 18px; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--gold-300); }
.mh-srvlist__sort { white-space: nowrap; }
.mh-srvlist__arrow { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--bronze-600); }
.mh-srvlist__arrow.is-asc { border-top: 0; border-bottom: 5px solid var(--gold-100); }
.mh-srvlist__arrow.is-desc { border-top-color: var(--gold-100); }
.mh-srvlist__rows { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.mh-srvlist__empty { margin: 0; padding: var(--space-6) var(--space-5); text-align: center; color: var(--text-muted); font-size: 14px; border: var(--border-hairline) solid var(--surface-300); }
.mh-srv { position: relative; display: grid; grid-template-columns: var(--srv-cols); column-gap: var(--srv-gap); align-items: center; min-height: 56px; padding: 8px calc(var(--srv-pad) + var(--srv-tail)) 8px var(--srv-pad); list-style: none; cursor: pointer; color: var(--text); font-family: var(--font-ui); }
.mh-srv:hover { --fr-line: var(--gold-400); --fr-c: var(--surface-300); --fr-e: var(--surface-100); }
.mh-srv.is-selected { --fr-line: var(--gold-100); --fr-gem: var(--gold-100); --fr-echo: rgba(251, 206, 160, 0.85); --fr-c: var(--surface-300); --fr-e: var(--surface-100); }
/* selected: a bright second line inside the first, and a soft glow that follows the outline */
.mh-srv.is-selected > .mh-frame { filter: drop-shadow(0 0 5px rgba(240, 194, 122, 0.4)); }
.mh-srv.is-iced.is-selected > .mh-frame { filter: drop-shadow(0 0 5px rgba(156, 202, 226, 0.45)); }
.mh-srv--img { --fr-line: var(--gold-400); --fr-line-lo: var(--bronze-600); --fr-orn: var(--gold-400); --fr-orn-lo: var(--bronze-600); --fr-halo: rgba(0, 0, 0, 0.55); }
.mh-srv--img.is-selected { --fr-line: var(--gold-100); }
.mh-srv .mh-media { position: absolute; inset: 0; }
/* thin lines: a hairline outline (the inner second line is kept for the selected row only), and a narrower dark halo behind it where there is a picture */
.mh-srv .mh-frame__ln, .mh-srv .mh-frame__ec { stroke-width: 0.75; }
.mh-srv .mh-frame__halo--ln { stroke-width: 1.6; }
.mh-srv__logo, .mh-srv__main, .mh-srv__cell { position: relative; z-index: 1; }
.mh-srv__logo { display: grid; place-items: center; box-sizing: border-box; width: var(--srv-logo); height: var(--srv-logo); justify-self: start; overflow: hidden; background: var(--surface-000); border: var(--border-hairline) solid var(--bronze-600); border-radius: var(--radius-sm); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.5); transition: border-color 120ms; }
.mh-srv:hover .mh-srv__logo, .mh-srv.is-selected .mh-srv__logo { border-color: var(--gold-400); }
.mh-srv__logoimg { display: block; width: 100%; height: 100%; object-fit: cover; }
.mh-srv__mono { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1; color: var(--gold-300); }
.mh-srv__main { min-width: 0; display: flex; align-items: center; gap: var(--space-3); }
.mh-srv__name { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 22px; color: var(--gold-100); flex: 0 1 auto; min-width: 0; }
/* a chip that does not fit wraps out of sight whole, rather than showing half of itself */
/* the name and its badges share a line while they fit; when they do not, the badges drop under the name (a name is never squeezed to nothing) */
.mh-srv__id { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); flex: 0 0 auto; max-width: 100%; min-width: 0; }
.mh-srv__id .mh-badge { flex: none; }
.mh-srv__tags { display: flex; flex: 1 1 0; flex-wrap: wrap; gap: var(--space-2); min-width: 0; height: 20px; overflow: hidden; }
.mh-srv__tags .mh-chip { flex: none; }
/* an empty first item: it lets the first chip wrap out of sight, like the rest, when there is not room for it whole */
.mh-srv__tagsp { flex: none; width: 0; height: 20px; margin-right: calc(var(--space-2) * -1); }
.mh-srv__stats { display: contents; }
.mh-srv__cell { display: flex; align-items: center; gap: var(--space-2); min-width: 0; font-size: 14px; line-height: 19.6px; white-space: nowrap; }
.mh-srv__cell .mh-server__bar { flex: none; width: 40px; margin-top: 0; }
.mh-srv__num { font-weight: 600; color: var(--text); white-space: nowrap; }
.mh-srv--offline .mh-srv__name { color: var(--text-muted); }
.mh-srv--offline .mh-srv__logoimg { filter: grayscale(1) brightness(0.6); }
.mh-srv--full .mh-server__fill { background: linear-gradient(90deg, var(--bronze-600), var(--status-warning)); }
.mh-srv--img:hover .mh-media__img { filter: brightness(1) saturate(1); }
.mh-srv--img.is-iced:hover .mh-media__img { filter: grayscale(0.55) brightness(0.95) contrast(1.08); }
.mh-srv--img.mh-srv--full .mh-media__img { filter: saturate(0.6) brightness(0.8); }
.mh-srv--img.mh-srv--offline .mh-media__img { filter: grayscale(1) brightness(0.55); }
.mh-srv.is-iced { --fr-line: var(--ice-300); --fr-line-lo: var(--ice-700); --fr-orn: var(--ice-100); --fr-orn-lo: var(--ice-300); --fr-echo: rgba(156, 202, 226, 0.35); --fr-gem: var(--ice-100); --fr-c: var(--ice-900); --fr-m: color-mix(in srgb, var(--ice-900) 55%, var(--surface-000)); --fr-dirt: var(--ice-100); --fr-dirt-a: 0.04; }
.mh-srv.is-iced:hover, .mh-srv.is-iced.is-selected { --fr-line: var(--ice-100); --fr-c: var(--ice-900); }
.mh-srv.is-iced.is-selected { --fr-echo: rgba(223, 240, 249, 0.8); }
.mh-srv.is-iced .mh-srv__name { color: var(--ice-100); }
.mh-srv.is-iced .mh-srv__logo { border-color: var(--ice-300); }
/* featured: the ornate frame of the larger cartouches (braid and medallion on the top and bottom edges), a brighter gold outline with a soft glow, and a glint that runs along it. sponsored: a stitched second line in place of the solid one, no glow, so a paid placement reads as a labelled one. */
.mh-srv--featured { --fr-line: var(--gold-300); --fr-line-lo: var(--bronze-600); --fr-orn: var(--gold-100); --fr-orn-lo: var(--gold-400); --fr-gem: var(--gold-100); --fr-echo: rgba(251, 206, 160, 0.55); --fr-halo: rgba(0, 0, 0, 0.55); --fr-c: var(--surface-300); --fr-e: var(--surface-100); }
.mh-srv--featured { margin-block: var(--space-2); }
.mh-srv--featured .mh-frame__ln { stroke-width: 1; }
.mh-srv--featured > .mh-frame { filter: drop-shadow(0 0 4px rgba(240, 194, 122, 0.28)); }
.mh-srv--featured.is-selected > .mh-frame { filter: drop-shadow(0 0 8px rgba(240, 194, 122, 0.6)); }
.mh-srv--featured.is-selected .mh-frame__ln { stroke-width: 1.4; }
.mh-srv--featured.is-iced > .mh-frame { filter: drop-shadow(0 0 4px rgba(156, 202, 226, 0.35)); }
.mh-srv--featured .mh-srv__logo { border-color: var(--gold-100); }
.mh-srv--sponsored, .mh-srv--official { --fr-line: var(--gold-400); --fr-line-lo: var(--bronze-600); --fr-echo: rgba(232, 160, 90, 0.95); }
.mh-srv--sponsored .mh-frame__ec, .mh-srv--official .mh-frame__ec { stroke-dasharray: 4 3; }
.mh-srv--sponsored .mh-frame__ec { animation: mh-breathe 7.2s ease-in-out infinite; }
/* official: the same stitched line and colors as sponsored, held still at the middle of its breath, with no glow */
.mh-srv--official .mh-frame__ec { opacity: 0.75; }
/* the glow breathes with the stitched line, slowly (one breath every 7.2s): a warm amber halo around the silhouette (an inner tight halo and a wide soft one) that wanders between a quarter and three quarters of its full strength, so it never goes dark and never flares */
.mh-srv--sponsored > .mh-frame { animation: mh-glow 7.2s ease-in-out infinite; }
@keyframes mh-glow { 0%, 100% { filter: drop-shadow(0 0 3px rgba(237, 152, 73, 0.36)) drop-shadow(0 0 7px rgba(230, 129, 49, 0.21)); } 50% { filter: drop-shadow(0 0 5px rgba(239, 158, 78, 0.69)) drop-shadow(0 0 13px rgba(230, 126, 46, 0.44)); } }
.mh-srv--sponsored.is-selected .mh-frame__ec { stroke-dasharray: none; animation: none; }
.mh-srv--official.is-selected .mh-frame__ec { stroke-dasharray: none; opacity: 1; }
.mh-srv--sponsored.is-selected > .mh-frame { animation: none; filter: drop-shadow(0 0 7px rgba(240, 160, 80, 0.9)) drop-shadow(0 0 18px rgba(230, 125, 45, 0.6)); }
.mh-srv--sponsored .mh-srv__logo, .mh-srv--official .mh-srv__logo { border-color: var(--gold-300); }
/* reduced motion: no breathing, a static halo midway between the two ends. This block sits after the sponsored rules on purpose: at equal specificity the later rule wins. */
@media (prefers-reduced-motion: reduce) { .mh-srv--sponsored .mh-frame__ec { animation: none; } .mh-srv--sponsored > .mh-frame { animation: none; filter: drop-shadow(0 0 4px rgba(238, 155, 75, 0.52)) drop-shadow(0 0 10px rgba(230, 128, 48, 0.32)); } .mh-srv--sponsored.is-selected > .mh-frame { filter: drop-shadow(0 0 7px rgba(240, 160, 80, 0.9)) drop-shadow(0 0 18px rgba(230, 125, 45, 0.6)); } }
/* adult (+18) rows that are neither Featured nor Sponsored get a faint, static purple glow around the silhouette; the badge, not the glow, carries the meaning. The promotions keep their own effects. */
.mh-srv--adult:not(.mh-srv--featured):not(.mh-srv--sponsored) > .mh-frame { filter: drop-shadow(0 0 3px rgba(139, 92, 194, 0.45)) drop-shadow(0 0 9px rgba(139, 92, 194, 0.25)); }
.mh-srv--adult.is-selected:not(.mh-srv--featured):not(.mh-srv--sponsored) > .mh-frame { filter: drop-shadow(0 0 5px rgba(240, 194, 122, 0.4)) drop-shadow(0 0 11px rgba(139, 92, 194, 0.4)); }
.mh-srv--adult.is-iced.is-selected:not(.mh-srv--featured):not(.mh-srv--sponsored) > .mh-frame { filter: drop-shadow(0 0 5px rgba(156, 202, 226, 0.45)) drop-shadow(0 0 11px rgba(139, 92, 194, 0.4)); }
/* narrow lists: logo and name on top, the three figures in a row beneath; the header becomes a row of sort buttons */
@container (max-width: 700px) {
  .mh-srvlist__box { --mh-media-w: 160px; --srv-cols: var(--srv-lead) minmax(0, 1fr); }
  .mh-srvlist__head { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); padding-left: var(--srv-pad); }
  .mh-srvlist__lead { display: none; }
  .mh-srv { row-gap: var(--space-2); }
  .mh-srv__logo { grid-row: 1 / span 2; align-self: start; }
  .mh-srv__stats { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); position: relative; z-index: 1; }
  .mh-srv__main { flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
  .mh-srv__tags { height: auto; flex: 0 1 auto; }
}
@container (max-width: 460px) { .mh-srvlist__box { --mh-media-w: 130px; } }

/* ---------- ServerTable ---------- */
/* a DataTable filled in for servers: logo, name and badges in the first column, then tags, status, players and region. Promoted and +18 rows are marked by a wash that fades out to the right and a bar on the left edge; nothing in a row moves (staff scan this table all day), except the shine inside a Featured badge. */
/* the logo sits on the left; the name and its badges share a line while they fit and wrap under the name, not under the logo, when the table is narrow */
.mh-srvt__id { display: flex; align-items: center; gap: var(--space-3); }
.mh-srvt__text { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); min-width: 0; }
.mh-srvt__id .mh-badge { flex: none; }
.mh-srvt__logo { display: grid; place-items: center; box-sizing: border-box; flex: none; width: 32px; height: 32px; overflow: hidden; background: var(--surface-000); border: var(--border-hairline) solid var(--bronze-600); border-radius: var(--radius-sm); }
.mh-srvt__logoimg { display: block; width: 100%; height: 100%; object-fit: cover; }
.mh-srvt__mono { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1; color: var(--gold-300); }
.mh-srvt__name { min-width: 0; max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 20px; color: var(--gold-100); }
.mh-srvt__tags { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); max-width: 220px; }
.mh-srvt__tags .mh-chip { flex: none; }
.mh-srvt__none { color: var(--text-subtle); }
.mh-srvtable .mh-table th, .mh-srvtable .mh-table td { padding-left: var(--space-3); padding-right: var(--space-3); }
.mh-srvtable .mh-table th:first-child, .mh-srvtable .mh-table td:first-child { padding-left: var(--space-4); }
.mh-srvtable .mh-table th:last-child, .mh-srvtable .mh-table td:last-child { padding-right: var(--space-4); }
.mh-srvtable .mh-table th.mh-table__select, .mh-srvtable .mh-table td.mh-table__select { padding-right: 0; }
.mh-srvtable .mh-table th.mh-table__select + th, .mh-srvtable .mh-table td.mh-table__select + td { padding-left: var(--space-3); }
.mh-srvt__players, .mh-srvt__region { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.mh-srvt__players .mh-server__bar { flex: none; width: 40px; margin-top: 0; }
.mh-trow--full .mh-server__fill { background: linear-gradient(90deg, var(--bronze-600), var(--status-warning)); }
.mh-trow--offline .mh-srvt__name { color: var(--text-muted); }
.mh-trow--offline .mh-srvt__logoimg { filter: grayscale(1) brightness(0.6); }
.mh-trow--iced .mh-srvt__name { color: var(--ice-100); }
.mh-trow--iced .mh-srvt__logo { border-color: var(--ice-300); }
/* row marks: featured a gold bar and wash, sponsored a stitched amber bar and wash, official a stitched gold bar only, +18 (when not promoted) a purple bar and wash */
.mh-table tbody tr.mh-trow--featured:not(:hover):not(.is-selected):not(.mh-trow--img) { background: linear-gradient(90deg, rgba(251, 206, 160, 0.13), rgba(251, 206, 160, 0.05) 55%, rgba(251, 206, 160, 0)); }
.mh-table tbody tr.mh-trow--featured:not(.is-selected) td:first-child { box-shadow: inset 3px 0 0 var(--gold-100); }
.mh-trow--featured .mh-srvt__logo { border-color: var(--gold-100); }
.mh-table tbody tr.mh-trow--sponsored:not(:hover):not(.is-selected):not(.mh-trow--img) { background: linear-gradient(90deg, rgba(232, 160, 90, 0.11), rgba(232, 160, 90, 0.04) 55%, rgba(232, 160, 90, 0)); }
.mh-table tbody tr.mh-trow--sponsored:not(.is-selected) td:first-child { background: url("img/d3x8-6daac7.svg") left top / 3px 8px repeat-y; }
.mh-table tbody tr.mh-trow--official:not(.is-selected) td:first-child { background: url("img/d3x8-58a2b4.svg") left top / 3px 8px repeat-y; }
.mh-trow--sponsored .mh-srvt__logo, .mh-trow--official .mh-srvt__logo { border-color: var(--gold-300); }
.mh-table tbody tr.mh-trow--adult:not(:hover):not(.is-selected):not(.mh-trow--img) { background: linear-gradient(90deg, rgba(139, 92, 194, 0.16), rgba(139, 92, 194, 0.06) 55%, rgba(139, 92, 194, 0)); }
.mh-table tbody tr.mh-trow--adult:not(.is-selected) td:first-child { box-shadow: inset 3px 0 0 var(--purple-500); }
/* row pictures: the picture is the row's background (--mh-img), full strength at one edge and fading out under a veil of the page color (a horizontal sweep). The veil is measured from the edge: the picture is about a quarter strength where the name starts, under a sixth where the badges start, easing to 7% by the end of the name column and 3% at the far end, so every label keeps 4.5:1 even over a white picture. Hover and selection lift the veil. Iced rows take the cold tint; offline rows lose their color. A row with a picture drops the color wash that promoted and +18 rows get (the bar and badges stay). */
.mh-table tbody tr.mh-trow--img { --mh-veil: var(--surface-100); --mh-va: 0.08; --mh-vb: 0.2; --mh-vc: 0.5; --mh-vd: 0.72; --mh-ve: 0.85; --mh-vf: 0.93; --mh-vg: 0.97; --mh-tint: linear-gradient(transparent, transparent); --mh-blend: normal;
  background-color: transparent; background-repeat: no-repeat; background-size: 100% 100%, 100% 100%, cover; background-position: 0 0, 0 0, left center; background-blend-mode: normal, var(--mh-blend), normal;
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--mh-veil) calc(var(--mh-va) * 100%), transparent) 0, color-mix(in srgb, var(--mh-veil) calc(var(--mh-vb) * 100%), transparent) 24px, color-mix(in srgb, var(--mh-veil) calc(var(--mh-vc) * 100%), transparent) 48px, color-mix(in srgb, var(--mh-veil) calc(var(--mh-vd) * 100%), transparent) 60px, color-mix(in srgb, var(--mh-veil) calc(var(--mh-ve) * 100%), transparent) 100px, color-mix(in srgb, var(--mh-veil) calc(var(--mh-vf) * 100%), transparent) 330px, color-mix(in srgb, var(--mh-veil) calc(var(--mh-vg) * 100%), transparent) 100%), var(--mh-tint), var(--mh-img); }
.mh-table tbody tr.mh-trow--img-right { --mh-va: 0.1; background-position: 0 0, 0 0, right center;
  background-image: linear-gradient(270deg, color-mix(in srgb, var(--mh-veil) calc(var(--mh-va) * 100%), transparent) 0, color-mix(in srgb, var(--mh-veil) calc(var(--mh-vb) * 100%), transparent) 24px, color-mix(in srgb, var(--mh-veil) calc(var(--mh-vc) * 100%), transparent) 48px, color-mix(in srgb, var(--mh-veil) calc(var(--mh-vd) * 100%), transparent) 60px, color-mix(in srgb, var(--mh-veil) calc(var(--mh-ve) * 100%), transparent) 100px, color-mix(in srgb, var(--mh-veil) calc(var(--mh-vf) * 100%), transparent) 330px, color-mix(in srgb, var(--mh-veil) calc(var(--mh-vg) * 100%), transparent) 100%), var(--mh-tint), var(--mh-img); }
.mh-table tbody tr.mh-trow--img:hover, .mh-table tbody tr.mh-trow--img.is-selected { --mh-veil: var(--surface-200); --mh-va: 0; --mh-vb: 0.1; --mh-vc: 0.4; }
.mh-table tbody tr.mh-trow--img.mh-trow--iced { --mh-tint: linear-gradient(color-mix(in srgb, var(--ice-500) 70%, transparent), color-mix(in srgb, var(--ice-500) 70%, transparent)); --mh-blend: color; }
.mh-table tbody tr.mh-trow--img.mh-trow--offline { --mh-tint: linear-gradient(#777, #777); --mh-blend: saturation; --mh-vc: 0.7; --mh-vd: 0.84; --mh-ve: 0.9; }

/* ---------- ImagePanel ---------- */
.mh-imgp { position: relative; color: var(--text); font-family: var(--font-ui); --mh-media-w: 300px; --fr-halo: rgba(0, 0, 0, 0.55); --fr-line: var(--gold-400); --fr-line-lo: var(--bronze-600); --fr-orn: var(--gold-400); --fr-orn-lo: var(--bronze-600); }
.mh-imgp.is-iced { --fr-line: var(--ice-300); --fr-line-lo: var(--ice-700); --fr-orn: var(--ice-100); --fr-orn-lo: var(--ice-300); --fr-echo: rgba(156, 202, 226, 0.35); --fr-gem: var(--ice-100); --fr-c: var(--ice-900); --fr-m: color-mix(in srgb, var(--ice-900) 55%, var(--surface-000)); --fr-dirt: var(--ice-100); --fr-dirt-a: 0.04; }
.mh-imgp__inner { position: relative; display: flex; flex-direction: column; }
.mh-imgp--top .mh-media { width: 100%; }
.mh-imgp--left .mh-imgp__inner, .mh-imgp--right .mh-imgp__inner { min-height: 200px; justify-content: center; }
.mh-imgp--left .mh-media, .mh-imgp--right .mh-media { position: absolute; inset: 0; }
.mh-imgp__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); }
.mh-imgp--top .mh-imgp__body { border-top: var(--border-hairline) solid transparent; border-image: linear-gradient(90deg, transparent, var(--bronze-600) 12%, var(--bronze-600) 88%, transparent) 1; }
.mh-imgp.is-iced.mh-imgp--top .mh-imgp__body { border-image: linear-gradient(90deg, transparent, var(--ice-700) 12%, var(--ice-700) 88%, transparent) 1; }
.mh-imgp--left .mh-imgp__body { padding-left: calc(var(--mh-media-w) * 0.72 + var(--space-3)); }
.mh-imgp--right .mh-imgp__body { padding-right: calc(var(--mh-media-w) * 0.72 + var(--space-3)); }
.mh-imgp__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 24px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-100); }
.mh-imgp.is-iced .mh-imgp__title { color: var(--ice-100); }
.mh-imgp__text { margin: 0; font-size: 14px; line-height: 19.6px; color: var(--text-muted); }
.mh-imgp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }

/* ---------- FilePicker ---------- */
.mh-file__zone { position: relative; cursor: pointer; --fr-c: var(--surface-200); }
.mh-file__zone:hover { --fr-line: var(--gold-400); --fr-c: var(--surface-300); --fr-m: var(--surface-200); }
.mh-file__zone.is-drag { --fr-line: var(--gold-100); --fr-line-lo: var(--gold-400); --fr-orn: var(--gold-100); --fr-orn-lo: var(--gold-400); --fr-c: color-mix(in srgb, var(--surface-300), var(--gold-500) 24%); --fr-m: color-mix(in srgb, var(--surface-200), var(--gold-500) 10%); --fr-dirt: var(--gold-300); --fr-dirt-a: 0.1; --fr-echo: rgba(251, 206, 160, 0.4); --fr-gem: var(--gold-100); --fr-halo: rgba(29, 16, 3, 0.62); }
.mh-field.has-error .mh-file__zone { --fr-line: var(--status-danger); --fr-line-lo: var(--ember-600); --fr-gem: var(--status-danger); }
.mh-field.is-disabled .mh-file__zone { cursor: not-allowed; }
.mh-field.is-disabled .mh-file__zone:hover { --fr-line: var(--bronze-600); --fr-c: var(--surface-200); }
.mh-file__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-6) var(--space-5); text-align: center; }
.mh-file__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mh-file__glyph { flex: none; color: var(--gold-300); transition: transform 140ms, color 140ms; }
.mh-file__zone.is-drag .mh-file__glyph { color: var(--gold-100); transform: translateY(-3px); }
.mh-file__lead { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 22px; letter-spacing: 0.04em; color: var(--gold-100); }
.mh-file__rule { margin: 0; font-size: 12px; line-height: 16.8px; color: var(--text-muted); }
.mh-file__inner .mh-btn { margin-top: var(--space-2); }
.mh-file__zone.is-compact .mh-file__inner { flex-direction: row; text-align: left; gap: var(--space-4); padding: var(--space-4) var(--space-5); }
.mh-file__zone.is-compact .mh-file__text { flex: 1; }
.mh-file__zone.is-compact .mh-file__inner .mh-btn { margin-top: 0; }
.mh-file__list { margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.mh-file__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: var(--border-hairline) solid transparent; border-image: linear-gradient(90deg, var(--bronze-600), transparent) 1; }
.mh-file__item:last-child { border-bottom: 0; border-image: none; }
.mh-file__thumb { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; overflow: hidden; background: var(--surface-200); border: var(--border-hairline) solid var(--bronze-600); color: var(--gold-300); }
.mh-file__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mh-file__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 19.6px; font-weight: 600; color: var(--text); }
.mh-file__size { display: block; font-size: 12px; line-height: 16.8px; color: var(--text-muted); }
.mh-file__bar { display: block; height: 4px; margin-top: 4px; background: var(--surface-300); }
.mh-file__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--bronze-600), var(--gold-300)); }

@media (max-width: 960px) {
  .mh-server { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .mh-server__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-server--img { --mh-media-w: 200px; }
  .mh-imgp { --mh-media-w: 220px; }
}
@media (max-width: 560px) {
  .mh-server--img { --mh-media-w: 150px; }
  .mh-imgp { --mh-media-w: 160px; }
  .mh-file__zone.is-compact .mh-file__inner { flex-direction: column; text-align: center; }
}

/* ---------- Modal ---------- */
.mh-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--space-5); background: var(--scrim-50); }
.mh-modal--inline { position: absolute; z-index: 1; }
.mh-modal__dialog { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 480px; max-height: 100%; box-shadow: var(--shadow-lift); color: var(--text); font-family: var(--font-ui); }
.mh-modal__inner { position: relative; z-index: 1; display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; }
.mh-modal--danger .mh-modal__dialog { --fr-line: var(--status-danger); --fr-echo: rgba(232, 116, 59, 0.4); --fr-gem: var(--status-danger); }
.mh-modal__head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-6) var(--space-4) var(--space-5); border-bottom: var(--border-hairline) solid transparent; border-image: linear-gradient(90deg, transparent, var(--bronze-600) 12%, var(--bronze-600) 88%, transparent) 1; }
.mh-modal__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-100); }
.mh-modal--danger .mh-modal__title { color: var(--status-danger); }
.mh-modal__close { flex: none; margin: -2px -12px 0 0; padding: 4px 8px; border: 0; background: none; cursor: pointer; font-family: var(--font-ui); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-300); }
.mh-modal__close:hover { color: var(--gold-100); }
.mh-modal__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--space-5); font-size: 14px; line-height: 19.6px; color: var(--text-muted); }
.mh-modal__body p { margin: 0 0 var(--space-3); }
.mh-modal__body p:last-child { margin-bottom: 0; }
.mh-modal__foot { flex: none; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--space-4) var(--space-5); padding: var(--space-4) var(--space-5); border-top: var(--border-hairline) solid transparent; border-image: linear-gradient(90deg, transparent, var(--bronze-600) 12%, var(--bronze-600) 88%, transparent) 1; }

/* ---------- FanNotice ---------- */
.mh-fan { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) 0 0; border-top: var(--border-hairline) solid transparent; border-image: linear-gradient(90deg, var(--bronze-600) 55%, transparent) 1; font-family: var(--font-ui); font-size: 11px; line-height: 15.4px; color: var(--text-muted); }
.mh-fan p { margin: 0; max-width: 72ch; }
.mh-fan__links { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.mh-fan a { color: var(--gold-300); text-underline-offset: 3px; }
.mh-fan a:hover { color: var(--gold-100); }

/* ---------- Divider ornament (vector art; see bundle.js) ---------- */
.mh-orn { --orn: var(--bronze-600); --orn-hi: var(--gold-500); --orn-lo: var(--bronze-700); display: block; overflow: visible; pointer-events: none; flex: none; }
.mh-orn__bl { fill: var(--orn); }
.mh-orn__hi { fill: var(--orn-hi); }
.mh-orn__lo { fill: var(--orn-lo); }
.mh-orn__lz { fill: none; stroke: var(--orn); stroke-width: 1; }
.mh-orn__br { fill: none; stroke: var(--orn); stroke-width: 0.9; stroke-linecap: round; }

/* ---------- Scrollbars ---------- */
:root { color-scheme: dark; }
@supports not selector(::-webkit-scrollbar) {
  :root, .mh-scroll, .mh-scroll * { scrollbar-width: thin; scrollbar-color: var(--bronze-600) var(--surface-100); }
}
:root::-webkit-scrollbar,
.mh-scroll::-webkit-scrollbar,
.mh-scroll *::-webkit-scrollbar { width: 16px; height: 16px; background: var(--surface-100); }
:root::-webkit-scrollbar-track:vertical,
.mh-scroll::-webkit-scrollbar-track:vertical,
.mh-scroll *::-webkit-scrollbar-track:vertical { background: var(--surface-100); border-left: var(--border-hairline) solid var(--surface-300); }
:root::-webkit-scrollbar-track:horizontal,
.mh-scroll::-webkit-scrollbar-track:horizontal,
.mh-scroll *::-webkit-scrollbar-track:horizontal { background: var(--surface-100); border-top: var(--border-hairline) solid var(--surface-300); }
:root::-webkit-scrollbar-thumb:vertical,
.mh-scroll::-webkit-scrollbar-thumb:vertical,
.mh-scroll *::-webkit-scrollbar-thumb:vertical { min-height: 40px; border-style: solid; border-width: 6px 3px; border-image: url("img/d12x32-acc5ba.svg") 6 0 6 0 / 6px 3px 6px 3px stretch; background: url("img/d8x8-57b23e.svg") center / 6px 6px no-repeat, linear-gradient(90deg, var(--bronze-700), var(--bronze-600) 50%, var(--bronze-700)); background-clip: content-box; box-shadow: inset 1px 0 0 var(--gold-500), inset -1px 0 0 var(--gold-500); }
:root::-webkit-scrollbar-thumb:horizontal,
.mh-scroll::-webkit-scrollbar-thumb:horizontal,
.mh-scroll *::-webkit-scrollbar-thumb:horizontal { min-width: 40px; border-style: solid; border-width: 3px 6px; border-image: url("img/d32x12-0d7c9f.svg") 0 6 0 6 / 3px 6px 3px 6px stretch; background: url("img/d8x8-57b23e.svg") center / 6px 6px no-repeat, linear-gradient(90deg, var(--bronze-700), var(--bronze-600) 50%, var(--bronze-700)); background-clip: content-box; box-shadow: inset 0 1px 0 var(--gold-500), inset 0 -1px 0 var(--gold-500); }
:root::-webkit-scrollbar-thumb:hover,
.mh-scroll::-webkit-scrollbar-thumb:hover,
.mh-scroll *::-webkit-scrollbar-thumb:hover { filter: brightness(1.18); }
:root::-webkit-scrollbar-button:single-button,
.mh-scroll::-webkit-scrollbar-button:single-button,
.mh-scroll *::-webkit-scrollbar-button:single-button { display: none; width: 16px; height: 16px; background-color: var(--surface-100); background-repeat: no-repeat; background-position: center; background-size: 10px 10px; }
:root::-webkit-scrollbar-button:vertical:start:decrement,
.mh-scroll::-webkit-scrollbar-button:vertical:start:decrement,
.mh-scroll *::-webkit-scrollbar-button:vertical:start:decrement { display: block; background-image: url("img/d14x14-91035b.svg"); }
:root::-webkit-scrollbar-button:vertical:end:increment,
.mh-scroll::-webkit-scrollbar-button:vertical:end:increment,
.mh-scroll *::-webkit-scrollbar-button:vertical:end:increment { display: block; background-image: url("img/d14x14-6073b1.svg"); }
:root::-webkit-scrollbar-button:horizontal:start:decrement,
.mh-scroll::-webkit-scrollbar-button:horizontal:start:decrement,
.mh-scroll *::-webkit-scrollbar-button:horizontal:start:decrement { display: block; background-image: url("img/d14x14-950560.svg"); }
:root::-webkit-scrollbar-button:horizontal:end:increment,
.mh-scroll::-webkit-scrollbar-button:horizontal:end:increment,
.mh-scroll *::-webkit-scrollbar-button:horizontal:end:increment { display: block; background-image: url("img/d14x14-761782.svg"); }
:root::-webkit-scrollbar-button:hover,
.mh-scroll::-webkit-scrollbar-button:hover,
.mh-scroll *::-webkit-scrollbar-button:hover { background-color: var(--surface-300); }
:root::-webkit-scrollbar-corner,
.mh-scroll::-webkit-scrollbar-corner,
.mh-scroll *::-webkit-scrollbar-corner { background: var(--surface-100); }
textarea.mh-scroll::-webkit-resizer { background: url("img/d14x14-0ca336.svg") center / 10px 10px no-repeat var(--surface-100); }

/* ---------- TrustIcon ---------- */
.mh-trust { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; vertical-align: middle; cursor: help; color: var(--mh-trust); outline: 0; }
.mh-trust--approved, .mh-trusttip--approved { --mh-trust: #f5c542; }
.mh-trust--modio, .mh-trusttip--modio { --mh-trust: #3fcf8e; }
.mh-trust--unsigned, .mh-trusttip--unsigned { --mh-trust: #f26464; }
.mh-trust:focus-visible { outline: var(--border-strong) solid var(--focus); outline-offset: 0; }
.mh-trust__art { display: block; overflow: visible; transition: filter 120ms; }
.mh-trust--approved .mh-trust__art { filter: drop-shadow(0 0 3px rgba(245, 197, 66, 0.55)); }
.mh-trust--approved:hover .mh-trust__art, .mh-trust--approved:focus-visible .mh-trust__art { filter: drop-shadow(0 0 5px rgba(245, 197, 66, 0.85)); }
.mh-trust:hover .mh-trust__art, .mh-trust:focus-visible .mh-trust__art { filter: brightness(1.12); }
.mh-trust--approved:hover .mh-trust__art, .mh-trust--approved:focus-visible .mh-trust__art { filter: brightness(1.1) drop-shadow(0 0 5px rgba(245, 197, 66, 0.85)); }
.mh-trust__glint { animation: mh-trust-glint 4.8s ease-in-out infinite; }
@keyframes mh-trust-glint { 0%, 55% { transform: translateX(-4px); } 100% { transform: translateX(26px); } }
.mh-trusttip { position: fixed; z-index: 1200; box-sizing: border-box; width: max-content; max-width: 264px; padding: 10px 14px 12px; overflow: hidden; border: var(--border-hairline) solid var(--mh-trust); background: var(--surface-100); color: var(--text); font-family: var(--font-ui); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6); }
.mh-trusttip__t { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 18px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mh-trust); }
.mh-trusttip__t > svg { flex: none; }
.mh-trusttip__d { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--text); }
/* approved is the fancy one: a gold wash, a shimmering top edge, a four-point sparkle and a single glint when it opens */
.mh-trusttip--approved { background: linear-gradient(180deg, #33250a 0%, var(--surface-100) 75%); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 197, 66, 0.22), 0 0 18px rgba(245, 197, 66, 0.22); }
.mh-trusttip--approved::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #fff3c4, transparent); }
.mh-trusttip--approved::after { content: ""; position: absolute; right: 9px; top: 8px; width: 11px; height: 11px; background: #fff0b0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0.9; }
.mh-trusttip__shine { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 240, 176, 0.28), transparent); transform: skewX(-18deg); animation: mh-trust-sweep 1.1s ease-out 0.12s 1 both; }
@keyframes mh-trust-sweep { from { left: -40%; } to { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .mh-trust__glint, .mh-trusttip__shine { animation: none; display: none; } .mh-trust__art { transition: none; } }

/* ---------- FavoriteStar ---------- */
.mh-fav { display: inline-grid; place-items: center; flex: none; box-sizing: border-box; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; background: none; color: var(--gold-300); font: inherit; vertical-align: middle; }
button.mh-fav { cursor: pointer; }
.mh-fav--static { cursor: default; }
.mh-fav__svg { display: block; overflow: visible; transition: transform 0.12s ease; }
/* a dark halo under the star, so its gold reads on any row picture */
.mh-fav__halo { fill: var(--surface-100); fill-opacity: 0.1; stroke: var(--surface-100); stroke-width: 2.8; stroke-linejoin: round; stroke-opacity: 0.18; }
.mh-fav__dk, .mh-fav__lt { fill: transparent; }
.mh-fav__seam { fill: none; stroke: currentColor; stroke-width: 0.7; stroke-linecap: round; opacity: 0.3; }
.mh-fav__ln { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; opacity: 0.6; }
button.mh-fav:hover { color: var(--gold-100); }
button.mh-fav:hover .mh-fav__svg { transform: scale(1.14); }
button.mh-fav:hover .mh-fav__ln { opacity: 0.95; }
.mh-fav--on .mh-fav__dk { fill: var(--gold-300); }
.mh-fav--on .mh-fav__lt { fill: var(--gold-100); }
.mh-fav--on .mh-fav__seam { stroke: var(--bronze-600); opacity: 0.6; }
.mh-fav--on .mh-fav__ln { stroke: var(--surface-300); stroke-width: 1.2; opacity: 0.45; }
.mh-fav--on .mh-fav__svg { filter: drop-shadow(0 0 4px rgba(251, 206, 160, 0.5)); }
button.mh-fav:focus-visible { outline: var(--border-strong) solid var(--focus); outline-offset: 1px; }
.mh-fav--pop .mh-fav__svg { animation: mh-fav-pop 0.32s ease-out; }
@keyframes mh-fav-pop { 0% { transform: scale(0.7) rotate(-18deg); } 55% { transform: scale(1.28) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .mh-fav__svg { transition: none; } .mh-fav--pop .mh-fav__svg { animation: none; } }
.mh-srvtable .mh-table th.mh-srvt__favcol, .mh-srvtable .mh-table td.mh-srvt__favcol { padding-left: var(--space-3); padding-right: 0; }
.mh-srvtable .mh-table th.mh-srvt__favcol + th, .mh-srvtable .mh-table td.mh-srvt__favcol + td { padding-left: var(--space-1); }

/* Forced colors (a Windows contrast theme; plan 38 section 13.1, platform/app/scripts/forced.mjs). The theme turns a
   transparent edge solid and every fill into its Canvas, so a state shown only by an edge's color or by a fill would
   be lost: each comes back here in the theme's own colors. A check box's tick is drawn with borders and keeps itself. */
@media (forced-colors: active) {
  .mh-tab { border-bottom-color: Canvas; }
  .mh-tab.is-active { border-bottom-color: Highlight; }
  .mh-switch__track::after { background: CanvasText; }
  .mh-switch__input:checked + .mh-switch__track { background: Highlight; border-color: Highlight; }
  .mh-switch__input:checked + .mh-switch__track::after { background: HighlightText; }
  .mh-field--underline .mh-field__control:focus-within { outline: var(--border-strong) solid Highlight; outline-offset: 2px; }
}
