/* Monet Helpdesk app layer. Only tokens from tokens.css; component look comes from bundle.css. */

/* ------------------------------------------------------------------ frame */
body { overflow: hidden; }
.mh-app { height: 100dvh; }
.mh-main { position: relative; min-height: 0; }
.mh-small { font-size: 12px; line-height: 16px; }
.mh-pad-x { padding-left: var(--space-6); padding-right: var(--space-6); }
.mh-only-mobile { display: none !important; }
.mh-link { padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; text-decoration: none; cursor: pointer; }
.mh-link:hover { text-decoration: underline; }
a { color: var(--accent-ink); }
.mh-flip { transform: rotate(180deg); }
.mh-noscroll .mh-scroll { overflow: hidden; }
[hidden] { display: none !important; }

/* Sidebar extras */
.mh-search-btn { justify-content: flex-start; margin: 0 0 4px; color: var(--ink-muted); }
.mh-search-label { display: inline-flex; align-items: center; gap: 6px; }
.mh-side-foot { position: relative; }
.mh-profile { flex: 1; min-width: 0; }
.mh-profile-summary { display: flex; align-items: center; gap: 8px; padding: 4px; margin: -4px; border-radius: var(--radius-md); }
.mh-profile-summary:hover { background: var(--bg-hover-subtle); }
.mh-profile-who { flex: 1; min-width: 0; }
.mh-profile-name { font: 600 13px/18px var(--font-sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-profile-role { font-size: 12px; line-height: 16px; }
.mh-menu-up { bottom: calc(100% + 6px); left: 0; }
.mh-menu-right { right: 0; top: calc(100% + 6px); }
.mh-menu-anchor > .mh-menu:not(.mh-menu-up):not(.mh-menu-right) { top: calc(100% + 6px); left: 0; }
.mh-menu form { margin: 0; }
.mh-menu-scroll { max-height: min(420px, 60vh); overflow-y: auto; }
.mh-menu-filter { height: var(--control-height-sm); margin: 4px 0; }
.mh-menu-form { padding: 4px 8px 8px; display: grid; gap: 8px; min-width: 280px; }
.mh-menu-form .mh-menu-label { padding: 4px 0 0; }
.mh-menu-actions { display: flex; justify-content: flex-end; gap: 6px; }
.mh-menu-note { margin: 4px 8px 6px; }
.mh-menu-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-menu-item[hidden] { display: none; }
.mh-sidebar-scrim { display: none; }

/* ------------------------------------------------------------------ lists */
.mh-toolbar-desc { font-size: 13px; line-height: 20px; }
.mh-hints { font-size: 12px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.mh-th-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.mh-th-sort:hover { color: var(--ink); }
.mh-table a.mh-subject { text-decoration: none; }
.mh-row-tag { flex: none; height: 18px; padding: 0 6px; font-size: 11px; }
.mh-msgcount { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; margin-right: 2px; border-radius: var(--radius-sm); background: var(--bg-tag); color: var(--ink-secondary); font: 600 10px/1 var(--font-sans); vertical-align: 1px; }
.mh-preview > .mh-icon { vertical-align: -1px; }
.mh-hit { margin-right: 4px; color: var(--ink-secondary); font-weight: 500; }
.mh-hit > .mh-icon { vertical-align: -1px; }
.mh-table tbody tr.mh-row-awake td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.mh-table tbody tr.mh-row-snoozed td:first-child { box-shadow: inset 3px 0 0 var(--border-strong); }
.mh-table tbody tr.mh-row-overdue td:first-child { box-shadow: inset 3px 0 0 var(--wait-late); }
.mh-table tbody tr.mh-row-focus td:first-child { box-shadow: inset 2px 0 0 var(--focus-ring); }
.mh-table td.mh-col-requester { max-width: 220px; }
.mh-table td.mh-col-note { max-width: 220px; }
.mh-table .mh-person .mh-trunc { min-width: 0; }
.mh-badge { display: inline-flex; flex: none; align-items: center; gap: 4px; height: 18px; padding: 0 6px; border-radius: var(--radius-sm); background: var(--bg-tag); color: var(--ink-secondary); font: 500 11px/1 var(--font-sans); white-space: nowrap; }
.mh-badge-awake { background: var(--accent-subtle); color: var(--accent-ink); }
.mh-list-more { display: flex; align-items: center; gap: 12px; padding: 16px 24px 32px; font-size: 13px; }
.mh-bulkbar-wrap { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 15; }
.mh-bulkbar .mh-menu { color: var(--ink); }
.mh-bulkbar details > summary.mh-btn { list-style: none; }
.mh-search-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.mh-search-input { flex: 1 1 100%; }
.mh-search-form .mh-select-wrap { flex: 0 0 auto; }
.mh-search-form .mh-select { width: auto; }
.mh-search-tag { width: 140px; }
.mh-search-date { width: 150px; }
.mh-tabs-bar { padding-bottom: 8px; }
.mh-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.mh-tabs .mh-tab { text-decoration: none; }
.mh-tabs .mh-tab .mh-count { margin-left: 4px; }
p.mh-toolbar-desc { margin: 0 0 12px; }
.mh-susp-sender { color: var(--ink); font-weight: 500; }
.mh-susp-row { cursor: default; }
.mh-susp-row:not([aria-selected="true"]) .mh-susp-preview { display: none; }
.mh-susp-row:not([aria-selected="true"]) .mh-sel-only { display: none; }
.mh-susp-actions details { position: relative; }

/* Columns hide right to left as width shrinks (TicketRow README) */
@media (max-width: 1440px) { .mh-col-note { display: none; } }
@media (max-width: 1360px) { .mh-col-order { display: none; } }
@media (max-width: 1200px) { .mh-col-mailbox { display: none; } }
@media (max-width: 1080px) { .mh-col-assignee, .mh-col-updated, .mh-col-created { display: none; } }

/* ------------------------------------------------------------------ ticket */
.mh-ticket-page .mh-main { min-width: 0; }
.mh-btn-disabled { opacity: 1; color: var(--ink-disabled); border-color: var(--bg-disabled); background: var(--bg-disabled); pointer-events: none; }
.mh-details-toggle { display: none; }
.mh-presence-slot:empty { display: none; }
.mh-notice { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--bg-subtle); color: var(--ink-secondary); font: 400 13px/20px var(--font-sans); }
.mh-notice-key { align-items: flex-start; margin: 0 0 16px; background: var(--accent-subtle); color: var(--ink); }
.mh-key { display: block; margin-top: 6px; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--bg); font: 500 12px/18px ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; cursor: copy; }
.mh-closed-note { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--ink-secondary); font: 400 13px/20px var(--font-sans); }

