/* MailAgent enterprise UI system for Bootstrap 5.3.8 (#226 redesign).
   Freight vernacular: harbor-ink rail, manifest-paper canvas, hairline rows,
   one teal action colour, amber only for attention, and the customer cargo
   tag as the single memorable element. Barlow / Barlow Condensed are
   vendored locally (SIL OFL 1.1). Every selector is scoped through an ma-
   class and every authored dimension is in px (UiDesignSystemContractTests). */

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/webmail/assets/fonts/barlow-400.v1.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/webmail/assets/fonts/barlow-500.v1.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/webmail/assets/fonts/barlow-600.v1.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow Condensed";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/webmail/assets/fonts/barlow-condensed-600.v1.woff2") format("woff2");
}

.ma-document {
    color-scheme: light;
    overflow-x: hidden;
}

/* ------------------------------------------------------------------ Tokens */

.ma-root {
    /* Palette (WCAG AA checked for every text pair in docs/UI_DESIGN_SYSTEM.md). */
    --ma-ink: #12233a;
    --ma-paper: #f6f8fa;
    --ma-surface: #ffffff;
    --ma-steel: #5b6b7f;
    --ma-line: #dce2e9;
    --ma-line-strong: #c3ccd6;
    --ma-hover: #eef2f6;
    --ma-teal: #0b7a86;
    --ma-teal-strong: #08636d;
    --ma-teal-tint: #e3f2f3;
    --ma-teal-on-dark: #5cc0ca;
    --ma-amber: #e8a317;
    --ma-amber-ink: #7a4f00;
    --ma-amber-tint: #fdf3dc;
    --ma-green: #2a8253;
    --ma-green-tint: #e5f2ea;
    --ma-red: #c2410c;
    --ma-red-strong: #9a3412;
    --ma-red-tint: #fbede6;
    --ma-rail: #12233a;
    --ma-rail-text: #c9d3df;
    --ma-rail-muted: #a9b6c6;
    --ma-rail-hover: rgba(255, 255, 255, 0.07);
    --ma-rail-active: rgba(255, 255, 255, 0.12);
    --ma-rail-line: rgba(255, 255, 255, 0.12);

    /* Type. */
    --ma-font-ui: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ma-font-sign: "Barlow Condensed", "Barlow", "Arial Narrow", system-ui, sans-serif;

    /* Shape and depth. */
    --ma-radius-control: 6px;
    --ma-radius-sheet: 10px;
    --ma-shadow-sheet: 0 1px 2px rgba(18, 35, 58, 0.06);
    --ma-shadow-raised: 0 12px 32px rgba(18, 35, 58, 0.16);

    /* Compatibility aliases for the pre-#226 token names. */
    --ma-color-brand: var(--ma-teal);
    --ma-color-brand-strong: var(--ma-teal-strong);
    --ma-color-brand-soft: var(--ma-teal-tint);
    --ma-color-ink: var(--ma-ink);
    --ma-color-muted: var(--ma-steel);
    --ma-color-line: var(--ma-line);
    --ma-color-canvas: var(--ma-paper);
    --ma-color-surface: var(--ma-surface);
    --ma-radius-small: var(--ma-radius-control);
    --ma-radius-medium: var(--ma-radius-control);
    --ma-radius-large: var(--ma-radius-sheet);

    /* Bootstrap 5.3 variables mapped onto the MailAgent palette. */
    --bs-primary: #0b7a86;
    --bs-primary-rgb: 11, 122, 134;
    --bs-primary-text-emphasis: #08636d;
    --bs-primary-bg-subtle: #e3f2f3;
    --bs-primary-border-subtle: #a9d6da;
    --bs-secondary-color: #5b6b7f;
    --bs-secondary-rgb: 91, 107, 127;
    --bs-secondary-text-emphasis: #12233a;
    --bs-secondary-bg-subtle: #eef2f6;
    --bs-secondary-border-subtle: #dce2e9;
    --bs-success: #2a8253;
    --bs-success-rgb: 42, 130, 83;
    --bs-success-text-emphasis: #1f6040;
    --bs-success-bg-subtle: #e5f2ea;
    --bs-success-border-subtle: #b6d9c4;
    --bs-danger: #c2410c;
    --bs-danger-rgb: 194, 65, 12;
    --bs-danger-text-emphasis: #9a3412;
    --bs-danger-bg-subtle: #fbede6;
    --bs-danger-border-subtle: #f0c3ad;
    --bs-warning: #e8a317;
    --bs-warning-rgb: 232, 163, 23;
    --bs-warning-text-emphasis: #7a4f00;
    --bs-warning-bg-subtle: #fdf3dc;
    --bs-warning-border-subtle: #f1d48e;
    --bs-info-rgb: 11, 122, 134;
    --bs-info-text-emphasis: #08636d;
    --bs-info-bg-subtle: #e3f2f3;
    --bs-info-border-subtle: #a9d6da;
    --bs-light-rgb: 246, 248, 250;
    --bs-light-text-emphasis: #12233a;
    --bs-light-bg-subtle: #f6f8fa;
    --bs-light-border-subtle: #dce2e9;
    --bs-dark-rgb: 18, 35, 58;
    --bs-body-font-family: var(--ma-font-ui);
    --bs-body-font-size: 15px;
    --bs-body-line-height: 1.5;
    --bs-body-color: #12233a;
    --bs-body-color-rgb: 18, 35, 58;
    --bs-body-bg: #f6f8fa;
    --bs-body-bg-rgb: 246, 248, 250;
    --bs-emphasis-color: #12233a;
    --bs-emphasis-color-rgb: 18, 35, 58;
    --bs-heading-color: #12233a;
    --bs-secondary-bg: #eef2f6;
    --bs-tertiary-bg: #f6f8fa;
    --bs-tertiary-bg-rgb: 246, 248, 250;
    --bs-border-color: #dce2e9;
    --bs-border-color-translucent: rgba(18, 35, 58, 0.12);
    --bs-border-radius: 6px;
    --bs-border-radius-sm: 4px;
    --bs-border-radius-lg: 10px;
    --bs-border-radius-xl: 10px;
    --bs-border-radius-xxl: 10px;
    --bs-link-color: #0b7a86;
    --bs-link-color-rgb: 11, 122, 134;
    --bs-link-hover-color: #08636d;
    --bs-link-hover-color-rgb: 8, 99, 109;
    --bs-focus-ring-color: rgba(11, 122, 134, 0.35);
    --bs-box-shadow-sm: 0 1px 2px rgba(18, 35, 58, 0.06);
    --bs-box-shadow: 0 1px 2px rgba(18, 35, 58, 0.06);
    min-width: 0;
    overflow-x: clip;
    background: var(--ma-paper);
    color: var(--ma-ink);
    font-family: var(--ma-font-ui);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.ma-root *,
.ma-root *::before,
.ma-root *::after {
    box-sizing: border-box;
}

/* --------------------------------------------------------- Base typography */

.ma-root h1,
.ma-root h2,
.ma-root h3,
.ma-root h4,
.ma-root h5,
.ma-root h6 {
    color: var(--ma-ink);
    font-weight: 600;
    letter-spacing: 0;
}

.ma-root .h5,
.ma-root .h6,
.ma-root h5,
.ma-root h6 {
    font-size: 16px;
}

.ma-root .h4,
.ma-root h4 {
    font-family: var(--ma-font-sign);
    font-size: 22px;
}

.ma-root .h3,
.ma-root h3 {
    font-size: 20px;
}

.ma-root .small,
.ma-root small {
    font-size: 13px;
}

.ma-root strong,
.ma-root b {
    font-weight: 600;
}

.ma-root kbd {
    padding: 1px 6px;
    border: 1px solid var(--ma-line-strong);
    border-radius: 4px;
    background: var(--ma-surface);
    color: var(--ma-ink);
    box-shadow: inset 0 -1px 0 var(--ma-line);
    font-family: var(--ma-font-ui);
    font-size: 13px;
    font-weight: 600;
}

.ma-root :focus-visible {
    outline: 2px solid var(--ma-teal);
    outline-offset: 2px;
}

/* ----------------------------------------------------- Bootstrap components */

.ma-root .btn {
    --bs-btn-font-family: var(--ma-font-ui);
    --bs-btn-font-size: 15px;
    --bs-btn-font-weight: 500;
    --bs-btn-padding-x: 14px;
    --bs-btn-padding-y: 6px;
    --bs-btn-border-radius: 6px;
    --bs-btn-focus-box-shadow: 0 0 0 3px rgba(11, 122, 134, 0.3);
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.ma-root .btn-sm {
    --bs-btn-font-size: 13px;
    --bs-btn-padding-x: 10px;
    --bs-btn-padding-y: 4px;
    --bs-btn-border-radius: 6px;
}

.ma-root .btn-lg {
    --bs-btn-font-size: 16px;
    --bs-btn-padding-x: 18px;
    --bs-btn-padding-y: 10px;
    --bs-btn-border-radius: 6px;
}

.ma-root .btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--ma-teal);
    --bs-btn-border-color: var(--ma-teal);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--ma-teal-strong);
    --bs-btn-hover-border-color: var(--ma-teal-strong);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #064f57;
    --bs-btn-active-border-color: #064f57;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: var(--ma-teal);
    --bs-btn-disabled-border-color: var(--ma-teal);
}

.ma-root .btn-outline-primary {
    --bs-btn-color: var(--ma-teal-strong);
    --bs-btn-bg: var(--ma-surface);
    --bs-btn-border-color: #8fc6cc;
    --bs-btn-hover-color: var(--ma-teal-strong);
    --bs-btn-hover-bg: var(--ma-teal-tint);
    --bs-btn-hover-border-color: var(--ma-teal);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--ma-teal);
    --bs-btn-active-border-color: var(--ma-teal);
    --bs-btn-disabled-color: var(--ma-steel);
    --bs-btn-disabled-bg: var(--ma-surface);
    --bs-btn-disabled-border-color: var(--ma-line);
}

