/* ============================================
   EB IT app — v3.0.0 design: the Home welcome card, My Account (js/myaccount.js),
   and a lighter, more modern finish for the app's shared cards, header and tabs.
   Uses the --eb-* colour tokens from brand.css, so light and dark both work.
   Loaded last.
   ============================================ */

:root {
    --ma-radius: 16px;
    --ma-radius-sm: 12px;
    --ma-navy: #0f2f4a;
    --ma-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 14px rgba(16, 24, 40, 0.06);
    --ma-warn-bg: #fff6e5; --ma-warn-fg: #8a4b00; --ma-warn-line: #f5d9a8;
    --ma-info-bg: var(--eb-tint); --ma-info-fg: var(--eb-link); --ma-info-line: var(--eb-tint-line);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --ma-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); --ma-warn-bg: #33240a; --ma-warn-fg: #ffc46b; --ma-warn-line: #5c4215; }
}
:root[data-theme="dark"] { --ma-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); --ma-warn-bg: #33240a; --ma-warn-fg: #ffc46b; --ma-warn-line: #5c4215; }

/* ── A lighter finish for the whole app ── */
.search-section, .links-section, .ticket-section, .eb-card, .login-card {
    border-radius: var(--ma-radius) !important;
    box-shadow: var(--ma-shadow) !important;
    border: 1px solid var(--eb-line-soft) !important;
}
.search-section, .links-section, .ticket-section { margin: 0 1rem 1rem !important; max-width: 640px; }
@media (min-width: 672px) { .search-section, .links-section, .ticket-section { margin-left: auto !important; margin-right: auto !important; } }
.link-item { border-radius: var(--ma-radius-sm) !important; border-color: var(--eb-line-soft) !important; transition: transform .12s ease, border-color .12s ease; }
.link-item:active { transform: scale(0.98); }
.link-item:hover { border-color: var(--eb-tint-line) !important; }
.link-item i[style] { color: var(--eb-blue) !important; }
.suggestion-btn { font-weight: 600; }
.app-header { border-bottom-width: 0 !important; box-shadow: 0 1px 0 var(--eb-line) !important; }
.eb-tabbar { box-shadow: 0 -1px 0 var(--eb-line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.eb-tabbar button[aria-current="page"] { position: relative; }
.eb-tabbar button[aria-current="page"]::before {
    content: ""; position: absolute; top: 6px; width: 46px; height: 30px; border-radius: 999px; background: var(--eb-tint); z-index: -1;
}
.eb-tabbar button { isolation: isolate; }

/* ── Home: the welcome card ── */
.ma-hero {
    margin: 1rem; max-width: 640px; padding: 1.25rem 1.1rem 1.1rem; border-radius: 20px !important;
    background: linear-gradient(135deg, var(--ma-navy) 0%, #15507d 55%, #1f7fbd 100%) !important; color: #fff !important;
    box-shadow: 0 10px 30px rgba(15, 47, 74, 0.25);
    position: relative; overflow: hidden;
}
@media (min-width: 672px) { .ma-hero { margin: 1rem auto; } }
.ma-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 70%); pointer-events: none; }
.ma-hero-head h2 { margin: 0.1rem 0 0.8rem; font-size: 1.45rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.ma-hero-kicker { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.ma-hero-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: -0.25rem 0 0.9rem; }
.ma-hero-chips:empty { display: none; }
.ma-hero-chip {
    display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12); color: #fff;
    border-radius: 999px; padding: 0.38rem 0.75rem; font-family: inherit; font-weight: 700; font-size: 0.8rem; line-height: 1.2; cursor: pointer; min-height: 34px;
}
.ma-hero-chip.is-warn { background: #ffd27a; color: #3d2500; border-color: #ffd27a; }
.ma-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; position: relative; z-index: 1; }
@media (min-width: 520px) { .ma-hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ma-hero-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; text-align: left; min-height: 92px;
    padding: 0.8rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1);
    color: #fff !important; text-decoration: none; font-family: inherit; font-size: inherit; font-weight: inherit; cursor: pointer; transition: background .12s ease, transform .12s ease;
}
.ma-hero-tile:hover { background: rgba(255,255,255,.18); }
.ma-hero-tile:active { transform: scale(0.98); }
.ma-hero-tile strong { font-size: 0.95rem; color: #fff; }
.ma-hero-tile > span:last-child { font-size: 0.75rem; color: rgba(255,255,255,.8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ma-hero-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--ma-navy); font-size: 1.05rem; margin-bottom: 0.35rem; }
.ma-hero-tile:focus-visible, .ma-hero-chip:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }

