/* ============================================================================
 * Uptimia — Free Port Checker (/port-checker)
 * The shared free-tool skin, re-scoped from mx-checker.css (.mxc -> .ptc,
 * mxc-* keyframes -> ptc-*): every selector lives under .ptc, tokens sit on
 * the wrapper rather than :root, and the mockup's chrome (topbar / nav /
 * dock / foot) is dropped because the real page uses the site's own.
 *
 * The port-checker-only components — the scan table, state tags, the graded
 * port map and the fixpack — are appended at the bottom of this file, ported
 * from docs/port-checker-mockup.html.
 * ==========================================================================*/

/* ---------------------------------------------------------------------------
 * Narrow-viewport containment.
 *
 * Grid and flex CHILDREN default to min-width:auto, which means "never shrink
 * below my content". The cheatsheet rows carry a nowrap shell command, so at
 * 360px the row grew to ~650px and the command was simply cut off — .cmd's
 * max-width:100% cannot help while its own .c child refuses to shrink, and
 * text-overflow:ellipsis never engages for the same reason. Opting these
 * children out of the auto minimum is what lets the ellipsis do its job.
 *
 * This file was re-scoped from mx-checker.css BEFORE that file gained its own
 * containment block, so the fix has to be repeated here rather than inherited.
 * ------------------------------------------------------------------------- */
.ptc .cheat > *{min-width:0}
.ptc .ch-row > *{min-width:0}
.ptc .cmd .c{min-width:0}
.ptc .duo > *{min-width:0}
.ptc .faq-a p, .ptc .port-row .pd{overflow-wrap:anywhere}

.ptc .hero-error{
  max-width:640px;margin:12px auto 0;
  border:1px solid rgba(255,122,104,.45);background:rgba(255,122,104,.12);
  border-radius:10px;padding:10px 16px;font-size:14px;color:#ffc9c0;text-align:left;
}
.ptc .hero-error[hidden]{display:none}

.ptc *, .ptc *::before, .ptc *::after{box-sizing:border-box;margin:0;padding:0}
.ptc a{color:inherit;text-decoration:none}
.ptc button{font:inherit;cursor:pointer;background:none;border:0;color:inherit}
.ptc input, .ptc select{font:inherit;color:inherit}
.ptc svg{display:block}
.ptc .wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.ptc .mono{font-family:var(--mono)}
.ptc .micro{font-size:11.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--soft)}
.ptc .view{display:none}
.ptc .view.on{display:block}

