/* Midnyte screen components that the shared system in pearl.css doesn't
   cover: campaign progress, the production board, ad ideas, page check-ups,
   market research, the Activity timeline, plans and settings cards. Tokens
   only; night mode comes from pearl.css. */

.mn-root { min-width: 0; }
.mn-back { margin: 0 0 4px; }
.mn-empty-sm { padding: 26px 20px 28px; }
.mn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }

/* ---- campaigns ---- */
.mn-camp-row .pl-row-main > span { display: grid; gap: 4px; }
.mn-ftrack { display: inline-flex; gap: 3px; margin-top: 6px; }
.mn-ftrack i { width: 14px; height: 5px; border-radius: 3px; background: var(--pl-line); }
.mn-ftrack i.done { background: var(--pl-accent); opacity: .55; }
.mn-ftrack i.now { background: var(--pl-accent); }
.mn-fsteps { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; padding: 0; margin: 0 0 8px; counter-reset: st; }
.mn-fsteps li { counter-increment: st; font-size: 12.5px; padding: 6px 12px 6px 8px; border-radius: 18px; color: var(--pl-muted); background: var(--pl-hover); box-shadow: inset 0 0 0 1px var(--pl-line-soft); display: inline-flex; align-items: center; gap: 6px; }
.mn-fsteps li::before { content: counter(st); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--pl-line-soft); color: var(--pl-ink-2); }
.mn-fsteps li.done { color: var(--pl-good); background: var(--pl-good-wash); box-shadow: none; }
.mn-fsteps li.done::before { content: "✓"; background: transparent; color: var(--pl-good); }
.mn-fsteps li.now { color: var(--pl-accent-ink); background: var(--pl-accent-wash); font-weight: 650; box-shadow: none; }
.mn-fsteps li.now::before { background: var(--pl-accent); color: var(--pl-raised-flat); }
.mn-launch { margin: 20px 0; background: radial-gradient(ellipse at 100% 0, #c7b7f566, transparent 58%), var(--pl-sheet); }
:root[data-theme="night"] .mn-launch { background: radial-gradient(ellipse at 100% 0, #837eaa55, transparent 58%), var(--pl-sheet); }
.mn-launch h3 { margin-top: 14px; }
.mn-flist { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; font-size: 14px; }
.mn-fcr { display: grid; gap: 8px; }
.mn-furl { overflow-wrap: anywhere; font-family: var(--pl-mono); font-size: 12px; }
.mn-fboard { display: grid; grid-template-columns: repeat(7, minmax(180px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.mn-fcol { min-width: 0; padding: 12px; border-radius: 20px; background: var(--pl-hover); box-shadow: inset 0 0 0 1px var(--pl-line-soft); }
.mn-fcol h3 { font-size: 13.5px; margin-bottom: 10px; }
.mn-fcard { display: grid; gap: 5px; padding: 12px; margin-bottom: 8px; border-radius: 16px; background: var(--pl-raised); border: 1px solid var(--pl-raised-line); box-shadow: var(--pl-shadow-btn); color: var(--pl-ink); text-decoration: none; font-size: 13.5px; }
.mn-fcard:hover { transform: translateY(-1px); }
.mn-fneed { font-size: 12.5px; color: var(--pl-warn); }

/* ---- ad ideas ---- */
.mn-concepts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); }
.mn-concept { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: var(--pl-r-md); border: 1px solid var(--pl-raised-line); background: var(--pl-sheet); box-shadow: var(--pl-shadow-card); min-width: 0; }
.mn-concept-art { position: relative; overflow: hidden; align-self: start; aspect-ratio: 1 / 1.15; border-radius: 18px; padding: 13px; display: flex; flex-direction: column; justify-content: space-between; color: #40355b; background: radial-gradient(ellipse at 85% 10%, #f3ebff 0, transparent 43%), linear-gradient(145deg, #c6d2f4, #e6d2ee 48%, #dadcec); box-shadow: inset 0 2px 2px #fffa, 0 12px 18px #76614e22; }
.mn-concept:nth-child(3n+2) .mn-concept-art { background: linear-gradient(145deg, #4d4861, #282435); color: #eee7dc; }
.mn-concept:nth-child(3n) .mn-concept-art { background: linear-gradient(145deg, #eadde8, #c5b4df, #aacbf5); }
.mn-concept-art small { position: relative; z-index: 1; font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; }
.mn-concept-art strong { position: relative; z-index: 1; font-size: 17px; line-height: 1.06; letter-spacing: -.5px; font-weight: 680; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.mn-concept-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.mn-concept-body { min-width: 0; display: grid; gap: 8px; align-content: start; }
.mn-concept-body h3 { margin-top: 2px; }
.mn-c-body { font-size: 14px; line-height: 1.6; color: var(--pl-ink-2); white-space: pre-line; }
.mn-c-head { font-size: 16px; font-weight: 620; margin: 8px 0; }
.mn-c-edit { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--pl-line); }
.mn-perf-table td:last-child { white-space: normal; min-width: 220px; }
.mn-perf-table .mn-tags { margin: 0; }

/* ---- brand ---- */
.mn-colors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.mn-colors input[type="color"] { padding: 4px !important; height: 44px; cursor: pointer; }
.mn-pk2 { display: flex; gap: 14px; flex-wrap: wrap; }
.mn-pk2 figure { margin: 0; display: grid; gap: 8px; justify-items: start; }
.mn-pk2 img { width: 120px; height: 120px; object-fit: cover; border-radius: 16px; box-shadow: var(--pl-shadow-btn); }
.mn-pk2 img.round { border-radius: 50%; }
.mn-pk2 figure.wide img { width: 280px; max-width: 100%; height: 106px; }
.mn-howto { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }

/* ---- landing pages ---- */
.mn-audit-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.mn-score { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 17px; background: var(--pl-good-wash); color: var(--pl-good); }
.mn-score.mid { background: var(--pl-warn-wash); color: var(--pl-warn); }
.mn-score.bad { background: var(--pl-bad-wash); color: var(--pl-bad); }
.mn-variant { padding: 16px 0 4px; border-top: 1px solid var(--pl-line-soft); margin-top: 12px; }
.mn-variant-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mn-variant-head .pl-kicker { margin-left: auto; }

/* ---- research ---- */
.mn-sig-bar { height: 8px; border-radius: 6px; background: var(--pl-line-soft); overflow: hidden; align-self: center; }
.mn-sig-bar i { display: block; height: 100%; background: var(--pl-accent); border-radius: 6px; }
.mn-comp.off { opacity: .65; }
.mn-comp-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; margin: 4px 0 10px; }
.mn-comp details summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.mn-ads { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.mn-ad { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 16px; background: var(--pl-hover); box-shadow: inset 0 0 0 1px var(--pl-line-soft); font-size: 13.5px; }
.mn-ad:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.mn-ad.ended { opacity: .6; }
.mn-ad img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.mn-ad p { margin: 4px 0; overflow-wrap: anywhere; }
.mn-ad-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mn-days { font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--pl-accent-wash); color: var(--pl-accent-ink); }
.mn-pages { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: 13.5px; }

/* ---- activity ---- */
.mn-timeline { list-style: none; margin: 0; padding: 0; }
.mn-event { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; padding: 0 0 24px; }
.mn-event:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 6px; width: 1px; background: var(--pl-line); }
.mn-event > .pl-mascot { width: 44px; }
.mn-event-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--pl-accent-wash); color: var(--pl-accent-ink); margin-left: 2px; }
.mn-event.is-warn h3 { color: var(--pl-warn); }
.mn-event h3 { font-size: 15px; font-weight: 560; line-height: 1.45; overflow-wrap: anywhere; }
.mn-event-kind { font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; font-weight: 650; color: var(--pl-muted); margin-bottom: 2px; }
.mn-results { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--pl-muted); line-height: 1.6; }
.mn-event-tech { font-size: 12.5px; color: var(--pl-muted); margin-top: 2px; }
.mn-event time { font-size: 12.5px; color: var(--pl-muted); text-align: right; padding-top: 2px; white-space: nowrap; }

/* ---- settings ---- */
.mn-midnyte-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; background: radial-gradient(ellipse at 0 100%, #c7b7f555, transparent 55%), radial-gradient(ellipse at 100% 0, #b7d8f855, transparent 50%), var(--pl-sheet); }
:root[data-theme="night"] .mn-midnyte-card { background: radial-gradient(ellipse at 0 100%, #837eaa55, transparent 55%), var(--pl-sheet); }
.mn-midnyte-card-art .pl-mascot { width: 150px; }
.mn-set-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px 16px; color: var(--pl-ink); text-decoration: none; transition: transform .15s; }
.mn-set-card:hover { transform: translateY(-2px); }
.mn-set-card p { margin-top: 4px; color: var(--pl-muted); font-size: 14px; }
.mn-set-card > .pl-link { grid-column: 2; justify-self: start; margin-top: 8px; }
.pl-adv > .mn-set-card { height: 100%; }
.mn-tier.on { box-shadow: 0 0 0 2px var(--pl-accent), var(--pl-shadow-card); }
.mn-tier-price { font-size: 26px; font-weight: 700; letter-spacing: -1px; margin: 6px 0; }
.mn-tier-price small { font-size: 13px; font-weight: 400; color: var(--pl-muted); }
.mn-rr { margin: 4px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--pl-muted); white-space: normal; }
.mn-arr { grid-template-columns: minmax(0, 1fr) auto; }

details > summary { cursor: pointer; }
details.pl-card > summary { list-style: none; display: flex; align-items: center; gap: 8px; }
details.pl-card > summary::-webkit-details-marker { display: none; }
details.pl-card > summary::before { content: "›"; font-size: 20px; line-height: 1; color: var(--pl-muted); transition: transform .15s; }
details.pl-card[open] > summary::before { transform: rotate(90deg); }

@media (max-width: 900px) {
  .mn-colors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .mn-concept { grid-template-columns: 1fr; }
  .mn-concept-art { aspect-ratio: auto; min-height: 150px; }
  .mn-event { grid-template-columns: 36px minmax(0, 1fr); }
  .mn-event > .pl-mascot { width: 36px; }
  .mn-event-ico { width: 34px; height: 34px; }
  .mn-event time { grid-column: 2; text-align: left; padding: 0; }
  .mn-midnyte-card { grid-template-columns: 1fr; text-align: left; }
  .mn-midnyte-card-art .pl-mascot { width: 110px; }
  .mn-arr { grid-template-columns: 1fr; }
}

/* ---- growth system ---- */
.mn-rank { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--pl-accent-wash); color: var(--pl-accent-ink); flex: none; }
.mn-video-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 18px; }
.mn-video-grid video { width: 100%; border-radius: 16px; background: #111; aspect-ratio: 9 / 16; max-height: 420px; object-fit: contain; }
.mn-keyframes { display: flex; gap: 6px; margin: 10px 0; }
.mn-keyframes img { width: 30%; border-radius: 10px; aspect-ratio: 9 / 16; object-fit: cover; background: #222; }
@media (max-width: 760px) { .mn-video-grid { grid-template-columns: 1fr; } }

/* Editorial gate on a concept card */
.mn-gate { margin: 10px 0 4px; font-size: 14px; }
.mn-gate > summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.mn-gate[open] > summary { margin-bottom: 6px; }

/* Copy methods library */
.mn-copy-tools { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.mn-copy-tools .pl-field { margin: 0; }
@media (max-width: 720px) { .mn-copy-tools { grid-template-columns: minmax(0, 1fr); } }
.mn-book { border: 1px solid var(--pl-raised-line); border-radius: 18px; background: var(--pl-raised); box-shadow: var(--pl-shadow-card); margin-bottom: 10px; }
.mn-book > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.mn-book > summary::-webkit-details-marker { display: none; }
.mn-book > summary::before { content: "›"; font-size: 18px; color: var(--ink-2); transition: transform .2s; flex: none; }
.mn-book[open] > summary::before { transform: rotate(90deg); }
.mn-book-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mn-book-t small, .mn-book-n { color: var(--ink-2); font-size: 13px; }
.mn-book-n { flex: none; text-align: right; }
.mn-book-body { padding: 0 18px 16px; }
.mn-method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.mn-method { border-radius: 14px; padding: 14px; background: var(--pl-sheet); border: 1px solid var(--pl-line-soft); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mn-method-head { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.mn-method-head h4 { margin: 0; font-size: 15px; flex: 1 1 180px; line-height: 1.3; }
.mn-method > p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.mn-method details { font-size: 14px; }
.mn-method details summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.mn-method ol { margin: 8px 0; padding-left: 20px; display: grid; gap: 4px; }
.mn-method .pl-actions { margin-top: auto; padding-top: 4px; }
.mn-fold > summary { cursor: pointer; font-weight: 600; }

/* Media buying: plan & decisions */
.mn-contract { font-size: 17px; line-height: 1.55; margin: 0 0 10px; }
.mn-pb { display: flex; gap: 10px; align-items: center; }
.mn-pb h3 { margin: 0; }
.mn-decisions { display: grid; gap: 10px; }
.mn-decision { border-radius: 16px; padding: 14px 16px; background: var(--pl-raised); border: 1px solid var(--pl-raised-line); box-shadow: var(--pl-shadow-card); }
.mn-decision-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mn-decision > p { margin: 8px 0; }
.mn-decision details summary { cursor: pointer; font-weight: 600; color: var(--ink-2); font-size: 14px; }
.mn-fstep { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--pl-line-soft); }
@media (max-width: 640px) { .mn-fstep { grid-template-columns: minmax(0, 1fr); } }

/* Economics: packages and the plain answer */
.mn-pkg { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.mn-pkg .pl-field { margin: 0; }
@media (max-width: 560px) { .mn-pkg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.mn-story { display: grid; gap: 10px; margin: 0 0 14px; }
.mn-story p { margin: 0; font-size: 16px; line-height: 1.5; }
.mn-story p:first-child { font-weight: 600; }

/* Economics: "just tell me" and optional folds */
.mn-tellme { padding: 14px; border-radius: 16px; background: var(--pl-accent-wash); margin-bottom: 14px; }
.mn-tellme .pl-field { margin: 0 0 8px; }
.mn-fold-plain { margin: 6px 0 12px; }
.mn-fold-plain > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.mn-proposal { align-items: center; }

/* Missions */
.mn-launch textarea { font-size: 17px; line-height: 1.5; }
.mn-launch { margin-bottom: 18px; }
.pl-voice.is-live { background: var(--pl-bad-wash); color: var(--pl-bad); border-color: transparent; }
.pl-voice svg { width: 16px; height: 16px; }
.mn-mission { margin-bottom: 14px; }
.mn-mission-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.mn-mission-head h3 { margin: 4px 0 0; font-size: 16px; line-height: 1.4; font-weight: 600; }
.mn-progress { height: 6px; border-radius: 99px; background: var(--pl-line-soft); margin: 12px 0; overflow: hidden; }
.mn-progress i { display: block; height: 100%; background: var(--pl-accent); border-radius: 99px; transition: width .4s; }
.mn-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.mn-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.mn-steps li small { display: block; color: var(--ink-2); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.mn-step-i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pl-line-soft); }
.mn-step-i svg { width: 14px; height: 14px; }
.mn-steps li.is-good .mn-step-i { background: var(--pl-good-wash); color: var(--pl-good); }
.mn-steps li.is-warn .mn-step-i { background: var(--pl-warn-wash); color: var(--pl-warn); }
.mn-steps li.is-info .mn-step-i { background: var(--pl-accent-wash); color: var(--pl-accent); }
.mn-steps li.is-muted { opacity: .6; }

/* "What this page is based on" */
.mn-basis { margin: 8px 0 10px; font-size: 14px; }
.mn-basis > summary { cursor: pointer; font-weight: 600; color: var(--pl-accent); }
.mn-basis h4 { margin: 12px 0 4px; font-size: 13px; letter-spacing: .02em; }
.mn-basis ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; color: var(--ink-2); }

/* Competitor ads and profiles */
.mn-prof { display: block; margin-top: 3px; color: var(--ink-2); }
.mn-cads { display: grid; gap: 12px; margin: 12px 0 18px; }
.mn-cad { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--pl-line-soft); border-radius: 14px; background: var(--pl-sheet); }
.mn-cad img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; background: var(--pl-line-soft); }
.mn-cad h4 { margin: 4px 0; font-size: 15px; }
.mn-cad p { margin: 4px 0; font-size: 14px; line-height: 1.45; }
@media (max-width: 480px) { .mn-cad { grid-template-columns: minmax(0, 1fr); } .mn-cad img { width: 100%; height: auto; max-height: 260px; } }
.mn-cad.no-img { grid-template-columns: minmax(0, 1fr); }

/* Ads gallery: every ad Midnyte made, picture first. */
.mn-ads { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.mn-ad { display: flex; flex-direction: column; border-radius: var(--pl-r-md); border: 1px solid var(--pl-raised-line); background: var(--pl-sheet); box-shadow: var(--pl-shadow-card); overflow: hidden; min-width: 0; }
.mn-ad-img { display: block; aspect-ratio: 1 / 1; background: var(--pl-canvas); }
.mn-ad-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mn-ad-body { display: grid; gap: 10px; padding: 16px; align-content: start; }
.mn-ad-body .pl-status { justify-self: start; max-width: 100%; white-space: normal; }
.mn-ad-for, .mn-ad-check { margin: 0; font-size: 14px; line-height: 1.45; }
.mn-ad-check { color: var(--pl-muted); }
.mn-ad-check.is-ok { color: var(--pl-good); }
.mn-ad-check.is-no { color: var(--pl-bad); }
.mn-ad-more summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.mn-ad-more p { margin: 8px 0 0; font-size: 14px; }
.mn-fold summary { cursor: pointer; }
.mn-ad-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mn-ad-thumb { width: 96px; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--pl-line); }
.mn-ad-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------- plan & usage */
.mn-usage { border: 1px solid var(--pl-line); border-radius: 18px; background: var(--pl-sheet); box-shadow: var(--pl-shadow-card); overflow: hidden; }
.mn-usage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-bottom: 1px solid var(--pl-line-soft); }
.mn-usage-head p { margin-top: 4px; font-size: 14px; color: var(--pl-ink-2, var(--pl-ink)); }
.mn-usage-left { font-size: 13px; color: var(--pl-muted); white-space: nowrap; }
.mn-usage-left b { font-size: 22px; font-weight: 650; letter-spacing: -.6px; color: var(--pl-ink); }
.mn-meters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.mn-meter { padding: 18px 24px 20px; border-top: 1px solid var(--pl-line-soft); margin-top: -1px; }
.mn-meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mn-meter-top span { font-size: 13.5px; color: var(--pl-muted); min-width: 0; }
.mn-meter-top b { font-size: 21px; font-weight: 650; letter-spacing: -.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mn-meter-top small { font-size: 12.5px; font-weight: 450; letter-spacing: 0; color: var(--pl-muted); }
.mn-meter-bar { height: 6px; margin-top: 12px; border-radius: 6px; background: var(--pl-line-soft); overflow: hidden; }
.mn-meter-bar i { display: block; height: 100%; border-radius: inherit; background: var(--pl-accent); }
.mn-meter.is-warn .mn-meter-bar i { background: var(--pl-warn); }
.mn-meter.is-bad .mn-meter-bar i { background: var(--pl-bad); }
.mn-meter-note { margin-top: 10px; font-size: 12.5px; color: var(--pl-faint); }
.mn-usage-more { margin-top: 12px; }
.mn-usage-more summary { cursor: pointer; font-size: 13px; color: var(--pl-muted); padding: 6px 2px; width: fit-content; }
.mn-usage-more .table-wrap { margin-top: 8px; }
.mn-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); align-items: stretch; }
.mn-plan { position: relative; display: flex; flex-direction: column; padding: 24px 22px 22px; border: 1px solid var(--pl-line); border-radius: 18px; background: var(--pl-sheet); box-shadow: var(--pl-shadow-card); min-width: 0; }
.mn-plan.is-current { border-color: var(--pl-accent); box-shadow: 0 0 0 1px var(--pl-accent), var(--pl-shadow-card); }
.mn-plan-badge { position: absolute; top: -11px; left: 20px; padding: 3px 10px; border-radius: 20px; background: var(--pl-accent); color: #fff; font-size: 11.5px; font-weight: 650; letter-spacing: .2px; }
.mn-plan h3 { font-size: 17px; }
.mn-plan-price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 10px; }
.mn-plan-price b { font-size: 30px; font-weight: 700; letter-spacing: -1.2px; line-height: 1; }
.mn-plan-price span { font-size: 13px; color: var(--pl-muted); }
.mn-plan-blurb { font-size: 13px; line-height: 1.55; color: var(--pl-muted); }
.mn-plan-list { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--pl-line-soft); display: grid; gap: 9px; font-size: 13.5px; }
.mn-plan-list li { position: relative; padding-left: 22px; overflow-wrap: anywhere; }
.mn-plan-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--pl-good); border-bottom: 2px solid var(--pl-good); transform: rotate(-45deg); }
.mn-plan-foot { margin-top: auto; padding-top: 20px; }
.mn-plan-on { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--pl-good); }
.mn-plan-on svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------- chat setup */
.mn-setup-strip:empty { display: none; }
.mn-setup-strip { margin: -14px 0 20px; }
.mn-setup-chip { display: flex; width: fit-content; white-space: normal; line-height: 1.4; align-items: center; gap: 8px; max-width: 100%; padding: 7px 14px; border-radius: 20px; border: 1px solid var(--pl-line); background: var(--pl-raised-flat); font: inherit; font-size: 12.5px; color: var(--pl-muted); cursor: pointer; text-align: left; }
.mn-setup-chip span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.mn-setup-chip b { color: var(--pl-ink); font-weight: 600; }
.mn-setup-chip svg { width: 15px; height: 15px; flex: none; }
.mn-chat-setup fieldset { border: 0; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; min-width: 0; }
.mn-chat-setup legend { font-size: 14px; font-weight: 620; margin-bottom: 10px; padding: 0; }
.mn-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.mn-check input { width: 18px; height: 18px; accent-color: var(--pl-accent); }
.mn-auto-fields { display: grid; gap: 12px; }
.mn-auto-fields[hidden] { display: none; }
.mn-usage-unl { margin-right: 14px; padding: 3px 10px; border-radius: 20px; background: var(--pl-good-wash); color: var(--pl-good); font-size: 12px; font-weight: 600; }