/* Collapsible cards: closed = one line (PRD T2) */
.mh-card-collapsible > summary { display: flex; cursor: pointer; list-style: none; }
.mh-card-collapsible > summary::-webkit-details-marker { display: none; }
.mh-card-collapsible:not([open]) > summary { padding-bottom: 12px; }
.mh-card-collapsible:not([open]) .mh-card-label,
.mh-card-collapsible:not([open]) .mh-card-open-only,
.mh-card-collapsible:not([open]) .mh-author-badge { display: none; }
.mh-card-collapsible:not([open]) .mh-card-line { flex-wrap: nowrap; min-width: 0; }
.mh-card-collapsible:not([open]) .mh-card-addr { display: none; }
.mh-card-snippet { display: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); font: 400 13px/20px var(--font-sans); }
.mh-card-collapsible:not([open]) .mh-card-snippet { display: block; flex: 1; }
.mh-card-collapsible:not([open]) .mh-card-name { flex: none; }
.mh-card-collapsible[open] > summary .mh-card-time { cursor: pointer; }
.mh-badge-warn { background: var(--danger-subtle); color: var(--danger); }
.mh-card-quote { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 2px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink-muted); font: 500 12px/16px var(--font-sans); }
.mh-card-quote:hover { color: var(--ink); border-color: var(--border-strong); }
.mh-card-via { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mh-card-via a, .mh-card-via .mh-link { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 2px; }
.mh-delivery-error { display: inline-flex; align-items: center; gap: 4px; color: var(--danger); }
.mh-event a { color: inherit; }
.mh-event-fold > summary { list-style: none; }
.mh-event-fold > summary:hover span { color: var(--ink-secondary); }
.mh-event-fold[open] > summary { margin-bottom: 4px; }

/* Message bodies: email HTML, tamed */
.mh-prose { overflow-wrap: anywhere; }
.mh-prose img { max-width: 100%; height: auto; }
.mh-prose table { max-width: 100%; border-collapse: collapse; }
.mh-prose td, .mh-prose th { padding: 2px 4px; vertical-align: top; }
.mh-prose blockquote { margin: 8px 0; padding: 0 0 0 12px; border-left: 2px solid var(--border-strong); color: var(--ink-secondary); }
.mh-prose ul, .mh-prose ol { margin: 0 0 10px; padding-left: 22px; }
.mh-prose pre { white-space: pre-wrap; font: 400 13px/20px ui-monospace, SFMono-Regular, Consolas, monospace; }
.mh-prose a { color: var(--accent-ink); }
.mh-prose h1, .mh-prose h2, .mh-prose h3 { font-size: 15px; line-height: 22px; margin: 0 0 8px; }
.mh-card-body > div > *:first-child { margin-top: 0; }

/* Composer + Trix */
.mh-composer-slot { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; scroll-margin-top: 16px; }
.mh-composer-slot:empty, #new-activity:empty, #collision:empty { display: none; }
.mh-composer-form { display: block; margin: 0; }
trix-editor.mh-composer-text { resize: none; min-height: 120px; max-height: 50vh; overflow-y: auto; border: 0; border-radius: 0; padding: 8px 16px; margin: 0; outline: 0; }
trix-editor.mh-composer-text:empty:not(:focus)::before, trix-editor.mh-composer-text:empty::before { color: var(--ink-muted); }
trix-editor .attachment, trix-editor figure { display: none; }
trix-editor ul, trix-editor ol { padding-left: 22px; }
trix-editor blockquote { border-left: 2px solid var(--border-strong); margin: 4px 0; padding-left: 12px; }
.mh-trix-toolbar { display: inline-flex; align-items: center; gap: 2px; position: relative; }
.mh-trix-toolbar .mh-btn.trix-active { background: var(--bg-hover); color: var(--ink); }
.mh-composer[data-mode="note"] .mh-trix-toolbar .mh-btn.trix-active { background: var(--note-band); }
.mh-trix-dialogs { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30; }
.mh-trix-dialog { display: none; align-items: center; gap: 6px; padding: 6px; min-width: 340px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-raised); box-shadow: var(--shadow-pop); }
.mh-trix-dialog[data-trix-active] { display: flex; }
.mh-trix-dialog .mh-input { height: var(--control-height-sm); }
.mh-trix-plain { min-height: 120px; padding: 8px 10px; border: 1px solid var(--border-control); border-radius: var(--radius-md); background: var(--bg); font: 400 14px/22px var(--font-sans); }
.mh-trix-plain:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.mh-attach-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; }
.mh-attach-list:empty { display: none; }
.mh-attach-chip { gap: 6px; }
.mh-macro-pending { display: flex; align-items: center; gap: 8px; margin: 0 12px 4px; padding: 6px 10px; border-radius: var(--radius-md); background: var(--accent-subtle); color: var(--ink); font: 400 13px/20px var(--font-sans); }
.mh-macro-pending > .mh-icon { color: var(--accent-ink); }
.mh-composer-error { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 8px 8px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--danger-subtle); color: var(--danger); font: 500 13px/20px var(--font-sans); }
.mh-composer-error .mh-btn { color: var(--ink); }
.mh-composer-foot { flex-wrap: wrap; }
.mh-composer-foot .mh-split .mh-menu { min-width: 260px; }
.mh-composer-slot.mh-composer-full { position: fixed; inset: 0; z-index: 40; margin: 0; padding: 48px max(24px, calc((100vw - 900px) / 2)); background: var(--overlay); }
.mh-composer-full .mh-composer { display: flex; flex-direction: column; height: 100%; background: var(--bg); }
.mh-composer-full .mh-composer[data-mode="note"] { background: var(--note-bg); }
.mh-composer-full .mh-composer-form:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.mh-composer-full .mh-composer[data-mode="reply"] [data-when="note"], .mh-composer-full .mh-composer[data-mode="note"] [data-when="reply"] { display: none !important; }
.mh-composer-full trix-editor.mh-composer-text { flex: 1; max-height: none; }
.mh-composer-full #new-activity, .mh-composer-full #collision { display: none; }
.mh-new-activity { background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--border); }
.mh-then-select .mh-select { height: var(--control-height); width: auto; }