.ptc .testbar{
  max-width:640px;margin:34px auto 0;
  display:flex;align-items:stretch;gap:0;
  background:#fff;border-radius:12px;padding:6px;
  box-shadow:0 1px 0 rgba(255,255,255,.06), 0 24px 60px -24px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
}
.ptc .testbar .field{flex:1;display:flex;align-items:center;gap:11px;padding:0 8px 0 14px;min-width:0}
.ptc .testbar .field svg{color:var(--soft);flex:none}
.ptc .testbar input{flex:1;border:0;outline:0;background:none;min-width:0;font-size:16.5px;font-weight:450;color:var(--ink);height:48px}
.ptc .testbar input::placeholder{color:var(--soft)}
.ptc .testbar .btn-run{
  display:inline-flex;align-items:center;gap:8px;padding:0 22px;border-radius:8px;
  background:var(--cta);color:var(--cta-ink);font-size:15px;font-weight:650;letter-spacing:-.01em;white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 6px 18px -6px rgba(78,201,126,.55);
  transition:filter .15s,transform .1s;
}
.ptc .testbar .btn-run:hover{filter:brightness(1.05)}
.ptc .testbar .btn-run:active{transform:scale(.99)}
.ptc .adv-strip{
  display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px 16px;margin:26px auto 0;
  border:1px solid var(--dark-line-2);border-radius:10px;padding:9px 16px;
  background:rgba(255,255,255,.03);
  font-family:var(--mono);font-size:12px;color:var(--dark-muted);
}
.ptc .adv-strip .lbl{font-size:10.5px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--dark-soft)}
.ptc .adv-strip b{color:#fff;font-weight:600}
.ptc .adv-strip a{color:var(--accent-bright);font-weight:600}
.ptc .sec{padding:72px 0 0}
.ptc .sec:last-child{padding-bottom:72px}
.ptc .sec-head{max-width:640px;margin:0 0 34px}
.ptc .sec-head.center{margin:0 auto 38px;text-align:center}
.ptc .sec-head .micro{display:block;margin-bottom:12px;color:var(--accent)}
.ptc .sec-head h2{font-size:31px;line-height:1.15;font-weight:700;letter-spacing:-.022em;color:var(--ink)}
.ptc .sec-head p{margin-top:12px;font-size:15.5px;color:var(--muted)}
.ptc .note-mono{font-family:var(--mono);font-size:12px;color:var(--soft)}
.ptc .duo{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.ptc .duo-side h3{font-size:22px;line-height:1.2;font-weight:700;letter-spacing:-.018em;margin-bottom:10px}
.ptc .duo-side p{font-size:14.5px;line-height:1.65;color:var(--muted);margin-bottom:12px}
.ptc .duo-side ul{list-style:none;display:grid;gap:8px;margin:16px 0 20px}
.ptc .duo-side li{display:flex;gap:9px;font-size:13.5px;color:var(--muted)}
.ptc .duo-side li svg{color:var(--accent);flex:none;margin-top:3px}
.ptc .port-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--bg-3)}
.ptc .port-row:last-child{border-bottom:0}
.ptc .port-row .pt{flex:none;min-width:170px;font-family:var(--mono);font-size:12px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ptc .port-row .pd{flex:1;font-size:12.5px;color:var(--muted)}
.ptc .cheat{max-width:860px;margin:0 auto;display:grid;gap:8px}
.ptc .ch-row{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 16px;flex-wrap:wrap}
.ptc .ch-row b{flex:1;font-size:13.5px;font-weight:600;letter-spacing:-.01em;color:var(--ink-2);min-width:190px}
.ptc .cmd{
  display:inline-flex;align-items:center;gap:8px;max-width:100%;
  font-family:var(--mono);font-size:11.5px;color:var(--ink-3);
  background:var(--bg-3);border:1px solid var(--line-2);border-radius:7px;padding:5px 10px;
}
.ptc .cmd .c{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ptc .cmd button{color:var(--accent);font-weight:600;font-size:11px;flex:none}
.ptc .faq{max-width:760px;margin:0 auto}
.ptc .faq-item{border-bottom:1px solid var(--line)}
.ptc .faq-item:first-child{border-top:1px solid var(--line)}
.ptc .faq-q{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 2px;text-align:left;font-size:15.5px;font-weight:600;letter-spacing:-.01em;color:var(--ink-2)}
.ptc .faq-q .pm{flex:none;width:22px;height:22px;border-radius:50%;border:1px solid var(--line-2);display:flex;align-items:center;justify-content:center;color:var(--soft);font-size:14px;transition:transform .18s var(--ease)}
.ptc .faq-item.open .pm{transform:rotate(45deg);color:var(--accent);border-color:var(--accent-line);background:var(--accent-soft)}
/* Do NOT reintroduce a fixed max-height here. The answers on this page are the
   longest in the free-tool family ("What exactly do you send to my server?"
   measures 623px at 320px wide), so the old 460px cap silently CLIPPED its last
   163px. 0fr -> 1fr animates to the content's real height instead. */
.ptc .faq-a{display:grid;grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows .25s var(--ease)}
.ptc .faq-a p{min-height:0;overflow:hidden;padding:0 40px 0 2px;font-size:14.5px;line-height:1.65;color:var(--muted)}
.ptc .faq-a p::after{content:"";display:block;height:18px}
.ptc .faq-item.open .faq-a{grid-template-rows:1fr}
.ptc .tools-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.ptc .tool-link{display:flex;flex-direction:column;gap:5px;padding:17px 18px 15px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);transition:border-color .15s, box-shadow .15s}
.ptc .tool-link:hover{border-color:var(--accent-line);box-shadow:0 8px 24px -14px rgba(15,23,42,.18)}
.ptc .tool-link b{font-size:14px;font-weight:600;letter-spacing:-.01em;color:var(--ink-2);display:flex;align-items:center;gap:7px}
.ptc .tool-link b svg{color:var(--accent)}
.ptc .tool-link span{font-size:12.5px;color:var(--soft)}
.ptc .tool-link.featured{border-color:var(--accent-line);background:linear-gradient(180deg,#fff,var(--accent-soft))}
.ptc .band{margin-top:80px;background:var(--dark);color:var(--dark-ink);position:relative;overflow:hidden}
.ptc .band::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 640px 320px at 82% 130%, rgba(78,201,126,.14), transparent 60%);pointer-events:none}
.ptc .band-in{max-width:1120px;margin:0 auto;padding:58px 24px;display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;position:relative}
.ptc .band h2{font-size:30px;line-height:1.14;font-weight:700;letter-spacing:-.022em;color:#fff}
.ptc .band p{margin-top:12px;font-size:15px;line-height:1.6;color:var(--dark-muted);max-width:46ch}
.ptc .band-form{display:flex;gap:8px;background:#fff;border-radius:12px;padding:6px;box-shadow:0 20px 50px -22px rgba(0,0,0,.5)}
.ptc .band-form input{flex:1;border:0;outline:0;background:none;padding:0 14px;height:44px;font-size:14.5px;color:var(--ink);min-width:0}
.ptc .band-form input::placeholder{color:var(--soft)}
.ptc .band-form .btn-run{display:inline-flex;align-items:center;padding:0 18px;border-radius:8px;background:var(--cta);color:var(--cta-ink);font-size:14px;font-weight:650;white-space:nowrap;box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}
.ptc .band-trust{display:flex;gap:20px;margin-top:14px;font-family:var(--mono);font-size:11.5px;color:var(--dark-soft)}
.ptc .band-trust span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.ptc .band-trust svg{color:var(--accent-bright)}
.ptc .runhead{background:var(--dark);color:var(--dark-ink);position:relative;overflow:hidden}
.ptc .runhead::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 700px 300px at 50% 130%, rgba(78,201,126,.10), transparent 60%);pointer-events:none}
.ptc .runhead-in{max-width:1120px;margin:0 auto;padding:30px 24px 26px;position:relative}
.ptc .runrow{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.ptc .urlchip{display:inline-flex;align-items:center;gap:10px;background:rgba(255,255,255,.05);border:1px solid var(--dark-line-2);border-radius:10px;padding:9px 14px;font-family:var(--mono);font-size:14px;color:#fff}
.ptc .urlchip .fav{width:18px;height:18px;border-radius:5px;background:linear-gradient(135deg,#7ea4e8,#4f6ab8);display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:#fff;font-family:var(--sans)}
/* Real favicon of the checked site (loaded into the .fav box; falls back to the initial). */
.ptc .urlchip .fav img{width:16px;height:16px;object-fit:contain;border-radius:3px;display:block}
.ptc .urlchip .fav[data-favicon]{background:#fff}
.ptc .urlchip .rt{color:var(--accent-bright);font-size:12px;font-weight:600}
.ptc .runrow .spacer{flex:1}
.ptc .run-status{display:inline-flex;align-items:center;gap:9px;font-size:13.5px;color:var(--dark-muted)}
.ptc .run-status .hit{color:var(--amber-bright);font-weight:600}

.ptc .budget{display:flex;gap:5px}
.ptc .lad-labels{display:flex;gap:5px;margin-top:7px;font-family:var(--mono);font-size:10.5px;color:var(--dark-soft)}
.ptc .lad-labels span{flex:1;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ptc .lad-labels span.on{color:#fff;font-weight:600}
.ptc .check-banner{
  margin-top:18px;display:none;align-items:center;gap:10px;
  border:1px solid rgba(240,205,109,.38);background:rgba(240,205,109,.10);
  border-radius:var(--radius-sm);padding:11px 16px;font-size:14px;color:#f4e3b2;
}
.ptc .check-banner svg{color:var(--amber-bright);flex:none}
.ptc .check-banner.good{border-color:rgba(78,201,126,.35);background:rgba(78,201,126,.08);color:#c4e8d2}
.ptc .check-banner.good svg{color:var(--accent-bright)}
.ptc .live-zone{padding:34px 0 0}
.ptc .term{background:var(--dark);border:1px solid var(--dark-line-2);border-radius:var(--radius);overflow:hidden;box-shadow:0 20px 50px -28px rgba(0,0,0,.55)}

.ptc .rec-note{margin-top:10px;font-size:12.5px;color:var(--muted)}
.ptc .rec-note b{color:var(--ink-2)}
.ptc .tree-foot{margin-top:12px;font-size:13px;color:var(--muted)}
.ptc .tree-foot b{color:var(--ink-2)}
.ptc .opp:last-child{border-bottom:0}
.ptc .sev.ok{background:var(--accent)}
.ptc .opp p b{display:inline;font-size:inherit;color:var(--ink-2)}
.ptc .opp p .mono{font-size:11.5px;color:var(--ink-3)}
.ptc .opp .act{display:inline-block;margin-top:8px;font-family:var(--mono);font-size:11px;font-weight:600;color:var(--accent);background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:6px;padding:2px 8px;white-space:nowrap}
.ptc .opp .act.warn{color:var(--warn);background:var(--warn-soft);border-color:var(--warn-line)}
.ptc .opp .act.bad{color:var(--bad);background:var(--bad-soft);border-color:var(--bad-line)}
.ptc .capture.warn{border-color:var(--warn-line);background:linear-gradient(180deg,#fff,var(--warn-soft));box-shadow:0 1px 2px rgba(15,23,42,.04), 0 16px 40px -22px rgba(182,120,0,.22)}
.ptc .capture.bad{border-color:var(--bad-line);background:linear-gradient(180deg,#fff,var(--bad-soft));box-shadow:0 1px 2px rgba(15,23,42,.04), 0 16px 40px -22px rgba(192,56,43,.22)}
.ptc .capture h3 em{font-family:var(--serif);font-style:italic;font-weight:500;color:var(--warn)}
.ptc .capture.bad h3 em{color:var(--bad)}
.ptc .cap-form .btn-warn{
  display:inline-flex;align-items:center;gap:7px;padding:0 16px;border-radius:8px;
  background:var(--warn);color:#fff;font-size:13.5px;font-weight:650;white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15);transition:filter .15s;
}
.ptc .cap-form .btn-warn:hover{filter:brightness(1.08)}
.ptc .cap-form .btn-bad{
  display:inline-flex;align-items:center;gap:7px;padding:0 16px;border-radius:8px;
  background:var(--bad);color:#fff;font-size:13.5px;font-weight:650;white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15);transition:filter .15s;
}
.ptc .cap-form .btn-bad:hover{filter:brightness(1.08)}
.ptc .owner-line{margin-top:14px;padding-top:14px;border-top:1px dashed var(--warn-line);font-size:13px;color:var(--muted)}
.ptc .owner-line b{color:var(--ink-2)}
.ptc .owner-line a{color:var(--accent);font-weight:600}
.ptc .kv .v.warn{color:var(--warn);font-weight:550}
.ptc .kv .v.good{color:var(--accent);font-weight:550}
.ptc .deep-link{
  display:flex;align-items:center;gap:14px;padding:16px 18px;
  border:1px solid var(--accent-line);border-radius:var(--radius-sm);
  background:linear-gradient(180deg,#fff,var(--accent-soft));transition:box-shadow .15s;
}
.ptc .deep-link:hover{box-shadow:0 10px 26px -16px rgba(0,126,66,.35)}
.ptc .deep-link .glyph{flex:none;width:36px;height:36px;border-radius:9px;background:var(--accent-soft);border:1px solid var(--accent-line);color:var(--accent);display:flex;align-items:center;justify-content:center}
.ptc .deep-link b{display:block;font-size:13.5px;font-weight:650;color:var(--ink-2)}
.ptc .deep-link span{font-size:12px;color:var(--muted)}
.ptc .deep-link svg.arr{margin-left:auto;color:var(--accent);flex:none}

@media (max-width:960px){
.ptc .duo, .ptc .res-grid{grid-template-columns:1fr}
.ptc .quad{grid-template-columns:1fr 1fr}
.ptc .err-grid{grid-template-columns:1fr 1fr}
.ptc .tools-row{grid-template-columns:1fr 1fr}
.ptc .band-in{grid-template-columns:1fr;gap:28px}

}

@media (max-width:620px){
.ptc .testbar{flex-direction:column;gap:6px}
.ptc .testbar .btn-run{height:46px;justify-content:center}
.ptc .quad, .ptc .err-grid, .ptc .tools-row{grid-template-columns:1fr}

}

/* ============================================================================
   Port-checker-only components (ported from docs/port-checker-mockup.html)
   ==========================================================================*/

/* the scan table — one row per port */
.ptc .prow{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--bg-3)}
.ptc .prow:last-child{border-bottom:0}
.ptc .prow .pp{flex:none;width:132px;font-family:var(--mono);font-size:12.5px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ptc .prow .pp b{color:var(--ink);font-weight:600}
.ptc .stag{flex:none;width:80px;text-align:center;font-family:var(--mono);font-size:10.5px;font-weight:700;letter-spacing:.05em;border-radius:6px;padding:4px 0}
.ptc .stag.ok{background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent-line)}
.ptc .stag.warn{background:var(--warn-soft);color:var(--warn);border:1px solid var(--warn-line)}
.ptc .stag.bad{background:var(--bad-soft);color:var(--bad);border:1px solid var(--bad-line)}
.ptc .stag.filt{background:#eef4fb;color:#3d6fa8;border:1px solid #d5e3f2}
.ptc .stag.closed{background:var(--bg-3);color:var(--soft);border:1px solid var(--line-2)}
.ptc .prow .prt{flex:none;width:56px;text-align:right;font-family:var(--mono);font-size:11.5px;color:var(--soft)}
.ptc .prow .pread{flex:1;min-width:0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.ptc .prow .pread .rd{color:var(--bad);font-weight:600}
.ptc .prow .pread .am{color:var(--warn);font-weight:600}
.ptc .prow .pread .gd{color:var(--accent);font-weight:600}
.ptc .prow .pread .mono{font-size:11px;color:var(--ink-3)}

/* scan summary strip */
.ptc .scan-sum{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.ptc .sum-pill{display:inline-flex;align-items:center;gap:7px;border-radius:8px;padding:6px 11px;font-family:var(--mono);font-size:12px;font-weight:600;border:1px solid var(--line-2);background:var(--bg-3);color:var(--ink-3)}
.ptc .sum-pill b{font-weight:700}
.ptc .sum-pill.open{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}
.ptc .sum-pill.filt{background:#eef4fb;color:#3d6fa8;border-color:#d5e3f2}
.ptc .sum-pill.risk{background:var(--bad-soft);color:var(--bad);border-color:var(--bad-line)}
.ptc .sum-pill.riskw{background:var(--warn-soft);color:var(--warn);border-color:var(--warn-line)}

/* the graded common-ports map on the landing */
.ptc .portmap{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px}
.ptc .pchip{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--surface)}
.ptc .pchip .pn{font-family:var(--mono);font-size:13px;font-weight:600;color:var(--ink)}
.ptc .pchip .ps{font-size:11px;color:var(--muted);margin-top:1px}
.ptc .pchip .pt{margin-top:7px;font-family:var(--mono);font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;border-radius:5px;padding:2px 6px;display:inline-block;border:1px solid transparent}
.ptc .pchip.web .pt{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}
.ptc .pchip.role .pt{background:#eef4fb;color:#3d6fa8;border-color:#d5e3f2}
.ptc .pchip.admin .pt{background:var(--warn-soft);color:var(--warn);border-color:var(--warn-line)}
.ptc .pchip.db{border-color:var(--bad-line)}
.ptc .pchip.db .pt{background:var(--bad-soft);color:var(--bad);border-color:var(--bad-line)}

/* fixpack — copyable remediation lines */
.ptc .fixpack{display:grid;gap:7px;margin-top:4px}
.ptc .fix-line{display:flex;align-items:center;gap:12px;background:var(--dark);border:1px solid var(--dark-line-2);border-radius:9px;padding:9px 13px}
.ptc .fix-line .fl{flex:none;width:104px;font-family:var(--mono);font-size:10.5px;font-weight:600;color:var(--amber-bright);letter-spacing:.03em}
.ptc .fix-line .fc{flex:1;min-width:0;font-family:var(--mono);font-size:11.5px;color:var(--dark-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ptc .fix-line .fc .dim{color:var(--dark-soft)}
.ptc .fix-line button{flex:none;color:var(--accent-bright);font-family:var(--mono);font-size:11px;font-weight:600}

/* preset switcher under the testbar */
.ptc .preset-row{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px auto 0;flex-wrap:wrap;font-family:var(--mono);font-size:12px;color:var(--dark-muted)}
.ptc .preset-row .seg{display:inline-flex;border:1px solid var(--dark-line-2);border-radius:8px;overflow:hidden;background:rgba(255,255,255,.03)}
.ptc .preset-row .seg button{padding:6px 12px;font-family:var(--mono);font-size:11.5px;font-weight:500;color:var(--dark-muted)}
.ptc .preset-row .seg button.on{background:var(--accent);color:#fff;font-weight:600}
.ptc .scope-fields{display:flex;align-items:center;justify-content:center;gap:8px;margin:10px auto 0;flex-wrap:wrap;font-family:var(--mono);font-size:12px;color:var(--dark-muted)}
.ptc .scope-fields[hidden]{display:none}
.ptc .scope-fields input{
  width:96px;height:34px;padding:0 10px;border-radius:8px;
  border:1px solid var(--dark-line-2);background:rgba(255,255,255,.05);
  color:#fff;font-family:var(--mono);font-size:12.5px;outline:0;
}
.ptc .scope-fields input:focus{border-color:var(--accent-bright)}
.ptc .scope-fields .cap{color:var(--dark-soft)}

/* the responsible-use notice — deliberately part of the page, not a footnote */
.ptc .aup-note{
  margin-top:16px;text-align:center;font-size:13.5px;color:var(--muted);
}
.ptc .aup-note b{color:var(--ink-2)}

@media (max-width:620px){
  .ptc .prow{flex-wrap:wrap}
  .ptc .prow .pread{flex-basis:100%;order:5}
}

/* ---------------------------------------------------------------------------
 * Narrow-viewport containment, round 2 (2026-08-05).
 *
 * MUST STAY AT THE END OF THIS FILE. Several rules below re-declare a property
 * that an earlier rule sets at the SAME specificity (.ptc .upt-badge, .ptc
 * .cap-form .btn-bad), and at equal specificity the LAST declaration wins. Move
 * this block up and those rules silently lose — with no warning anywhere.
 *
 * The four leaks this fixes were all the same root cause wearing different
 * clothes: a flex/grid item whose default `min-width:auto` refuses to shrink
 * below the min-content width of a nowrap string inside it.
 * ------------------------------------------------------------------------ */

/* 1. The fixpack rows. .fix-line is a GRID item of .fixpack, so its automatic
 *    minimum is min-content — which the 104px label plus the shell command
 *    pushed to ~750px. The row then ignored the viewport entirely: the Copy
 *    button sat at x=753 on a 390px screen, identically at every width. */
.ptc .fixpack .fix-line{min-width:0}

/* 2. The opportunity rows. The text column is flex:1 with min-width:auto, and
 *    the nowrap .act chip set its min-content — so the body text overflowed
 *    instead of the chip wrapping. */
.ptc .opp > *{min-width:0}
.ptc .opp p, .ptc .opp b{overflow-wrap:anywhere}

/* 3. The share badge. This one leaked at 1024 too, not just on phones: the
 *    'critical' label ("database exposed · Uptimia") makes the pill 425px wide
 *    and nothing was allowed to wrap it. Same fix the blacklist checker uses. */
.ptc .badge-demo{flex-wrap:wrap}
.ptc .badge-demo > *{min-width:0}
.ptc .upt-badge{max-width:100%;flex-wrap:wrap;height:auto;min-height:30px;row-gap:2px;white-space:normal}
.ptc .upt-badge .mono{white-space:normal;overflow-wrap:anywhere}
.ptc .badge-code{min-width:0;white-space:normal;overflow-wrap:anywhere}

@media (max-width:430px){
  /* 4. The capture button. Its label is a sentence now ("Monitor a port that
   *    must stay up"), and .btn-warn/.btn-bad/.btn-cta all set white-space:
   *    nowrap, so at 320px it ran 29px past the card. Let the form stack and
   *    the label wrap rather than shortening a CTA that says what it does. */
  .ptc .cap-form{flex-wrap:wrap}
  .ptc .cap-form > *{min-width:0;flex-basis:100%}
  .ptc .cap-form .btn-cta,
  .ptc .cap-form .btn-warn,
  .ptc .cap-form .btn-bad{white-space:normal;text-align:center;justify-content:center;padding:9px 14px;line-height:1.35}
  /* The .act chips wrap instead of setting the row's min-content width. */
  .ptc .opp .act{white-space:normal}
}

/* 5. Stack the fixpack rows. Containing .fix-line (rule 1) is necessary but not
 *    sufficient: with the 104px label still on the same line, .fc was squeezed
 *    to 48px and ellipsised the remediation command down to about four
 *    characters. These lines exist to be read and copied.
 *
 *    The breakpoint is 620px, not the 430px used above, because that is where
 *    the INLINE layout starts truncating — measured, not guessed: .fc needs
 *    324px for the longest line and is given 348px at 620, 288px at 560 and
 *    208px at 480. Stacking below 620 keeps every command fully visible at
 *    every width; the capture form and .act chips only need it on phones, so
 *    they stay in the 430px block. */
@media (max-width:620px){
  .ptc .fix-line{flex-wrap:wrap;row-gap:4px}
  .ptc .fix-line .fl{width:auto;flex:0 0 100%}
  .ptc .fix-line .fc{flex:1 1 auto;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
}