.ma-root .btn-secondary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--ma-ink);
    --bs-btn-border-color: var(--ma-ink);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #1d3453;
    --bs-btn-hover-border-color: #1d3453;
    --bs-btn-active-bg: #0b1726;
    --bs-btn-active-border-color: #0b1726;
}

.ma-root .btn-outline-secondary {
    --bs-btn-color: var(--ma-ink);
    --bs-btn-bg: var(--ma-surface);
    --bs-btn-border-color: var(--ma-line-strong);
    --bs-btn-hover-color: var(--ma-ink);
    --bs-btn-hover-bg: var(--ma-hover);
    --bs-btn-hover-border-color: #a9b4c1;
    --bs-btn-active-color: var(--ma-ink);
    --bs-btn-active-bg: #e2e8ef;
    --bs-btn-active-border-color: #a9b4c1;
    --bs-btn-disabled-color: #7d8a9a;
    --bs-btn-disabled-bg: var(--ma-surface);
    --bs-btn-disabled-border-color: var(--ma-line);
}

.ma-root .btn-success {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--ma-green);
    --bs-btn-border-color: var(--ma-green);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #1f6a42;
    --bs-btn-hover-border-color: #1f6a42;
    --bs-btn-active-bg: #185636;
    --bs-btn-active-border-color: #185636;
    --bs-btn-disabled-bg: var(--ma-green);
    --bs-btn-disabled-border-color: var(--ma-green);
}

.ma-root .btn-outline-success {
    --bs-btn-color: var(--ma-green);
    --bs-btn-border-color: #8cc3a3;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--ma-green);
    --bs-btn-hover-border-color: var(--ma-green);
    --bs-btn-active-bg: #1f6a42;
    --bs-btn-active-border-color: #1f6a42;
}

.ma-root .btn-danger {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--ma-red);
    --bs-btn-border-color: var(--ma-red);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--ma-red-strong);
    --bs-btn-hover-border-color: var(--ma-red-strong);
    --bs-btn-active-bg: #7c2d12;
    --bs-btn-active-border-color: #7c2d12;
    --bs-btn-disabled-bg: var(--ma-red);
    --bs-btn-disabled-border-color: var(--ma-red);
}

.ma-root .btn-outline-danger {
    --bs-btn-color: var(--ma-red-strong);
    --bs-btn-bg: var(--ma-surface);
    --bs-btn-border-color: #e6a68a;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--ma-red);
    --bs-btn-hover-border-color: var(--ma-red);
    --bs-btn-active-bg: var(--ma-red-strong);
    --bs-btn-active-border-color: var(--ma-red-strong);
}

.ma-root .btn-warning {
    --bs-btn-color: var(--ma-ink);
    --bs-btn-bg: var(--ma-amber);
    --bs-btn-border-color: var(--ma-amber);
    --bs-btn-hover-color: var(--ma-ink);
    --bs-btn-hover-bg: #d29214;
    --bs-btn-hover-border-color: #d29214;
}

.ma-root .btn-outline-warning {
    --bs-btn-color: var(--ma-amber-ink);
    --bs-btn-border-color: #e3bd6a;
    --bs-btn-hover-color: var(--ma-ink);
    --bs-btn-hover-bg: var(--ma-amber-tint);
    --bs-btn-hover-border-color: var(--ma-amber);
}

.ma-root .btn-light {
    --bs-btn-color: var(--ma-ink);
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-color: var(--ma-ink);
    --bs-btn-hover-bg: var(--ma-teal-tint);
    --bs-btn-hover-border-color: var(--ma-teal-tint);
}

.ma-root .btn-link {
    --bs-btn-color: var(--ma-teal);
    --bs-btn-hover-color: var(--ma-teal-strong);
    --bs-btn-active-color: var(--ma-teal-strong);
    --bs-btn-disabled-color: var(--ma-steel);
    text-decoration: none;
}

.ma-root .btn-link:hover,
.ma-root .btn-link:focus-visible {
    text-decoration: underline;
}

.ma-root .btn-group > .btn-check:checked + .btn,
.ma-root .btn-group > .btn.active {
    z-index: 1;
}

.ma-root .form-control,
.ma-root .form-select {
    border-color: var(--ma-line-strong);
    border-radius: var(--ma-radius-control);
    background-color: var(--ma-surface);
    color: var(--ma-ink);
    font-size: 15px;
}

.ma-root .form-control {
    padding: 6px 12px;
}

.ma-root .form-select {
    padding: 6px 36px 6px 12px;
    background-position: right 12px center;
}

.ma-root .form-control-sm,
.ma-root .form-select-sm {
    font-size: 13px;
}

.ma-root .form-select-sm {
    padding: 4px 32px 4px 10px;
}

.ma-root .form-control-lg,
.ma-root .form-select-lg {
    padding: 10px 14px;
    border-radius: var(--ma-radius-control);
    font-size: 16px;
}

.ma-root .form-control::placeholder {
    color: #687789;
}

/* Fields show focus with the teal border and ring instead of an outline. */
.ma-root .form-control:focus,
.ma-root .form-select:focus {
    border-color: var(--ma-teal);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(11, 122, 134, 0.25);
}

.ma-root .form-control:disabled,
.ma-root .form-select:disabled {
    background-color: var(--ma-hover);
    color: var(--ma-steel);
}

.ma-root .form-label {
    display: block;
    margin-bottom: 4px;
    color: var(--ma-ink);
    font-size: 14px;
    font-weight: 500;
}

.ma-root .form-label.fw-semibold,
.ma-root .form-check-label.fw-semibold {
    font-weight: 500;
}

.ma-root .form-text {
    margin-top: 4px;
    color: var(--ma-steel);
    font-size: 13px;
}

.ma-root .form-check-input {
    border-color: #9aa6b4;
}

.ma-root .form-check-input:checked {
    border-color: var(--ma-teal);
    background-color: var(--ma-teal);
}

.ma-root .form-check-input:focus {
    border-color: var(--ma-teal);
    box-shadow: 0 0 0 3px rgba(11, 122, 134, 0.22);
}

.ma-root .input-group > .form-control:focus,
.ma-root .input-group > .form-select:focus {
    z-index: 5;
}

.ma-root .card {
    --bs-card-border-color: var(--ma-line);
    --bs-card-border-radius: var(--ma-radius-sheet);
    --bs-card-inner-border-radius: 9px;
    --bs-card-cap-bg: var(--ma-surface);
    --bs-card-bg: var(--ma-surface);
}

.ma-root .alert {
    --bs-alert-border-radius: var(--ma-radius-control);
    --bs-alert-padding-x: 14px;
    --bs-alert-padding-y: 10px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.ma-root .alert-info {
    --bs-alert-color: var(--ma-teal-strong);
    --bs-alert-bg: var(--ma-teal-tint);
    --bs-alert-border-color: #b9dde0;
}

.ma-root .alert-light,
.ma-root .alert-secondary {
    --bs-alert-color: var(--ma-ink);
    --bs-alert-bg: var(--ma-paper);
    --bs-alert-border-color: var(--ma-line);
}

.ma-root .badge {
    --bs-badge-font-weight: 600;
    --bs-badge-font-size: 12px;
    --bs-badge-padding-x: 8px;
    --bs-badge-padding-y: 4px;
    --bs-badge-border-radius: 4px;
    letter-spacing: 0;
}

.ma-root .text-bg-light {
    color: var(--ma-ink);
}

.ma-root .dropdown-menu {
    --bs-dropdown-border-color: var(--ma-line);
    --bs-dropdown-border-radius: var(--ma-radius-control);
    --bs-dropdown-font-size: 14px;
    --bs-dropdown-link-color: var(--ma-ink);
    --bs-dropdown-link-hover-color: var(--ma-ink);
    --bs-dropdown-link-hover-bg: var(--ma-hover);
    --bs-dropdown-link-active-color: var(--ma-ink);
    --bs-dropdown-link-active-bg: var(--ma-teal-tint);
    --bs-dropdown-box-shadow: var(--ma-shadow-raised);
    box-shadow: var(--ma-shadow-raised);
}

.ma-root .modal {
    --bs-modal-border-color: var(--ma-line);
    --bs-modal-border-radius: var(--ma-radius-sheet);
    --bs-modal-inner-border-radius: 9px;
    --bs-modal-header-border-color: var(--ma-line);
    --bs-modal-footer-border-color: var(--ma-line);
    --bs-modal-header-padding: 16px 20px;
    --bs-modal-padding: 20px;
    --bs-modal-box-shadow: var(--ma-shadow-raised);
}

.ma-root .modal-content {
    box-shadow: var(--ma-shadow-raised);
}

.ma-root .modal-title {
    font-family: var(--ma-font-sign);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.ma-root .modal-footer {
    padding: 12px 20px;
    gap: 8px;
}

.ma-root .modal-footer > * {
    margin: 0;
}

.ma-root .modal-body {
    display: grid;
}

.ma-root .modal-backdrop,
.ma-root .offcanvas-backdrop {
    --bs-backdrop-bg: #0b1726;
    --bs-backdrop-opacity: 0.45;
}

.ma-root .progress {
    --bs-progress-bar-bg: var(--ma-teal);
    --bs-progress-bg: var(--ma-hover);
    --bs-progress-border-radius: 999px;
}

.ma-root .spinner-border {
    --bs-spinner-border-width: 2px;
}

.ma-root .breadcrumb {
    --bs-breadcrumb-divider-color: var(--ma-steel);
    --bs-breadcrumb-item-active-color: var(--ma-steel);
}

.ma-root .table {
    --bs-table-color: var(--ma-ink);
    --bs-table-border-color: var(--ma-line);
    --bs-table-striped-bg: var(--ma-paper);
    --bs-table-hover-bg: var(--ma-paper);
    font-variant-numeric: tabular-nums;
}

.ma-root .table > :not(caption) > * > * {
    padding: 10px 12px;
}

.ma-root .table-sm > :not(caption) > * > * {
    padding: 8px 12px;
}

.ma-root .table > thead > tr > th {
    border-bottom-color: var(--ma-line-strong);
    background: var(--ma-paper);
    color: var(--ma-steel);
    font-size: 13px;
    font-weight: 600;
}

.ma-root .table-responsive {
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius-control);
    background: var(--ma-surface);
}

.ma-root .table-responsive .table {
    min-width: 760px;
}

.ma-root .table-responsive .table > tbody > tr:last-child > * {
    border-bottom: 0;
}

/* -------------------------------------------------------- Shell primitives */

.ma-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1085;
    padding: 10px 14px;
    border: 2px solid var(--ma-teal);
    border-radius: var(--ma-radius-control);
    background: var(--ma-surface);
    color: var(--ma-teal-strong);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-80px);
}