/* ── My Account ── */
.ma { min-height: 100vh; }
.ma [hidden] { display: none !important; }
.ma-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ma-top {
    background: linear-gradient(135deg, var(--ma-navy) 0%, #15507d 60%, #1f7fbd 100%); color: #fff;
    padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem 2.4rem;
}
.ma-top-row { display: flex; align-items: center; gap: 0.75rem; max-width: 640px; margin: 0 auto; }
.ma-top-text { flex: 1; min-width: 0; }
.ma-top h1 { margin: 0; font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-kicker { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.ma-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ma-navy); font-weight: 800; font-size: 1.15rem; flex: 0 0 auto; }
.ma-icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font-size: 1.15rem; cursor: pointer; display: grid; place-items: center; }
.ma-icon-btn:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }

.ma-nav {
    position: sticky; top: 0; z-index: 40; display: flex; gap: 0.45rem; overflow-x: auto; scrollbar-width: none;
    margin: -1.6rem auto 0; max-width: 640px; padding: 0.55rem 1rem; scroll-padding: 1rem;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.ma-nav::-webkit-scrollbar { display: none; }
.ma-nav:empty { display: none; }
.ma-chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.45rem 0.85rem;
    border-radius: 999px; border: 1px solid var(--eb-line); background: var(--eb-card); color: var(--eb-text);
    font-family: inherit; font-weight: 700; font-size: 0.84rem; line-height: 1; cursor: pointer; box-shadow: var(--ma-shadow); white-space: nowrap;
}
.ma-chip i { color: var(--eb-blue); }
.ma-chip.is-on { background: var(--eb-solid-bg); color: var(--eb-solid-fg); border-color: var(--eb-solid-bg); }
.ma-chip.is-on i { color: inherit; }