/* Details panel */
.mh-details form { margin: 0; }
.mh-requester-notes { margin-top: 10px; }
.mh-quiet-textarea { min-height: 28px; field-sizing: content; border-color: transparent; background: transparent; padding: 4px 8px; margin: 0 -8px; width: calc(100% + 16px); resize: none; color: var(--ink-secondary); }
.mh-quiet-textarea:hover { border-color: var(--border); background: var(--bg); }
.mh-quiet-textarea:focus { border-color: var(--border-control); background: var(--bg); }
.mh-requester-note { margin: 10px 0 0; font: 400 13px/20px var(--font-sans); color: var(--ink-secondary); }
.mh-inline-edit { margin-top: 6px; font-size: 12px; }
.mh-inline-edit > summary { display: inline; }
.mh-inline-form { display: grid; gap: 8px; margin-top: 10px; }
.mh-inline-form .mh-btn { justify-self: start; }
.mh-props-read dd { padding-top: 4px; }
.mh-props-dates { margin-top: 10px; }
.mh-props .mh-taginput { min-height: var(--control-height-sm); padding: 2px; }
.mh-props .mh-taginput > input { min-width: 64px; }

/* ------------------------------------------------------------------ dialogs, palette, toasts */
dialog { color: var(--ink); }
dialog.mh-dialog[open] { margin: 64px auto auto; }
dialog.mh-palette-dialog { padding: 0; margin: 12vh auto auto; }
dialog.mh-palette-dialog::backdrop { background: var(--overlay); }
.mh-palette-empty { padding: 16px 8px; color: var(--ink-muted); font-size: 13px; }
.mh-directory-scroll { max-height: 264px; overflow-y: auto; }
.mh-directory-item[hidden] { display: none; }
.mh-directory-check { width: 16px; color: var(--accent-ink); visibility: hidden; }
.mh-directory-item[aria-selected="true"] .mh-directory-check { visibility: visible; }
.mh-directory-button { width: 100%; border: 0; border-top: 1px solid var(--border); background: var(--bg); color: var(--ink); text-align: left; font: inherit; }
.mh-directory-button:first-child { border-top: 0; }
.mh-segmented { justify-self: start; }
.mh-segmented > label { position: relative; }
.mh-help-dialog { width: min(760px, calc(100vw - 32px)); }
.mh-help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.mh-help-grid h3 { margin-bottom: 8px; }
.mh-shortcuts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; align-items: center; font: 400 13px/20px var(--font-sans); }
.mh-shortcuts dt { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-muted); white-space: nowrap; }
.mh-shortcuts dd { margin: 0; color: var(--ink); }
.mh-toasts { position: fixed; left: calc(var(--sidebar-width) + 24px); bottom: 24px; z-index: 50; }
.mh-toast-error > .mh-icon { color: var(--wait-late); }