.ma-skip-link:focus {
    transform: translateY(0);
}

.ma-global-alert {
    position: relative;
    z-index: 1080;
}

.ma-protected-surface,
.ma-app-shell,
.ma-app-content,
.ma-content-container {
    min-width: 0;
}

.ma-shell-page {
    background: var(--ma-paper);
}

/* --------------------------------------------------------- Customer tag */

/* The customer cargo tag (#226): the short code as a small shipping label,
   with a punched string hole. It is the one decorative element; everything
   else stays quiet. The hole is generated content, so the tag's text is the
   code alone. */
.ma-root .ma-cargo-tag {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 7px 0 5px;
    overflow: hidden;
    border: 1px solid var(--ma-ink);
    border-radius: 7px 3px 3px 7px;
    background: var(--ma-surface);
    color: var(--ma-ink);
    font-family: var(--ma-font-sign);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.ma-root .ma-cargo-tag::before {
    content: "";
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--ma-ink);
    border-radius: 999px;
    background: var(--ma-paper);
}

.ma-root .ma-cargo-tag-lg {
    height: 26px;
    padding: 0 9px 0 6px;
    font-size: 17px;
}

/* ------------------------------------------------------------ Brand */

.ma-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 6px;
    background: var(--ma-teal);
    color: #ffffff;
    font-family: var(--ma-font-sign);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

.ma-sidebar-brand {
    color: #ffffff;
    font-family: var(--ma-font-sign);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.ma-sidebar-brand:hover,
.ma-sidebar-brand:focus-visible {
    color: #ffffff;
}

.ma-sidebar-brand .ma-brand-mark {
    width: 30px;
    height: 30px;
    font-size: 19px;
}

/* Page context labels: sentence case, never tracked-out capitals. */
.ma-eyebrow {
    color: var(--ma-steel);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

/* ------------------------------------------------------------ App rail */

.ma-app-sidebar {
    --bs-offcanvas-width: 288px;
    --bs-offcanvas-bg: var(--ma-rail);
    --bs-offcanvas-color: #ffffff;
    background: var(--ma-rail);
    color: #ffffff;
}

.ma-root .ma-app-sidebar.text-bg-dark {
    color: #ffffff;
}

.ma-app-sidebar .offcanvas-header,
.ma-app-sidebar .offcanvas-body {
    background: var(--ma-rail);
    color: #ffffff;
}

.ma-app-sidebar .offcanvas-body {
    min-height: 0;
}

.ma-root .ma-app-sidebar .offcanvas-body {
    gap: 16px;
    padding: 16px;
}

.ma-app-sidebar :focus-visible {
    outline-color: var(--ma-teal-on-dark);
}

.ma-nav-label {
    margin-top: 8px;
    color: var(--ma-rail-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.ma-app-sidebar .nav {
    --bs-nav-pills-border-radius: 6px;
    --bs-nav-pills-link-active-bg: var(--ma-rail-active);
    --bs-nav-pills-link-active-color: #ffffff;
}

.ma-app-sidebar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--ma-rail-text);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
}

.ma-app-sidebar .nav-link:hover,
.ma-app-sidebar .nav-link:focus-visible {
    background: var(--ma-rail-hover);
    color: #ffffff;
}

.ma-app-sidebar .nav-link.active,
.ma-app-sidebar .nav-link[aria-current="page"] {
    background: var(--ma-rail-active);
    color: #ffffff;
    box-shadow: inset 3px 0 0 var(--ma-teal-on-dark);
}

/* Inline mask icons (data: SVG, img-src 'self' data:) drawn in the text
   colour; the link text stays the accessible name. */
.ma-root .ma-app-sidebar .nav-link::before,
.ma-root .ma-mobile-folder-navigation .mobile-folder-link::before,
.ma-root .ma-rail-compose::before,
.ma-root .ma-compose-fab::before {
    content: "";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: var(--ma-icon) center / 20px 20px no-repeat;
    mask: var(--ma-icon) center / 20px 20px no-repeat;
}

.ma-root .ma-app-sidebar .nav-link:not([data-folder]):not([data-ma-view-link]):not(.ma-rail-compose)::before {
    content: none;
}

.ma-root [data-folder="inbox"] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13h5l1.5 2.5h5L16 13h5'/%3E%3Cpath d='M5.5 5h13L21 13v6H3v-6z'/%3E%3C/svg%3E");
}

.ma-root [data-folder="automated"] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 3 5 13.5h6L10 21l8-10.5h-6z'/%3E%3C/svg%3E");
}

.ma-root [data-folder="sent"] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3 10 14'/%3E%3Cpath d='M21 3 14.5 21 10 14 3 9.5z'/%3E%3C/svg%3E");
}

.ma-root [data-folder="drafts"] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4H5.5v16h13v-7.5'/%3E%3Cpath d='M18.5 3.5l2 2L13 13l-3 1 1-3z'/%3E%3C/svg%3E");
}

.ma-root .ma-rail-compose,
.ma-root .ma-compose-fab {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.ma-root [data-ma-view-link="overview"] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='1'/%3E%3C/svg%3E");
}

.ma-root [data-ma-view-link="users"],
.ma-root [data-ma-view-link="staff-activity"] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.8-3.5 3.4-5.5 6.5-5.5s5.7 2 6.5 5.5M16 4.8a3.5 3.5 0 0 1 0 6.4M18 14.8c1.8.8 3 2.6 3.5 5.2'/%3E%3C/svg%3E");
}

.ma-root [data-ma-view-link="mailboxes"] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='1'/%3E%3Cpath d='M7 9v6M11 9v6M15 9v6M19 9v6'/%3E%3C/svg%3E");
}

.ma-root [data-ma-view-link="assignments"],
.ma-root [data-ma-view-link="conversations"] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h14l-3.5-3.5M20 16H6l3.5 3.5'/%3E%3C/svg%3E");
}

.ma-root [data-ma-view-link="reports"] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 20h16M7 16v-5M12 16V6M17 16v-8'/%3E%3C/svg%3E");
}

.ma-root [data-ma-view-link="reminders"] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16v-5a6 6 0 0 1 12 0v5l1.5 2h-15z'/%3E%3Cpath d='M10 20.5a2 2 0 0 0 4 0'/%3E%3C/svg%3E");
}

/* The unread count of the active Inbox view, written by dashboard.js as a
   data attribute and drawn as generated content (decorative for assistive
   technology: the counter strip already announces it). */
.ma-root .ma-app-sidebar .nav-link[data-ma-count]::after,
.ma-root .ma-mobile-folder-navigation .mobile-folder-link[data-ma-count]::after {
    content: attr(data-ma-count);
    content: attr(data-ma-count) / "";
    min-width: 22px;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--ma-amber);
    color: var(--ma-ink);
    font-family: var(--ma-font-sign);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

/* Compose: the one primary action of the rail. */
.ma-root .ma-app-sidebar .ma-rail-compose {
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    margin-bottom: 12px;
    border: 0;
    background: var(--ma-teal);
    color: #ffffff;
    font-weight: 600;
    box-shadow: none;
}

.ma-root .ma-app-sidebar .ma-rail-compose:hover,
.ma-root .ma-app-sidebar .ma-rail-compose:focus-visible {
    background: var(--ma-teal-strong);
    color: #ffffff;
}

.ma-sidebar-note,
.ma-notification-status,
.ma-notification-guidance {
    color: var(--ma-rail-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ma-notification-permission {
    border-top: 1px solid var(--ma-rail-line);
    border-radius: 0;
    background: transparent;
    color: #ffffff;
}

.ma-notification-permission .card-body {
    padding-right: 4px;
    padding-left: 4px;
}

.ma-notification-permission .badge {
    max-width: 144px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.ma-notification-permission .btn {
    min-height: 44px;
    white-space: normal;
}

.ma-root .ma-app-sidebar .btn-light {
    --bs-btn-color: var(--ma-ink);
    --bs-btn-bg: var(--ma-teal-tint);
    --bs-btn-border-color: var(--ma-teal-tint);
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: #ffffff;
}

.ma-root .ma-app-sidebar .btn-outline-light {
    --bs-btn-color: var(--ma-rail-text);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--ma-rail-hover);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--ma-rail-active);
    --bs-btn-active-border-color: transparent;
    --bs-btn-font-size: 14px;
    justify-content: flex-start;
    text-align: left;
}

/* The account block at the bottom of the rail. */
.ma-root .ma-rail-account {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 12px;
    border-top: 1px solid var(--ma-rail-line);
}

.ma-root .ma-rail-account-name {
    min-width: 0;
    margin: 0 0 4px;
    padding: 0 12px;
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-root .ma-rail-account .btn {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 36px;
    padding: 6px 12px;
}

.ma-root .ma-rail-account .btn::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: var(--ma-icon) center / 18px 18px no-repeat;
    mask: var(--ma-icon) center / 18px 18px no-repeat;
}

.ma-root [data-ma-account-signature] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18c2.5 0 3-6 5-6s1.5 4 3.5 4 2-3 3.5-3 1.5 2 3 2h3'/%3E%3Cpath d='M3 21h18'/%3E%3C/svg%3E");
}

