.mb { min-width: 0; }
.mb, .mb input, .mb textarea, .mb select { letter-spacing: 0; }
.mb .page-head { align-items: flex-start; }
.mb .page-head p { margin-bottom: 0; }
.mb h2 { font-size: 17px; }
.mb h3 { font-size: 14px; margin: 0 0 8px; }
.mb .mb-state { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 0 0 14px; padding: 16px 0; border-block: 1px solid var(--line); }
.mb-state > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; min-width: 0; }
.mb-state dt { color: var(--muted); font-size: 12px; }
.mb-state dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.mb .mb-note { color: #4d5d70; font-size: 12px; line-height: 1.8; margin: 8px 0 14px; }
.mb .mb-binding { border-block: 1px solid var(--line); padding: 16px 0; margin-top: 18px; }
.mb-binding summary { cursor: pointer; font-size: 13px; font-weight: 600; width: fit-content; max-width: 100%; line-height: 1.8; }
.mb-binding summary svg { width: 16px; height: 16px; vertical-align: middle; margin-right: 6px; }
.mb-binding form { max-width: 760px; margin-top: 18px; }
.mb fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mb fieldset:disabled { opacity: .65; }
.mb .mb-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; }
.mb .mb-full { grid-column: 1 / -1; }
.mb input, .mb textarea, .mb select { max-width: 100%; min-width: 0; caret-color: var(--accent, #2458c9); }
.mb textarea { display: block; width: 100%; resize: vertical; min-height: 74px; padding: 9px 10px; border: 1px solid #b9c5d2; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; line-height: 1.7; }
.mb .mb-consent { display: flex; align-items: flex-start; gap: 8px; line-height: 1.8; font-size: 13px; margin: 12px 0; }
.mb-consent input { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 4px; }
.mb .table-wrap { max-width: 100%; }
.mb th, .mb td { overflow-wrap: anywhere; }
.mb td { max-width: 340px; line-height: 1.65; }
.mb td .actions { gap: 6px; flex-wrap: wrap; }
.mb-cell-value { min-width: 0; }
.mb .mb-account-table { min-width: 900px; }
.mb .mb-message-table { min-width: 830px; }
.mb .mb-record-table { min-width: 1200px; }
.mb-record-table td { min-width: 84px; font-variant-numeric: tabular-nums; }
.mb-record-table td:last-child { min-width: 250px; max-width: 420px; }
.mb-record-table td:nth-child(2) { min-width: 140px; }
.mb-record-table td:nth-child(5) { min-width: 150px; white-space: nowrap; }
.mb .mb-raw { white-space: pre-wrap; }
.mb .mb-account-error { color: #a0392c; font-size: 12px; margin-top: 6px; white-space: pre-wrap; }
.mb .mb-account-editor { border-block: 1px solid var(--line); padding: 18px 0; margin-top: 16px; }
.mb-account-editor form { display: grid; gap: 14px; max-width: 760px; }
.mb-account-editor fieldset > label { margin-bottom: 14px; }
.mb .mb-mail-text, .mb .mb-evidence { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font: 13px/1.8 var(--sans, sans-serif); margin: 0; }
.mb .mb-mail-text { max-height: 480px; overflow: auto; padding: 16px; background: #f5f7fa; border: 1px solid var(--line); border-radius: 4px; }
.mb .mb-evidence { font-size: 12px; }
.mb-body { margin-top: 14px; }
.mb-body summary { cursor: pointer; font-size: 13px; margin-bottom: 12px; }
.mb #mb-dismiss-form { max-width: 700px; }
.mb button:disabled { cursor: not-allowed; }
.mb .mb-review-actions { flex-wrap: wrap; gap: 10px; }
.mb .mb-review-actions button { min-height: 40px; max-width: 100%; white-space: normal; }
.mb .danger { color: #a12624; border-color: #bc6864; background: #fff; }
.mb .danger:hover:not(:disabled) { background: #fff1f0; }
.mb-review-dialog { max-width: 640px; min-width: 0; }
.mb-review-dialog p { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.mb-review-dialog input:not([type=checkbox]) { width: 100%; }
.mb-review-dialog .mb-consent > span { min-width: 0; overflow-wrap: anywhere; }
.mb-review-dialog .form-footer { display: flex; flex-wrap: wrap; gap: 10px; }
.mb button[aria-busy=true] { min-width: 96px; }
.mb-spinner { display: inline-block; flex: 0 0 14px; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mb-spin .8s linear infinite; }
.mb :focus-visible { outline: 2px solid #2458c9; outline-offset: 3px; }
.mb ::selection { color: #18386c; background: #dce9ff; }
.mb input::placeholder { color: #57677b; opacity: 1; }
.mb select { width: 100%; text-overflow: ellipsis; }
.mb [hidden] { display: none !important; }
.sm .sm-upload-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 14px; }
.sm-upload-form > label { flex: 1 1 300px; max-width: 600px; min-width: 0; }
.sm-upload-form input[type=file] { width: 100%; padding: 7px; font-size: 12px; }
.sm-upload-form > .form-error { flex-basis: 100%; }
.sm .sm-preview { border-block: 1px solid var(--line); padding-block: 20px; }
.sm .sm-download { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; line-height: 1.5; }
.sm-download svg { width: 16px; height: 16px; flex-shrink: 0; }
.sm .sm-table { min-width: 840px; width: 100%; table-layout: fixed; }
.sm-table th:first-child { width: 65px; }
.sm-table th:nth-child(2) { width: 170px; }
.sm-table th:nth-child(3) { width: 240px; }
.sm-table th:nth-child(4) { width: 100px; }
.sm .sm-source { white-space: pre-wrap; overflow-wrap: anywhere; }
.sm .sm-remarks-table { min-width: 600px; width: 100%; table-layout: fixed; }
.sm-remarks-table th:first-child { width: 70px; }
.sm .sm-issues-table { min-width: 660px; width: 100%; table-layout: fixed; }
.sm-issues-table th:first-child { width: 100px; }
.sm .table-wrap { overscroll-behavior-inline: contain; scrollbar-gutter: stable; }
.sm td, .sm .pager { font-variant-numeric: tabular-nums; }
.sm #sm-replace-form { margin-top: 20px; max-width: 800px; }
.sm .sm-digest { font-size: 12px; margin-bottom: 16px; overflow-wrap: anywhere; }
.sm-digest summary { cursor: pointer; }
.sm-digest p { margin-top: 8px; }
.sm button { white-space: normal; overflow-wrap: anywhere; }
@keyframes mb-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .mb .page-head { flex-wrap: wrap; }
  .mb .page-head .actions { flex-wrap: wrap; }
  .mb .mb-form-grid { grid-template-columns: minmax(0,1fr); }
  .mb .mb-state { gap: 12px; }
  .mb-state > div { width: 100%; }
  .mb .toolbar { flex-wrap: wrap; align-items: flex-start; }
  .mb .toolbar label { max-width: 100%; }
  .mb .mb-mail-text { padding: 12px; }
  .mb .mb-account-table { display: block; min-width: 0; width: 100%; }
  .mb-account-table thead { display: none; }
  .mb-account-table tbody { display: block; }
  .mb-account-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mb .mb-account-table td { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 8px; max-width: none; padding: 7px 0; border: 0; }
  .mb-account-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
  .mb .mb-account-table td:last-child { display: block; }
  .mb-account-table td:last-child::before { display: none; }
  .mb .mb-account-table td .actions { margin-top: 2px; }
  .mb button { min-height: 40px; }
  .sm .sm-upload-form > label { flex-basis: 100%; max-width: none; }
  .sm .form-footer { flex-wrap: wrap; }
  .sm .form-footer button { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .mb-spinner { animation: none; } }