.ma-body { max-width: 640px; margin: 0 auto; padding: 0.75rem 1rem 2rem; }
.ma-body > * + * { margin-top: 0.8rem; }
.ma section.ma-card, .ma .ma-card {
    background: var(--eb-card) !important; color: var(--eb-text); border: 1px solid var(--eb-line-soft); border-radius: var(--ma-radius);
    box-shadow: var(--ma-shadow); padding: 1rem;
}
.ma-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.4rem; }
.ma-card-head h3, .ma-h2 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--eb-heading); }
.ma-h2 { font-size: 1.15rem; }
.ma-group { margin: 1.2rem 0 0.2rem !important; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eb-muted); }
.ma-muted { color: var(--eb-muted); font-size: 0.85rem; }
.ma-block { display: block; }
.ma-foot { text-align: center; color: var(--eb-muted); font-size: 0.8rem; margin: 1.2rem 0 0.5rem !important; }
.ma-note { display: flex; gap: 0.4rem; align-items: center; color: var(--eb-muted); font-size: 0.85rem; margin: 0.5rem 0 0 !important; }
.ma-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; color: var(--eb-text); }
.ma-link { color: var(--eb-link); font-weight: 700; text-decoration: none; }
.ma-row-between { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.ma-gap { margin-bottom: 0.2rem; }
.ma-warn-text { color: var(--ma-warn-fg); font-size: 0.85rem; font-weight: 600; }

/* Buttons */
.ma-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 44px; padding: 0.65rem 1rem;
    border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
    font: 700 0.9rem/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.ma-btn-primary { background: var(--eb-btn); color: #fff !important; }
.ma-btn-primary:hover { background: var(--eb-btn-hover); }
.ma-btn-ghost { background: var(--eb-raised); color: var(--eb-heading) !important; border-color: var(--eb-line); }
.ma-btn-small { min-height: 36px; padding: 0.45rem 0.8rem; font-size: 0.82rem; border-radius: 10px; }
.ma-btn-block { width: 100%; }
.ma-btn:disabled { opacity: 0.6; cursor: wait; }
.ma-btn:focus-visible, .ma-chip:focus-visible, .ma-tile:focus-visible, .ma-stat:focus-visible, .ma-row-btn:focus-visible, .ma-row-main:focus-visible, .ma-action:focus-visible, .ma-back:focus-visible, .ma-next:focus-visible {
    outline: 3px solid var(--eb-blue); outline-offset: 2px;
}
.ma-danger { color: var(--eb-err-fg) !important; }
.ma-btn-row { display: flex; gap: 0.5rem; margin-top: 0.8rem; align-items: center; }
.ma-btn-row.ma-wrap, .ma-wrap { flex-wrap: wrap; }
.ma-back { display: inline-flex; align-items: center; gap: 0.25rem; border: 0; background: none; color: var(--eb-link); font-family: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; padding: 0.4rem 0; min-height: 40px; }

/* Pills */
.ma-pill { display: inline-flex; align-items: center; padding: 0.22rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800; white-space: nowrap; border: 1px solid transparent; }
.ma-ok { background: var(--eb-ok-bg); color: var(--eb-ok-fg); border-color: var(--eb-ok-line); }
.ma-warn { background: var(--ma-warn-bg); color: var(--ma-warn-fg); border-color: var(--ma-warn-line); }
.ma-bad { background: var(--eb-err-bg); color: var(--eb-err-fg); border-color: var(--eb-err-line); }
.ma-neutral { background: var(--eb-raised); color: var(--eb-muted); border-color: var(--eb-line); }

/* Alerts */
.ma-alert { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.8rem 0.9rem; border-radius: var(--ma-radius-sm); border: 1px solid; font-size: 0.9rem; margin: 0; }
.ma-alert p { margin: 0 0 0.4rem; color: inherit; }
.ma-alert p:last-child { margin-bottom: 0; }
.ma-alert > i { font-size: 1.15rem; line-height: 1.3; }
.ma-alert[hidden] { display: none; }
.ma-alert-bad { background: var(--eb-err-bg); color: var(--eb-err-fg); border-color: var(--eb-err-line); }
.ma-alert-warn { background: var(--ma-warn-bg); color: var(--ma-warn-fg); border-color: var(--ma-warn-line); }
.ma-alert-ok { background: var(--eb-ok-bg); color: var(--eb-ok-fg); border-color: var(--eb-ok-line); }
.ma-alert-info { background: var(--ma-info-bg); color: var(--eb-text); border-color: var(--ma-info-line); }
.ma-alert .ma-btn-row { margin-top: 0.3rem; flex-wrap: wrap; }

/* Loading / empty */
.ma-loading { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 2.5rem 1rem; color: var(--eb-muted); font-weight: 600; }
.ma-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--eb-line); border-top-color: var(--eb-blue); animation: ma-spin .8s linear infinite; flex: 0 0 auto; }
@keyframes ma-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ma-spin { animation-duration: 2.4s; } .ma-hero-tile, .link-item { transition: none; } }
.ma-empty { text-align: center; padding: 2.2rem 1rem; color: var(--eb-muted); }
.ma-empty > i { font-size: 2rem; color: var(--eb-blue); display: block; margin-bottom: 0.5rem; }
.ma-empty p { margin: 0 0 1rem; }