/* ------------------------------------------------------------------ forms, settings */
.mh-form-page { display: grid; gap: 16px; padding: 8px 24px 48px; }
.mh-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.mh-settings { display: flex; flex: 1; min-height: 0; }
.mh-settings-nav { flex: none; width: 240px; padding: 0 12px 24px 16px; overflow-y: auto; }
.mh-settings-body { padding: 0 24px 48px 8px; }
.mh-settings-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.mh-settings-title { margin: 0; font: 600 16px/24px var(--font-sans); }
.mh-settings-help { max-width: 720px; margin: 0 0 16px; }
.mh-settings-table td:first-child, .mh-settings-table th:first-child { padding-left: 12px; width: auto; }
.mh-settings-table td { height: 44px; }
.mh-row-link { color: var(--ink); font-weight: 500; text-decoration: none; }
.mh-cell-actions { text-align: right; color: var(--ink-muted); }
.mh-settings-form { display: grid; gap: 14px; max-width: 720px; padding-bottom: 32px; }
.mh-settings-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.mh-check-row { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/20px var(--font-sans); color: var(--ink); cursor: pointer; }
.mh-check-row > input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.mh-fieldset { margin: 0; padding: 0; border: 0; }
.mh-check-list { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.mh-code { font: 400 12px/18px ui-monospace, SFMono-Regular, Consolas, monospace; }
.mh-select-multi { height: auto; min-height: 96px; padding: 4px; }
.mh-bot { margin: 0 0 24px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.mh-bot-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mh-bot .mh-settings-table { margin-bottom: 12px; }
.mh-inline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.mh-inline-row .mh-input { width: 260px; }
.mh-bot-new { padding: 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }

/* ------------------------------------------------------------------ login */
.mh-login { display: flex; align-items: center; justify-content: center; min-height: 100dvh; padding: 24px 16px; background: var(--bg-subtle); overflow-y: auto; }
.mh-login-card { width: min(400px, 100%); padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.mh-login-card .mh-brand-name { display: block; margin-bottom: 4px; }
.mh-login-card h1 { margin: 0 0 24px; font: 400 14px/22px var(--font-sans); color: var(--ink-muted); }
.mh-login-card form { display: grid; gap: 12px; }
.mh-login-card .mh-btn { width: 100%; height: 40px; font-size: 14px; }
.mh-login-code { font: 600 22px/1 var(--font-sans); letter-spacing: .3em; text-align: center; height: 44px; }
.mh-error-box { padding: 8px 12px; border-radius: var(--radius-md); background: var(--danger-subtle); color: var(--danger); font: 500 13px/20px var(--font-sans); }

/* ------------------------------------------------------------------ print */
.mh-print { max-width: 760px; margin: 0 auto; padding: 32px 16px; overflow: visible; }
@media print { body { overflow: visible; } .mh-card { break-inside: avoid; } }

/* ------------------------------------------------------------------ 1024 to 1279: details behind a toggle */
@media (max-width: 1279px) {
  .mh-details-toggle { display: inline-flex; }
  .mh-ticket-page .mh-details { position: fixed; top: 0; right: 0; bottom: 0; z-index: 25; box-shadow: var(--shadow-pop); transform: translateX(100%); transition: transform .12s; }
  body.mh-details-open .mh-ticket-page .mh-details { transform: none; }
}

/* ------------------------------------------------------------------ phone: read and reply only */
@media (max-width: 767px) {
  .mh-only-mobile { display: inline-flex !important; }
  .mh-hide-mobile, .mh-kbd, .mh-kbd-group { display: none !important; }
  .mh-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(300px, 86vw); transform: translateX(-100%); transition: transform .12s; }
  body.mh-sidebar-open .mh-sidebar { transform: none; box-shadow: var(--shadow-pop); }
  body.mh-sidebar-open .mh-sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 29; background: var(--overlay); }
  .mh-viewhead { padding: 8px 8px 8px 8px; gap: 8px; }
  .mh-viewhead h1 { font-size: 16px; line-height: 24px; }
  .mh-toolbar { padding: 0 16px 8px; }
  .mh-toolbar-desc { display: none; }
  .mh-table thead { display: none; }
  .mh-table, .mh-table tbody { display: block; }
  .mh-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .mh-table td { display: block; height: auto; padding: 0; border: 0; }
  .mh-table td:first-child { display: none; }
  .mh-table td.mh-col-subject { grid-column: 1 / -1; max-width: none; width: auto; }
  .mh-table td.mh-col-subject .mh-subject { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .mh-table td.mh-col-id { order: 2; }
  .mh-table td.mh-col-requester { order: 3; max-width: none; }
  .mh-table td.mh-col-waiting { order: 4; }
  .mh-table td.mh-col-status { order: 5; justify-self: end; }
  .mh-table td.mh-col-mailbox, .mh-table td.mh-col-assignee, .mh-table td.mh-col-order, .mh-table td.mh-col-note, .mh-table td.mh-col-colleague, .mh-table td.mh-col-updated, .mh-table td.mh-col-solved { display: none; }
  .mh-table .mh-preview, .mh-row-tag, .mh-table .mh-presence { display: none; }
  .mh-table td .mh-person { font-size: 12px; }
  .mh-bulkbar-wrap { display: none; }
  .mh-ticket-head { padding: 8px 12px; gap: 8px; }
  .mh-ticket-title { font-size: 16px; line-height: 24px; }
  .mh-ticket-actions > :not(.mh-details-toggle):not(details) { display: none; }
  .mh-timeline { padding: 16px 12px 0; gap: 12px; }
  .mh-card-head { padding: 10px 12px 0; }
  .mh-card-body { padding: 10px 12px 12px; }
  .mh-composer-slot { position: sticky; bottom: 0; margin: 0 -12px; background: var(--bg); }
  .mh-composer { border-radius: 0; border-width: 1px 0 0; }
  .mh-composer[data-mode="note"] { border-width: 2px 0 0; }
  trix-editor.mh-composer-text { min-height: 64px; max-height: 30vh; }
  .mh-trix-toolbar, [data-open-macros] { display: none; }
  .mh-ticket-page .mh-details { width: 100vw; }
  .mh-toasts { left: 16px; right: 16px; bottom: 16px; }
  .mh-settings { flex-direction: column; }
  .mh-settings-nav { width: auto; display: flex; overflow-x: auto; padding: 0 16px 8px; }
  .mh-settings-body { padding: 0 16px 32px; }
  .mh-help-grid { grid-template-columns: 1fr; }
  .mh-search-form .mh-select-wrap, .mh-search-tag, .mh-search-date { display: none; }
  .mh-susp { grid-template-columns: 1fr auto; }
  .mh-susp > :first-child, .mh-susp-head, .mh-susp > span:nth-child(4) { display: none; }
}

/* Suspendus: room for keycaps and the sender-rule menu on the selected row */
@media (min-width: 768px) {
  .mh-susp { grid-template-columns: 44px minmax(180px, 240px) 1fr 210px 316px; }
  .mh-reason { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