.ma-root [data-ma-account-password] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4.5'/%3E%3Cpath d='m11.5 11.5 8-8M16.5 6.5l2.5 2.5M14 9l2 2'/%3E%3C/svg%3E");
}

.ma-root [data-ma-shortcut-help] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='2'/%3E%3Cpath d='M6.5 10h1M10.5 10h1M14.5 10h1M8 14h8'/%3E%3C/svg%3E");
}

.ma-root [data-ma-sign-out] {
    --ma-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4H5v16h9M10 12h10M16.5 8.5 20 12l-3.5 3.5'/%3E%3C/svg%3E");
}

.ma-root .ma-rail-account .ma-sidebar-note {
    margin-top: 8px;
}

/* ---------------------------------------------------------- Top bar */

.ma-app-header {
    min-height: 56px;
    border-bottom-color: var(--ma-line);
    background: var(--ma-surface);
}

.ma-app-header .navbar-brand {
    min-width: 0;
    overflow: hidden;
    color: var(--ma-ink);
    font-family: var(--ma-font-sign);
    font-size: 20px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-root .ma-app-header .navbar-brand.fs-6 {
    font-weight: 600;
}

.ma-mobile-menu-button {
    min-width: 44px;
    min-height: 44px;
}

.ma-root .ma-mobile-menu-button {
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
    padding: 0;
}

.ma-root .ma-mobile-menu-button .navbar-toggler-icon {
    width: 22px;
    height: 22px;
}

.ma-mobile-close {
    width: 44px;
    height: 44px;
    background-size: 16px;
}

.ma-account-chip {
    max-width: 288px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-root .ma-account-chip.badge {
    border-color: var(--ma-line);
    background: var(--ma-paper);
    color: var(--ma-steel);
    font-size: 13px;
    font-weight: 500;
}

/* Bottom tab bar for the folders on phones and portrait tablets. */
.ma-mobile-folder-navigation {
    display: flex;
    gap: 0;
}

.ma-root .ma-mobile-folder-navigation {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1025;
    padding: 0 4px env(safe-area-inset-bottom);
    border-top: 1px solid var(--ma-line);
    background: var(--ma-surface);
    box-shadow: 0 -1px 2px rgba(18, 35, 58, 0.04);
}

.ma-root .mobile-folder-link {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ma-root .ma-mobile-folder-navigation .mobile-folder-link {
    --bs-btn-color: var(--ma-steel);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--ma-ink);
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--ma-teal-strong);
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 6px 2px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.ma-root .ma-mobile-folder-navigation .mobile-folder-link.active,
.ma-root .ma-mobile-folder-navigation .mobile-folder-link[aria-current="page"] {
    color: var(--ma-teal-strong);
    font-weight: 600;
    box-shadow: inset 0 2px 0 var(--ma-teal);
}

.ma-root .ma-mobile-folder-navigation .mobile-folder-link::before {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

.ma-root .ma-mobile-folder-navigation .mobile-folder-link[data-ma-count]::after {
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    width: max-content;
    min-width: 18px;
    margin: 0 auto;
    padding: 1px 5px;
    font-size: 12px;
    transform: translateX(14px);
}

/* The bar leaves while a conversation or the editor fills the screen. */
.ma-root .ma-app-content:has(.ma-conversation-view:not([hidden])) > .ma-mobile-folder-navigation,
.ma-root .ma-app-content:has(.ma-editor:not([hidden])) > .ma-mobile-folder-navigation {
    display: none;
}

.ma-content-container {
    max-width: 1152px;
}

.ma-scroll-target {
    scroll-margin-top: 88px;
}

/* ------------------------------------------------------ Page hierarchy */

.ma-page-title {
    max-width: 760px;
    font-family: var(--ma-font-sign);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.15;
}

.ma-page-lead {
    max-width: 680px;
    color: var(--ma-steel);
    line-height: 1.6;
}

.ma-context-badge {
    border: 1px solid var(--ma-line);
    background: var(--ma-surface);
    color: var(--ma-steel);
    font-size: 12px;
    font-weight: 500;
}

.ma-root .ma-context-badge.badge {
    border-radius: 999px;
}

/* Count tiles (Admin and Supervisor summaries). */
.ma-root .summary-tile {
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius-sheet);
    background: var(--ma-surface);
    box-shadow: none;
}

.ma-root .summary-tile .card-body {
    padding: 14px 16px;
}

.ma-root .summary-tile strong {
    display: block;
    color: var(--ma-ink);
    font-family: var(--ma-font-sign);
    font-size: 30px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 1.05;
}

.ma-root .summary-label {
    color: var(--ma-steel);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.ma-root .summary-detail {
    color: var(--ma-steel);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.ma-root .ma-summary-strip .summary-tile strong {
    font-size: 24px;
}

.ma-root .ma-summary-strip .summary-detail {
    margin-top: 4px;
}

/* ------------------------------------------------------ Folder workspace */

.ma-filter-form {
    padding-top: 12px;
    padding-bottom: 12px;
}

.ma-filter-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ma-root .ma-filter-tools .btn {
    min-height: 32px;
}

.ma-root .ma-filter-count {
    color: var(--ma-steel);
}

.ma-root .ma-filter-count.badge {
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 500;
}

.ma-root .ma-filter-tools .btn.is-active {
    border-color: var(--ma-teal);
    background: var(--ma-teal-tint);
    color: var(--ma-teal-strong);
}

.ma-active-filter-indicator {
    color: var(--ma-teal-strong);
    font-size: 13px;
    font-weight: 600;
}

.ma-root .ma-folder-toolbar {
    min-height: 40px;
}

.ma-root .ma-folder-title {
    margin-right: 4px;
    font-family: var(--ma-font-sign);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
}

/* No display utility on the strip: the folder switch hides it with the
   hidden attribute outside the Inbox. */
.ma-root .ma-counter-strip {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.ma-root .ma-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-height: 30px;
    padding: 4px 12px;
    border: 1px solid var(--ma-line);
    border-radius: 999px;
    background: var(--ma-surface);
    color: var(--ma-ink);
    font-size: 13px;
    line-height: 20px;
}

.ma-root .ma-counter strong {
    font-family: var(--ma-font-sign);
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 20px;
}

.ma-root .ma-counter .summary-label {
    color: var(--ma-steel);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.ma-root button.ma-counter:hover,
.ma-root button.ma-counter:focus-visible {
    border-color: #a9d6da;
    background: var(--ma-teal-tint);
}

.ma-root .ma-counter[aria-pressed="true"] {
    border-color: var(--ma-teal);
    background: var(--ma-teal-tint);
    color: var(--ma-teal-strong);
    box-shadow: inset 0 0 0 1px var(--ma-teal);
}

.ma-root .ma-counter[aria-pressed="true"] .summary-label {
    color: var(--ma-teal-strong);
}

.ma-root .ma-list-header {
    min-height: 44px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--ma-line);
}

.ma-root .ma-list-header h2 {
    font-size: 15px;
    font-weight: 600;
}

.ma-root .ma-list-summary {
    color: var(--ma-steel);
    font-size: 13px;
}

/* #185: keyboard shortcuts. The list cursor is marked on its row, and the
   help entry point is a quiet link on keyboard-sized screens. */
.ma-root .ma-mail-row.is-cursor {
    outline: 2px solid var(--ma-teal);
    outline-offset: -2px;
}

.ma-root .ma-shortcut-help-button {
    display: none;
    margin-left: auto;
    padding: 0 4px;
    color: var(--ma-steel);
    font-size: 13px;
}

@media (min-width: 768px) {
    .ma-root .ma-shortcut-help-button {
        display: inline-block;
    }
}

.ma-root .ma-shortcut-list .ma-shortcut-item {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ma-line);
}

.ma-root .ma-shortcut-list .ma-shortcut-item:last-child {
    border-bottom: 0;
}

.ma-root .ma-shortcut-list dt {
    flex: 0 0 136px;
    font-weight: 500;
}

.ma-root .ma-shortcut-list dd {
    flex: 1 1 200px;
    margin: 0;
}

/* #179: floating Compose button below the desktop breakpoint, where the
   rail is an offcanvas. No display utility is used, so the hidden attribute
   keeps working. The list reserves room so the button never covers the last
   row or the Load more control. */
.ma-root .ma-compose-fab {
    position: fixed;
    right: 16px;
    bottom: 76px;
    z-index: 1020;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 0 22px 0 18px;
    border-radius: 999px;
    box-shadow: var(--ma-shadow-raised);
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .ma-root .ma-has-compose-fab {
        padding-bottom: 72px;
    }

    .ma-root .ma-filter-form .ma-toolbar-search {
        flex: 1 1 0;
    }

    .ma-root .ma-filter-form .ma-filters-toggle {
        display: inline-flex;
    }

    .ma-root .ma-filter-form .ma-filter-panel {
        display: none;
        flex: 1 1 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ma-root .ma-filter-form .ma-filter-panel.is-open {
        display: flex;
    }

    .ma-root .ma-filter-form .ma-filter-panel .ma-toolbar-select {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }

    /* Room for the fixed bottom tab bar. */
    .ma-root .ma-app-content:has(> .ma-mobile-folder-navigation) {
        padding-bottom: 64px;
    }
}

@media (min-width: 992px) {
    .ma-root .ma-compose-fab {
        display: none;
    }
}

.ma-root .ma-no-mailbox-state {
    max-width: 720px;
}

/* #171: the "N new conversations" control of the live Inbox updates. */
.ma-root .ma-live-update-region {
    min-width: 0;
}

.ma-root .ma-live-update {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: normal;
}

.ma-toolbar {
    padding: 12px 16px;
    background: var(--ma-surface);
}

.ma-root .ma-toolbar-search {
    flex: 1 1 320px;
    width: auto;
    min-width: 0;
}

.ma-root .ma-toolbar-search .form-control {
    padding-left: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b7f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E");
    background-position: left 11px center;
    background-repeat: no-repeat;
    background-size: 17px 17px;
}

.ma-root .ma-toolbar-select {
    flex: 1 1 200px;
    width: auto;
    max-width: 320px;
    min-width: 0;
}

.ma-root .ma-filter-chips {
    gap: 6px;
}

.ma-root .ma-chip-select {
    flex: 0 0 auto;
    width: auto;
    min-height: 32px;
    border-color: var(--ma-line);
    border-radius: var(--ma-radius-control);
    background-color: var(--ma-paper);
    color: var(--ma-ink);
}

.ma-root .ma-chip-select:hover {
    border-color: var(--ma-line-strong);
}

.ma-root .ma-filter-chips .btn {
    min-height: 32px;
}

.ma-root .ma-filter-chips .btn-outline-secondary {
    --bs-btn-bg: var(--ma-paper);
    --bs-btn-border-color: var(--ma-line);
}

/* #226: the filter controls. On wide layouts the panel is transparent to
   layout (its controls join the toolbar row) and the Filters button is not
   shown; below 992px and in the split list pane the controls collapse
   behind the button. */
.ma-root .ma-filters-toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
}

.ma-root .ma-filters-count {
    min-width: 20px;
    padding: 2px 6px;
    background: var(--ma-teal);
    color: #ffffff;
    font-size: 12px;
}

.ma-root .ma-filter-panel {
    display: contents;
}

.ma-root .ma-filter-panel > .ma-filter-chips,
.ma-root .ma-filter-panel > .ma-advanced-filters {
    flex: 1 1 100%;
}

.ma-advanced-filters {
    padding: 12px;
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius-control);
    background: var(--ma-paper);
}

/* Sheets: the list pane, the reading pane and the composer. Flat, white,
   hairline-bordered; no floating card shadows. */
.ma-panel,
.ma-section-card,
.ma-root .conversation-timeline {
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius-sheet);
    background: var(--ma-surface);
    box-shadow: var(--ma-shadow-sheet);
}

.ma-root .ma-panel.border-0,
.ma-root .ma-section-card.border-0,
.ma-root .conversation-timeline.border-0 {
    border: 1px solid var(--ma-line);
}

.ma-root .conversation-list,
.ma-root .conversation-timeline,
.ma-root .editor-attachment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Mail list: dense hairline rows, not cards. One line per row on wide
   screens, three short lines on phones and in the split list. Unread rows
   carry the amber signal bar and a semi-bold subject; the selected row is
   teal-tinted. */
.ma-root .conversation-item {
    border-color: var(--ma-line);
}

.ma-root .ma-mail-row {
    position: relative;
    background: var(--ma-surface);
}

.ma-root .ma-mail-row:hover,
.ma-root .ma-mail-row:focus-within {
    background: var(--ma-paper);
}

.ma-root .ma-mail-row.is-unread {
    box-shadow: inset 4px 0 0 var(--ma-amber);
}

.ma-root .ma-mail-row.is-selected {
    background: var(--ma-teal-tint);
}

.ma-root .ma-mail-row-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    min-height: 52px;
    padding: 6px 12px 6px 14px;
}