/* Overview */
.ma-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.ma-stat, .ma-next, .ma-summary {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; text-align: left; padding: 0.9rem;
    background: var(--eb-card); color: var(--eb-text); border: 1px solid var(--eb-line-soft); border-radius: var(--ma-radius);
    box-shadow: var(--ma-shadow); font-family: inherit; font-size: inherit; font-weight: inherit; cursor: pointer; min-width: 0;
}
.ma-stat-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--eb-tint); color: var(--eb-blue); font-size: 1.05rem; margin-bottom: 0.35rem; flex: 0 0 auto; }
.ma-stat-label { font-size: 0.78rem; font-weight: 700; color: var(--eb-muted); }
.ma-stat-value { font-size: 1.25rem; font-weight: 800; color: var(--eb-heading); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-stat-sub { font-size: 0.76rem; color: var(--eb-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-stat.is-warn .ma-stat-ic, .ma-summary.is-warn .ma-stat-ic { background: var(--ma-warn-bg); color: var(--ma-warn-fg); }
.ma-stat.is-ok .ma-stat-ic, .ma-summary.is-ok .ma-stat-ic { background: var(--eb-ok-bg); color: var(--eb-ok-fg); }
.ma-next, .ma-summary { flex-direction: row; align-items: center; gap: 0.75rem; width: 100%; }
.ma-next > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ma-next .ma-stat-ic, .ma-summary .ma-stat-ic { margin: 0; }
.ma-summary { cursor: default; }
.ma-summary strong { display: block; font-size: 1.1rem; color: var(--eb-heading); }
.ma-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.ma-action {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; min-height: 84px; padding: 0.6rem 0.3rem;
    border-radius: var(--ma-radius-sm); border: 1px solid var(--eb-line-soft); background: var(--eb-raised); color: var(--eb-heading) !important;
    text-decoration: none; font-family: inherit; font-weight: 700; font-size: 0.78rem; line-height: 1.2; text-align: center; cursor: pointer;
}
.ma-action i { font-size: 1.3rem; color: var(--eb-blue); }

/* Services */
.ma-svc-head { display: flex; align-items: flex-start; gap: 0.7rem; }
.ma-svc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--eb-tint); color: var(--eb-blue); font-size: 1.2rem; flex: 0 0 auto; }
.ma-svc-name { flex: 1; min-width: 0; }
.ma-svc-name h3 { margin: 0 0 0.1rem; font-size: 1rem; font-weight: 800; color: var(--eb-heading); overflow-wrap: anywhere; }
.ma-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 0.9rem; margin: 0.8rem 0 0; padding: 0.75rem; border-radius: var(--ma-radius-sm); background: var(--eb-raised); }
.ma-fact { display: flex; flex-direction: column; min-width: 0; }
.ma-fact strong { color: var(--eb-heading); font-size: 0.9rem; overflow-wrap: anywhere; }
.ma-meter { display: block; height: 6px; border-radius: 999px; background: var(--eb-line); margin-top: 0.3rem; overflow: hidden; }
.ma-meter > span { display: block; height: 100%; background: var(--eb-blue); border-radius: inherit; }
.ma-svc-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid var(--eb-line-soft); flex-wrap: wrap; }
.ma-appt p { margin: 0.6rem 0 0; }

/* Rows (invoices, quotes, requests) */
.ma-row-card {
    display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.85rem 0.9rem; text-align: left;
    background: var(--eb-card); color: var(--eb-text); border: 1px solid var(--eb-line-soft); border-left: 4px solid var(--eb-line-soft);
    border-radius: var(--ma-radius-sm); box-shadow: var(--ma-shadow); font-family: inherit; font-size: inherit; font-weight: inherit;
}
.ma-row-card.is-warn { border-left-color: #f0a33a; }
.ma-row-card.is-bad { border-left-color: var(--eb-err-fg); }
.ma-row-btn { cursor: pointer; }
.ma-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; border: 0; background: none; padding: 0; text-align: left; color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; cursor: pointer; }
.ma-row-title { font-weight: 800; color: var(--eb-heading); overflow-wrap: anywhere; }
.ma-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; flex: 0 0 auto; }
.ma-row-side > strong { color: var(--eb-heading); }
.ma-row-btn .ma-row-side { flex-direction: row; align-items: center; color: var(--eb-muted); }

/* Lines and totals */
.ma-lines { margin-top: 0.8rem; border-top: 1px solid var(--eb-line-soft); }
.ma-line { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid var(--eb-line-soft); font-size: 0.9rem; }
.ma-line-text { white-space: pre-line; overflow-wrap: anywhere; }
.ma-line.is-bad { color: var(--eb-err-fg); }
.ma-totals { border-top: 0; margin-top: 0; }
.ma-line.is-total { font-size: 1.05rem; border-bottom: 0; }
.ma-line.is-total strong { color: var(--eb-heading); }
.ma-details summary { cursor: pointer; font-weight: 700; color: var(--eb-link); margin-top: 0.6rem; }

/* Segmented control */
.ma-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--eb-raised); border: 1px solid var(--eb-line); }
.ma-seg button { border: 0; background: none; padding: 0.5rem 0.9rem; min-height: 38px; border-radius: 9px; font-family: inherit; font-weight: 700; font-size: 0.85rem; color: var(--eb-muted); cursor: pointer; }
.ma-seg button.is-on { background: var(--eb-card); color: var(--eb-heading); box-shadow: var(--ma-shadow); }
.ma-form .ma-seg { display: flex; margin-bottom: 0.9rem; }
.ma-form .ma-seg button { flex: 1; }