.mn-plan.is-pick { border-color: color-mix(in srgb, var(--pl-accent) 45%, var(--pl-line)); }
.mn-plan-badge.is-pick { background: var(--pl-ink); }
.mn-banner:not(.is-warn):not(.is-bad):not(.is-good) { background: var(--pl-accent-wash); }

/* ---------------------------------------------------------- get set up */
.mn-wz { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.mn-wz-steps { position: sticky; top: 16px; padding: 16px; border-radius: var(--pl-r-md); background: var(--pl-raised-flat); border: 1px solid var(--pl-line-soft); min-width: 0; }
.mn-wz-bar { height: 6px; border-radius: 6px; background: var(--pl-line-soft); overflow: hidden; margin: 2px 4px 14px; }
.mn-wz-bar i { display: block; height: 100%; background: var(--pl-good); border-radius: 6px; transition: width .3s; }
.mn-wz-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mn-wz-steps button { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 52px; padding: 8px 10px; border: 0; border-radius: var(--pl-r-xs); background: none; font: inherit; color: var(--pl-ink); text-align: left; cursor: pointer; }
.mn-wz-steps button:hover { background: var(--pl-hover); }
.mn-wz-steps li.is-on button { background: var(--pl-accent-wash); }
.mn-wz-steps b { display: block; font-size: 14px; font-weight: 620; }
.mn-wz-steps small { display: block; font-size: 12px; color: var(--pl-muted); }
.mn-wz-dot { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--pl-line); font-size: 12.5px; font-weight: 650; color: var(--pl-muted); background: var(--pl-field); }
.mn-wz-dot svg { width: 15px; height: 15px; }
.is-done .mn-wz-dot { background: var(--pl-good); border-color: var(--pl-good); color: var(--pl-good-wash); }
.is-done small { color: var(--pl-good); }
.is-wait .mn-wz-dot { border-color: var(--pl-warn); color: var(--pl-warn); }
.is-wait small { color: var(--pl-warn); }
.mn-wz-panel { min-width: 0; padding: 26px; border-radius: var(--pl-r-lg); background: var(--pl-sheet); box-shadow: var(--pl-shadow-card); border: 1px solid var(--pl-raised-line); }
.mn-wz-panel h2 { margin: 6px 0 4px; font-size: 22px; letter-spacing: -.4px; }
.mn-wz-panel h3 { margin: 0 0 10px; font-size: 16px; }
.mn-wz-form { display: grid; gap: 14px; margin-top: 18px; max-width: 560px; }
.mn-wz-row { display: flex; gap: 8px; }
.mn-wz-row input { flex: 1 1 auto; min-width: 0; }
.mn-wz-row .pl-btn { flex: none; }
.mn-wz-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.mn-wz-stack { margin-top: 18px; max-width: 560px; }
.mn-wz-guide { margin-top: 18px; padding: 18px; border-radius: var(--pl-r-sm); border: 1px solid var(--pl-line); background: var(--pl-raised-flat); }
.mn-wz-guide ol, .mn-wz-how { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; font-size: 14px; line-height: 1.55; }
.mn-wz-code { display: grid; gap: 8px; justify-items: start; }
.mn-wz-code pre { width: 100%; box-sizing: border-box; margin: 0; padding: 12px 14px; border-radius: var(--pl-r-xs); background: var(--pl-field); border: 1px solid var(--pl-field-line); font: 12.5px/1.55 var(--pl-mono); white-space: pre-wrap; word-break: break-all; color: var(--pl-ink); max-height: 260px; overflow: auto; }
.mn-wz-more { margin-top: 14px; font-size: 14px; }
.mn-wz-more summary { cursor: pointer; font-weight: 600; color: var(--pl-accent-ink); min-height: 32px; }
.mn-wz-check { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pl-line-soft); font-size: 13.5px; color: var(--pl-muted); }
.mn-wz-check [data-check-text] { flex: 1 1 220px; }
.mn-wz-live { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--pl-warn); animation: mn-wz-pulse 1.6s ease-in-out infinite; }
.mn-wz-live.is-on { background: var(--pl-good); animation: none; }
@keyframes mn-wz-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mn-wz-live { animation: none; } }
.mn-wz-help { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--pl-line-soft); font-size: 14px; }
.mn-wz-help .pl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mn-wz-quote { margin: 14px 0 0; padding: 14px 16px; border-left: 3px solid var(--pl-accent); border-radius: 0 var(--pl-r-xs) var(--pl-r-xs) 0; background: var(--pl-accent-wash); color: var(--pl-ink-2); font-size: 14.5px; line-height: 1.6; }
.mn-wz-panel .mn-banner span { min-width: 0; overflow-wrap: anywhere; }
.mn-wz-panel code { font-family: var(--pl-mono); font-size: .92em; }