.ma-root .ma-mail-select {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0 4px;
}

.ma-root .ma-mail-icon-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    color: #8592a3;
    font-size: 18px;
    line-height: 1;
}

.ma-root .ma-mail-icon-button:hover,
.ma-root .ma-mail-icon-button:focus-visible {
    background: var(--ma-hover);
    color: var(--ma-ink);
}

.ma-root .conversation-star-toggle[aria-pressed="true"] {
    color: var(--ma-amber-ink);
}

.ma-root .ma-mail-link {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 44px;
    border-radius: 6px;
}

.ma-root .ma-mail-headline {
    display: contents;
}

.ma-root .ma-mail-sender {
    order: 1;
    display: flex;
    flex: 0 0 132px;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    color: var(--ma-steel);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-root .ma-mail-text {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-root .ma-mail-text .conversation-subject {
    color: var(--ma-ink);
    font-weight: 400;
}

.ma-root .ma-mail-text .conversation-snippet {
    color: var(--ma-steel);
}

.ma-root .ma-mail-text .conversation-snippet::before {
    content: "  ";
    white-space: pre;
}

.ma-root .ma-mail-row.is-unread .conversation-subject,
.ma-root .ma-mail-row.is-unread .ma-mail-time {
    color: var(--ma-ink);
    font-weight: 600;
}

.ma-root .ma-mail-meta {
    order: 3;
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ma-root .ma-mail-chip {
    max-width: 168px;
    padding: 1px 7px;
    overflow: hidden;
    border: 1px solid var(--ma-line);
    border-radius: 4px;
    color: var(--ma-steel);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-root .ma-mail-chip.conversation-owner[data-owner="self"] {
    display: none;
}

/* Unassigned is the shared pool waiting for a reply: an attention marker. */
.ma-root .ma-mail-chip.conversation-owner[data-owner="none"] {
    border-color: #f1d48e;
    background: var(--ma-amber-tint);
    color: var(--ma-amber-ink);
}

.ma-root .ma-mail-chip-pinned {
    border-color: #a9d6da;
    background: var(--ma-teal-tint);
    color: var(--ma-teal-strong);
}

.ma-root .ma-mail-chip-priority {
    border-color: #f0c3ad;
    background: var(--ma-red-tint);
    color: var(--ma-red-strong);
}

.ma-root .ma-mail-chip-mailbox {
    border-color: transparent;
    padding-right: 0;
    padding-left: 0;
}

.ma-root .ma-mail-time {
    order: 4;
    flex: 0 0 auto;
    min-width: 48px;
    color: var(--ma-steel);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

/* Row actions (#221): the primary slot (Claim) and the secondary slot
   (Mark as read, Pin) are separate. The primary action is always visible and
   clickable; the secondary slot never covers it. */
.ma-root .ma-mail-actions {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.ma-root .ma-mail-primary-action {
    display: flex;
    order: 1;
    align-items: center;
}

.ma-root .ma-mail-primary-action:empty {
    display: none;
}

.ma-root .ma-mail-primary-action .conversation-claim-toggle {
    --bs-btn-color: var(--ma-teal-strong);
    --bs-btn-bg: var(--ma-surface);
    --bs-btn-border-color: var(--ma-teal);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--ma-teal);
    --bs-btn-hover-border-color: var(--ma-teal);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--ma-teal-strong);
    --bs-btn-active-border-color: var(--ma-teal-strong);
    --bs-btn-disabled-color: var(--ma-steel);
    --bs-btn-disabled-bg: var(--ma-surface);
    --bs-btn-disabled-border-color: var(--ma-line);
    font-weight: 600;
}

.ma-root .ma-mail-more {
    order: 2;
}

/* Touch devices: the secondary actions open on their own line under the
   primary action from the "More actions" toggle. */
.ma-root .ma-mail-secondary-actions {
    display: none;
    order: 3;
    flex-basis: 100%;
    justify-content: flex-end;
    gap: 6px;
}

.ma-root .ma-mail-row.is-actions-open .ma-mail-secondary-actions {
    display: flex;
    flex-wrap: wrap;
}

/* Pointer devices: the secondary actions appear on hover or keyboard focus
   in their own slot to the left of the primary action, overlaying the row
   time/chips instead of the Claim button; the touch toggle is not needed. */
@media (hover: hover) and (min-width: 768px) {
    .ma-root .ma-mail-more {
        display: none;
    }

    .ma-root .ma-mail-secondary-actions {
        position: absolute;
        top: 50%;
        right: 100%;
        z-index: 2;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        margin-right: 6px;
        padding: 4px;
        border-radius: 6px;
        background: var(--ma-paper);
        box-shadow: -12px 0 12px var(--ma-paper);
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-50%);
        transition: opacity 120ms ease-in-out;
    }

    .ma-root .ma-mail-row:hover .ma-mail-secondary-actions,
    .ma-root .ma-mail-row:focus-within .ma-mail-secondary-actions {
        opacity: 1;
        pointer-events: auto;
    }

    .ma-root .ma-mail-row.is-selected .ma-mail-secondary-actions,
    .ma-root .ma-mail-row.is-open .ma-mail-secondary-actions {
        background: var(--ma-teal-tint);
        box-shadow: -12px 0 12px var(--ma-teal-tint);
    }
}

@media (max-width: 1199.98px) {
    .ma-root .ma-mail-chip-mailbox {
        display: none;
    }
}

/* Touch-sized icon buttons wherever the shared 44px control height applies. */
@media (max-width: 991.98px) {
    .ma-root .ma-mail-icon-button {
        width: 44px;
        height: 44px;
    }
}

/* Phones: sender, chips and time on the first line, then the subject and
   the snippet, each truncated to one line. */
@media (max-width: 767.98px) {
    .ma-root .ma-mail-row-body {
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 2px;
        padding: 8px 6px 8px 10px;
    }

    .ma-root .ma-mail-link {
        display: block;
        padding-top: 4px;
        font-size: 15px;
        line-height: 1.35;
    }

    .ma-root .ma-mail-headline {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        margin-bottom: 3px;
    }

    .ma-root .ma-mail-sender {
        flex: 1 1 0;
    }

    .ma-root .ma-mail-time {
        min-width: 0;
    }

    .ma-root .ma-mail-text {
        display: block;
        white-space: normal;
    }

    .ma-root .ma-mail-text .conversation-subject,
    .ma-root .ma-mail-text .conversation-snippet {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ma-root .ma-mail-text .conversation-snippet {
        font-size: 14px;
    }

    .ma-root .ma-mail-text .conversation-snippet::before {
        content: none;
    }

    .ma-root .ma-mail-meta .ma-mail-chip:not(.conversation-owner):not(.ma-mail-chip-priority) {
        display: none;
    }

    /* The visible Claim button marks an unassigned row on phones. */
    .ma-root .ma-mail-row.is-claimable .conversation-owner[data-owner="none"] {
        display: none;
    }

    .ma-root .ma-mail-select {
        margin-top: 14px;
    }

    .ma-root .ma-mail-actions {
        max-width: 132px;
    }

    .ma-root .ma-mail-row.is-actions-open .ma-mail-secondary-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Compose customer picker (#224): a combobox over a Bootstrap dropdown
   menu. Each option shows the customer (name and cargo tag) and the time,
   then the masked last subject and the mailbox, each truncated to one line. */
.ma-root .ma-customer-picker {
    position: relative;
}

.ma-root .ma-customer-options {
    max-height: 320px;
    overflow-y: auto;
    padding-top: 4px;
    padding-bottom: 4px;
}

.ma-root .ma-customer-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 44px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--ma-line);
    cursor: pointer;
    white-space: normal;
}

.ma-root .ma-customer-option:last-child {
    border-bottom: 0;
}

.ma-root .ma-customer-option.active,
.ma-root .ma-customer-option:active {
    background: var(--ma-teal-tint);
    color: var(--ma-ink);
}

.ma-root .ma-customer-option-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ma-root .ma-customer-option-name {
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-root .ma-customer-option-code {
    flex: 0 0 auto;
    color: var(--ma-ink);
}

.ma-root .ma-customer-option-time {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--ma-steel);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.ma-root .ma-customer-option-detail {
    overflow: hidden;
    color: var(--ma-steel);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-root .ma-customer-option-mailbox {
    margin-left: 12px;
    color: #687789;
}

.ma-root .ma-customer-option-subject + .ma-customer-option-mailbox {
    padding-left: 12px;
    border-left: 1px solid var(--ma-line-strong);
}

.ma-root .ma-customer-option-subject:only-child,
.ma-root .ma-customer-option-mailbox:only-child {
    margin-left: 0;
}

.ma-root .ma-customer-option.active .ma-customer-option-time,
.ma-root .ma-customer-option.active .ma-customer-option-detail {
    color: var(--ma-ink);
}

.ma-root .ma-customer-option-more {
    justify-content: center;
    color: var(--ma-teal-strong);
    font-weight: 600;
}

.ma-root .dropdown-header {
    padding: 6px 14px;
    color: var(--ma-steel);
    font-size: 13px;
    font-weight: 500;
}

.ma-bulk-bar {
    padding: 8px 16px;
    background: var(--ma-surface);
}

.ma-root .ma-bulk-select-all {
    color: var(--ma-steel);
    font-size: 13px;
}

.ma-root .ma-bulk-count {
    color: var(--ma-steel);
    font-weight: 500;
}

.ma-bulk-action-panel {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #a9d6da;
    border-radius: var(--ma-radius-control);
    background: var(--ma-teal-tint);
}

.ma-root .ma-bulk-action-panel .form-text {
    color: var(--ma-steel);
}

.ma-action-grid,
.ma-root .bulk-action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ma-root .bulk-action-grid .btn {
    background: var(--ma-surface);
}

.ma-root .ma-bulk-tags {
    max-width: 560px;
}

/* ------------------------------------------------------ Reading pane */

.ma-root .ma-conversation-toolbar {
    min-height: 40px;
}

.ma-root .ma-conversation-toolbar .ma-context-badge {
    display: none;
}

.ma-root .conversation-header .card-body {
    padding: 20px 24px;
}

.ma-root .ma-conversation-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.ma-root .ma-conversation-title .h3 {
    min-width: 0;
    margin: 0;
    font-family: var(--ma-font-sign);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
}

.ma-root .conversation-header .ma-eyebrow {
    display: none;
}

.ma-root .timeline-entry h3 {
    font-size: 16px;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.ma-root .timeline-entry > p {
    color: var(--ma-steel);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ma-root .timeline-meta {
    color: var(--ma-steel);
    font-size: 13px;
    font-weight: 500;
}

.ma-root .conversation-fact {
    min-width: 0;
}

.ma-root .conversation-fact dt {
    color: var(--ma-steel);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.ma-root .conversation-fact dd {
    font-size: 15px;
    overflow-wrap: anywhere;
}

.ma-root .conversation-fact dd.fw-semibold {
    font-weight: 500;
}

.ma-root .timeline-entry {
    border-bottom: 1px solid var(--ma-line);
}

.ma-root .timeline-entry:last-child {
    border-bottom: 0;
}

.ma-kind-badge,
.ma-root .timeline-kind {
    border: 1px solid var(--ma-line);
    background: var(--ma-paper);
    color: var(--ma-steel);
}

.ma-root .timeline-state {
    color: var(--ma-teal-strong);
    font-size: 12px;
    font-weight: 600;
}

.ma-root .conversation-view .h3,
.ma-root .message-editor .h3 {
    overflow-wrap: anywhere;
}

.ma-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 0 12px;
    border-top: 1px solid var(--ma-line);
    background: rgba(246, 248, 250, 0.97);
}

.ma-sticky-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
}

/* ------------------------------------------------------------ Composer */

.ma-editor-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ma-line);
}

.ma-editor-actions .btn,
.ma-root .editor-attach-picker,
.ma-root .editor-attachment-remove {
    min-height: 44px;
}

.ma-root .ma-editor-actions .btn-primary {
    min-width: 136px;
    font-weight: 600;
}

.ma-root .ma-editor-actions .btn-outline-secondary {
    --bs-btn-border-color: transparent;
    --bs-btn-bg: transparent;
    --bs-btn-hover-border-color: transparent;
}

.ma-root .editor-form .card-body {
    padding: 20px 24px;
}

.ma-root .editor-form .btn-group .btn {
    min-height: 32px;
}

.ma-root .editor-dropzone-hint {
    color: var(--ma-steel);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ma-root .editor-dropzone-hint.fw-semibold {
    font-weight: 500;
}

.ma-root .editor-rich,
.ma-root .editor-plain {
    min-height: 192px;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.ma-root .editor-rich {
    overflow-y: auto;
}

.ma-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius-control);
    background: var(--ma-paper);
}

.ma-root .ma-editor-toolbar .btn {
    min-height: 40px;
    min-width: 40px;
}

.ma-root .ma-editor-toolbar .btn-outline-secondary {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: var(--ma-surface);
    --bs-btn-hover-border-color: var(--ma-line);
    --bs-btn-color: var(--ma-ink);
}

.ma-root .ma-editor-toolbar .btn.active,
.ma-root .ma-editor-toolbar .btn[aria-pressed="true"] {
    border-color: #a9d6da;
    background: var(--ma-teal-tint);
    color: var(--ma-teal-strong);
}

/* GH-184: decorative inline SVG toolbar icons drawn with the button color. */
.ma-root .ma-toolbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.ma-root .ma-toolbar-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.ma-root .ma-toolbar-icon.is-strong {
    stroke-width: 2.25;
}

.ma-root .ma-toolbar-icon .ma-toolbar-icon-dot {
    stroke-width: 2.75;
}

.ma-root .ma-toolbar-icon .ma-toolbar-icon-thin {
    stroke-width: 1.25;
}

.ma-root .editor-preview-frame {
    min-height: 288px;
    justify-self: stretch;
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius-control);
    background: var(--ma-surface);
}

.ma-root .editor-preview-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ma-dropzone {
    border: 1px dashed #a9b4c1;
    transition: border-color 150ms ease, background 150ms ease;
}

.ma-root .editor-dropzone.is-dragging {
    border-color: var(--ma-teal);
    background: var(--ma-teal-tint);
}

.ma-root .editor-form .card.bg-body-tertiary {
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius-control);
}

.ma-root .editor-form .card.bg-body-tertiary .card-body {
    padding: 12px 14px;
}

.ma-root .editor-attachment-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ma-line);
}

.ma-root .editor-attachment-item:last-child {
    border-bottom: 0;
}

.ma-root .editor-attachment-name {
    flex: 1 1 160px;
    min-width: 0;
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-root .editor-attachment-size {
    flex: 0 0 auto;
    color: var(--ma-steel);
    font-size: 13px;
    white-space: nowrap;
}

.ma-root .ma-attachment-state {
    flex: 0 0 auto;
    color: var(--ma-teal-strong);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ma-root .editor-attachment-progress {
    flex: 0 1 96px;
}

.ma-root .ma-attachment-controls {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}

/* ------------------------------------------------------ Responsive base */

@media (min-width: 768px) {
    .ma-page-title {
        font-size: 28px;
    }

    .ma-root .summary-tile strong {
        font-size: 32px;
    }

    .ma-root .ma-summary-strip .summary-tile strong {
        font-size: 28px;
    }
}

/* Persistent rail from 992px: an icon rail up to 1199px, the full rail
   with labels from 1200px. */
@media (min-width: 992px) {
    .ma-app-sidebar {
        position: sticky;
        top: 0;
        flex: 0 0 240px;
        align-self: flex-start;
        width: 240px;
    }

    .ma-app-sidebar .offcanvas-body {
        overflow-y: auto;
    }

    .ma-root .ma-app-sidebar .offcanvas-body {
        gap: 16px;
        padding: 20px 16px 16px;
    }

    /* The rail carries the folder, the account and the brand, so the top
       bar is not needed on desktop. */
    .ma-root .ma-app-header {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .ma-app-sidebar {
        flex: 0 0 76px;
        width: 76px;
    }

    .ma-root .ma-app-sidebar .offcanvas-body {
        align-items: center;
        padding: 16px 12px;
    }

    .ma-root .ma-app-sidebar .ma-sidebar-brand {
        font-size: 0;
    }

    .ma-root .ma-app-sidebar .ma-sidebar-brand .ma-brand-mark {
        font-size: 19px;
    }

    .ma-root .ma-app-sidebar .nav {
        align-items: center;
        width: 100%;
    }

    .ma-root .ma-app-sidebar .nav-link,
    .ma-root .ma-app-sidebar .ma-rail-compose {
        justify-content: center;
        width: 48px;
        min-height: 44px;
        padding: 0;
        font-size: 0;
    }

    .ma-root .ma-app-sidebar .nav-link[data-ma-count]::after {
        position: absolute;
        top: 3px;
        right: 1px;
        min-width: 18px;
        padding: 1px 4px;
        font-size: 12px;
    }

    /* Labels give way to icons; each control keeps its text as the
       accessible name and a matching tooltip. */
    .ma-root .ma-app-sidebar .ma-nav-label,
    .ma-root .ma-app-sidebar .ma-sidebar-note,
    .ma-root .ma-app-sidebar .ma-rail-account-name,
    .ma-root .ma-notification-permission .ma-notification-status,
    .ma-root .ma-notification-permission .ma-notification-guidance,
    .ma-root .ma-notification-permission .ma-nav-label,
    .ma-root .ma-notification-permission .badge {
        display: none;
    }

    .ma-root .ma-notification-permission {
        width: 100%;
        border-top: 0;
    }

    .ma-root .ma-notification-permission .card-body {
        padding: 0;
    }

    .ma-root .ma-notification-permission .btn {
        padding: 4px;
        font-size: 12px;
        line-height: 1.2;
    }

    .ma-root .ma-rail-account {
        align-items: center;
        width: 100%;
    }

    .ma-root .ma-rail-account .btn {
        justify-content: center;
        width: 48px;
        min-height: 44px;
        padding: 0;
        font-size: 0;
    }

    .ma-root .ma-rail-account .btn::before {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
        -webkit-mask-size: 20px 20px;
        mask-size: 20px 20px;
    }
}

@media (min-width: 1200px) {
    .ma-page-title {
        font-size: 28px;
    }
}

@media (max-width: 991.98px) {
    .ma-root .form-control,
    .ma-root .form-select,
    .ma-root .btn:not(.btn-close),
    .ma-app-sidebar .nav-link {
        min-height: 44px;
    }

    /* 16px controls keep mobile browsers from zooming on focus. */
    .ma-root .form-control,
    .ma-root .form-select {
        font-size: 16px;
    }

    .ma-root .ma-chip-select,
    .ma-root .form-select-sm {
        font-size: 15px;
    }

    /* The top bar names the folder on small screens; the page heading stays
       for assistive technology. */
    .ma-root .ma-folder-title {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .ma-editor-actions {
        position: sticky;
        bottom: 0;
        z-index: 5;
        justify-content: flex-end;
        margin: 16px -4px 0;
        padding: 10px 4px 12px;
        border-top: 1px solid var(--ma-line);
        background: rgba(255, 255, 255, 0.97);
    }

    .ma-editor-actions .btn {
        flex: 1 1 112px;
        min-width: 0;
    }

    .ma-root .ma-editor-actions .btn-primary {
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .ma-account-chip {
        max-width: 168px;
    }

    .ma-notification-permission .card-body {
        padding: 14px;
    }

    .ma-action-row .btn {
        display: block;
    }

    .ma-root .ma-summary-strip .summary-detail {
        display: none;
    }

    .ma-root .ma-editor-toolbar .btn {
        flex: 1 1 40px;
    }

    .ma-root .editor-rich,
    .ma-root .editor-plain {
        min-height: 144px;
    }

    .ma-root .editor-attachment-item {
        row-gap: 6px;
    }

    .ma-root .editor-attachment-progress {
        flex: 1 1 240px;
    }

    .ma-root .ma-attachment-controls {
        flex: 1 1 240px;
    }

    .ma-root .ma-attachment-controls .btn {
        flex: 1 1 128px;
    }

    .ma-root .editor-attachment-name {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .ma-root .editor-form .card-body,
    .ma-root .conversation-header .card-body {
        padding: 16px;
    }

    .ma-root .ma-counter {
        padding: 3px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ma-root *,
    .ma-root *::before,
    .ma-root *::after {
        scroll-behavior: auto;
        transition: none;
        animation: none;
    }
}

/* ------------------------------------- Message detail views and states */

.ma-root .ma-breadcrumb {
    color: var(--ma-steel);
    font-size: 14px;
}

.ma-root .ma-breadcrumb a {
    font-weight: 500;
    text-decoration: none;
}

.ma-root .ma-detail-card {
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius-sheet);
    background: var(--ma-surface);
}

.ma-root .ma-detail-message {
    overflow-wrap: anywhere;
}

.ma-root .ma-detail-term {
    color: var(--ma-steel);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.ma-root .ma-detail-value {
    font-weight: 500;
    overflow-wrap: anywhere;
}

.ma-root .ma-detail-note {
    font-size: 14px;
}

.ma-root .ma-state-badge {
    font-size: 13px;
}

.ma-root .ma-page-state {
    max-width: 720px;
    border: 1px solid var(--ma-line);
}

.ma-root .ma-page-state h1,
.ma-root .ma-auth-card h1 {
    font-family: var(--ma-font-sign);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
}

.ma-root .ma-state-links {
    list-style: none;
}

.ma-root .ma-message-section {
    display: grid;
}

.ma-root .ma-message-note {
    color: var(--ma-steel);
    font-size: 13px;
}

/* #223: the message page uses the available width up to a readable line
   length, and shows one body. */
.ma-root .ma-message-page {
    width: 100%;
    max-width: 1000px;
}

.ma-root .ma-message-body {
    min-width: 0;
}

/* The sandboxed rich body frame (no scripts, DEC-SEC-002) is sized to its
   document by the page; a very long message is capped with an expand
   toggle. */
.ma-root .ma-rich-body-frame {
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--ma-surface);
}

.ma-root .ma-message-rich-body {
    display: block;
    width: 100%;
    height: 160px;
    border: 0;
    background: var(--ma-surface);
}

.ma-root .ma-message-text-body,
.ma-root .ma-body-text-visible,
.ma-root .ma-quote-segment {
    max-width: 760px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.ma-root .ma-body-text {
    min-width: 0;
}

.ma-root .ma-body-toolbar,
.ma-root .ma-body-notices {
    color: var(--ma-steel);
    font-size: 13px;
}

/* Quoted history: every quote level shares one subtle left border and the
   same indentation, so nested quotes never form a staircase. */
.ma-root .ma-body-quoted {
    margin-top: 4px;
    color: var(--ma-steel);
}

.ma-root .ma-quote-segment + .ma-quote-segment {
    margin-top: 6px;
}

.ma-root .ma-quote-segment:not([data-depth="0"]) {
    padding-left: 12px;
    border-left: 3px solid var(--ma-line);
}

.ma-root .ma-quote-segment[data-depth="2"],
.ma-root .ma-quote-segment[data-depth="3"] {
    border-left-color: #e6eaef;
}

.ma-root .ma-quote-toggle,
.ma-root .ma-body-switch,
.ma-root .ma-load-images,
.ma-root .ma-frame-expand {
    min-height: 32px;
    font-size: 13px;
    font-weight: 500;
}

.ma-root .ma-quote-toggle.btn-outline-secondary,
.ma-root .ma-load-images.btn-outline-secondary,
.ma-root .ma-frame-expand.btn-outline-secondary {
    --bs-btn-bg: var(--ma-paper);
    --bs-btn-border-color: var(--ma-line);
}

.ma-root .ma-timeline-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* --------------------------------- Admin and Supervisor surfaces (MA-UI-03) */

.ma-sign-out-button {
    min-height: 44px;
}

.ma-pagination-row,
.ma-report-heading-row,
.ma-report-metrics,
.ma-table-actions,
.ma-permission-options,
.ma-state-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ma-pagination-row,
.ma-report-heading-row {
    justify-content: space-between;
}

.ma-pagination-status {
    color: var(--ma-steel);
    font-size: 14px;
    font-weight: 500;
}

.ma-report-block {
    padding-top: 4px;
}

.ma-report-block + .ma-report-block {
    padding-top: 20px;
    border-top: 1px solid var(--ma-line);
}

.ma-report-metrics span {
    padding: 6px 12px;
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius-control);
    background: var(--ma-paper);
    color: var(--ma-steel);
    font-size: 14px;
}

.ma-report-metrics strong {
    margin-left: 6px;
    color: var(--ma-ink);
    font-family: var(--ma-font-sign);
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.ma-subpanel {
    padding: 16px;
    border: 1px solid var(--ma-line);
    border-radius: var(--ma-radius-control);
    background: var(--ma-paper);
}

.ma-permission-options {
    min-height: 44px;
    justify-content: space-between;
}

.ma-table-actions {
    min-width: 176px;
}

.ma-table-actions .btn {
    min-height: 32px;
}

.ma-compact-field {
    min-width: 112px;
}

.ma-state-actions .btn {
    min-height: 44px;
}

/* #183: a region that receives focus from script (the conversation view, the
   editor, a fixed page state heading) shows a visible ring, so a keyboard or
   screen-magnifier user can see where focus went. It is quieter than the
   control ring because the region is not itself an action. */
.ma-root .ma-conversation-view:focus,
.ma-root .ma-editor:focus,
.ma-root .ma-page-state h1:focus {
    outline: 2px solid transparent;
    outline-offset: 4px;
    border-radius: var(--ma-radius-control);
}

/* The ring is drawn for keyboard navigation only; focus the page itself
   moves on load or after a pointer action carries .ma-focus-quiet. */
.ma-root .ma-conversation-view:focus-visible:not(.ma-focus-quiet),
.ma-root .ma-editor:focus-visible:not(.ma-focus-quiet),
.ma-root .ma-page-state h1:focus-visible:not(.ma-focus-quiet) {
    outline-color: #8fc6cc;
}

@media (max-width: 575.98px) {
    .ma-report-heading-row {
        align-items: stretch;
    }

    .ma-report-heading-row .btn,
    .ma-state-actions .btn {
        flex: 1 1 160px;
    }

    .ma-pagination-row .btn {
        flex: 1 1 112px;
    }

    .ma-pagination-status {
        flex: 1 1 240px;
        text-align: center;
    }
}

/* GH-176 inline conversation thread: the messages are sections of one
   document sheet, separated by hairlines. The latest message is expanded;
   earlier ones collapse to sender, snippet and time. Ownership and status
   changes are compact event rows between them. */
.ma-root .ma-thread-message {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-color: var(--ma-line);
}

.ma-root .ma-thread-toggle {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 24px;
    border: 0;
    background: transparent;
    color: var(--ma-ink);
    text-align: left;
}

.ma-root .ma-thread-toggle:hover {
    background: var(--ma-paper);
}

.ma-root .ma-thread-avatar {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--ma-line-strong);
    border-radius: 6px;
    background: var(--ma-paper);
    color: var(--ma-ink);
    font-family: var(--ma-font-sign);
    font-size: 17px;
    font-weight: 600;
}

.ma-root .ma-thread-avatar.is-seller {
    border-color: var(--ma-ink);
    background: var(--ma-ink);
    color: #ffffff;
}

/* The customer's own messages carry a parcel mark; the cargo tag beside it
   names the customer. The letter stays in the DOM, hidden from view. */
.ma-root .ma-thread-avatar:not(.is-seller) {
    font-size: 0;
}

.ma-root .ma-thread-avatar:not(.is-seller)::before {
    content: "";
    width: 18px;
    height: 18px;
    background: var(--ma-steel);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5 12 3l8.5 4.5v9L12 21l-8.5-4.5z'/%3E%3Cpath d='M3.5 7.5 12 12l8.5-4.5M12 12v9M7.8 5.3l8.4 4.5'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5 12 3l8.5 4.5v9L12 21l-8.5-4.5z'/%3E%3Cpath d='M3.5 7.5 12 12l8.5-4.5M12 12v9M7.8 5.3l8.4 4.5'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

.ma-root .ma-thread-heading {
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    min-width: 0;
}

.ma-root .ma-thread-sender {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ma-root .ma-thread-state {
    font-size: 12px;
}

.ma-root .ma-thread-state.is-failed {
    color: var(--ma-red-strong);
}

.ma-root .ma-thread-snippet {
    flex: 1 1 160px;
    min-width: 0;
    overflow: hidden;
    color: var(--ma-steel);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ma-root .ma-thread-message.is-expanded .ma-thread-snippet {
    display: none;
}

.ma-root .ma-thread-time {
    flex: 0 0 auto;
    color: var(--ma-steel);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ma-root .ma-thread-body {
    padding: 4px 24px 24px 68px;
}

.ma-root .ma-thread-subject {
    max-width: 760px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.ma-root .ma-thread-content {
    margin-bottom: 8px;
}

.ma-root .ma-thread-detail-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

.ma-root .ma-thread-event {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 8px 24px;
    background: var(--ma-paper);
    color: var(--ma-steel);
    font-size: 13px;
}

.ma-root .ma-thread-event-text {
    flex: 1 1 160px;
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .ma-root .ma-thread-toggle {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .ma-root .ma-thread-body {
        padding: 0 16px 16px;
    }

    .ma-root .ma-thread-time {
        padding-left: 44px;
    }

    .ma-root .ma-thread-event {
        padding: 8px 16px;
    }
}

/* GH-177 docked reply composer: the reply editor sits under the thread of
   its conversation as a docked sheet; on phones it opens full screen above
   the thread. */
.ma-root .ma-editor-dock-title {
    display: none;
}

.ma-root .ma-reply-dock .ma-editor {
    margin-top: 16px;
}

.ma-root .ma-editor.is-docked .ma-editor-dock-title {
    display: block;
    flex: 1 1 160px;
    min-width: 0;
    font-family: var(--ma-font-sign);
    font-size: 20px;
    overflow-wrap: anywhere;
}

.ma-root .ma-editor.is-docked .ma-editor-intro,
.ma-root .ma-editor.is-docked .ma-editor-topbar .ma-context-badge,
.ma-root .ma-conversation-view.is-replying .ma-sticky-actions {
    display: none;
}

.ma-root .ma-editor.is-docked .ma-editor-topbar {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.ma-root .ma-editor.is-docked .editor-form {
    border-top: 3px solid var(--ma-teal);
}

.ma-root .ma-editor-intro .card-body {
    padding: 20px 24px;
}

.ma-root .ma-editor-intro .h3 {
    font-family: var(--ma-font-sign);
    font-size: 28px;
    line-height: 1.15;
}

.ma-root .ma-editor-intro .ma-eyebrow {
    margin-bottom: 4px;
}

@media (max-width: 767.98px) {
    .ma-root .ma-editor.is-docked {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1040;
        margin: 0;
        padding: 0 12px 12px;
        overflow-y: auto;
        background: var(--ma-paper);
    }

    .ma-root .ma-editor.is-docked .ma-editor-topbar {
        position: sticky;
        top: 0;
        z-index: 6;
        margin: 0 -12px 12px;
        padding: 8px 12px;
        border-bottom: 1px solid var(--ma-line);
        background: var(--ma-surface);
    }

    .ma-root .ma-editor.is-docked .editor-form {
        border-top-width: 1px;
        border-top-color: var(--ma-line);
    }
}

/* GH-177 split pane: at 1200px and wider the Inbox list stays beside the
   open conversation. Rows use the stacked three-line layout of phones. */
.ma-root .ma-mail-row.is-open {
    background: var(--ma-teal-tint);
    box-shadow: inset 4px 0 0 var(--ma-teal);
}

@media (min-width: 1200px) {
    .ma-workspace-panes.is-split:has(> .ma-conversation-view:not([hidden])) {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        max-width: 1680px;
    }

    .ma-workspace-panes.is-split > .ma-folder-workspace {
        flex: 0 0 400px;
        width: 400px;
        min-width: 0;
    }

    .ma-workspace-panes.is-split > .ma-conversation-view {
        flex: 1 1 0;
        min-width: 0;
    }

    .ma-workspace-panes.is-split .ma-mail-row-body {
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 8px 8px 12px;
    }

    .ma-workspace-panes.is-split .ma-mail-link {
        display: block;
        padding-top: 4px;
        font-size: 15px;
        line-height: 1.35;
    }

    .ma-workspace-panes.is-split .ma-mail-headline {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        margin-bottom: 3px;
    }

    .ma-workspace-panes.is-split .ma-mail-sender {
        flex: 1 1 0;
    }

    .ma-workspace-panes.is-split .ma-mail-time {
        min-width: 0;
    }

    .ma-workspace-panes.is-split .ma-mail-text {
        display: block;
        white-space: normal;
    }

    .ma-workspace-panes.is-split .ma-mail-text .conversation-subject,
    .ma-workspace-panes.is-split .ma-mail-text .conversation-snippet {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ma-workspace-panes.is-split .ma-mail-text .conversation-snippet {
        font-size: 14px;
    }

    .ma-workspace-panes.is-split .ma-mail-text .conversation-snippet::before {
        content: none;
    }

    .ma-workspace-panes.is-split .ma-mail-meta .ma-mail-chip:not(.conversation-owner):not(.ma-mail-chip-priority) {
        display: none;
    }

    .ma-workspace-panes.is-split .ma-mail-row.is-claimable .conversation-owner[data-owner="none"] {
        display: none;
    }

    .ma-workspace-panes.is-split .ma-mail-select {
        margin-top: 14px;
    }

    .ma-workspace-panes.is-split .ma-folder-title {
        font-size: 24px;
    }

    /* The narrow list pane: filters behind the Filters button, the counters
       on one line, and no shortcut link (the rail and "?" still open it). */
    .ma-workspace-panes.is-split .ma-toolbar-search {
        flex: 1 1 0;
    }

    .ma-workspace-panes.is-split .ma-filters-toggle {
        display: inline-flex;
    }

    .ma-workspace-panes.is-split .ma-filter-panel {
        display: none;
        flex: 1 1 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ma-workspace-panes.is-split .ma-filter-panel.is-open {
        display: flex;
    }

    .ma-workspace-panes.is-split .ma-filter-panel .ma-toolbar-select {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }

    .ma-workspace-panes.is-split .ma-counter-strip {
        flex: 1 1 100%;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .ma-workspace-panes.is-split .ma-counter {
        gap: 4px;
        padding: 3px 9px;
        white-space: nowrap;
    }

    .ma-workspace-panes.is-split .ma-shortcut-help-button {
        display: none;
    }
}

/* ------------------------------------------- Sign-in and offline panels */

.ma-auth-page {
    background: var(--ma-paper);
}

.ma-root .ma-auth-shell {
    width: 100%;
    max-width: 420px;
}

.ma-auth-intro {
    max-width: 608px;
}

.ma-root .ma-auth-wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--ma-ink);
    font-family: var(--ma-font-sign);
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.ma-root .ma-auth-wordmark .ma-brand-mark {
    width: 36px;
    height: 36px;
    font-size: 23px;
}

.ma-auth-card {
    max-width: 420px;
    border: 1px solid var(--ma-line);
    border-top: 3px solid var(--ma-teal);
    background: var(--ma-surface);
    box-shadow: var(--ma-shadow-sheet);
}

.ma-auth-title {
    max-width: 440px;
    margin-bottom: 4px;
    font-family: var(--ma-font-sign);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.ma-root .ma-auth-footnote {
    color: var(--ma-steel);
    font-size: 13px;
}

.ma-offline-card {
    max-width: 440px;
    border: 1px solid var(--ma-line);
    border-top: 3px solid var(--ma-teal);
    box-shadow: var(--ma-shadow-sheet);
}

.ma-offline-card h1 {
    margin-top: 20px;
    margin-bottom: 12px;
    font-family: var(--ma-font-sign);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0;
}

.ma-offline-card p {
    margin-bottom: 24px;
    color: var(--ma-steel);
    line-height: 1.6;
}