/* Forms */
.ma-form > * + * { margin-top: 0.8rem; }
.ma-field label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--eb-heading); margin-bottom: 0.3rem; }
.ma-input {
    width: 100%; box-sizing: border-box; min-height: 46px; padding: 0.65rem 0.8rem; border-radius: 12px; border: 1px solid var(--eb-line);
    background: var(--eb-input); color: var(--eb-text); font-family: inherit; font-size: 1rem; line-height: 1.4;
}
textarea.ma-input { resize: vertical; }
.ma-input:focus { outline: 3px solid var(--eb-tint-line); border-color: var(--eb-blue); }
.ma-check { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.75rem; border-radius: 12px; background: var(--ma-warn-bg); color: var(--ma-warn-fg); border: 1px solid var(--ma-warn-line); }
.ma-check[hidden] { display: none; }
.ma-check input { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 auto; }
.ma-inline { display: flex; gap: 0.4rem; width: 100%; margin-top: 0.4rem; }
.ma-inline .ma-input { min-height: 38px; }

/* Sign-in */
.ma-signin-head { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1rem; }
.ma-signin-head h2 { margin: 0 0 0.2rem; font-size: 1.25rem; font-weight: 800; color: var(--eb-heading); }
.ma-signin-head p { margin: 0; }
.ma-badge-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--eb-tint); color: var(--eb-blue); font-size: 1.35rem; flex: 0 0 auto; }
.ma-badge-icon.is-ok { background: var(--eb-ok-bg); color: var(--eb-ok-fg); }
.ma-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.ma-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.9rem; text-align: left; min-height: 96px;
    background: var(--eb-card); border: 1px solid var(--eb-line-soft); border-radius: var(--ma-radius); box-shadow: var(--ma-shadow);
    color: var(--eb-text) !important; text-decoration: none; font-family: inherit; font-size: inherit; font-weight: inherit; cursor: pointer;
}
.ma-tile > i { font-size: 1.3rem; color: var(--eb-blue); margin-bottom: 0.25rem; }
.ma-tile strong { color: var(--eb-heading); }
.ma-tile span { color: var(--eb-muted); font-size: 0.82rem; }
.ma-choice.is-on { border: 2px solid var(--eb-blue); background: var(--eb-tint); padding: calc(0.9rem - 1px); }

/* Requests */
.ma-who { display: flex; align-items: center; gap: 0.35rem; margin: 0.35rem 0 0; font-size: 0.88rem; flex-wrap: wrap; }
.ma-chat { display: flex; flex-direction: column; gap: 0.6rem; }
.ma-msg { max-width: 88%; padding: 0.65rem 0.8rem; border-radius: 14px; font-size: 0.92rem; }
.ma-msg p { margin: 0.2rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ma-msg-meta { font-size: 0.75rem; color: var(--eb-muted); }
.ma-msg-meta strong { color: var(--eb-heading); }
.ma-msg.is-staff { align-self: flex-start; background: var(--eb-tint); border: 1px solid var(--eb-tint-line); border-bottom-left-radius: 4px; }
.ma-msg.is-me { align-self: flex-end; background: var(--eb-raised); border: 1px solid var(--eb-line); border-bottom-right-radius: 4px; }
.ma-reply { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--eb-line-soft); }
.ma-reply .ma-btn { align-self: flex-end; }
.ma-done { text-align: center; }
.ma-done .ma-badge-icon { margin: 0 auto 0.6rem; }
.ma-done h2 { font-size: 1.2rem; color: var(--eb-heading); margin: 0 0 0.4rem; }
.ma-done .ma-btn-row { justify-content: center; flex-wrap: wrap; }

/* PAT (pat.js) inside My Account */
.ma-pat .portal-header { display: none; }

/* Direct Debit */
.ma-dd { font-size: 0.78rem; white-space: nowrap; }
.ma-small-top { margin: 0.5rem 0 0; font-size: 0.8rem; }
a.ma-next { text-decoration: none; }

/* Alerts on this phone + two-step code */
.ma-opts { display: grid; gap: 0.4rem; margin: 0.4rem 0 0.2rem; }
.ma-opt { display: flex; gap: 0.6rem; align-items: center; padding: 0.6rem 0.75rem; border-radius: 12px; border: 1px solid var(--eb-line, rgba(127,127,127,.25)); cursor: pointer; }
.ma-opt input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--eb-link); }
.ma-alerts .ma-btn-row { flex-wrap: wrap; }
.ma-card-ic { color: var(--eb-link); font-size: 1.1rem; }
.ma-code { font-size: 1.4rem; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
button.ma-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.92rem; text-align: left; }
