/* MOVE.B participant space: on top of the theme's styles (cards, buttons, forms) */
.mbp .notice { margin-bottom: 18px; }
.mbp-top { padding-top: 40px; }
.mbp-login { max-width: 520px; padding: 28px; }
.mbp-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.mbp-row input { flex: 1; min-width: 220px; }
.mbp-check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.mbp-check input { width: auto; }
.mbp-login .field { position: relative; }
.mbp-show { position: absolute; right: 12px; bottom: 11px; font-size: 13px; }
.mbp-login .field:has(.mbp-hint) .mbp-show { bottom: 33px; }
.mbp-hint { display: block; min-height: 1.4em; margin-top: 4px; }
.mbp-key-error, .mbp-file-error { color: #b42318; margin: 8px 0 0; }
.mbp-small { font-size: 13px; }
.mbp-sessions { display: flex; flex-direction: column; gap: 20px; }
.mbp-session { padding: 26px; gap: 16px; }
.mbp-session-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.mbp-session h2 { font-size: 22px; margin-top: 4px; }
.mbp-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mbp-file { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 14px; border: 1px solid var(--line, #dde4ef); border-radius: 10px; background: var(--bg, #f6f8fc); }
.mbp-file-actions { display: flex; gap: 6px; flex-shrink: 0; }
.mbp-file-name { min-width: 0; overflow-wrap: anywhere; }
.mbp-file-name small { color: var(--dim, #7c879f); margin-left: 6px; }
.mbp-file-error { flex-basis: 100%; margin: 0; }
.mbp-kind { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: #e9edf5; color: #4a5470; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; vertical-align: 1px; }
.mbp-certificate .mbp-kind { background: var(--signal, #0a9fd4); color: #fff; }
.mbp-slides .mbp-kind { background: #e6f5fb; color: #06739f; }
.mbp-state { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; letter-spacing: 0.04em; background: #e9edf5; color: #4a5470; }
.mbp-state.mbp-now { background: #e3f5ea; color: #1f7a48; }
.mbp-state.mbp-soon { background: #e6f5fb; color: #06739f; }
.mbp-ready { margin: 0; font-weight: 600; color: #1f7a48; }
.mbp-certificate { border-color: color-mix(in srgb, var(--signal, #0a9fd4) 45%, white); background: color-mix(in srgb, var(--signal, #0a9fd4) 6%, white); }
.mbp-eval summary { list-style: none; cursor: pointer; display: inline-flex; }
.mbp-eval summary::-webkit-details-marker { display: none; }
.mbp-eval form { margin-top: 16px; }
.mbp-scale { border: 0; margin: 0 0 18px; padding: 0; max-width: 760px; }
.mbp-scale legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.mbp-q { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line, #dde4ef); font-size: 14.5px; }
.mbp-q abbr { color: #b42318; text-decoration: none; }
.mbp-marks { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.mbp-marks label { position: relative; margin: 0; cursor: pointer; }
.mbp-marks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mbp-marks span { display: inline-grid; place-items: center; min-width: 38px; height: 34px; padding: 0 10px; border: 1px solid var(--line, #dde4ef); border-radius: 8px; background: #fff; font-size: 14px; }
.mbp-marks label:hover span { border-color: var(--signal, #0a9fd4); }
.mbp-marks input:checked + span { background: var(--ink, #121539); border-color: var(--ink, #121539); color: #fff; font-weight: 600; }
.mbp-marks input:focus-visible + span { outline: 2px solid var(--signal, #0a9fd4); outline-offset: 2px; }
.mbp-levels span { min-width: 0; font-size: 13px; }
@media (max-width: 600px) { .mbp-q { flex-direction: column; align-items: flex-start; } }
.mbp-link { background: none; border: 0; padding: 0; color: var(--signal-text, #0679a8); cursor: pointer; font: inherit; }
.mbp-foot { margin-top: 24px; }

/* slides reader */
.mbp-back { font-size: 14px; margin-bottom: 14px; }
.mbp-reader { background: #2a2f45; border-radius: 14px; overflow: hidden; }
.mbp-reader:fullscreen { overflow: auto; border-radius: 0; }
.mbp-toolbar { position: sticky; top: 76px; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: #1d2135; color: #e6e8f5; }
.mbp-reader:fullscreen .mbp-toolbar { top: 0; }
.mbp-title { flex: 1; min-width: 160px; font-size: 14px; }
.mbp-counter { font: 500 13px/1 var(--mono, monospace); color: #b8bdd8; }
.mbp-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mbp-goto { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 0 0; font-size: 13px; color: #b8bdd8; }
.mbp-goto input { width: 64px; padding: 4px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; font: inherit; }
.mbp-toolbar .btn-ghost { background: transparent; color: #e6e8f5; border-color: rgba(255, 255, 255, 0.25); }
.mbp-status { padding: 40px 16px; text-align: center; color: #c9ccf5; }
.mbp-pages { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px; user-select: none; -webkit-user-select: none; }
.mbp-page { max-width: 100%; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); }
.mbp-page canvas { display: block; max-width: 100%; height: auto !important; }
@media print { .mbp-reader, .mbp-reading { display: none !important; } }

/* managed online (/manage/, assets/manage.js): an application of its own, its menu on the left */
body.mbm-app { background: var(--bg, #f6f8fc); }
html:has(body.mbm-app) { margin-top: 0 !important; }   /* the admin bar's room, though the bar is not shown here */
.mbm-loading { padding: 40px; }
.mbm-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.mbm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--ink, #121539); color: #c9cde6; overflow-y: auto; z-index: 60; }
.mbm-brand { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 14px; text-decoration: none; }
.mbm-brand img { width: 120px; height: auto; display: block; }
.mbm-brand span { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8a90b8; }
.mbm-nav { flex: 1; padding: 4px 10px 16px; }
.mbm-nav-group + .mbm-nav-group { margin-top: 14px; }
.mbm-nav-title { padding: 6px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #7d84ad; }
.mbm-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #d6d9ef; text-decoration: none; font-size: 14px; line-height: 1.3; }
.mbm-nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.mbm-nav a.on { background: rgba(255, 255, 255, 0.13); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--signal, #0a9fd4); }
.mbm-nav a:focus-visible { outline: 2px solid var(--signal, #0a9fd4); outline-offset: -2px; }
.mbm-nav-icon { width: 18px; text-align: center; opacity: 0.75; flex: none; }
.mbm-nav-label { flex: 1; }
.mbm-nav-count { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--signal, #0a9fd4); color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; }
.mbm-side-foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; }
.mbm-me { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 8px; }
.mbm-me .mbm-avatar { width: 28px; height: 28px; font-size: 11px; }
.mbm-side-links { display: flex; gap: 14px; }
.mbm-side-links a { color: #a9aed0; }
.mbm-side-links a:hover { color: #fff; }
.mbm-scrim { display: none; }
.mbm-content { min-width: 0; display: flex; flex-direction: column; }
.mbm-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 12px 32px; background: rgba(246, 248, 252, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line, #dde4ef); }
.mbm-burger { display: none; border: 1px solid var(--line, #dde4ef); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 18px; cursor: pointer; }
.mbm-crumbs { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted, #5b6782); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbm-crumbs > span:last-child { color: var(--ink, #121539); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.mbm-search-btn { display: inline-flex; align-items: center; gap: 8px; min-width: 220px; padding: 7px 10px 7px 12px; border: 1px solid var(--line, #dde4ef); border-radius: 10px; background: #fff; color: var(--muted, #5b6782); font: inherit; font-size: 13.5px; cursor: pointer; }
.mbm-search-btn:hover { border-color: var(--line-strong, #c3cfe0); }
.mbm-search-btn kbd { margin-left: auto; padding: 1px 6px; border: 1px solid var(--line, #dde4ef); border-radius: 5px; font: 11px/1.5 var(--mono, monospace); background: var(--bg, #f6f8fc); }
.mbm-pills { display: flex; gap: 6px; align-items: center; }
.mbm-pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line, #dde4ef); background: #fff; font-size: 13px; color: var(--ink, #121539); text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none; }
.mbm-pill::-webkit-details-marker { display: none; }
.mbm-pill.ok { background: #e3f5ea; border-color: #bfe5cd; color: #1f7a48; }
.mbm-pill.warn { background: #fff3e0; border-color: #f3dcb5; color: #8a4b00; cursor: help; }
.mbm-pill.ko { background: #fde8e8; border-color: #f5c6c6; color: #b42318; }
.mbm-pill-menu { position: relative; }
.mbm-pill-menu .mbm-menu-list { width: 240px; }
.mbm-pill-menu .mbm-menu-list p { margin: 4px 6px 2px; }
.mbm-page { padding: 28px 32px 64px; max-width: 1360px; width: 100%; box-sizing: border-box; }
.mbm-content > .notice { margin: 16px 32px 0; }
.mbm h1 { font-size: 26px; margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mbm .mbm-page > div > .mbm-head:first-child p { margin: 0; }
@media (max-width: 900px) {
  .mbm-shell { grid-template-columns: 1fr; }
  .mbm-side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform 0.2s; }
  .mbm-shell.nav-open .mbm-side { transform: none; }
  .mbm-shell.nav-open .mbm-scrim { display: block; position: fixed; inset: 0; z-index: 55; border: 0; background: rgba(18, 21, 57, 0.4); }
  .mbm-burger { display: inline-block; }
  .mbm-top { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .mbm-pills { flex-wrap: wrap; min-width: 0; }
  .mbm-search-btn { min-width: 0; }
  .mbm-search-btn span:not([aria-hidden]), .mbm-search-btn kbd { display: none; }
  .mbm-page { padding: 20px 16px 48px; }
  .mbm-content > .notice { margin: 12px 16px 0; }
}
@media (prefers-reduced-motion: reduce) { .mbm-side { transition: none; } }
/* Home */
.mbm-hello { margin-bottom: 18px; }
.mbm-hello p { margin: 0; }
.mbm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .mbm-tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
.mbm-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line, #dde4ef); color: var(--muted, #5b6782); text-decoration: none; font-size: 13.5px; transition: border-color 0.15s, box-shadow 0.15s; }
.mbm-tile strong { font-size: 28px; line-height: 1.1; color: var(--ink, #121539); }
.mbm-tile:hover { border-color: var(--line-strong, #c3cfe0); box-shadow: var(--shadow); }
.mbm-tile.warn { border-color: #f3dcb5; background: #fffaf2; }
.mbm-tile.warn strong { color: #a35a00; }
.mbm-home-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .mbm-home-grid { grid-template-columns: 1fr; } }
.mbm-home-card { padding: 20px 22px; }
.mbm-home-card h2 { font-size: 18px; }
.mbm-home-card .mbm-head { margin-bottom: 6px; align-items: center; }
.mbm-tasks { list-style: none; margin: 0; padding: 0; }
.mbm-task { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line, #dde4ef); font-size: 14px; }
.mbm-task:first-child { border-top: 0; }
.mbm-task-mark { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong, #c3cfe0); }
.mbm-task.warn .mbm-task-mark { background: #e08a00; }
.mbm-task.new .mbm-task-mark { background: var(--signal, #0a9fd4); }
.mbm-task-text { flex: 1; min-width: 0; }
.mbm-task-do { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mbm-done { margin: 8px 0; color: #1f7a48; font-weight: 600; }
.mbm-coming { list-style: none; margin: 0; padding: 0; }
.mbm-coming li + li { border-top: 1px solid var(--line, #dde4ef); }
.mbm-coming a { display: block; padding: 11px 8px; margin: 0 -8px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 14px; }
.mbm-coming a:hover { background: var(--bg, #f6f8fc); }
.mbm-coming-when { font-size: 12.5px; color: var(--muted, #5b6782); }
.mbm-coming .mbm-title { font-weight: 600; color: var(--ink, #121539); }
.mbm-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbm-nowrap { white-space: nowrap; }
/* where a session stands, in pills */
.mbm-readies { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.mbm-ready { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #fff3e0; color: #a35a00; white-space: nowrap; }
.mbm-ready.ok { background: #e3f5ea; color: #1f7a48; }
/* a session's parts */
.mbm-subtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line, #dde4ef); margin: 6px 0 18px; overflow-x: auto; }
.mbm-subtabs a { padding: 10px 14px; font-size: 14px; color: var(--muted, #5b6782); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.mbm-subtabs a:hover { color: var(--ink, #121539); }
.mbm-subtabs a.on { color: var(--ink, #121539); font-weight: 600; border-bottom-color: var(--signal, #0a9fd4); }
/* chosen rows, and what is done to them */
.mbm-pick { width: 28px; }
.mbm-pick input { width: auto; margin: 0; }
.mbm-table tr.picked td { background: #f0f8fc; }
.mbm-bulk { position: sticky; top: 64px; z-index: 30; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--ink, #121539); color: #fff; }
.mbm-bulk[hidden] { display: none; }
.mbm-bulk strong { margin-right: 6px; font-size: 14px; }
.mbm-bulk .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.mbm-filters select { width: auto; max-width: 260px; padding: 8px 10px; font-size: 14px; }
/* requests */
.mbm-requests { display: flex; flex-direction: column; gap: 10px; }
.mbm-request.new { border-left: 4px solid var(--signal, #0a9fd4); }
.mbm-request-head { display: flex; align-items: center; gap: 8px; }
.mbm-request-fields { margin-top: 8px; }
.mbm-empty-box { padding: 36px; text-align: center; color: var(--muted, #5b6782); border: 1px dashed var(--line-strong, #c3cfe0); border-radius: 12px; background: #fff; }
/* the questions asked in the page (instead of confirm()), red when they delete */
.mbm-modal .card.mbm-ask { max-width: 480px; }
.mbm-ask h2 { font-size: 19px !important; }
.mbm-ask p { margin: 0; }
.mbm-ask-list { margin: 0; padding-left: 18px; max-height: 240px; overflow-y: auto; font-size: 14px; }
.btn-danger { background: #b42318; color: #fff; border-color: #b42318; }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
.btn-danger:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.mbm-danger-text { color: #b42318; }
.mbm-toast-action { border: 0; background: rgba(255, 255, 255, 0.18); color: #fff; font: inherit; font-weight: 700; padding: 4px 12px; border-radius: 8px; cursor: pointer; }
.mbm-toast-action:hover { background: rgba(255, 255, 255, 0.3); }
/* search everything */
.mbm-modal:has(.mbm-palette) { place-items: start center; padding-top: 12vh; }
.mbm-palette { width: 100%; max-width: 640px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(18, 21, 57, 0.55); }
.mbm-palette > input { border: 0; border-bottom: 1px solid var(--line, #dde4ef); border-radius: 0; padding: 16px 18px; font-size: 16px; outline: none; box-shadow: none; }
.mbm-palette-list { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.mbm-palette-list li { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.mbm-palette-list li.on { background: #e8f4fb; }
.mbm-palette-kind { flex: none; width: 92px; font-size: 11.5px; font-weight: 600; color: var(--muted, #5b6782); text-transform: uppercase; letter-spacing: 0.04em; }
.mbm-palette-text { min-width: 0; display: flex; flex-direction: column; }
.mbm-palette-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbm-palette-text .muted { font-size: 12.5px; }
.mbm-palette-none { cursor: default !important; }
.mbm-palette-foot { padding: 8px 16px; border-top: 1px solid var(--line, #dde4ef); font-size: 12px; }
.mbm-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.mbm-filters input[type=search] { flex: 1; min-width: 220px; max-width: 420px; }
a.mbm-title { font-weight: 600; color: var(--ink, #121539); }
.mbm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mbm-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.mbm-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 14px; }
/* where a session stands */
.mbm-steps-card { padding: 16px 20px; margin-bottom: 18px; }
.mbm-steps-card ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mbm-steps-card li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14.5px; }
.mbm-step-mark { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; background: #fff3e0; color: #a35a00; flex: none; }
.mbm-steps-card li.done .mbm-step-mark { background: #e3f5ea; color: #1f7a48; }
.mbm-steps-card .mbp-row { margin-top: 4px; }
/* a row's rarer actions */
.mbm-menu { position: relative; text-align: left; }
.mbm-menu > summary { list-style: none; cursor: pointer; padding: 3px 10px; border: 1px solid var(--line, #dde4ef); border-radius: 8px; font-weight: 700; line-height: 1.4; }
.mbm-menu > summary::-webkit-details-marker { display: none; }
.mbm-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; gap: 4px; padding: 6px; min-width: 190px; background: #fff; border: 1px solid var(--line, #dde4ef); border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(18, 21, 57, 0.4); }
.mbm-menu-list .btn { justify-content: flex-start; white-space: nowrap; }
/* invitations */
.mbm-invites { max-height: calc(100vh - 32px); overflow-y: auto; }
.mbm-invite-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mbm-invite-list li { padding-bottom: 12px; border-bottom: 1px solid var(--line, #dde4ef); }
.mbm-sent { color: #1f7a48; font-size: 13px; font-weight: 600; }
/* evaluations */
.mbm-eval-sum { font-size: 14.5px; }
.mbm-score { display: inline-block; min-width: 26px; padding: 1px 6px; border-radius: 6px; text-align: center; font-weight: 600; font-size: 13px; }
.mbm-score.s1, .mbm-score.s2 { background: #fde8e8; color: #b42318; }
.mbm-score.s3 { background: #fff3e0; color: #a35a00; }
.mbm-score.s4, .mbm-score.s5 { background: #e3f5ea; color: #1f7a48; }
.mbm-evals tfoot th, .mbm-evals tfoot td { padding: 9px 10px; border-top: 2px solid var(--line, #dde4ef); }
.mbm-composer-note { margin: 0; padding: 8px 16px 0; }
/* what is happening: busy, done, or what went wrong */
.mbm-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px; background: var(--ink, #121539); color: #fff; font-size: 14px; line-height: 1.4; box-shadow: 0 18px 40px -16px rgba(18, 21, 57, 0.55); }
.mbm-toast[hidden] { display: none; }
.mbm-toast.ok { background: #1f7a48; }
.mbm-toast.ko { background: #b42318; }
.mbm-toast.busy::before { content: ''; flex: none; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: mbm-spin 0.8s linear infinite; }
.mbm-toast progress { width: 110px; height: 6px; accent-color: #fff; flex: none; }
.mbm-toast .mbm-x { margin-left: 0; font-size: 20px; }
@keyframes mbm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mbm-toast.busy::before { animation: none; } }
.mbm-panel { padding: 24px; margin-bottom: 24px; max-width: 640px; }
.mbm-panel h2, .mbm h2 { font-size: 22px; }
.mbm h3 { font-size: 18px; margin: 28px 0 10px; }
.mbm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.mbm-head input[type=search] { max-width: 320px; }
.mbm-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.mbm-table th { text-align: left; font-weight: 600; color: var(--dim, #5b6782); font-size: 12.5px; padding: 8px 10px; border-bottom: 2px solid var(--line, #dde4ef); }
.mbm-table td { padding: 9px 10px; border-bottom: 1px solid var(--line, #dde4ef); vertical-align: top; }
.mbm-table .muted { font-size: 12.5px; }
.mbm-click { cursor: pointer; }
.mbm-click:hover { background: var(--bg, #f6f8fc); }
.mbm-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
td.mbm-actions { display: table-cell; text-align: right; }   /* a cell stays a cell: its row's lines meet */
td.mbm-actions > * { display: inline-block; vertical-align: middle; margin: 0 0 4px 6px; }
.mbm-badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef1f7; color: #4a5470; white-space: nowrap; }
.mbm-badge.site { background: #e6f5fb; color: #06739f; }
.mbm-badge.ok { background: #e3f5ea; color: #1f7a48; }
.mbm-badge.warn { background: #fff3e0; color: #a35a00; }
.mbm-badge.ko { background: #fde8e8; color: #b42318; }
.mbm-badge.alias { background: #efeafd; color: #5b3fb5; }
.mbm-form { margin: 12px 0; }
.mbm-form summary { list-style: none; cursor: pointer; display: inline-flex; }
.mbm-form summary::-webkit-details-marker { display: none; }
.mbm-form .card { margin-top: 12px; padding: 22px; max-width: 760px; }
.mbm-modal { position: fixed; inset: 0; background: rgba(18, 21, 57, 0.45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.mbm-modal .card { max-width: 640px; width: 100%; padding: 26px; }
.mbm-pair { max-width: 420px !important; text-align: center; }
.mbm-qr { width: 280px; max-width: 100%; margin: 12px auto; }
.mbm-qr svg { width: 100%; height: auto; display: block; }
.mbm-phones { margin-top: 32px; }
.mbm-features { display: grid; gap: 14px; padding: 20px; margin-bottom: 16px; }
.mbm-feature { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.mbm-feature input { margin-top: 4px; }
.mbm-feature > span { display: grid; gap: 2px; }
.mbm-phones > .btn { margin-top: 14px; }
.mbm-key { white-space: pre-wrap; word-break: break-all; background: var(--bg, #f6f8fc); padding: 12px; border-radius: 8px; font-size: 13px; }
.mbm-text { white-space: pre-wrap; font: inherit; font-size: 13px; margin: 0; }
.mbm-scroll { overflow-x: auto; }
.mbm-request { padding: 14px 18px; margin-bottom: 10px; }
.mbm-request summary { cursor: pointer; }
.mbm-suggest { display: flex; flex-direction: column; gap: 4px; margin: -6px 0 14px; max-height: 320px; overflow-y: auto; }
.mbm-suggest-item { display: flex; justify-content: space-between; gap: 12px; text-align: left; border: 1px solid var(--line, #dde4ef); background: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.mbm-suggest-item:hover { border-color: var(--signal, #0a9fd4); background: var(--bg, #f6f8fc); }
.mbm-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mbm textarea { width: 100%; }
/* Emails (manage.js): a mail window, the mailbox next to each person's file */
.mbm-win { --win-line: var(--line, #dde4ef); display: flex; flex-direction: column; height: clamp(560px, calc(100vh - 150px), 920px); background: #fff; border: 1px solid var(--win-line); border-radius: 14px; box-shadow: 0 18px 50px -24px rgba(18, 21, 57, 0.35); overflow: hidden; }
.mbm-win.full { position: fixed; inset: 12px; height: auto; z-index: 90; }
body.mbm-noscroll { overflow: hidden; }
.mbm-wintool { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--win-line); background: linear-gradient(180deg, #fbfcfe, #f4f6fb); }
.mbm-wintool-end { display: flex; gap: 6px; margin-left: auto; }
.mbm-winsearch { flex: 1 1 220px; max-width: 420px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--win-line); font: inherit; font-size: 14px; background: #fff; }
.mbm-alias { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--win-line); font: inherit; font-size: 13.5px; background: #fff; max-width: 220px; }
.mbm-seg { display: inline-flex; background: #e9edf5; border-radius: 999px; padding: 3px; }
.mbm-seg button { border: 0; background: none; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13.5px; color: #4a5470; cursor: pointer; }
.mbm-seg button.on { background: #fff; color: var(--ink, #121539); font-weight: 600; box-shadow: 0 1px 3px rgba(18, 21, 57, 0.15); }
.mbm-winnote { padding: 8px 16px; font-size: 13px; background: #fff8ec; color: #8a4b00; border-bottom: 1px solid #f3e1c2; }
.mbm-panes { display: grid; grid-template-columns: minmax(270px, 360px) 1fr; flex: 1; min-height: 0; }
.mbm-list { overflow-y: auto; border-right: 1px solid var(--win-line); background: #fafbfd; }
.mbm-main { overflow-y: auto; min-width: 0; }
.mbm-pad { padding: 14px 16px; margin: 0; }
.mbm-item { display: flex; gap: 11px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #edf0f6; background: none; padding: 11px 14px; font: inherit; font-size: 14px; color: inherit; cursor: pointer; position: relative; }
.mbm-item:hover { background: #f1f4fa; }
.mbm-item.on { background: #e8f4fb; }
.mbm-item.on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--signal, #0a9fd4); }
.mbm-item.unread .mbm-item-subject, .mbm-item.unread strong { font-weight: 700; color: var(--ink, #121539); }
.mbm-item.unread .mbm-item-body { padding-right: 12px; }
.mbm-item.unread::after { content: ""; position: absolute; right: 12px; bottom: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--signal, #0a9fd4); }
.mbm-item-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mbm-item-top { display: flex; align-items: baseline; gap: 6px; }
.mbm-item-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mbm-item-date { margin-left: auto; flex: none; font-size: 12px; color: var(--dim, #5b6782); }
.mbm-item-subject { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbm-item-line { font-size: 12.5px; color: var(--dim, #5b6782); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbm-count { font-size: 11.5px; color: var(--dim, #5b6782); background: #e9edf5; border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.mbm-tags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.mbm-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; background: hsl(var(--hue, 220) 55% 92%); color: hsl(var(--hue, 220) 45% 30%); }
.mbm-avatar.big { width: 56px; height: 56px; font-size: 20px; }
.mbm-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--win-line, #dde4ef); background: #fff; border-radius: 999px; padding: 3px 10px 3px 3px; font: inherit; font-size: 12.5px; cursor: pointer; }
span.mbm-chip { padding: 3px 10px; cursor: default; }
.mbm-chip .mbm-avatar { width: 22px; height: 22px; font-size: 9.5px; }
.mbm-chip:hover { border-color: var(--signal, #0a9fd4); }
.mbm-empty { height: 100%; display: grid; place-content: center; text-align: center; color: var(--dim, #5b6782); padding: 24px; }
.mbm-empty-icon { font-size: 44px; opacity: 0.35; margin-bottom: 6px; }
.mbm-thread { padding: 20px 24px 28px; }
.mbm-thread-head h2 { font-size: 21px; margin: 4px 0 8px; }
.mbm-site { margin: 14px 0 6px; padding: 12px 14px; border-radius: 10px; background: #f0f8fc; border: 1px solid #d3ebf6; font-size: 13.5px; }
.mbm-site ul { margin: 6px 0; padding-left: 18px; }
.mbm-site-who { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mbm-msg { border: 1px solid var(--win-line); border-radius: 12px; margin-top: 12px; background: #fff; }
.mbm-msg.ours { background: #fbfcff; }
.mbm-msg header { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; cursor: pointer; font-size: 14px; }
.mbm-msg-who { min-width: 0; flex: 1; }
.mbm-msg-to { font-size: 12.5px; display: none; }
.mbm-msg-snippet { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbm-msg-body { display: none; padding: 0 16px 16px 59px; }
.mbm-msg.open .mbm-msg-body, .mbm-msg.open .mbm-msg-to { display: block; }
.mbm-msg.open .mbm-msg-snippet { display: none; }
.mbm-msg-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.55; }
.mbm-quoted summary { list-style: none; display: inline-block; cursor: pointer; margin: 8px 0 4px; padding: 0 8px; border-radius: 6px; background: #e9edf5; color: #4a5470; font-size: 12px; line-height: 1.6; }
.mbm-quoted summary::-webkit-details-marker { display: none; }
.mbm-quoted .mbm-msg-text { color: var(--dim, #5b6782); font-size: 13.5px; border-left: 3px solid #e1e6f0; padding-left: 12px; }
.mbm-thread-foot { margin-top: 16px; display: flex; gap: 8px; }
.mbm-file { padding: 22px 24px 28px; }
.mbm-file-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.mbm-file-who { flex: 1; min-width: 0; }
.mbm-file-who h2 { margin: 0 0 2px; font-size: 21px; overflow-wrap: anywhere; }
.mbm-timeline { list-style: none; margin: 0; padding: 0; }
.mbm-timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 11px 8px; border-top: 1px solid var(--win-line); font-size: 14px; border-radius: 6px; }
.mbm-timeline li > div { min-width: 0; }
.mbm-when { color: var(--dim, #5b6782); font-size: 12.5px; padding-top: 2px; }
.mbm-modal .mbm-composer { width: 100%; max-width: 760px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(18, 21, 57, 0.55); }
.mbm-modal .mbm-composer.wide { max-width: 980px; height: calc(100vh - 32px); }
.mbm-composer-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ink, #121539); color: #fff; font-size: 14.5px; }
.mbm-composer-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbm-x { margin-left: auto; border: 0; background: none; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; opacity: 0.8; }
.mbm-x:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.mbm-x.small { font-size: 16px; color: var(--dim, #5b6782); margin-left: 0; }
.mbm-x.small:hover { background: #f1f4fa; }
.mbm-composer-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 16px; border-bottom: 1px solid #edf0f6; font-size: 14px; }
.mbm-composer-row > span:first-child { width: 58px; flex: none; color: var(--dim, #5b6782); font-size: 13px; }
.mbm .mbm-composer-row input, .mbm-composer-row input { flex: 1; border: 0; border-radius: 0; padding: 11px 0; font: inherit; background: none; outline: none; box-shadow: none; }
.mbm-from { padding: 11px 0; color: #4a5470; }
.mbm .mbm-composer-row select.mbm-from-select, .mbm-composer-row select.mbm-from-select { flex: 1; min-width: 0; border: 0; padding: 10px 0; font: inherit; color: #4a5470; background: none; outline: none; }
.mbm-composer-tools { display: flex; gap: 12px; flex-wrap: wrap; padding: 9px 16px; background: #f7f9fc; border-bottom: 1px solid #edf0f6; }
.mbm-composer-tools label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim, #5b6782); flex: 1 1 220px; min-width: 0; margin: 0; }
.mbm-composer-tools select { flex: 1; min-width: 0; font: inherit; font-size: 13.5px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line, #dde4ef); background: #fff; }
.mbm-composer-body { font-weight: 400; flex: 1; min-height: 260px; width: 100%; border: 0; border-radius: 0; resize: none; padding: 14px 16px; font: inherit; font-size: 14.5px; line-height: 1.55; outline: none; box-shadow: none; }
.mbm-composer-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid #edf0f6; flex-wrap: wrap; }
.mbm-missing { color: #b42318; font-size: 13px; }
.mbm-missing:empty { display: none; }
.mbm-sign { font-size: 12.5px; margin-left: auto; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbm-tpl { display: grid; grid-template-columns: 260px 1fr; min-height: 0; flex: 1; overflow: hidden; }
.mbm-tpl-list { overflow-y: auto; border-right: 1px solid #edf0f6; background: #fafbfd; }
.mbm-tpl-group { padding: 12px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim, #5b6782); }
.mbm-tpl-edit { overflow-y: auto; padding: 16px 18px; }
.mbm-tpl-edit .mbm-composer-body { border: 1px solid var(--line, #dde4ef); border-radius: 8px; resize: vertical; min-height: 220px; }
@media (max-width: 760px) {
  .mbm-table { display: block; overflow-x: auto; }   /* a wide table scrolls, not the page */
  .mbm-win { height: auto; }
  .mbm-win.full { inset: 0; border-radius: 0; }
  .mbm-panes { grid-template-columns: 1fr; }
  .mbm-list { max-height: 42vh; border-right: 0; border-bottom: 1px solid var(--win-line); }
  .mbm-msg-body { padding-left: 16px; }
  .mbm-timeline li { grid-template-columns: 1fr; gap: 2px; }
  .mbm-tpl { grid-template-columns: 1fr; overflow-y: auto; }
  .mbm-tpl-list { max-height: 30vh; border-right: 0; }
  .mbm-wintool-end { margin-left: 0; }
}
.mbm-set { display: flex; flex-direction: column; gap: 18px; }
.mbm-set .notice { margin: 0; }
.card.mbm-status { display: flex; flex-direction: row; gap: 16px; align-items: flex-start; padding: 22px 24px; border-left: 5px solid #1f7a48; }
.mbm-status.warn { border-left-color: #c77700; }
.mbm-status.ko { border-left-color: #b42318; }
.mbm-status h2 { margin: 0 0 4px; }
.mbm-status p { margin: 0 0 4px; }
.mbm-dot { flex: none; width: 14px; height: 14px; margin-top: 8px; border-radius: 50%; background: #1f7a48; box-shadow: 0 0 0 5px #e3f5ea; }
.mbm-status.warn .mbm-dot { background: #c77700; box-shadow: 0 0 0 5px #fff3e0; }
.mbm-status.ko .mbm-dot { background: #b42318; box-shadow: 0 0 0 5px #fde8e8; }
.mbm-set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.mbm-set-card { padding: 22px 24px; }
.mbm-set-card h3 { margin: 0 0 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mbm-set-card h4 { margin: 18px 0 6px; font-size: 15px; }
.mbm-set-card .mbm-radio { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; font-weight: 400; cursor: pointer; }
.mbm-set-card .mbm-radio input { width: auto; height: auto; margin: 0; padding: 0; box-shadow: none; flex: none; }
.mbm-alias-row { padding: 12px 0; border-top: 1px solid var(--line, #dde4ef); }
.mbm-alias-row:first-child { border-top: 0; padding-top: 0; }
.mbm-alias-row textarea { width: 100%; min-height: 0; height: auto; font: inherit; font-size: 13.5px; }
.mbm-set-label { display: inline-flex; gap: 8px; align-items: center; }
.mbm-set-help { margin: -8px 0 12px; }
.mbm-set input:disabled, .mbm-set textarea:disabled { background: #f3f5f9; color: #4a5470; }
.mbm-gmail { padding: 10px 12px; border-radius: 8px; background: #f3f5f9; margin: 0 0 12px; font-size: 14px; }
.mbm-gmail.on { background: #e3f5ea; }
.mbm-yes-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.mbm-yes { font-size: 13.5px; }
.mbm-yes.ok { color: #1f7a48; }
.mbm-yes.ko { color: #b42318; }
.mbm-steps { margin: 0 0 14px; font-size: 14px; }
.mbm-steps summary { cursor: pointer; color: var(--signal, #0a9fd4); }
.mbm-steps ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.mbm-copy { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.mbm-copy code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: #f3f5f9; border-radius: 6px; padding: 6px 10px; font-size: 12.5px; }
.mbm-failures { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.mbm-failures li { padding: 8px 0; border-top: 1px solid var(--line, #dde4ef); }
.mbm-error { color: #b42318; font-size: 12.5px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .mbm-set-grid { grid-template-columns: 1fr; } }
.mbm-set-card > .btn { align-self: flex-start; width: auto; }

/* /manage/ > Access > App updates: the APK dropped or chosen */
.mbm-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--line-strong, #c3cfe0); border-radius: 14px; cursor: pointer; text-align: center; background: var(--surface, #fff); }
.mbm-drop:hover, .mbm-drop.on { border-color: var(--signal, #0a9fd4); background: color-mix(in srgb, var(--signal, #0a9fd4) 6%, transparent); }
.mbm-drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* The certificates (inc/certificates.php): the participant's, their public page, and the Certificates tab of /manage/ */
.mbp-cert { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 12px; margin-bottom: 12px; border: 1px solid color-mix(in srgb, var(--signal, #0a9fd4) 45%, white); border-radius: 12px; background: color-mix(in srgb, var(--signal, #0a9fd4) 6%, white); }
.mbp-cert-image img { display: block; width: 180px; height: auto; border-radius: 6px; box-shadow: 0 4px 14px -6px rgba(18, 21, 57, 0.35); }
.mbp-cert .mbp-ready { margin: 0 0 8px; }
.mbp-certpage { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 28px; align-items: start; margin-bottom: 24px; }
.mbp-certpage-image { margin: 0; }
.mbp-certpage-image img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 24px 50px -24px rgba(18, 21, 57, 0.45); }
.mbp-certpage-facts { padding: 22px; }
.mbp-verified { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: #e3f5ea; color: #1f7a48; font-weight: 600; font-size: 14px; }
.mbp-certpage-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 18px; font-size: 15px; }
.mbp-certpage-facts dt { color: var(--dim, #5b6782); }
.mbp-certpage-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mbp-certpage-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.mbp-certpage-actions .btn { justify-content: center; text-align: center; }
@media (max-width: 860px) { .mbp-certpage { grid-template-columns: 1fr; } }

.mbm-cert-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.mbm-cert-seg button { white-space: nowrap; flex: none; }
.mbm-cert-prepare { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; max-width: 100%; }
.mbm-cert-prepare select { max-width: min(460px, 100%); }
.mbm-cert-groups { display: flex; flex-direction: column; gap: 26px; margin-top: 16px; }
.mbm-cert-group-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.mbm-cert-group-head h3 { margin: 0; overflow-wrap: anywhere; }
.mbm-cert-group-head p { margin: 2px 0 0; }
.mbm-cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mbm-cert-card { display: flex; flex-direction: column; border: 1px solid var(--line, #dde4ef); border-radius: 12px; background: #fff; overflow: visible; }
.mbm-cert-card.draft, .mbm-cert-card.failed { border-color: #f1c27d; }
.mbm-cert-card.approved { border-color: #8fd1a8; }
.mbm-cert-card.revoked { opacity: 0.65; }
.mbm-cert-thumb { display: block; padding: 0; border: 0; border-bottom: 1px solid var(--line, #dde4ef); border-radius: 12px 12px 0 0; background: var(--bg, #f6f8fc); cursor: zoom-in; overflow: hidden; }
.mbm-cert-img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1131; background: var(--bg, #f6f8fc); }
.mbm-cert-info { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; flex: 1; }
.mbm-cert-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mbm-cert-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 8px; }

.mbm-modal:has(.mbm-review) { padding: 12px; }
.mbm-modal .card.mbm-review { max-width: 1280px; width: 100%; height: min(94vh, 980px); padding: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.mbm-review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line, #dde4ef); }
.mbm-review-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); min-height: 0; }
.mbm-review-preview { padding: 18px; overflow: auto; background: var(--bg, #f6f8fc); }
.mbm-review-preview .mbm-cert-img { border-radius: 8px; box-shadow: 0 16px 40px -22px rgba(18, 21, 57, 0.5); }
.mbm-review-mailhead { display: grid; gap: 3px; padding: 10px 14px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line, #dde4ef); border-radius: 10px; font-size: 13.5px; overflow-wrap: anywhere; }
.mbm-review-mail { display: block; width: 100%; height: max(560px, 68vh); border: 1px solid var(--line, #dde4ef); border-radius: 10px; background: #fff; }
.mbm-review-form { padding: 16px 18px; overflow: auto; border-left: 1px solid var(--line, #dde4ef); }
.mbm-review-form .field { margin-bottom: 10px; }
.mbm-review-form .notice { margin: 0 0 10px; }
.mbm-review-more summary { cursor: pointer; font-weight: 600; font-size: 14px; margin: 4px 0 10px; }
.mbm-review-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 18px; border-top: 1px solid var(--line, #dde4ef); background: #fff; }
@media (max-width: 860px) {
  .mbm-modal:has(.mbm-review) { padding: 0; }
  .mbm-modal .card.mbm-review { height: 100dvh; max-height: none; border-radius: 0; }
  .mbm-review-body { grid-template-columns: 1fr; overflow-y: auto; }
  .mbm-review-preview, .mbm-review-form { overflow: visible; border-left: 0; }
  .mbm-review-preview { padding: 12px; }
  .mbm-review-mail { height: 70vh; }
  .mbm-review-head { padding: 10px 12px; }
  .mbm-review-foot { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .mbm-review-foot .btn { min-height: 40px; }
  .mbm-cert-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
}
.mbm-cert-inbox { padding: 14px 18px; margin: 4px 0 14px; }
.mbm-cert-inbox summary { cursor: pointer; overflow-wrap: anywhere; }
.mbm-cert-inbox > p { margin: 10px 0; }
.mbm-cert-files { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mbm-cert-files > li { padding-top: 8px; border-top: 1px solid var(--line, #dde4ef); overflow-wrap: anywhere; }
.mbm-cert-files ul { margin: 4px 0 0; padding-left: 18px; }
.mbm-partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.mbm .mbm-partners label.mbm-partner { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 400; color: var(--ink, #121539); margin: 0; }
.mbm-partners input { width: auto; flex: none; margin: 0; }
.mbm-print textarea { min-height: 96px; }
.mbm .mbm-print-check { align-self: end; padding-bottom: 12px; font-weight: 400; }
.mbm-group-partners { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: -4px 0 12px; }
.mbm-pchip { border: 1px solid var(--line, #dde4ef); background: #fff; border-radius: 999px; padding: 4px 12px; font: 600 12.5px/1.3 Inter, sans-serif; color: #4a5470; cursor: pointer; }
.mbm-pchip:hover { border-color: var(--ink, #121539); }
.mbm-pchip.on { background: var(--ink, #121539); border-color: var(--ink, #121539); color: #fff; }
.mbm .card.mbm-cert-mailbar { display: flex; flex-direction: row; text-align: left; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 12px 16px; margin: 4px 0 10px; }
.mbm-cert-mailbar-text { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
/* the MOVE.B app: the personal key as a QR, from the invitation link only (portal.js, offerApp) */
.mbp-app { padding: 18px 20px; margin-bottom: 20px; display: grid; gap: 8px; justify-items: start; }
.mbp-app p { margin: 0; }
.mbp-app-qr { width: 240px; max-width: 100%; }
.mbp-app-qr svg { width: 100%; height: auto; display: block; }

/* participants pasted from a spreadsheet (manage.js, pasteParticipants) */
.mbm-paste-box { width: min(980px, calc(100vw - 32px)); }
.mbm-paste { width: 100%; font: 13px/1.5 ui-monospace, Consolas, monospace; white-space: pre; }
.mbm-map-cols { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.mbm-map-col { display: flex; flex-direction: column; gap: 4px; min-width: 150px; max-width: 220px; padding: 8px; border: 1px solid var(--line, #dde4ef); border-radius: 8px; }
.mbm-map-head { font-weight: 600; font-size: 13px; }
.mbm-row-off td { color: var(--muted, #5b6782); }
.mbm-lang { font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: #eef1f7; color: #4a5470; vertical-align: 1px; }