.mn-setup-note { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; max-width: 520px; margin: 18px auto 0; padding: 12px 16px; border-radius: var(--pl-r-sm); border: 1px solid var(--pl-line); background: var(--pl-raised-flat); color: var(--pl-ink); text-decoration: none; }
.mn-setup-note:hover { border-color: color-mix(in srgb, var(--pl-accent) 45%, var(--pl-line)); }
.mn-setup-note > svg { width: 20px; height: 20px; color: var(--pl-accent); }
.mn-setup-note b { display: block; font-size: 14px; }
.mn-setup-note small { display: block; font-size: 12.5px; color: var(--pl-muted); }
.mn-setup-note-bar { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: var(--pl-line-soft); overflow: hidden; }
.mn-setup-note-bar i { display: block; height: 100%; background: var(--pl-good); }

@media (max-width: 820px) {
  .mn-wz { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mn-wz-steps { position: static; padding: 10px; }
  .mn-wz-steps ol { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .mn-wz-steps button { flex-direction: column; gap: 4px; min-height: 44px; padding: 6px 2px; text-align: center; }
  .mn-wz-steps button > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mn-wz-steps button { position: relative; align-items: center; justify-content: center; }
  .mn-wz-panel { padding: 18px 16px; border-radius: var(--pl-r-md); }
  .mn-wz-row { flex-direction: column; }
}

/* ------------------------------------------------- website as Midnyte read it */
.mn-scan { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--pl-line-soft); }
.mn-scan-row { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 6px 18px; padding: 12px 0; border-bottom: 1px solid var(--pl-line-soft); font-size: 14px; line-height: 1.55; }
.mn-scan-row h3 { margin: 0; font-size: 13px; font-weight: 620; color: var(--pl-muted); }
.mn-scan-row > div { min-width: 0; overflow-wrap: anywhere; }
.mn-scan-list { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.mn-scan-list small { display: block; color: var(--pl-muted); font-size: 12.5px; overflow-wrap: anywhere; }
.mn-scan-form { margin-top: 14px; max-width: 560px; }
@media (max-width: 640px) { .mn-scan-row { grid-template-columns: minmax(0, 1fr); } }

/* Onboarding: the Whop Ads step (why Whop, create the account now, connect later). */
.mn-wz-why { margin: 16px 0 0; padding: 16px 18px; border: 1px solid var(--pl-line); border-radius: 14px; background: var(--pl-accent-wash); }
.mn-wz-why h3 { margin: 0 0 10px; font-size: 15px; }
.mn-wz-why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mn-wz-why li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.mn-wz-why li .pl-i { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--pl-accent, #6b4ba0); }
.mn-wz-now { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0 0; }
.mn-wz-now .pl-note { margin: 4px 0 12px; }
.mn-wz-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pl-accent, #6b4ba0); color: #fff; font-weight: 650; font-size: 14px; }
.mn-wz-later { margin: 22px 0 0; border-top: 1px solid var(--pl-line); padding-top: 14px; }
.mn-wz-later summary { cursor: pointer; font-size: 14px; color: var(--pl-muted); }
.mn-wz-later[open] summary { margin-bottom: 4px; }
