/* Marketplace alerts, Settings tab (docs/113 s.5, mock tab 1; 11/14/2026). Scoped under .mp2-alerts so the shared
   marketplace-v2.css rules (.chip, .chips, .card) stay untouched. Chips: white, rounded, Lato; pressed = light green fill with a
   check and the teal border, the same look as the New Post subcategory chips (mp2-newpost-steps.css). Phone width wraps, no
   horizontal scroll. Keyboard focus shows the site's blue ring. */
body.tp-mp2 .mp2-alerts .al-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
body.tp-mp2 .mp2-alerts .al-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* 11/14/2026 (Opus's wave 4 clicks): the rail is taller than a short window (summary, save, More alerts), and a sticky rail that does not
   scroll kept Remove out of reach. It stays sticky but scrolls inside the window; below 960 px it is static (phone layout unchanged). */
body.tp-mp2 .mp2-alerts .al-aside { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 90px); overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
@media (max-width: 960px) { body.tp-mp2 .mp2-alerts .al-grid { grid-template-columns: minmax(0, 1fr); } body.tp-mp2 .mp2-alerts .al-aside { position: static; max-height: none; overflow: visible; padding-right: 0; } }

body.tp-mp2 .mp2-alerts .al-step { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
body.tp-mp2 .mp2-alerts .al-step h2 { margin: 0; font-size: 19px; }
body.tp-mp2 .mp2-alerts .al-step .al-opt { font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; font-size: 14px; color: var(--muted); }
body.tp-mp2 .mp2-alerts .al-num { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 13px; color: var(--teal-dark); background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 50px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; flex: none; }

body.tp-mp2 .mp2-alerts .al-sec { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px; }
body.tp-mp2 .mp2-alerts .al-sec:first-child { border-top: 0; padding-top: 4px; margin-top: 4px; }
body.tp-mp2 .mp2-alerts .al-sechead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
body.tp-mp2 .mp2-alerts .al-sechead h3 { margin: 0; font-size: 16px; display: flex; gap: 8px; align-items: center; }
body.tp-mp2 .mp2-alerts .al-ct { font-family: 'Lato', sans-serif; font-size: 12.5px; font-weight: 700; color: var(--muted); }
body.tp-mp2 .mp2-alerts .al-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; min-height: 1.5em; }
body.tp-mp2 .mp2-alerts .al-hint b { color: var(--text); }
body.tp-mp2 .mp2-alerts .al-allbtn { border: 1px solid var(--border); background: #fff; color: var(--blue); font-family: inherit; font-weight: 700; font-size: 12.5px; border-radius: 50px; padding: 4px 11px; cursor: pointer; }
body.tp-mp2 .mp2-alerts .al-allbtn:hover { border-color: var(--blue); }

body.tp-mp2 .mp2-alerts .al-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.tp-mp2 .mp2-alerts .al-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; background: #fff; color: var(--text); border: 2px solid var(--border); font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13.5px; font-weight: 600; padding: 6px 13px; border-radius: 50px; line-height: 1.3; cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-align: left; }
body.tp-mp2 .mp2-alerts .al-chip:hover { border-color: var(--teal); color: var(--teal-dark); }
body.tp-mp2 .mp2-alerts .al-chip .al-ck { width: 14px; height: 14px; display: none; flex: none; }
body.tp-mp2 .mp2-alerts .al-chip .al-plus { width: 13px; height: 13px; color: var(--label); flex: none; }
body.tp-mp2 .mp2-alerts .al-chip[aria-pressed="true"] { background: #ecfdf5; border-color: var(--teal-dark); color: var(--teal-dark); }
body.tp-mp2 .mp2-alerts .al-chip[aria-pressed="true"] .al-ck { display: inline-block; }
body.tp-mp2 .mp2-alerts .al-chip[aria-pressed="true"] .al-plus { display: none; }
body.tp-mp2 .mp2-alerts .al-chip[aria-pressed="true"]:hover { background: #d1fae5; }
body.tp-mp2 .mp2-alerts .al-chip .al-vol { font-weight: 400; color: var(--muted); font-size: 12px; }
body.tp-mp2 .mp2-alerts .al-chip.al-token { cursor: default; background: #ecfdf5; border-color: #a7f3d0; color: var(--teal-dark); padding-right: 6px; }
body.tp-mp2 .mp2-alerts .al-chip.al-token button { border: 0; background: none; color: inherit; cursor: pointer; padding: 2px; border-radius: 50%; display: inline-flex; line-height: 0; }
body.tp-mp2 .mp2-alerts .al-chip.al-token button:hover { background: #fff; }
body.tp-mp2 .mp2-alerts .al-chip.al-token svg { width: 12px; height: 12px; }
body.tp-mp2 .mp2-alerts .al-chip:focus-visible, body.tp-mp2 .mp2-alerts .al-allbtn:focus-visible, body.tp-mp2 .mp2-alerts .al-seg button:focus-visible, body.tp-mp2 .mp2-alerts .al-switch:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

body.tp-mp2 .mp2-alerts .al-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { body.tp-mp2 .mp2-alerts .al-filters { grid-template-columns: minmax(0, 1fr); } }
body.tp-mp2 .mp2-alerts .al-fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
body.tp-mp2 .mp2-alerts .al-fld > label, body.tp-mp2 .mp2-alerts .al-flabel { font-weight: 700; color: var(--ink); font-size: 14px; }
body.tp-mp2 .mp2-alerts .al-sub { font-size: 12.5px; color: var(--muted); }
body.tp-mp2 .mp2-alerts .al-adder { display: flex; gap: 6px; }
body.tp-mp2 .mp2-alerts .al-adder input { flex: 1; min-width: 0; border: 1px solid var(--border); background: #fff; color: var(--ink); border-radius: 6px; padding: 7px 10px; font-size: 14px; font-family: inherit; }
body.tp-mp2 .mp2-alerts .al-adder input::placeholder { color: var(--label); }
body.tp-mp2 .mp2-alerts .al-adder input:focus { outline: 2px solid #93c5fd; outline-offset: 1px; border-color: var(--teal); }
body.tp-mp2 .mp2-alerts .al-adder input.al-bad { border-color: #dc2626; }

body.tp-mp2 .mp2-alerts .al-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { body.tp-mp2 .mp2-alerts .al-seg { grid-template-columns: minmax(0, 1fr); } }
body.tp-mp2 .mp2-alerts .al-seg button { text-align: left; border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 11px 13px; cursor: pointer; color: var(--text); display: flex; flex-direction: column; gap: 2px; font-family: inherit; }
body.tp-mp2 .mp2-alerts .al-seg button b { color: var(--ink); font-size: 14.5px; }
body.tp-mp2 .mp2-alerts .al-seg button span { font-size: 12.5px; color: var(--muted); }
body.tp-mp2 .mp2-alerts .al-seg button[aria-checked="true"] { border-color: var(--teal); background: #ecfdf5; box-shadow: inset 0 0 0 1px var(--teal); }
body.tp-mp2 .mp2-alerts .al-seg button[aria-checked="true"] b { color: var(--teal-dark); }
body.tp-mp2 .mp2-alerts .al-seg button.al-locked { background: #f8fafc; color: var(--muted); cursor: not-allowed; }
body.tp-mp2 .mp2-alerts .al-seg button.al-locked b { color: var(--muted); }
body.tp-mp2 .mp2-alerts .al-lock { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--border); border-radius: 50px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
body.tp-mp2 .mp2-alerts .al-upgrade { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
body.tp-mp2 .mp2-alerts .al-toggle { display: flex; gap: 10px; align-items: center; font-size: 14px; }
body.tp-mp2 .mp2-alerts .al-switch { position: relative; width: 38px; height: 22px; border-radius: 50px; background: #cbd5e1; border: 0; cursor: pointer; flex: none; transition: background .15s; padding: 0; }
body.tp-mp2 .mp2-alerts .al-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
body.tp-mp2 .mp2-alerts .al-switch[aria-checked="true"] { background: var(--teal); }
body.tp-mp2 .mp2-alerts .al-switch[aria-checked="true"]::after { left: 19px; }

body.tp-mp2 .mp2-alerts .al-summary .al-big { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--ink); font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
body.tp-mp2 .mp2-alerts .al-summary .al-line { font-size: 14.5px; color: var(--ink); font-weight: 700; margin-top: 4px; }
body.tp-mp2 .mp2-alerts .al-meter { height: 8px; border-radius: 6px; background: var(--border); overflow: hidden; }
body.tp-mp2 .mp2-alerts .al-meter > i { display: block; height: 100%; background: var(--teal); border-radius: 6px; transition: width .25s; }
body.tp-mp2 .mp2-alerts .al-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--border); }
body.tp-mp2 .mp2-alerts .al-kv:last-child { border-bottom: 0; }
body.tp-mp2 .mp2-alerts .al-kv span:last-child { color: var(--ink); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
body.tp-mp2 .mp2-alerts .al-savebar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
body.tp-mp2 .mp2-alerts .al-savebar .btn.link { background: none; border-color: transparent; color: var(--muted); }
body.tp-mp2 .mp2-alerts .al-savebar .btn[disabled] { opacity: .5; cursor: not-allowed; }
body.tp-mp2 .mp2-alerts .al-status { font-size: 13px; color: var(--teal-dark); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
body.tp-mp2 .mp2-alerts .al-status .al-ck { width: 14px; height: 14px; }
body.tp-mp2 .mp2-alerts .al-status.al-wait { color: var(--muted); }
body.tp-mp2 .mp2-alerts [hidden] { display: none !important; }
body.tp-mp2 .mp2-alerts[data-readonly="1"] .al-chip, body.tp-mp2 .mp2-alerts[data-readonly="1"] .al-allbtn, body.tp-mp2 .mp2-alerts[data-readonly="1"] .al-seg button, body.tp-mp2 .mp2-alerts[data-readonly="1"] .al-switch, body.tp-mp2 .mp2-alerts[data-readonly="1"] .al-adder { opacity: .6; pointer-events: none; }
/* wave 4: the Get alerts like this sheet (post and section pages), the first-run nudge (all-posts view), More alerts (Settings tab) */
body.tp-mp2 .al-scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
body.tp-mp2 .al-scrim[hidden] { display: none !important; }
body.tp-mp2 .al-sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 14px 20px 22px; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); display: flex; flex-direction: column; gap: 12px; font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
@media (min-width: 720px) { body.tp-mp2 .al-scrim { align-items: center; } body.tp-mp2 .al-sheet { border-radius: 16px; } }
body.tp-mp2 .al-sheet h2 { margin: 0; font-size: 19px; }
body.tp-mp2 .al-grab { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--border); margin: 0 auto; }
body.tp-mp2 .al-x { border: 0; background: var(--bg); color: var(--text); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
body.tp-mp2 .al-x:hover { background: var(--border); }
body.tp-mp2 .al-sheet .al-fld { display: flex; flex-direction: column; gap: 6px; }
body.tp-mp2 .al-sheet .al-flabel, body.tp-mp2 .al-sheet label { font-weight: 700; color: var(--ink); font-size: 14px; }
body.tp-mp2 .al-sheet .al-sub { font-size: 12.5px; color: var(--muted); }
body.tp-mp2 .al-sheet .al-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.tp-mp2 .al-sheet .al-chip, body.tp-mp2 .al-nudge .al-chip { display: inline-flex; align-items: center; gap: 6px; border: 2px solid #a7f3d0; background: #ecfdf5; color: var(--teal-dark); border-radius: 50px; padding: 6px 6px 6px 13px; font-size: 13.5px; font-weight: 600; }
body.tp-mp2 .al-sheet .al-chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 2px; border-radius: 50%; display: inline-flex; line-height: 0; }
body.tp-mp2 .al-sheet .al-chip button:hover { background: #fff; }
body.tp-mp2 .al-sheet .al-chip svg { width: 12px; height: 12px; }
body.tp-mp2 .al-sheet .sel { max-width: 260px; }
body.tp-mp2 .al-sheetest { padding: 10px 12px; }
body.tp-mp2 .al-sheet .al-status { font-size: 13px; color: var(--teal-dark); font-weight: 700; }
body.tp-mp2 .al-sheet .al-status.al-wait { color: #b45309; }
body.tp-mp2 .al-sheet [hidden] { display: none !important; }
body.tp-mp2.al-noscroll { overflow: hidden; }
body.tp-mp2 .al-nudge { border-top: 4px solid var(--teal); }
body.tp-mp2 .al-nudge h2 { margin: 0 0 4px; font-size: 20px; }
body.tp-mp2 .al-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
@media (max-width: 720px) { body.tp-mp2 .al-picks { grid-template-columns: minmax(0, 1fr); } }
body.tp-mp2 .al-pick { text-align: left; border: 2px solid var(--border); background: #fff; border-radius: 10px; padding: 12px 12px 12px 40px; cursor: pointer; color: var(--text); position: relative; font-family: inherit; display: flex; flex-direction: column; gap: 3px; }
body.tp-mp2 .al-pick b { color: var(--ink); font-size: 15px; }
body.tp-mp2 .al-pick span:last-child { font-size: 12.5px; color: var(--muted); }
body.tp-mp2 .al-pick .al-tick { position: absolute; left: 12px; top: 14px; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--border); background: #fff; }
body.tp-mp2 .al-pick[aria-pressed="true"] { border-color: var(--teal-dark); background: #ecfdf5; }
body.tp-mp2 .al-pick[aria-pressed="true"] .al-tick { background: var(--teal-dark); border-color: var(--teal-dark); }
body.tp-mp2 .al-pick[aria-pressed="true"] .al-tick::after { content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
body.tp-mp2 .al-pick:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
body.tp-mp2 .al-prof { padding: 10px 12px; margin: 0 0 12px; }
body.tp-mp2 .al-nudgebar { gap: 10px; flex-wrap: wrap; }
body.tp-mp2 .al-nudge .al-status { font-size: 13px; font-weight: 700; color: #b45309; margin-top: 8px; }
body.tp-mp2 .al-nudge [hidden] { display: none !important; }
body.tp-mp2 .mp2-alerts .al-extra { list-style: none; margin: 10px 0 0; padding: 0; }
body.tp-mp2 .mp2-alerts .al-extra li { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed var(--border); font-size: 13.5px; }
body.tp-mp2 .mp2-alerts .al-extra li b { color: var(--ink); font-weight: 700; }
body.tp-mp2 .mp2-alerts .mt4 { margin-top: 4px; } body.tp-mp2 .mp2-alerts .mt8 { margin-top: 8px; } body.tp-mp2 .mp2-alerts .mt12 { margin-top: 12px; } body.tp-mp2 .mp2-alerts .mt16 { margin-top: 16px; }
