:root {
    --match-neon: #55f29b;
    --match-ink: #102a1e;
    --match-panel: #112e23;
    --match-border: rgba(255, 255, 255, .16);
    --match-rival: #7388e8;
    --match-player: #1eab70;
    --match-referee: #e3ad43;
    --match-coach: #459aca;
    --match-audience: #c977b0;
}

/* A page-level dialog, deliberately below Sheed's 99998 profile/chat layer. */
body.match-publish-open { overflow: hidden !important; }
.custom-modal[data-match-publish-suspended="true"] { display: none !important; }
.match-publish-modal,
.match-notification-experience,
.match-notification-map-shell {
    --mp-page: #f5f8f6;
    --mp-surface: #fff;
    --mp-soft: #eef4f0;
    --mp-line: #dce7df;
    --mp-ink: #173126;
    --mp-muted: #5d7166;
    --mp-green: #13764e;
    --mp-green-soft: #e7f4ec;
    --mp-text: var(--mp-ink);
    color: var(--mp-ink);
    color-scheme: light;
}
body:is(.dark-mode, .darkmode) :is(.match-publish-modal, .match-notification-experience, .match-notification-map-shell) {
    --mp-page: #10221a;
    --mp-surface: #182f24;
    --mp-soft: #213b2e;
    --mp-line: #345041;
    --mp-ink: #eaf5ee;
    --mp-muted: #afc6b7;
    --mp-green: #94e4b4;
    --mp-green-soft: #234e36;
    color-scheme: dark;
}
.match-publish-modal {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--mp-page);
    isolation: isolate;
}
.match-publish-modal[hidden] { display: none !important; }
.match-publish-modal,
.match-publish-modal *,
.match-notification-experience *,
.match-notification-map-shell * { box-sizing: border-box; }
.match-publish-modal-header {
    position: relative;
    z-index: 40;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 12px max(16px, calc((100vw - 824px) / 2));
    padding-top: calc(12px + max(env(safe-area-inset-top, 0px), var(--maui-safe-area-top, 0px)));
    border-bottom: 1px solid var(--mp-line);
    background: var(--mp-surface);
    isolation: isolate;
}
.match-publish-modal-title { min-width: 0; }
.match-publish-modal-title small {
    --mp-text: var(--mp-green);
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.match-publish-modal-title h1 { --mp-text: var(--mp-ink); margin: 0; font-size: clamp(18px, 4.8vw, 22px); font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.match-publish-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b4c6ba transparent;
    -webkit-overflow-scrolling: touch;
}
.match-publish-wizard { display: flex; flex-direction: column; width: 100%; max-width: 864px; min-height: 100%; margin: 0 auto; padding: 0 16px; }
.match-publish-details-only { width: 100%; }
.match-publish-details-only > .row { margin: 0; }
.match-publish-progress {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    margin: 0 0 12px;
    padding: 12px 0;
    background: var(--mp-page);
}
body .match-publish-progress .match-publish-progress-item {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 54px;
    height: 100%;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid transparent !important;
    border-radius: 13px !important;
    color: var(--mp-muted) !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
    cursor: pointer;
}
.match-publish-progress-item > span { --mp-text: var(--mp-muted); display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 9px; background: var(--mp-soft); font-size: 12px; font-weight: 800; }
.match-publish-progress-item > div { display: flex; flex-direction: column; min-width: 0; }
.match-publish-progress-item small { --mp-text: var(--mp-muted); margin-bottom: 1px; font-size: 10px; font-weight: 600; }
.match-publish-progress-item b { --mp-text: var(--mp-muted); font-size: 12px; font-weight: 800; line-height: 1.3; white-space: normal; }
body .match-publish-progress .match-publish-progress-item.is-active { border-color: var(--mp-line) !important; background: var(--mp-surface) !important; box-shadow: 0 2px 4px rgba(14, 47, 29, .035) !important; }
.match-publish-progress-item.is-active b { --mp-text: var(--mp-ink); }
.match-publish-progress-item.is-active > span,
.match-publish-progress-item.is-complete > span { --mp-text: #fff; background: #18774f; }
.match-publish-progress-line { --mp-text: var(--mp-muted); display: grid; place-items: center; font-size: 10px; }
.match-publish-progress-line i { display: none; }
.match-publish-step { display: flex; flex: 1; flex-direction: column; min-width: 0; animation: matchStepIn .2s ease both; }
.match-publish-step[hidden] { display: none !important; }
.match-publish-step:focus { outline: none !important; }
.match-publish-step[data-step="1"] > .row { --bs-gutter-x: 0; margin: 0 -6px 14px; }
.match-publish-step-heading { padding: 4px 0 14px; }
.match-publish-eyebrow { --mp-text: var(--mp-green); display: block; margin-bottom: 5px; color: var(--mp-green); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.match-publish-step-heading h2 { --mp-text: var(--mp-ink); margin: 0; color: var(--mp-ink); font-size: clamp(19px, 4.8vw, 24px); font-weight: 800; letter-spacing: -.035em; line-height: 1.25; }
.match-publish-step-heading p { --mp-text: var(--mp-muted); max-width: 600px; margin: 7px 0 0; color: var(--mp-muted); font-size: 12px !important; font-weight: 400 !important; line-height: 1.6; }
@keyframes matchStepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Compact, clearly labelled channel and audience controls. */
.match-publish-control-block { margin: 0 0 9px; padding: 8px; border: 1px solid var(--mp-line); border-radius: 14px; background: var(--mp-soft); }
.match-publish-control-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; margin: 0 2px 7px; }
.match-publish-control-head > span { --mp-text: var(--mp-ink); display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--mp-ink); font-size: 10px; font-weight: 800; letter-spacing: .015em; }
.match-publish-control-head > span i { color: var(--mp-green); font-size: 10px; }
.match-publish-control-head > small { --mp-text: var(--mp-muted); overflow: hidden; color: var(--mp-muted); font-size: 8px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.match-publish-channel-grid,
.match-notification-role-grid { gap: 7px; padding: 0; }
.match-publish-channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.match-notification-role-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.match-publish-option-card,
.match-role-option { position: relative; display: grid; align-items: center; grid-template-columns: 24px minmax(0, 1fr) 30px; gap: 7px; min-width: 0; margin: 0; padding: 8px 9px; border: 1px solid var(--mp-line); border-radius: 11px; background: var(--mp-surface); box-shadow: 0 1px 2px rgba(15, 49, 31, .025); cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.match-publish-option-card { min-height: 58px; }
.match-publish-option-card:has(.match-publish-toggle:checked),
.match-role-option:has(.match-publish-toggle:checked) { border-color: #83bd9c; background: color-mix(in srgb, var(--mp-green-soft) 48%, var(--mp-surface)); box-shadow: 0 2px 5px rgba(18, 105, 62, .07); }
.match-publish-option-card:focus-within,
.match-role-option:focus-within { outline: 3px solid #74c896; outline-offset: 2px; }
.match-option-icon,
.match-role-option > i { --mp-text: var(--mp-green); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: var(--mp-green); background: var(--mp-green-soft); font-size: 10px; }
.match-option-copy,
.match-role-option > span:not(.match-toggle-visual) { display: flex; flex-direction: column; min-width: 0; }
.match-option-copy b,
.match-role-option b { --mp-text: var(--mp-ink); color: var(--mp-ink); font-size: 11px; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.match-role-option b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.match-option-copy small,
.match-role-option small { --mp-text: var(--mp-muted); display: block; margin-top: 2px; overflow: hidden; color: var(--mp-muted); font-size: 9px; font-weight: 500 !important; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.match-publish-toggle { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.match-toggle-visual { position: relative; display: block; width: 30px; height: 18px; border-radius: 99px; background: #aebdb3; transition: background-color .18s ease; }
.match-toggle-visual::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); transition: transform .18s ease; }
.match-publish-toggle:checked + .match-toggle-visual { background: #178752; }
.match-publish-toggle:checked + .match-toggle-visual::after { transform: translateX(12px); }
.match-publish-toggle:focus-visible + .match-toggle-visual { outline: 3px solid #74c896; outline-offset: 3px; }
.match-role-option { grid-template-columns: 22px minmax(0, 1fr) 30px; min-height: 54px; padding: 7px 8px; }
.match-role-option > i { width: 22px; height: 22px; }
.match-role-option .match-toggle-visual { width: 20px; height: 20px; justify-self: end; border: 1px solid #b8c8bd; border-radius: 7px; background: var(--mp-surface); }
.match-role-option .match-toggle-visual::after { top: 3px; left: 6px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 0; transform: rotate(45deg) scale(.6); transform-origin: center; }
.match-role-option .match-publish-toggle:checked + .match-toggle-visual { border-color: #178752; background: #178752; }
.match-role-option .match-publish-toggle:checked + .match-toggle-visual::after { opacity: 1; transform: rotate(45deg) scale(1); }
.match-role-option.type-rival > i { color: #526bbd; background: #edf0fc; }
.match-role-option.type-player > i { color: #148051; background: #e6f5ec; }
.match-role-option.type-referee > i { color: #936815; background: #fbf2db; }
.match-role-option.type-coach > i { color: #246e9d; background: #e8f3f9; }
.match-role-option.type-audience > i { color: #a14f8a; background: #f7eaf3; }
.match-role-option.is-disabled { cursor: not-allowed; background: var(--mp-soft); }
.match-role-option.is-disabled > i { opacity: .65; }
.match-role-option.is-disabled .match-toggle-visual { opacity: .55; }
.match-role-option.is-disabled b,
.match-role-option.is-disabled small { --mp-text: var(--mp-muted); }
.match-notification-tuning { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.match-tuning-control { min-width: 0; padding: 12px 11px 8px; border: 1px solid var(--mp-line); border-radius: 13px; background: var(--mp-surface); }
.match-tuning-control > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; min-height: 30px; }
.match-tuning-control b { --mp-text: var(--mp-ink); font-size: 11px; font-weight: 700; line-height: 1.4; }
.match-tuning-control span { --mp-text: var(--mp-green); flex: 0 0 auto; padding: 3px 6px; border-radius: 7px; background: var(--mp-green-soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
body .match-publish-modal .match-tuning-control input[type="range"] { display: block; width: 100%; height: 30px; margin: 4px 0 0; background: transparent !important; box-shadow: none !important; accent-color: #168451; cursor: pointer; }

/* A quiet, compact editorial tip. No shimmer or rapid decorative motion. */
.match-publish-insight { --mp-text: #f1fff6; position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 10px; margin: 0 0 14px; padding: 14px; overflow: hidden; border: 1px solid #2c5a40; border-radius: 16px; color: #f1fff6; background: linear-gradient(120deg, #153c2b, #102e23); }
.match-publish-insight-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #3e6950; border-radius: 10px; color: #bcf1c9; background: #214a34; font-size: 14px; }
.match-publish-insight-copy { display: flex; flex-direction: column; min-width: 0; }
.match-publish-insight-kicker { --mp-text: #b3dfbe; font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.match-publish-insight-title { --mp-text: #f1fff6; display: block; margin-top: 4px; color: #f1fff6; font-size: 13px; font-weight: 750; line-height: 1.4; }
.match-publish-insight-text { --mp-text: #cbdfd1; margin: 4px 0 0; color: #cbdfd1; font-size: 11px !important; font-weight: 400 !important; line-height: 1.6; }
body .match-notification-experience .match-publish-insight-action { --mp-text: #edfff3; position: relative; grid-column: 1 / 3; grid-row: 2; align-self: center; justify-self: start; min-height: 36px; max-width: calc(100% - 146px); padding: 7px 10px; border: 1px solid #557c64 !important; border-radius: 9px !important; color: #edfff3 !important; background: #254a35 !important; box-shadow: none !important; font-size: 11px; font-weight: 700; line-height: 1.3; text-align: center; cursor: pointer; }
.match-publish-insight-nav { --mp-text: #c9e2d2; grid-column: 1 / 3; grid-row: 2; justify-self: end; display: flex; align-items: center; gap: 3px; min-height: 36px; color: #c9e2d2; font-size: 10px; }
.match-publish-insight-nav > span { min-width: 25px; text-align: center; font-variant-numeric: tabular-nums; }
body .match-notification-experience :is(.match-tip-nav, .match-tip-pause) { display: grid; place-items: center; width: 34px; height: 36px; margin: 0; padding: 0; border: 1px solid transparent !important; border-radius: 9px !important; color: #e4f7ea !important; background: #21422f !important; box-shadow: none !important; font-size: 11px; cursor: pointer; }
body .match-notification-experience .match-tip-pause[aria-pressed="true"] { border-color: #81b793 !important; background: #345e43 !important; }

/* A quiet map surface lets markers and delivery routes carry the visual hierarchy. */
.match-notification-map-shell { position: relative; height: clamp(280px, 43vh, 370px); height: clamp(280px, 43dvh, 370px); margin: 0 0 18px; overflow: hidden; border-radius: 16px; background: #edf0ed; isolation: isolate; }
.match-map-viewport { position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--mp-line); border-radius: inherit; background: #edf0ed; }
.match-notification-map-shell.is-map-fullscreen { position: fixed; inset: 0; z-index: 99998; width: 100vw; max-width: none; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; background: #071e14; }
.match-notification-map-shell.is-map-fullscreen .match-map-viewport { inset: 0; border: 0; border-radius: 0; box-shadow: none; }
.match-notification-map-shell .match-notification-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; background: #edf0ed; }
.match-notification-map-shell .leaflet-tile-pane { filter: grayscale(.76) saturate(.28) brightness(1.06) contrast(.9); }
.match-notification-map-shell .leaflet-marker-icon { will-change: auto; }
.match-notification-map-shell .leaflet-control-attribution { max-width: 90%; padding: 2px 4px; background: rgba(255, 255, 255, .92); color: #394e42; font-size: 9px; }
.match-notification-map-shell .leaflet-control-attribution a { color: #245b3d !important; }
.match-notification-map-shell .leaflet-control-zoom { display: block !important; overflow: hidden; border: 1px solid #cadbce !important; border-radius: 10px !important; background: #fff; box-shadow: 0 2px 7px rgba(14, 45, 29, .14); }
.match-notification-map-shell .leaflet-control-zoom a { --mp-text: #173f2b; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-bottom: 1px solid #dbe7df; border-radius: 0; color: #173f2b !important; background: #fff !important; font-size: 22px !important; font-weight: 600; line-height: 1; text-decoration: none; }
.match-notification-map-shell .leaflet-control-zoom a > span { font-size: inherit !important; font-weight: inherit; line-height: 1; }
.match-notification-map-shell .leaflet-control-zoom a:last-child { border-bottom: 0; }
.match-notification-map-shell .leaflet-control-zoom a.leaflet-disabled { --mp-text: #8ca497; color: #8ca497 !important; background: #f2f6f3 !important; cursor: default; }
body .match-notification-map-shell .leaflet-control-zoom a:focus-visible { outline: 2px solid #198455 !important; outline-offset: -4px; }
body .match-notification-map-shell .match-map-fullscreen-toggle { --mp-text: #fff; position: absolute; top: 10px; right: 60px; z-index: 700; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin: 0; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .18) !important; border-radius: 10px !important; color: #fff !important; background: rgba(5, 40, 20, .86) !important; box-shadow: 0 2px 8px rgba(7, 27, 19, .18) !important; font-size: 11px; font-weight: 750; cursor: pointer; }
body .match-notification-map-shell .match-map-fullscreen-toggle :is(i, span) { --mp-text: #fff; color: #fff !important; font-size: inherit !important; }
body .match-notification-map-shell .match-map-fullscreen-toggle:focus-visible { outline: 2px solid #8de8ae !important; outline-offset: 2px; }
body .match-notification-map-shell.is-map-fullscreen .match-map-fullscreen-toggle { top: calc(10px + var(--sahasenin-map-safe-top, 0px)); right: calc(60px + var(--sahasenin-map-safe-right, 0px)); border-color: rgba(16, 185, 129, .48) !important; background: linear-gradient(135deg, #10b981, #059669) !important; }
.match-notification-map-shell.is-map-fullscreen .match-map-live-summary { top: calc(10px + var(--sahasenin-map-safe-top, 0px)); left: calc(10px + var(--sahasenin-map-safe-left, 0px)); }
.match-notification-map-shell.is-map-fullscreen .match-map-legend { right: calc(10px + var(--sahasenin-map-safe-right, 0px)); bottom: calc(22px + var(--sahasenin-map-safe-bottom, 0px)); left: calc(10px + var(--sahasenin-map-safe-left, 0px)); }
.match-map-atmosphere { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(250, 252, 250, .18), transparent 28%, transparent 72%, rgba(36, 51, 42, .055)); }
.match-map-live-summary,
.match-map-legend { --mp-text: #edf9f1; position: absolute; z-index: 500; border: 1px solid #385d47; color: #edf9f1; background: #173f2b; box-shadow: 0 2px 8px rgba(7, 27, 19, .12); }
.match-map-live-summary { top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; min-height: 31px; padding: 0 9px; border-radius: 9px; font-size: 10px; }
.match-map-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #8de8ae; }
.match-map-legend { right: 10px; bottom: 22px; left: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; padding: 7px 8px; border-radius: 9px; }
body .match-notification-map-shell .match-map-legend span { display: inline-flex; align-items: center; gap: 4px; font-size: 10px !important; font-weight: 600; white-space: nowrap; }
body .match-notification-map-shell .match-map-legend i { font-size: inherit !important; line-height: 1; }
.match-map-legend .type-rival i { color: #b3c1ff; }
.match-map-legend .type-player i { color: #7be3a8; }
.match-map-legend .type-referee i { color: #ffe0a0; }
.match-map-legend .type-coach i { color: #9ddcff; }
.match-map-legend .type-audience i { color: #f4b6e2; }
.match-center-marker,
.match-target-marker { position: relative; display: grid; place-items: center; }
.match-center-marker { width: 36px; height: 36px; }
.match-center-marker::before { content: ""; position: absolute; inset: 1px; border: 1px solid rgba(15, 113, 61, .34); border-radius: 12px; background: rgba(238, 255, 243, .34); box-shadow: 0 0 0 3px rgba(61, 183, 103, .09); }
.match-center-card { --mp-text: #fff; position: relative; z-index: 2; display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid #fff; border-radius: 10px; color: #fff; background: #168552; box-shadow: 0 2px 5px rgba(7, 55, 29, .28); }
.match-center-card i { color: #fff; font-size: 13px; }
.match-target-marker { width: 36px; height: 36px; }
.match-target-marker-core { position: relative; display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid var(--target-color, #1eab70); border-radius: 10px; background: #fff; box-shadow: 0 2px 4px rgba(15, 40, 23, .22); }
.match-target-marker-core img { width: 23px; height: 23px; border-radius: 7px; object-fit: cover; }
.match-target-marker-core > i { color: var(--target-color); font-size: 12px; }
.match-target-marker-score { --mp-text: #163222; position: absolute; top: -7px; right: -8px; display: grid; place-items: center; min-width: 23px; height: 14px; padding: 0 3px; border: 1px solid #fff; border-radius: 5px; background: #e8f5ea; color: #163222; font-size: 8px; font-weight: 800; }
.match-target-marker.type-rival { --target-color: var(--match-rival); }
.match-target-marker.type-player { --target-color: var(--match-player); }
.match-target-marker.type-referee { --target-color: var(--match-referee); }
.match-target-marker.type-coach { --target-color: var(--match-coach); }
.match-target-marker.type-audience { --target-color: var(--match-audience); }
.match-notification-route { stroke-linecap: round; }
.match-map-packet { position: absolute; z-index: 650; width: 7px; height: 7px; pointer-events: none; border: 1px solid #fff; border-radius: 50%; background: var(--packet-color, #168652); }

.match-notification-list-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 8px; min-width: 0; margin-bottom: 11px; }
.match-notification-list-head > div:first-child { display: flex; flex: 1 1 auto; align-items: center; gap: 7px; min-width: 0; }
.match-notification-list-head .match-publish-eyebrow { flex: 0 0 auto; margin: 0; white-space: nowrap; }
.match-notification-list-head h3 { --mp-text: var(--mp-ink); min-width: 0; max-width: 520px; margin: 0; overflow: hidden; color: var(--mp-ink); font-size: 16px; font-weight: 750; letter-spacing: -.025em; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.match-notification-list-tools { display: flex; align-items: center; flex: 0 0 auto; gap: 5px; }
.match-notification-list-count { --mp-text: var(--mp-green); padding: 6px 9px; border-radius: 8px; background: var(--mp-green-soft); color: var(--mp-green); font-size: 10px; font-weight: 650; white-space: nowrap; }
body .match-notification-experience .match-notification-list-toggle { --mp-text: var(--mp-ink); display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 9px; border: 1px solid var(--mp-line) !important; border-radius: 9px !important; color: var(--mp-ink) !important; background: var(--mp-surface) !important; box-shadow: none !important; font-size: 10px; font-weight: 700; cursor: pointer; }
.match-notification-list-toggle small:empty { display: none; }
.match-notification-list-toggle small { font-size: inherit; }
.match-notification-list-toggle i { font-size: 8px; }
.match-notification-target-list { display: grid; gap: 8px; padding: 0 0 20px; }
.match-notification-target { min-width: 0; }
.match-notification-target[hidden],
.match-target-details[hidden],
.match-notification-list-toggle[hidden],
.match-target-group[hidden],
.match-target-group-list[hidden] { display: none !important; }
.match-notification-target-list.is-list-collapsed .match-notification-target.is-list-overflow:not([hidden]) { display: none; }
.match-notification-target.type-rival,
.match-target-group.type-rival { --target-color: var(--match-rival); }
.match-notification-target.type-player,
.match-target-group.type-player { --target-color: var(--match-player); }
.match-notification-target.type-referee,
.match-target-group.type-referee { --target-color: var(--match-referee); }
.match-notification-target.type-coach,
.match-target-group.type-coach { --target-color: var(--match-coach); }
.match-notification-target.type-audience,
.match-target-group.type-audience { --target-color: var(--match-audience); }
.match-target-group { display: grid; gap: 6px; min-width: 0; }
body .match-notification-experience .match-target-group-head { --mp-text: var(--mp-ink); appearance: none; display: flex !important; align-items: center; gap: 9px; width: 100%; min-height: 50px; margin: 0; padding: 8px 11px; border: 1px solid var(--mp-line) !important; border-radius: 12px !important; color: var(--mp-ink) !important; background: var(--mp-surface) !important; box-shadow: none !important; text-align: left !important; cursor: pointer; }
.match-target-group-icon { --mp-text: #fff; display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--target-color) 73%, #143325); color: #fff; font-size: 12px; }
.match-target-group-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.match-target-group-copy strong { --mp-text: var(--mp-ink); color: var(--mp-ink); font-size: 12px; font-weight: 750; }
.match-target-group-copy small { --mp-text: var(--mp-muted); margin-top: 1px; color: var(--mp-muted); font-size: 10px; }
.match-target-group-chevron { flex: 0 0 auto; color: var(--mp-muted); font-size: 10px; transition: transform .18s ease; }
.match-target-group.is-expanded .match-target-group-chevron { transform: rotate(180deg); }
.match-target-group-list { display: grid; gap: 6px; }
.match-target-card-wrap { position: relative; overflow: hidden; border: 1px solid var(--mp-line); border-radius: 12px; background: var(--mp-surface); }
.match-notification-target.is-expanded .match-target-card-wrap { border-color: color-mix(in srgb, var(--target-color) 55%, var(--mp-line)); }
.match-target-card-main { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 9px; }
body .match-notification-experience .match-notification-target-toggle { --mp-text: var(--mp-ink); appearance: none; display: flex; flex: 1 1 auto; align-items: center; gap: 8px; min-width: 0; min-height: 44px; width: auto; margin: 0; padding: 0; border: 0 !important; border-radius: 6px !important; color: var(--mp-ink) !important; background: transparent !important; box-shadow: none !important; text-align: left !important; cursor: pointer; }
.match-target-avatar { --mp-text: var(--mp-green); display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--target-color) 35%, var(--mp-line)); border-radius: 11px; color: var(--mp-green); background: var(--mp-soft); font-size: 15px; }
.match-target-avatar img { width: 100%; height: 100%; object-fit: cover; }
.match-target-identity { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.match-target-identity > strong { --mp-text: var(--mp-ink); display: block; overflow: hidden; color: var(--mp-ink); font-size: 12px; font-weight: 750; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.match-target-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.match-target-distance { --mp-text: var(--mp-muted); display: inline-flex; align-items: center; gap: 4px; color: var(--mp-muted); font-size: 10px; font-weight: 500; line-height: 1.25; white-space: nowrap; }
.match-target-distance i { color: var(--mp-muted); font-size: 9px; }
.match-target-category { --mp-text: var(--mp-muted); display: inline-flex; align-items: center; gap: 4px; color: var(--mp-muted); font-size: 10px; }
.match-target-score { --mp-text: var(--mp-green); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 41px; padding: 6px; border: 1px solid var(--mp-line); border-radius: 8px; background: var(--mp-green-soft); color: var(--mp-green); }
.match-target-score-value { display: inline-flex; align-items: center; }
.match-target-score-value strong { color: inherit; font-size: 12px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.match-target-score-value small,
.match-target-score-meter { display: none; }
.match-target-expand-icon { flex: 0 0 auto; color: var(--mp-muted); font-size: 9px; transition: transform .18s ease; }
.match-notification-target.is-expanded .match-target-expand-icon { transform: rotate(180deg); }
body .match-notification-experience .match-target-action,
body .match-notification-experience .match-target-detail-summary .match-target-profile { --mp-text: var(--mp-ink); display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--mp-line) !important; border-radius: 8px !important; color: var(--mp-ink) !important; background: var(--mp-soft) !important; box-shadow: none !important; font-size: 11px; font-weight: 650; line-height: 1.3; text-decoration: none; cursor: pointer; }
body .match-notification-experience .match-target-action.match-target-chat { --mp-text: var(--mp-green); flex: 1 1 0; min-height: 36px; padding: 7px 8px; border-color: transparent !important; color: var(--mp-green) !important; background: var(--mp-green-soft) !important; }
.match-target-chat i { font-size: 11px; }
.match-target-details { border-top: 1px solid var(--mp-line); animation: matchStepIn .16s ease both; }
.match-target-detail-summary { display: flex; align-items: center; gap: 7px; padding: 10px 10px 8px; }
.match-target-detail-summary > .match-target-profile { flex: 1; }
.match-target-detail-summary > .match-target-action { flex: 1; }
.match-target-detail-summary > .match-target-actions { display: flex; flex: 1; }
.match-target-detail-summary .match-target-actions > .match-target-action { flex: 1; }
body .match-notification-experience .match-target-detail-summary > .match-target-action:not(:disabled),
body .match-notification-experience .match-target-action:is(.inviteMatchPlayerBtn, .UpdatePotantielRefereeBtn, .UpdatePotantielRivalTeamBtn) { --mp-text: var(--mp-green); color: var(--mp-green) !important; background: var(--mp-green-soft) !important; }
.match-target-actions { display: flex; min-width: 0; flex-wrap: wrap; gap: 6px; }
.match-target-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 10px 9px; }
.match-delivery-state { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 650; }
.match-delivery-state.is-sent { --mp-text: var(--mp-green); color: var(--mp-green); }
.match-delivery-state.is-pending { --mp-text: #956817; color: #956817; }
.match-interest-explanation { padding: 2px 10px 10px; }
.match-interest-factor-list { display: flex; flex-wrap: wrap; gap: 5px; }
.match-interest-factor { --factor-accent: var(--mp-muted); display: inline-flex; align-items: center; gap: 5px; min-height: 23px; max-width: 100%; padding: 3px 6px; border: 1px solid color-mix(in srgb, var(--factor-accent) 14%, var(--mp-line)); border-radius: 6px; color: color-mix(in srgb, var(--factor-accent) 45%, var(--mp-muted)); background: color-mix(in srgb, var(--factor-accent) 5%, var(--mp-surface)); font-size: 10px; font-weight: 450; line-height: 1.3; }
.match-interest-factor strong { flex: 0 0 auto; padding-left: 5px; border-left: 1px solid color-mix(in srgb, var(--factor-accent) 18%, var(--mp-line)); font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; }
.match-interest-factor.is-positive { --mp-text: var(--mp-muted); --factor-accent: var(--mp-green); }
.match-interest-factor.is-negative { --mp-text: var(--mp-muted); --factor-accent: #a85d5e; }
.match-interest-factor.is-neutral { --mp-text: var(--mp-muted); color: var(--mp-muted); background: var(--mp-soft); }
.match-interest-pill { --mp-text: #fff; display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 7px; color: #fff; background: #18774f; font-size: 10px; font-weight: 750; }
.match-notification-empty { --mp-text: var(--mp-muted); display: none; flex-direction: column; align-items: center; gap: 7px; padding: 24px 16px; border: 1px dashed var(--mp-line); border-radius: 13px; background: var(--mp-surface); color: var(--mp-muted); text-align: center; }
.match-notification-empty i { margin-bottom: 3px; color: var(--mp-green); font-size: 24px; }
.match-notification-empty strong { --mp-text: var(--mp-ink); font-size: 13px; font-weight: 750; }
.match-notification-empty span { max-width: 330px; font-size: 11px; line-height: 1.5; }
.match-notification-target-list.is-empty .match-notification-empty { display: flex; }
.match-notification-delivery-card { width: 100%; }

.match-publish-footer { position: sticky; bottom: 0; z-index: 25; display: grid; grid-template-columns: minmax(68px, .55fr) minmax(0, 1.45fr); gap: 8px; margin-top: auto; padding: 12px 0; padding-bottom: calc(12px + max(env(safe-area-inset-bottom, 0px), var(--maui-safe-area-bottom, 0px))); border-top: 1px solid var(--mp-line); background: var(--mp-page); box-shadow: 0 -8px 16px var(--mp-page); }
.match-publish-footer.is-first-step { grid-template-columns: minmax(68px, .65fr) minmax(0, 1.35fr); }
.match-publish-footer.is-first-step .match-publish-confirm-btn { grid-column: 1 / -1; }
body .match-publish-modal :is(.match-publish-close-btn, .match-publish-back-btn, .match-publish-cancel-btn, .match-publish-next-btn, .match-publish-confirm-btn) { --mp-text: var(--mp-ink); appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 46px; margin: 0; padding: 11px 14px; border: 1px solid var(--mp-line) !important; border-radius: 11px !important; color: var(--mp-ink) !important; background: var(--mp-surface) !important; box-shadow: none !important; font-size: 12px !important; font-weight: 750 !important; line-height: 1.35; text-align: center !important; text-decoration: none; white-space: normal; cursor: pointer; }
body .match-publish-modal .match-publish-close-btn { flex: 0 0 40px; width: 40px; min-height: 40px; padding: 0; background: var(--mp-soft) !important; font-size: 16px !important; }
body .match-publish-modal .match-publish-next-btn { --mp-text: var(--mp-green); color: var(--mp-green) !important; border-color: var(--mp-line) !important; background: var(--mp-green-soft) !important; }
body .match-publish-modal .match-publish-confirm-btn { --mp-text: #fff; min-height: 48px; border-color: #156641 !important; color: #fff !important; background: linear-gradient(110deg, #176d49, #188352) !important; box-shadow: 0 3px 7px rgba(19, 104, 62, .12) !important; }
.match-publish-confirm-btn > i { font-size: 15px; }
.match-publish-confirm-btn > span { font-size: 12px; font-weight: 750; }
.match-publish-confirm-btn > small { font-size: 10px; font-weight: 500; }
body .match-publish-modal :is(.match-publish-back-btn, .match-publish-cancel-btn) { --mp-text: var(--mp-muted); color: var(--mp-muted) !important; background: transparent !important; }
.match-publish-error { --mp-text: #853b3d; margin: 12px auto; max-width: 832px; padding: 14px 16px; border: 1px solid #ecc3c2; border-radius: 12px; color: #853b3d; background: #fff0ee; font-size: 13px; line-height: 1.55; }
.match-publish-loading { --mp-text: var(--mp-muted); display: flex; min-height: 250px; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--mp-muted); font-size: 13px; }

/* The app applies !important colors to every dark-mode span. Resolve semantic
   text at component scope so buttons, scores and tips retain readable contrast. */
body :is(.match-publish-modal-header, .match-publish-progress, .match-publish-step-heading, .match-publish-control-block, .match-publish-channel-grid, .match-notification-role-grid, .match-notification-tuning, .match-publish-footer, .match-publish-error, .match-publish-loading, .match-notification-experience, .match-notification-map-shell) :is(span, b, strong, small, p, h1, h2, h3, label, output) { color: var(--mp-text, inherit) !important; }
body :is(.match-publish-modal, .match-notification-experience, .match-notification-map-shell) button::before { display: none; }
body :is(.match-publish-modal, .match-notification-experience, .match-notification-map-shell) button { font-family: inherit; letter-spacing: normal; text-transform: none; }
body :is(.match-publish-modal, .match-notification-experience, .match-notification-map-shell) :is(button, a, input):focus-visible { outline: 3px solid #70be8e !important; outline-offset: 3px; }
body :is(.match-publish-modal, .match-notification-experience, .match-notification-map-shell) button:is(:hover, :active) { transform: none; filter: none; }
body .match-notification-experience :is(.match-tip-nav, .match-tip-pause, .match-publish-insight-action):focus-visible { outline-color: #b9ebc9 !important; }
body .match-publish-modal .match-publish-step[data-step="1"] .card { background: var(--mp-surface) !important; color: var(--mp-ink) !important; border-color: var(--mp-line) !important; }
body .match-publish-modal .match-publish-step[data-step="1"] :is(.card-body > span, .card-body .fw-bold):not(.text-primary, .text-muted, .text-red) { color: var(--mp-ink) !important; }
body .match-publish-modal .match-publish-step[data-step="1"] .text-muted { color: var(--mp-muted) !important; }
body .match-publish-modal .match-publish-step[data-step="1"] .text-primary { color: var(--mp-green) !important; }

@media (min-width: 560px) {
    .match-publish-option-card { min-height: 60px; }
    .match-option-icon { width: 28px; height: 28px; }
    .match-publish-option-card { grid-template-columns: 28px minmax(0, 1fr) 30px; padding: 9px 11px; }
    .match-option-copy b, .match-role-option b { font-size: 11px; }
    .match-option-copy small, .match-role-option small { font-size: 9px; }
    .match-publish-insight { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 7px 12px; padding: 16px; }
    .match-publish-insight-icon { width: 36px; height: 36px; }
    body .match-notification-experience .match-publish-insight-action { grid-column: 3; grid-row: 1; max-width: 170px; }
    .match-publish-insight-nav { grid-column: 2 / 4; grid-row: 2; }
    .match-publish-insight-text { font-size: 12px !important; }
    .match-publish-footer.is-first-step { grid-template-columns: minmax(90px, .65fr) minmax(150px, 1.1fr) minmax(0, 1.55fr); }
    .match-publish-footer.is-first-step .match-publish-confirm-btn { grid-column: auto; }
    .match-publish-confirm-btn > small { display: inline; }
    .match-target-card-main { padding: 8px 12px; gap: 10px; }
    .match-target-avatar { flex-basis: 40px; width: 40px; height: 40px; }
    .match-target-identity > strong { font-size: 13px; }
    .match-target-distance { font-size: 11px; }
    .match-target-score { min-width: 46px; padding: 7px; }
    .match-target-detail-summary { justify-content: flex-start; }
    .match-target-detail-summary > .match-target-profile,
    .match-target-detail-summary > .match-target-action,
    .match-target-detail-summary > .match-target-actions { flex: 0 1 auto; }
}

@media (max-width: 559px) {
    body .match-notification-map-shell .match-map-legend span { font-size: 9px !important; }
    body .match-notification-map-shell .match-map-fullscreen-toggle { width: 44px; padding: 0; }
    body .match-notification-map-shell .match-map-fullscreen-toggle span { display: none; }
    .match-publish-control-block { padding: 7px; border-radius: 12px; }
    .match-publish-control-head { margin-bottom: 6px; }
    .match-publish-control-head > span { font-size: 9px; }
    .match-publish-control-head > small { max-width: 48%; }
    .match-publish-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .match-publish-option-card { grid-template-columns: 21px minmax(0, 1fr) 28px; gap: 5px; min-height: 44px; padding: 6px 7px; border-radius: 9px; }
    .match-publish-option-card .match-option-icon { width: 21px; height: 21px; font-size: 9px; }
    .match-publish-option-card .match-toggle-visual { width: 28px; height: 16px; }
    .match-publish-option-card .match-toggle-visual::after { width: 10px; height: 10px; }
    .match-publish-option-card .match-option-copy b { overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
    .match-publish-option-card .match-option-copy small { display: none; }
    .match-notification-role-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; overflow: visible; }
    .match-role-option { grid-column: span 2; grid-template-columns: 21px minmax(0, 1fr) 18px; gap: 5px; min-height: 44px; padding: 6px 7px; border-radius: 9px; }
    .match-role-option:nth-child(n + 4) { grid-column: span 3; }
    .match-role-option > i { display: grid; width: 21px; height: 21px; font-size: 9px; }
    .match-role-option b { font-size: 9.5px; }
    .match-role-option small { display: none; }
    .match-role-option .match-toggle-visual { width: 18px; height: 18px; border-radius: 6px; }
    .match-role-option .match-toggle-visual::after { top: 2px; left: 5px; width: 6px; height: 10px; }
    .match-notification-list-head { gap: 5px; }
    .match-notification-list-head .match-publish-eyebrow { display: none; }
    .match-notification-list-head h3 { font-size: 14px; }
    .match-notification-list-tools { gap: 4px; }
    .match-notification-list-count { padding: 5px 7px; font-size: 9px; }
    body .match-notification-experience .match-notification-list-toggle { min-height: 30px; padding: 0 7px; font-size: 9px; }
    body .match-notification-experience .match-target-detail-summary :is(.match-target-action, .match-target-profile) { padding-inline: 6px; font-size: 10px; white-space: nowrap; }
    .match-publish-confirm-btn > small { display: none; }
}

@media (max-width: 360px) {
    .match-publish-wizard { padding-inline: 10px; }
    .match-publish-modal-header { padding-inline: 12px; min-height: 66px; }
    .match-publish-progress { gap: 2px; grid-template-columns: minmax(0, 1fr) 13px minmax(0, 1fr); }
    body .match-publish-progress .match-publish-progress-item { padding: 8px 7px; gap: 6px; }
    .match-publish-progress-item b { font-size: 11px; }
    .match-publish-progress-item > span { flex-basis: 25px; width: 25px; height: 25px; }
    .match-publish-insight { padding: 12px; gap: 9px; }
    .match-publish-insight-icon { width: 30px; height: 30px; }
    .match-target-card-main { padding: 6px 7px; gap: 5px; }
    body .match-notification-experience .match-notification-target-toggle { gap: 6px; }
    .match-target-avatar { flex-basis: 32px; width: 32px; height: 32px; border-radius: 9px; }
    .match-target-score { min-width: 36px; padding: 5px; }
    .match-target-score-value strong { font-size: 11px; }
    body .match-notification-experience .match-target-action.match-target-chat { padding-inline: 7px; gap: 4px; font-size: 10px; }
    .match-target-identity > strong { font-size: 11px; }
    .match-map-legend { gap: 5px; padding-inline: 6px; }
    .match-publish-control-head > small { max-width: 44%; }
    .match-publish-option-card { grid-template-columns: 19px minmax(0, 1fr) 26px; padding-inline: 5px; }
    .match-publish-option-card .match-option-icon { width: 19px; height: 19px; }
    .match-publish-option-card .match-option-copy b { font-size: 9px; }
    .match-publish-option-card .match-toggle-visual { width: 26px; }
    .match-role-option,
    .match-role-option:nth-child(n + 4) { grid-column: span 3; grid-template-columns: 19px minmax(0, 1fr) 17px; padding-inline: 6px; }
    .match-role-option:last-child { grid-column: 2 / span 4; }
    .match-role-option > i { width: 19px; height: 19px; }
    .match-role-option .match-toggle-visual { width: 17px; height: 17px; }
    .match-role-option .match-toggle-visual::after { top: 2px; left: 4px; }
}

@media (hover: hover) {
    .match-notification-map-shell .leaflet-control-zoom a:not(.leaflet-disabled):hover { background: #edf7f1 !important; }
    .match-publish-option-card:hover, .match-role-option:not(.is-disabled):hover { border-color: #80b795; }
    body .match-publish-modal .match-publish-confirm-btn:hover { background: #126d42 !important; }
    body .match-notification-experience .match-target-chat:hover { border-color: #80b795 !important; }
    body .match-notification-experience :is(.match-target-group-head, .match-notification-list-toggle):hover { border-color: #80b795 !important; }
}

@media (prefers-reduced-motion: reduce) {
    .match-publish-modal *,
    .match-publish-modal *::before,
    .match-publish-modal *::after,
    .match-notification-experience *,
    .match-notification-experience *::before,
    .match-notification-experience *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}



.match-interest-factor.is-positive * {
    color: var(--mp-text, inherit) !important;
}
