:root {
    --mp-ink: #15191d;
    --mp-muted: #68717a;
    --mp-line: #e1e5e8;
    --mp-bg: #f4f5f3;
    --mp-card: #ffffff;
    --mp-dark: #0d1115;
    --mp-accent: #087da5;
    --mp-cyan: #63c8e8;
    --mp-success: #16784a;
    --mp-warning: #9a5a00;
    --mp-danger: #b42318;
    --mp-radius: 18px;
    --mp-shadow: 0 4px 18px rgba(15, 23, 42, .045);
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; background: var(--mp-bg); scroll-behavior: smooth; }
body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    padding: env(safe-area-inset-top) 0 calc(92px + env(safe-area-inset-bottom));
    color: var(--mp-ink);
    background: var(--mp-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { max-width: 100%; min-width: 0; font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.mp-icon { width: 1em; height: 1em; display: block; flex: 0 0 auto; fill: currentColor; }
.mp-skip { position: fixed; left: 12px; top: -60px; z-index: 9999; padding: 10px 14px; background: #fff; border-radius: 10px; }
.mp-skip:focus { top: 12px; }

.mp-topbar {
    height: 70px;
    padding: 10px max(16px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    background: var(--mp-dark);
}
.mp-brand-mark, .mp-icon-button {
    width: 40px; height: 40px; flex: 0 0 40px;
    display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
}
.mp-brand-mark img { width: 25px; height: 25px; object-fit: contain; }
.mp-icon-button { color: #fff; font-size: 21px; }
.mp-topbar-title { flex: 1; display: grid; gap: 1px; }
.mp-topbar-title, .mp-topbar-title strong { min-width: 0; overflow-wrap: anywhere; }
.mp-topbar-title span { font-size: 10px; letter-spacing: .18em; color: #aeb5bd; }
.mp-topbar-title strong { font-size: 16px; font-weight: 650; }

.mp-admin-view-bar {
    min-height: 52px;
    padding: 9px max(16px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff4cf;
    background: #6c4c00;
    font-size: 12px;
}
.mp-admin-view-bar > div { min-width: 0; display: grid; gap: 1px; }
.mp-admin-view-bar strong { color: #fff; }
.mp-admin-view-bar span { overflow-wrap: anywhere; }
.mp-admin-view-bar a, .mp-admin-view-bar button { color: #fff; font-weight: 750; white-space: nowrap; }
.mp-admin-view-bar a { text-decoration: underline; text-underline-offset: 3px; }
.mp-admin-view-bar form { margin: 0; }
.mp-admin-view-bar button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.34); border-radius: 9px; background: rgba(255,255,255,.12); cursor: pointer; }

.mp-shell { width: min(100%, 1080px); max-width: 100%; min-width: 0; margin: 0 auto; }
.mp-main { padding: 18px 16px 30px; }
.mp-hero {
    position: relative;
    overflow: hidden;
    margin: -18px -16px 18px;
    min-height: 258px;
    padding: 28px 22px;
    color: #fff;
    background:
        radial-gradient(circle at 83% 12%, rgba(98,213,255,.35), transparent 30%),
        linear-gradient(145deg, #0b0d10 20%, #18232e 68%, #28455a);
}
.mp-hero::after {
    content: "";
    position: absolute; right: -70px; bottom: -105px;
    width: 270px; height: 270px;
    border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255,255,255,.03), 0 0 0 60px rgba(255,255,255,.025);
}
.mp-eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; color: #aeb9c4; text-transform: uppercase; }
.mp-hero h1 { position: relative; z-index: 1; max-width: 620px; margin: 0; font-size: clamp(28px, 8vw, 46px); line-height: 1.12; font-weight: 580; letter-spacing: -.035em; }
.mp-hero p { position: relative; z-index: 1; max-width: 580px; margin: 12px 0 0; color: #d7dce1; line-height: 1.6; }
.mp-hero-stats { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: 24px; }
.mp-hero-stat { min-width: 112px; padding: 12px 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; backdrop-filter: blur(12px); }
.mp-hero-stat strong { display: block; font-size: 20px; }
.mp-hero-stat small { color: #bec7cf; }

.mp-section { margin-top: 24px; }
.mp-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mp-section-head > * { min-width: 0; }
.mp-section-head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.mp-section-head p { margin: 4px 0 0; color: var(--mp-muted); font-size: 13px; }
.mp-section-link { color: var(--mp-accent); font-size: 13px; font-weight: 650; white-space: nowrap; }

.mp-grid { display: grid; gap: 12px; }
.mp-grid, .mp-grid > *, .mp-layout-sidebar > *, .mp-card, .mp-card-pad, .mp-field { min-width: 0; }
.mp-grid-2, .mp-grid-3 { grid-template-columns: minmax(0, 1fr); }
.mp-card {
    background: var(--mp-card);
    border: 1px solid rgba(17,20,24,.06);
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow);
}
.mp-card-pad { padding: 18px; }
.mp-action-card { min-height: 124px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .18s ease, box-shadow .18s ease; }
.mp-action-card:active { transform: scale(.98); }
.mp-action-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--mp-dark); font-size: 18px; }
.mp-action-icon .mp-icon { width: 19px; height: 19px; }
.mp-action-card:nth-child(2n) .mp-action-icon { color: #06405a; background: #d8f4ff; }
.mp-action-card strong { font-size: 15px; }
.mp-action-card small { display: block; margin-top: 3px; color: var(--mp-muted); line-height: 1.35; }

.mp-vehicle-card { overflow: hidden; }
.mp-vehicle-visual { position: relative; min-height: 158px; padding: 18px; overflow: hidden; color: #fff; background: radial-gradient(circle at 82% 20%, rgba(98,213,255,.2), transparent 34%), linear-gradient(135deg, #11161c, #304657); }
.mp-vehicle-name { position: relative; z-index: 2; max-width: 62%; font-size: 21px; font-weight: 620; overflow-wrap: anywhere; }
.mp-plate { position: relative; z-index: 1; display: inline-block; margin-top: 8px; padding: 4px 8px; font-size: 12px; letter-spacing: .08em; color: #111; background: #fff; border-radius: 5px; }
.mp-vehicle-class { position: relative; z-index: 2; display: block; max-width: 55%; margin-top: 8px; color: #adbac5; font-size: 10px; letter-spacing: .08em; }
.mp-vehicle-art { position: absolute; z-index: 1; right: -12px; bottom: 3px; width: 69%; height: 116px; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 12px 12px rgba(0,0,0,.38)); pointer-events: none; }
.mp-vehicle-body { padding: 16px 18px; }
.mp-meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--mp-line); font-size: 14px; }
.mp-meta-row:last-child { border-bottom: 0; }
.mp-meta-row span { color: var(--mp-muted); }
.mp-meta-row strong { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.mp-progress { height: 8px; overflow: hidden; background: #e9edf0; border-radius: 999px; }
.mp-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mp-accent), var(--mp-cyan)); }
.mp-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: #eef2f5; color: #35404a; }
.mp-status::before { content: ""; width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.mp-status-success { color: var(--mp-success); background: #e8f7ef; }
.mp-status-warning { color: var(--mp-warning); background: #fff4de; }
.mp-status-danger { color: var(--mp-danger); background: #ffebe9; }

.mp-callout { display: flex; gap: 12px; padding: 15px 16px; color: #5d4400; background: #fff8e7; border: 1px solid #f5d58b; border-radius: 16px; line-height: 1.5; font-size: 13px; }
.mp-callout strong { display: block; color: #392a00; }
.mp-callout > .mp-icon { width: 17px; height: 17px; margin-top: 2px; flex: 0 0 17px; }
.mp-callout-info { color: #17476b; background: #eaf7ff; border-color: #b9e5ff; }
.mp-callout-info strong { color: #0b304c; }

.mp-button { min-height: 46px; max-width: 100%; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; color: #fff; background: var(--mp-dark); font-weight: 650; text-align: center; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.mp-button-primary { background: var(--mp-accent); }
.mp-button-light { color: var(--mp-ink); background: #edf1f3; }
.mp-button-danger { background: var(--mp-danger); }
.mp-button-block { width: 100%; }
.mp-button:disabled { opacity: .5; cursor: not-allowed; }
.mp-inline-actions { max-width: 100%; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.mp-inline-actions > * { min-width: 0; }

.mp-form { display: grid; gap: 15px; }
.mp-field { display: grid; gap: 7px; }
.mp-field label, .mp-label { font-size: 13px; font-weight: 650; }
.mp-help { color: var(--mp-muted); font-size: 12px; line-height: 1.5; }
.mp-input, .mp-select, .mp-textarea {
    display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px;
    color: var(--mp-ink); background: #fff;
    border: 1px solid #cfd5da; border-radius: 13px; outline: none;
}
.mp-input[type="date"], .mp-input[type="month"], .mp-input[type="time"] { appearance: none; -webkit-appearance: none; }
.mp-input[type="file"] { min-height: 52px; padding: 9px; overflow: hidden; font-size: 13px; }
.mp-input[type="file"]::file-selector-button { max-width: 48%; margin-right: 8px; padding: 8px 10px; overflow: hidden; border: 0; border-radius: 9px; background: #edf1f3; text-overflow: ellipsis; }
.mp-textarea { min-height: 110px; resize: vertical; }
.mp-input:focus, .mp-select:focus, .mp-textarea:focus { border-color: var(--mp-accent); box-shadow: 0 0 0 3px rgba(22,119,255,.12); }
.mp-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.mp-choice { position: relative; }
.mp-choice input { position: absolute; opacity: 0; pointer-events: none; }
.mp-choice span { min-width: 0; min-height: 72px; padding: 12px; display: flex; flex-direction: column; justify-content: center; gap: 3px; border: 1px solid #d7dce0; border-radius: 15px; background: #fff; overflow-wrap: anywhere; }
.mp-choice strong { font-size: 14px; }
.mp-choice small { color: var(--mp-muted); font-size: 11px; }
.mp-choice-icon { width: 24px; height: 24px; margin-bottom: 3px; display: grid; place-items: center; color: var(--mp-accent); }
.mp-choice-icon .mp-icon { width: 21px; height: 21px; }
.mp-choice-vehicle-art { width: 100%; height: 55px; margin: -4px 0 4px; object-fit: contain; filter: drop-shadow(0 6px 5px rgba(15,23,42,.16)); }
.mp-choice input:checked + span { border-color: var(--mp-accent); background: #edf5ff; box-shadow: 0 0 0 2px rgba(22,119,255,.1); }
.mp-choice input:focus-visible + span { outline: 3px solid rgba(22,119,255,.25); }

.mp-wizard-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 18px; }
.mp-wizard-progress span { height: 4px; border-radius: 999px; background: #d9dee2; }
.mp-wizard-progress span.is-active { background: var(--mp-accent); }
.mp-wizard-step { display: none; }
.mp-wizard-step.is-active { display: block; animation: mpFade .22s ease; }
@keyframes mpFade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.mp-step-title { margin: 0 0 5px; font-size: 24px; letter-spacing: -.03em; }
.mp-step-copy { margin: 0 0 20px; color: var(--mp-muted); line-height: 1.6; }
.mp-recommendation { margin: 14px 0; padding: 16px; color: #fff; background: linear-gradient(135deg, #102536, #185b80); border-radius: 17px; }
.mp-recommendation small { color: #bfe8ff; }
.mp-recommendation strong { display: block; margin-top: 4px; font-size: 17px; }
.mp-slot-days { display: grid; gap: 11px; }
.mp-slot-day { padding: 14px; border: 1px solid var(--mp-line); border-radius: 15px; }
.mp-slot-day-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mp-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-slot { padding: 9px 11px; border: 1px solid #d5dbe0; border-radius: 10px; background: #fff; cursor: pointer; }
.mp-slot.is-selected { color: #fff; background: var(--mp-accent); border-color: var(--mp-accent); }

.mp-timeline { position: relative; display: grid; gap: 0; }
.mp-timeline-item { position: relative; padding: 0 0 22px 28px; }
.mp-timeline-item::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: -8px; width: 1px; background: #cdd4da; }
.mp-timeline-item:last-child::before { display: none; }
.mp-timeline-dot { position: absolute; left: 1px; top: 3px; width: 13px; height: 13px; background: #fff; border: 3px solid var(--mp-accent); border-radius: 50%; }
.mp-timeline-item h3 { margin: 0 0 4px; font-size: 15px; }
.mp-timeline-item p { margin: 0; color: var(--mp-muted); font-size: 13px; line-height: 1.5; }

.mp-list { display: grid; }
.mp-list-item { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 12px 0; border-bottom: 1px solid var(--mp-line); }
.mp-list-item:last-child { border-bottom: 0; }
.mp-list-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: #30404c; background: #edf1f3; border-radius: 13px; }
.mp-list-icon .mp-icon { width: 17px; height: 17px; }
.mp-list-copy { min-width: 0; flex: 1; }
.mp-list-copy strong { display: block; font-size: 14px; }
.mp-list-copy small { display: block; margin-top: 3px; color: var(--mp-muted); white-space: normal; overflow-wrap: anywhere; }
.mp-list-arrow { color: #9ba3aa; }
.mp-list-arrow .mp-icon { width: 10px; height: 14px; }
.mp-empty { padding: 28px 16px; text-align: center; color: var(--mp-muted); }
.mp-empty strong { display: block; margin-bottom: 5px; color: var(--mp-ink); }

.mp-owner-transfer { max-width: 860px; }
.mp-owner-transfer-title { margin: 9px 0 0; font-size: clamp(28px, 7vw, 40px); letter-spacing: .035em; }
.mp-owner-transfer-subtitle { margin: 0 0 8px; font-size: 20px; }
.mp-owner-transfer-summary > div { padding: 13px 14px; background: #f3f5f6; border-radius: 13px; }
.mp-owner-transfer-summary span { display: block; margin-bottom: 4px; color: var(--mp-muted); font-size: 12px; }
.mp-owner-transfer-summary strong { display: block; overflow-wrap: anywhere; }
.mp-owner-transfer-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; border: 1px solid var(--mp-line); border-radius: 13px; line-height: 1.5; font-size: 13px; cursor: pointer; }
.mp-owner-transfer-check input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 18px; accent-color: var(--mp-accent); }
.mp-owner-transfer-dialog { width: min(92vw, 440px); padding: 22px; color: var(--mp-ink); background: var(--mp-card); border: 0; border-radius: 20px; box-shadow: 0 24px 70px rgba(15,23,42,.3); }
.mp-owner-transfer-dialog::backdrop { background: rgba(8,15,22,.68); backdrop-filter: blur(3px); }
.mp-owner-transfer-dialog h3 { margin: 0 0 8px; font-size: 21px; }
.mp-owner-transfer-dialog p { margin: 0; color: var(--mp-muted); line-height: 1.6; }
.mp-carrier-reminder-dialog { width: min(94vw, 500px); max-height: min(88vh, 720px); overflow-y: auto; padding: 24px; }
.mp-carrier-reminder-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.mp-carrier-reminder-head .mp-eyebrow { margin-bottom: 4px; color: var(--mp-accent); font-size: 10px; }
.mp-carrier-reminder-head h3 { margin-bottom: 0; line-height: 1.35; }
.mp-carrier-reminder-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; color: #fff; background: linear-gradient(145deg, #087da5, #15546d); border-radius: 15px; box-shadow: 0 9px 24px rgba(8,125,165,.22); }
.mp-carrier-reminder-icon .mp-icon { width: 22px; height: 22px; }
.mp-carrier-reminder-form { margin-top: 18px; }
.mp-carrier-reminder-actions { margin-top: 18px; }
.mp-carrier-reminder-error { margin-top: 10px; padding: 10px 12px; color: #8d342e; background: #faefee; border: 1px solid #efd2cf; border-radius: 11px; font-size: 13px; line-height: 1.5; }
.mp-carrier-reminder-privacy { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--mp-line); font-size: 11px; }
.mp-carrier-reminder-success { padding: 12px 4px 4px; text-align: center; }
.mp-carrier-reminder-success-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 16px; color: #fff; background: #287a55; border-radius: 50%; box-shadow: 0 10px 26px rgba(40,122,85,.24); }
.mp-carrier-reminder-success-icon .mp-icon { width: 27px; height: 27px; }
.mp-carrier-reminder-success h3 { margin-bottom: 8px; }
.mp-carrier-reminder-success small { display: block; margin-top: 13px; color: var(--mp-muted); }
.mp-carrier-reminder-dialog [hidden] { display: none !important; }
.mp-points-expiry-dialog { width: min(94vw, 540px); max-height: min(88vh, 760px); overflow-y: auto; padding: 24px; }
.mp-points-expiry-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.mp-points-expiry-head .mp-eyebrow { margin-bottom: 4px; color: #a46208; font-size: 10px; }
.mp-points-expiry-head h3 { margin-bottom: 0; line-height: 1.35; }
.mp-points-expiry-icon { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 50px; color: #fff; background: linear-gradient(145deg, #e19a24, #9d5a05); border-radius: 16px; box-shadow: 0 9px 24px rgba(169,101,8,.24); }
.mp-points-expiry-icon .mp-icon { width: 23px; height: 23px; }
.mp-points-expiry-urgent { margin-top: 16px; padding: 13px 14px; color: #724600; background: #fff6e5; border: 1px solid #f0d49c; border-radius: 13px; }
.mp-points-expiry-urgent strong, .mp-points-expiry-urgent span { display: block; }
.mp-points-expiry-urgent span { margin-top: 3px; font-size: 12px; }
.mp-points-expiry-list { margin-top: 14px; border-top: 1px solid var(--mp-line); }
.mp-points-expiry-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 2px; color: var(--mp-ink); border-bottom: 1px solid var(--mp-line); }
.mp-points-expiry-item span { min-width: 0; }
.mp-points-expiry-item strong, .mp-points-expiry-item small { display: block; }
.mp-points-expiry-item small { margin-top: 3px; color: var(--mp-muted); font-size: 11px; }
.mp-points-expiry-item b { flex: 0 0 auto; color: #a15d08; font-size: 16px; white-space: nowrap; }
.mp-points-expiry-actions { margin-top: 18px; }
.mp-expiry-overview { padding: 22px; background: #fff7e8; border: 1px solid #e5b355; border-radius: 20px; color: #563608; }
.mp-expiry-overview-head { display: flex; gap: 15px; align-items: flex-start; }
.mp-expiry-overview-head h2 { margin: 3px 0 7px; font-size: 22px; line-height: 1.4; }
.mp-expiry-overview-head p { margin: 0; font-size: 13px; line-height: 1.6; }
.mp-expiry-overview-head .mp-eyebrow { color: #865208; font-size: 11px; }
.mp-expiry-vehicle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 12px; margin-top: 17px; }
.mp-expiry-vehicle { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid #ebd7b0; border-radius: 14px; background: #fff; color: #563608; }
.mp-expiry-vehicle:hover, .mp-expiry-vehicle:focus-visible { outline: 2px solid #a9640b; outline-offset: 2px; }
.mp-expiry-vehicle-name { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.mp-expiry-vehicle-name small { color: #675341; font-size: 11px; }
.mp-expiry-quantity { font-size: 29px; font-weight: 800; line-height: 1.3; }
.mp-expiry-quantity small { font-size: 13px; font-weight: 600; }
.mp-expiry-date { color: #6b5133; font-size: 12px; }
.mp-expiry-detail-link { display: flex; gap: 5px; align-items: center; color: #855007; font-size: 13px; font-weight: 700; }
.mp-expiry-details { scroll-margin-top: 90px; }
.mp-expiry-total { color: #995200; font-size: 22px; }
.mp-expiry-lot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--mp-line); }
.mp-expiry-lot strong, .mp-expiry-lot small { display: block; }
.mp-expiry-lot small { margin-top: 5px; color: var(--mp-muted); font-size: 12px; }
.mp-expiry-lot b { flex-shrink: 0; color: #995200; }
.mp-coins-guide { display: grid; grid-template-columns: 1fr minmax(240px, 40%); align-items: center; gap: 24px; padding: 22px; border: 1px solid #c1a46b; }
.mp-coins-guide-copy h2 { margin: 5px 0 10px; font-size: 22px; }
.mp-coins-guide-copy p { font-size: 14px; line-height: 1.7; color: var(--mp-muted); }
.mp-coins-guide-copy .mp-eyebrow { color: #89612b; font-size: 11px; }
.mp-coins-guide-preview { display: block; min-width: 0; border-radius: 14px; background: #070707; overflow: hidden; color: #fff; }
.mp-coins-guide-preview img { display: block; width: 100%; height: auto; }
.mp-coins-guide-preview span { display: block; padding: 9px; text-align: center; font-size: 12px; background: #252018; }
.mp-coins-guide-expanded { grid-template-columns: 1fr; }
.mp-coins-guide-expanded .mp-coins-guide-preview { width: 100%; max-width: 800px; justify-self: center; }
.mp-points-guide-reminder-link { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; margin-top: 14px; border: 1px solid #bba475; border-radius: 12px; background: #faf5e9; color: #734507; font-weight: 700; font-size: 14px; }
.mp-coins-guide-dialog { width: min(96vw, 1100px); max-width: 96vw; max-height: 90vh; max-height: 90dvh; padding: 0; border: 0; border-radius: 20px; background: var(--mp-card); color: var(--mp-ink); overflow: hidden; }
.mp-coins-guide-dialog::backdrop { background: rgba(8, 15, 22, .75); }
.mp-coins-guide-dialog[open] { display: flex; flex-direction: column; }
.mp-coins-guide-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--mp-line); flex-shrink: 0; }
.mp-coins-guide-toolbar h2 { margin: 0; font-size: 19px; }
.mp-coins-guide-toolbar .mp-icon-button { color: #273440; background: #eef1f3; border: 1px solid #d5dce1; }
.mp-coins-guide-dialog-body { padding: 18px; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.mp-coins-guide-dialog-body > p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; }
.mp-coins-guide-image-scroll { width: 100%; overflow: auto; border-radius: 12px; background: #000; margin-top: 14px; }
.mp-coins-guide-image-scroll img { display: block; width: 100%; height: auto; max-width: none; }
.mp-coins-guide-image-scroll img.is-enlarged { width: max(1400px, 150%); }
@media (max-width: 620px) {
    .mp-expiry-overview { padding: 16px; }
    .mp-expiry-overview-head { gap: 10px; }
    .mp-expiry-overview-head h2 { font-size: 19px; }
    .mp-expiry-overview-head .mp-points-expiry-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .mp-coins-guide { grid-template-columns: 1fr; padding: 16px; gap: 15px; }
    .mp-coins-guide-toolbar { padding: 12px; }
    .mp-coins-guide-toolbar h2 { font-size: 17px; }
    .mp-coins-guide-dialog-body { padding: 12px; }
}
.mp-status-family { color: #65508f; background: #f2edfb; }
.mp-status-family .mp-icon { width: 13px; height: 13px; }
.mp-family-share-dialog { width: min(94vw, 620px); max-height: min(86vh, 760px); overflow-y: auto; }
.mp-family-share-dialog h3 { margin: 8px 0 0; }
.mp-family-share-close { width: 38px; height: 38px; flex: 0 0 38px; color: var(--mp-muted); background: #f0f2f3; border: 0; border-radius: 50%; font-size: 25px; line-height: 1; cursor: pointer; }
.mp-family-share-form { margin-top: 16px; padding: 16px; background: #f5f7f8; border-radius: 16px; }
.mp-family-share-list { margin-top: 22px; }
.mp-family-share-list h4 { margin: 0 0 8px; font-size: 15px; }
.mp-family-share-person { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--mp-line); }
.mp-family-share-person form { flex: 0 0 auto; }
.mp-family-share-revoke { min-height: 36px; padding: 7px 10px; color: var(--mp-danger); background: #fff; border: 1px solid #efd2cf; border-radius: 10px; font-size: 12px; font-weight: 650; cursor: pointer; }
.mp-family-share-result { text-align: center; }
.mp-family-share-result-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 14px; color: #fff; background: var(--mp-accent); border-radius: 50%; }
.mp-family-share-result-icon .mp-icon { width: 26px; height: 26px; }
@media (max-width: 640px) {
    .mp-carrier-reminder-dialog { width: min(94vw, 500px); max-height: 84vh; padding: 19px; }
    .mp-carrier-reminder-head { gap: 11px; }
    .mp-carrier-reminder-icon { width: 43px; height: 43px; flex-basis: 43px; border-radius: 13px; }
    .mp-points-expiry-dialog { width: min(94vw, 540px); max-height: 84vh; padding: 19px; }
    .mp-points-expiry-head { gap: 11px; }
    .mp-points-expiry-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; }
    .mp-points-expiry-item { align-items: flex-start; }
    .mp-family-share-dialog { padding: 18px; }
    .mp-family-share-person { align-items: flex-start; flex-wrap: wrap; }
    .mp-family-share-person form { width: calc(100% - 51px); margin-left: 51px; }
    .mp-family-share-revoke { width: 100%; }
}

.mp-emergency-card { padding: 22px; color: #fff; background: linear-gradient(145deg, #6f1414, #b42318); border-radius: 24px; box-shadow: 0 16px 38px rgba(180,35,24,.22); }
.mp-emergency-card h1 { margin: 0; font-size: 28px; }
.mp-emergency-card p { margin: 8px 0 18px; color: #ffe4e1; line-height: 1.55; }
.mp-gps-result { padding: 12px 14px; background: #eef8f1; border-radius: 13px; font-size: 13px; }
.mp-map-card { min-height: 180px; padding: 22px; display: flex; flex-direction: column; justify-content: end; color: #fff; background: radial-gradient(circle at 70% 20%, rgba(98,213,255,.35), transparent 30%), linear-gradient(145deg,#17212a,#24445a); border-radius: 22px; }
.mp-map-card h2 { margin: 0; }
.mp-map-card p { margin: 5px 0 0; color: #c8d5df; }

.mp-bottom-nav {
    position: fixed; z-index: 1000; left: 50%; bottom: 0; transform: translateX(-50%);
    width: min(100%, 1080px); height: calc(70px + env(safe-area-inset-bottom));
    padding: 7px 10px env(safe-area-inset-bottom);
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(255,255,255,.95); border-top: 1px solid rgba(17,20,24,.1); backdrop-filter: blur(18px);
}
.mp-nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #747d85; }
.mp-nav-item > span { min-width: 30px; height: 29px; display: grid; place-items: center; font-size: 21px; line-height: 1; }
.mp-nav-item > span .mp-icon { width: 20px; height: 20px; }
.mp-nav-item small { font-size: 10px; font-weight: 600; }
.mp-nav-item.is-active { color: var(--mp-ink); }
.mp-nav-item.is-active::before { content: ""; position: absolute; top: -7px; width: 30px; height: 3px; background: var(--mp-accent); border-radius: 0 0 4px 4px; }
.mp-nav-item:nth-child(3) > span { width: 42px; height: 42px; margin-top: -19px; color: #fff; background: var(--mp-dark); border: 4px solid #fff; border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,.2); }
.mp-nav-item:nth-child(3) > span .mp-icon { width: 18px; height: 18px; }
.mp-nav-item:nth-child(3) small { margin-top: 3px; }

.mp-toast { position: fixed; z-index: 2000; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); width: min(calc(100% - 32px), 420px); padding: 12px 16px; color: #fff; background: rgba(11,13,16,.94); border-radius: 13px; text-align: center; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s ease; }
.mp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.mp-hidden { display: none !important; }
.mp-auth-main { min-height: calc(100vh - 70px); display: grid; align-content: center; gap: 18px; padding-top: 28px; padding-bottom: 40px; }
.mp-auth-hero { max-width: 720px; padding: 10px 4px; }
.mp-auth-hero h1 { margin: 0; max-width: 680px; font-size: clamp(30px, 8vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.mp-auth-hero p:last-child { max-width: 620px; margin: 14px 0 0; color: var(--mp-muted); line-height: 1.65; }
.mp-auth-card { width: min(100%, 580px); }
.mp-success-panel { text-align: center; margin-inline: auto; }
.mp-success-panel h1 { margin: 8px 0; font-size: 32px; }
.mp-success-panel > p:not(.mp-eyebrow):not(.mp-help) { color: var(--mp-muted); line-height: 1.65; }
.mp-success-mark { width: 68px; height: 68px; margin: 0 auto 18px; display: grid; place-items: center; color: #fff; background: var(--mp-success); border-radius: 50%; font-size: 34px; box-shadow: 0 12px 30px rgba(22,120,74,.22); }
.mp-success-mark .mp-icon { width: 28px; height: 28px; }
.mp-benefit-vehicle-head { position: relative; min-height: 105px; padding-right: 48%; overflow: hidden; }
.mp-benefit-vehicle-art { position: absolute; right: -10px; bottom: 0; width: 55%; height: 94px; object-fit: contain; filter: drop-shadow(0 8px 7px rgba(15,23,42,.18)); }
.mp-skeleton { min-height: 70px; border-radius: 14px; background: linear-gradient(90deg,#edf0f2 25%,#f7f8f9 50%,#edf0f2 75%); background-size: 200% 100%; animation: mpShimmer 1.3s infinite; }
@keyframes mpShimmer { to { background-position: -200% 0; } }

@media (min-width: 760px) {
    .mp-main { padding: 26px 24px 44px; }
    .mp-hero { margin: -26px -24px 24px; padding: 42px 34px; min-height: 300px; border-radius: 0 0 28px 28px; }
    .mp-grid-dashboard { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .mp-grid-vehicles { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .mp-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .mp-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .mp-layout-sidebar { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(280px,.7fr); gap: 20px; align-items: start; }
    .mp-choice-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 480px) {
    .mp-main { padding-left: 12px; padding-right: 12px; }
    .mp-card-pad { padding: 15px; }
    .mp-section-head { align-items: flex-start; flex-wrap: wrap; }
    .mp-inline-actions > .mp-button, .mp-inline-actions > a.mp-button { flex: 1 1 100%; width: 100%; }
    .mp-list-item { align-items: flex-start; flex-wrap: wrap; }
    .mp-list-item > .mp-status { margin-left: 53px; }
}

@media (max-width: 360px) {
    .mp-choice-grid { grid-template-columns: minmax(0,1fr); }
    .mp-hero-stats { flex-direction: column; }
    .mp-hero-stat { min-width: 0; }
}

@media (min-width: 1100px) {
    .mp-topbar { padding-left: calc((100vw - 1080px)/2 + 18px); padding-right: calc((100vw - 1080px)/2 + 18px); }
}

/* 2026 premium interface polish: quiet surfaces, consistent rhythm and hierarchy. */
body {
    background:
        radial-gradient(circle at 8% -12%, rgba(99, 200, 232, .1), transparent 25rem),
        var(--mp-bg);
}

.mp-topbar {
    position: sticky;
    z-index: 1100;
    top: 0;
    height: 64px;
    padding-block: 8px;
    background: rgba(13, 17, 21, .96);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 5px 18px rgba(8, 12, 16, .12);
    backdrop-filter: blur(18px) saturate(125%);
}
.mp-brand-mark, .mp-icon-button { width: 38px; height: 38px; flex-basis: 38px; border-color: rgba(255,255,255,.12); }
.mp-topbar-title span { color: #9ca7b0; }
.mp-topbar-title strong { font-size: 15px; letter-spacing: .01em; }

.mp-main { padding-top: 20px; padding-bottom: 36px; }
.mp-section { margin-top: 28px; }
.mp-section-head { align-items: center; margin-bottom: 14px; }
.mp-section-head h2 { font-size: 19px; font-weight: 670; letter-spacing: -.025em; }
.mp-section-head p { margin-top: 3px; line-height: 1.45; }
.mp-section-link {
    padding: 7px 10px;
    color: #33505d;
    background: rgba(255,255,255,.7);
    border: 1px solid var(--mp-line);
    border-radius: 999px;
    font-size: 12px;
}

.mp-card {
    border-color: rgba(21, 25, 29, .075);
    box-shadow: var(--mp-shadow);
}
.mp-card-pad { padding: 20px; }
.mp-grid { gap: 14px; }
.mp-grid-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mp-action-card {
    min-height: 112px;
    padding: 15px;
    border-radius: 17px;
    box-shadow: 0 2px 10px rgba(15,23,42,.035);
}
.mp-action-icon { width: 36px; height: 36px; color: #41515a; background: #edf1f2; border-radius: 11px; }
.mp-action-card:nth-child(2n) .mp-action-icon { color: #41515a; background: #edf1f2; }
.mp-grid-dashboard .mp-action-card:first-child { color: #fff; background: linear-gradient(145deg, #11161b, #263642); border-color: transparent; }
.mp-grid-dashboard .mp-action-card:first-child .mp-action-icon { color: #d9f6ff; background: rgba(255,255,255,.11); }
.mp-grid-dashboard .mp-action-card:first-child small { color: #bec8cf; }
.mp-action-card strong { font-size: 14px; letter-spacing: -.01em; }
.mp-action-card small { font-size: 12px; }

.mp-hero {
    min-height: 232px;
    margin-bottom: 22px;
    padding: 30px 22px;
    background:
        radial-gradient(circle at 86% 16%, rgba(99,200,232,.2), transparent 28%),
        linear-gradient(145deg, #0d1115 18%, #19242d 70%, #253b49);
}
.mp-hero::after { right: -105px; bottom: -145px; opacity: .6; }
.mp-hero h1 { font-size: clamp(28px, 7vw, 42px); font-weight: 560; }
.mp-hero p { max-width: 540px; color: #cbd2d8; }
.mp-hero-stats { margin-top: 20px; }
.mp-hero-stat { padding: 10px 13px; background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.1); border-radius: 13px; }

.mp-vehicle-card { border-radius: 20px; }
.mp-vehicle-visual {
    min-height: 150px;
    background:
        radial-gradient(circle at 82% 18%, rgba(99,200,232,.14), transparent 34%),
        linear-gradient(140deg, #12171c, #2d414e);
}
.mp-vehicle-name { font-size: 20px; }
.mp-vehicle-body { padding: 17px 19px; }
.mp-meta-row { padding: 10px 0; border-color: #e8ebed; }
.mp-progress { height: 6px; background: #e8ecee; }
.mp-progress > span { background: linear-gradient(90deg, #087da5, #63c8e8); }

.mp-list-item { min-height: 64px; gap: 12px; }
.mp-list-icon { width: 38px; height: 38px; flex-basis: 38px; color: #49606b; background: #eff2f3; border-radius: 12px; }
.mp-list-copy strong { font-size: 13px; }
.mp-list-copy small { line-height: 1.45; }
.mp-empty { padding: 24px 16px; }

.mp-status { padding: 5px 9px; color: #46535c; background: #f0f2f3; font-size: 11px; }
.mp-status::before { width: 6px; height: 6px; }
.mp-status-success { color: #356b50; background: #edf6f1; }
.mp-status-warning { color: #846027; background: #faf3e8; }
.mp-status-danger { color: #9b4841; background: #faefee; }

.mp-callout { color: #604d28; background: #fbf7ee; border-color: #e8d8b6; border-radius: 14px; }
.mp-callout strong { color: #3f3420; }
.mp-callout-info { color: #315766; background: #eff7f9; border-color: #cce4eb; }
.mp-callout-info strong { color: #203f4b; }

.mp-button {
    min-height: 44px;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.mp-button-primary { background: #087da5; box-shadow: 0 6px 16px rgba(8,125,165,.16); }
.mp-button-light { color: #29343a; background: #f1f3f3; border-color: #e1e5e6; }
.mp-button:focus-visible, .mp-section-link:focus-visible, .mp-nav-item:focus-visible { outline: 3px solid rgba(8,125,165,.22); outline-offset: 2px; }

.mp-form { gap: 17px; }
.mp-field { gap: 8px; }
.mp-field label, .mp-label { color: #323a40; font-size: 12px; letter-spacing: .01em; }
.mp-input, .mp-select, .mp-textarea {
    min-height: 46px;
    color: #1b2024;
    background: #fafbfb;
    border-color: #d9dee1;
    border-radius: 11px;
}
.mp-input:hover, .mp-select:hover, .mp-textarea:hover { border-color: #bdc6cb; }
.mp-input:focus, .mp-select:focus, .mp-textarea:focus { background: #fff; border-color: #087da5; box-shadow: 0 0 0 3px rgba(8,125,165,.11); }
.mp-choice span { min-height: 70px; background: #fafbfb; border-color: #dfe3e5; border-radius: 13px; }
.mp-choice-icon { color: #087da5; }
.mp-choice input:checked + span { color: #15313b; background: #edf6f8; border-color: #69aebf; box-shadow: 0 0 0 2px rgba(8,125,165,.08); }
.mp-wizard-progress span { background: #dfe3e5; }
.mp-wizard-progress span.is-active { background: #087da5; }
.mp-recommendation { background: linear-gradient(140deg, #18313f, #17627e); }
.mp-slot-day { background: #fbfcfc; border-radius: 13px; }
.mp-slot { border-color: #dce1e3; border-radius: 9px; }
.mp-slot.is-selected { background: #087da5; border-color: #087da5; }

.mp-record-stack { display: grid; gap: 10px; }
.mp-disclosure { overflow: hidden; background: #fff; border: 1px solid rgba(21,25,29,.075); border-radius: 16px; box-shadow: 0 2px 12px rgba(15,23,42,.035); }
.mp-disclosure summary { min-height: 70px; padding: 14px 17px; display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; user-select: none; }
.mp-disclosure summary::-webkit-details-marker { display: none; }
.mp-disclosure summary::marker { display: none; content: ""; }
.mp-disclosure .mp-list-copy small { margin-top: 2px; }
.mp-count-badge { min-width: 25px; height: 25px; padding: 0 8px; display: grid; place-items: center; color: #526069; background: #eef1f2; border-radius: 999px; font-size: 11px; font-weight: 700; }
.mp-disclosure-chevron { color: #8b959b; transition: transform .18s ease; }
.mp-disclosure-chevron .mp-icon { width: 10px; height: 14px; }
.mp-disclosure[open] .mp-disclosure-chevron { transform: rotate(90deg); }
.mp-disclosure-body { padding: 4px 17px 17px; border-top: 1px solid #edf0f1; }

.mp-emergency-card { border-radius: 20px; box-shadow: 0 10px 28px rgba(137,38,30,.16); }
.mp-map-card { border-radius: 18px; }

.mp-bottom-nav {
    height: calc(68px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.94);
    border-color: rgba(21,25,29,.09);
    box-shadow: 0 -5px 22px rgba(15,23,42,.055);
    backdrop-filter: blur(20px) saturate(130%);
}
.mp-nav-item { color: #7c858b; }
.mp-nav-item.is-active { color: #162128; }
.mp-nav-item.is-active::before { background: #087da5; }
.mp-nav-item:nth-child(3) > span { background: #11171b; box-shadow: 0 5px 14px rgba(0,0,0,.16); }

.mp-auth-card { box-shadow: 0 8px 28px rgba(15,23,42,.06); }
.mp-success-mark { background: #267655; box-shadow: 0 9px 24px rgba(22,120,74,.16); }

/* Administrator user management */
.mp-admin-hero {
    padding: 24px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
    background: radial-gradient(circle at 88% 12%, rgba(99,200,232,.25), transparent 34%), linear-gradient(145deg, #11171c, #294654);
    border-radius: 21px;
}
.mp-admin-hero h1 { margin: 0; font-size: clamp(27px, 7vw, 40px); font-weight: 600; letter-spacing: -.035em; }
.mp-admin-hero p:not(.mp-eyebrow) { max-width: 620px; margin: 8px 0 0; color: #cad6dc; line-height: 1.6; }
.mp-admin-stat { min-width: 112px; padding: 13px 15px; display: grid; gap: 2px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.13); border-radius: 15px; }
.mp-admin-stat strong { font-size: 22px; }
.mp-admin-stat span { color: #c4d0d7; font-size: 11px; }
.mp-admin-search { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: end; gap: 10px; }
.mp-admin-user-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.mp-admin-user-card { overflow: hidden; }
.mp-admin-user-card.is-viewing { border-color: #d3a029; box-shadow: 0 0 0 2px rgba(211,160,41,.12); }
.mp-admin-user-main { padding: 16px 17px; display: flex; align-items: center; gap: 12px; }
.mp-admin-user-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: #fff; background: #172128; border-radius: 13px; }
.mp-admin-user-avatar .mp-icon { width: 18px; height: 18px; }
.mp-admin-user-copy { min-width: 0; flex: 1; }
.mp-admin-user-copy strong, .mp-admin-user-copy span { display: block; min-width: 0; overflow-wrap: anywhere; }
.mp-admin-user-copy strong { font-size: 15px; }
.mp-admin-user-copy span { margin-top: 3px; color: var(--mp-muted); font-size: 11px; }
.mp-admin-user-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: #f7f9f9; border-top: 1px solid #e8ebec; border-bottom: 1px solid #e8ebec; }
.mp-admin-user-meta > span { min-width: 0; padding: 11px 13px; border-right: 1px solid #e5e9eb; }
.mp-admin-user-meta > span:last-child { border-right: 0; }
.mp-admin-user-meta small, .mp-admin-user-meta strong { display: block; overflow-wrap: anywhere; }
.mp-admin-user-meta small { margin-bottom: 4px; color: var(--mp-muted); font-size: 10px; }
.mp-admin-user-meta strong { font-size: 12px; }
.mp-admin-user-action { padding: 13px 17px; }
.mp-admin-user-action .mp-button { width: 100%; min-height: 41px; padding-block: 9px; font-size: 12px; }
.mp-admin-pagination { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.mp-admin-pagination span { color: var(--mp-muted); font-size: 12px; }
.mp-admin-pagination .mp-button { min-height: 40px; padding: 9px 13px; }

@media (hover: hover) {
    .mp-card.mp-action-card:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(15,23,42,.08); }
    .mp-button:hover { transform: translateY(-1px); }
    .mp-section-link:hover { background: #fff; border-color: #cfd6d9; }
}

@media (max-width: 480px) {
    .mp-main { padding-top: 16px; }
    .mp-hero { margin-top: -16px; margin-inline: -12px; padding-inline: 18px; }
    .mp-section { margin-top: 24px; }
    .mp-card-pad { padding: 16px; }
    .mp-grid { gap: 10px; }
    .mp-action-card { min-height: 106px; padding: 13px; }
    .mp-action-card small { font-size: 11px; }
    .mp-disclosure summary { padding-inline: 14px; }
    .mp-disclosure-body { padding-inline: 14px; }
    .mp-admin-view-bar { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; gap: 8px 12px; }
    .mp-admin-view-bar > div { width: 100%; }
    .mp-admin-hero { align-items: stretch; flex-direction: column; padding: 21px 18px; }
    .mp-admin-stat { min-width: 0; }
    .mp-admin-search { grid-template-columns: minmax(0,1fr); }
    .mp-admin-user-main { align-items: flex-start; flex-wrap: wrap; }
    .mp-admin-user-copy { flex-basis: calc(100% - 56px); }
    .mp-admin-user-meta { grid-template-columns: minmax(0,1fr); }
    .mp-admin-user-meta > span { border-right: 0; border-bottom: 1px solid #e5e9eb; }
    .mp-admin-user-meta > span:last-child { border-bottom: 0; }
}

@media (min-width: 760px) {
    body { padding-bottom: 104px; }
    .mp-main { padding-top: 30px; padding-bottom: 50px; }
    .mp-hero { min-height: 270px; margin-top: -30px; margin-bottom: 30px; padding: 40px 36px; border-radius: 0 0 24px 24px; }
    .mp-section { margin-top: 32px; }
    .mp-card-pad { padding: 22px; }
    .mp-grid-dashboard { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mp-admin-user-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .mp-bottom-nav {
        bottom: 14px;
        width: min(calc(100% - 36px), 680px);
        height: 64px;
        padding: 6px 12px;
        border: 1px solid rgba(21,25,29,.1);
        border-radius: 20px;
        box-shadow: 0 12px 34px rgba(15,23,42,.12);
    }
    .mp-nav-item.is-active::before { top: -6px; border-radius: 0 0 4px 4px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Member appointment history */
.mp-appointments-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 18px;
    padding: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(99,200,232,.22), transparent 30%),
        linear-gradient(145deg, #0f151a, #233641);
    border-radius: 21px;
}
.mp-appointments-hero::after {
    content: "";
    position: absolute;
    right: -74px;
    bottom: -122px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(255,255,255,.025);
    pointer-events: none;
}
.mp-appointments-hero > * { position: relative; z-index: 1; }
.mp-appointments-hero h1 { margin: 0; font-size: clamp(25px, 6vw, 38px); font-weight: 580; letter-spacing: -.035em; }
.mp-appointments-hero p:not(.mp-eyebrow) { max-width: 560px; margin: 9px 0 0; color: #cbd5dc; line-height: 1.6; }
.mp-appointments-hero > .mp-button { justify-self: start; }
.mp-appointments-hero > .mp-button .mp-icon { width: 14px; height: 14px; }
.mp-appointment-summary { display: flex; gap: 10px; }
.mp-appointment-summary > span { min-width: 108px; padding: 11px 13px; display: grid; gap: 2px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; }
.mp-appointment-summary strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.mp-appointment-summary small { color: #b8c5cd; font-size: 11px; }
.mp-appointment-callout { margin-top: 16px; }
.mp-appointment-callout .mp-inline-actions { margin-top: 10px; }
.mp-appointment-callout .mp-button { min-height: 38px; padding: 8px 12px; font-size: 12px; }
.mp-appointment-callout .mp-button .mp-icon { width: 13px; height: 13px; }
.mp-appointment-filters { display: grid; gap: 13px; }
.mp-appointment-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; }
.mp-appointment-card { min-width: 0; overflow: hidden; }
.mp-appointment-card[hidden] { display: none !important; }
.mp-appointment-card-head { min-width: 0; padding: 18px; display: flex; align-items: flex-start; gap: 15px; }
.mp-appointment-date { width: 62px; min-height: 76px; flex: 0 0 62px; display: grid; place-items: center; align-content: center; color: #fff; background: #172027; border-radius: 15px; line-height: 1; }
.mp-appointment-date small { color: #b9c8d1; font-size: 11px; }
.mp-appointment-date strong { margin: 4px 0; font-size: 25px; font-variant-numeric: tabular-nums; }
.mp-appointment-date span { color: #dce5ea; font-size: 10px; }
.mp-appointment-title { min-width: 0; flex: 1; }
.mp-appointment-title h2 { margin: 9px 0 3px; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.mp-appointment-title p { margin: 0; color: var(--mp-muted); font-size: 12px; overflow-wrap: anywhere; }
.mp-appointment-facts { margin: 0 18px 16px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid #e5e9eb; border-radius: 13px; background: #fafbfb; }
.mp-appointment-facts > div { min-width: 0; padding: 11px 12px; border-bottom: 1px solid #e7eaec; }
.mp-appointment-facts > div:nth-child(odd) { border-right: 1px solid #e7eaec; }
.mp-appointment-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.mp-appointment-facts span { display: block; margin-bottom: 4px; color: var(--mp-muted); font-size: 10px; }
.mp-appointment-facts strong { display: block; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.mp-appointment-detail { margin: 0 18px 16px; border-top: 1px solid #edf0f1; }
.mp-appointment-detail summary { padding: 12px 0 5px; color: #315766; font-size: 12px; font-weight: 700; cursor: pointer; }
.mp-appointment-detail p { margin: 7px 0 0; color: #56636b; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.mp-appointment-card-foot { min-width: 0; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #68757c; background: #f5f7f7; border-top: 1px solid #e8ebec; font-size: 11px; }
.mp-appointment-card-foot span { min-width: 0; overflow-wrap: anywhere; }
.mp-appointment-card-foot a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; color: #17637a; font-weight: 750; }
.mp-appointment-card-foot a .mp-icon { width: 13px; height: 13px; }

@media (min-width: 760px) {
    .mp-appointments-hero { grid-template-columns: minmax(0,1fr) auto; align-items: end; padding: 30px; }
    .mp-appointments-hero > .mp-button { grid-column: 1; }
    .mp-appointment-summary { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .mp-appointment-filters { grid-template-columns: minmax(280px,1.6fr) minmax(180px,.8fr) minmax(160px,.7fr); align-items: end; }
    .mp-appointment-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 480px) {
    .mp-appointments-hero { margin-inline: -4px; padding: 21px 18px; border-radius: 18px; }
    .mp-appointment-summary { width: 100%; }
    .mp-appointment-summary > span { min-width: 0; flex: 1; }
    .mp-appointments-hero > .mp-button { width: 100%; }
    .mp-appointment-card-head { padding: 15px; gap: 12px; }
    .mp-appointment-date { width: 56px; min-height: 72px; flex-basis: 56px; }
    .mp-appointment-facts { margin-inline: 15px; }
    .mp-appointment-detail { margin-inline: 15px; }
    .mp-appointment-card-foot { align-items: flex-start; flex-direction: column; padding-inline: 15px; }
}

/* Member appointment one-time document supplement */
.mp-supplement-entry {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #b8d9e2;
    border-radius: 15px;
    background: linear-gradient(135deg, #f4fbfc, #e9f5f7);
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
}
.mp-supplement-entry-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: #16708a; box-shadow: 0 5px 15px rgba(25,91,108,.09); }
.mp-supplement-entry-icon .mp-icon { width: 20px; height: 20px; }
.mp-supplement-entry strong, .mp-supplement-entry small { display: block; }
.mp-supplement-entry strong { color: #17343e; font-size: 14px; }
.mp-supplement-entry small { margin-top: 3px; color: #61777f; font-size: 11px; line-height: 1.5; }
.mp-supplement-entry .mp-button { min-height: 42px; padding: 9px 13px; font-size: 12px; }

body.mp-supplement-open { overflow: hidden; }
.mp-supplement-modal { position: fixed; inset: 0; z-index: 1200; padding: max(14px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); display: grid; place-items: center; overflow: auto; background: rgba(11,17,22,.64); backdrop-filter: blur(14px) saturate(125%); -webkit-backdrop-filter: blur(14px) saturate(125%); }
.mp-supplement-card { width: min(100%,680px); max-height: calc(100dvh - 28px); overflow: auto; padding: 23px; border: 1px solid rgba(255,255,255,.76); border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(5,15,22,.34); }
.mp-supplement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.mp-supplement-head .mp-eyebrow { margin-bottom: 5px; }
.mp-supplement-head h2 { margin: 0; font-size: 26px; }
.mp-supplement-head > div > span { display: block; margin-top: 6px; color: var(--mp-muted); font-size: 12px; line-height: 1.55; }
#closeMemberSupplementBtn { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid #d6dee2; border-radius: 50%; background: #f7f9f9; color: #40515a; font-size: 24px; line-height: 1; cursor: pointer; }
.mp-supplement-form { display: grid; gap: 15px; }
.mp-supplement-plate { padding: 13px 15px; border: 1px solid #dae4e7; border-radius: 12px; background: #f7fafb; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mp-supplement-plate span { color: var(--mp-muted); font-size: 11px; font-weight: 750; }
.mp-supplement-plate strong { letter-spacing: .08em; }
.mp-supplement-fields { display: grid; gap: 11px; }
.mp-supplement-file { min-width: 0; padding: 13px; border: 1px solid #dce4e7; border-radius: 13px; background: #fbfcfc; }
.mp-supplement-file label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.mp-supplement-file label small { color: var(--mp-muted); font-size: 10px; font-weight: 600; }
.mp-supplement-file input { width: 100%; min-width: 0; }
.mp-supplement-file-list { margin-top: 7px; color: var(--mp-muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.mp-supplement-consent { display: flex; align-items: flex-start; gap: 9px; }
.mp-supplement-consent input { margin-top: 3px; }
.mp-supplement-success { padding: 22px; border: 1px solid #bfe0d1; border-radius: 15px; background: #eff9f4; text-align: center; }
.mp-supplement-success > span { width: 48px; height: 48px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: #d7eee3; color: #277253; }
.mp-supplement-success > span .mp-icon { width: 22px; height: 22px; }
.mp-supplement-success strong { display: block; font-size: 18px; }
.mp-supplement-success p { margin: 7px 0 0; color: #547066; font-size: 12px; line-height: 1.6; }

@media (max-width: 540px) {
    .mp-supplement-entry { grid-template-columns: auto minmax(0,1fr); }
    .mp-supplement-entry .mp-button { grid-column: 1 / -1; width: 100%; }
    .mp-supplement-modal { place-items: end center; padding: 10px 0 0; }
    .mp-supplement-card { width: 100%; max-height: calc(100dvh - 10px); padding: 20px 15px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
}
