/* PHP2Shell page. Tokens come from app.css; one memorable thing: the request path (.p2-stage). */
.p2-title { max-width: 22ch; }
.p2-h2 { margin: 0 0 12px; font: 800 22px var(--display, var(--body)); letter-spacing: -.01em; }
.p2-stage { margin-top: 26px; padding: 18px 20px 14px; }
.p2-stage__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 8px; }
.p2-stage__caption { margin: 0; font: 600 15.5px var(--body); color: var(--ink); max-width: 56ch; min-height: 3.1em; }
.p2-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; padding: 3px; background: var(--surface-2); }
.p2-switch__btn { font: 700 13.5px var(--body); color: var(--muted); background: none; border: 0; border-radius: 9px; padding: 9px 16px; cursor: pointer; transition: background .25s, color .25s; }
.p2-switch__btn.is-on { background: var(--accent-tint); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.p2-switch__btn[data-set="open"].is-on { background: var(--crit-bg); color: var(--crit); box-shadow: inset 0 0 0 1px var(--crit); }
.p2-switch__btn:focus-visible, .p2-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.p2-scroll { overflow-x: auto; }
.p2-svg { display: block; width: 100%; min-width: 640px; height: auto; }

.p2-rail { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.p2-bypass { fill: none; stroke: var(--crit); stroke-width: 2.5; stroke-dasharray: 7 9; opacity: 0; transition: opacity .5s; }
.p2-node rect { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; transition: stroke .4s, fill .4s; }
.p2-node text { fill: var(--ink); font: 700 19px var(--body); }
.p2-node .p2-sub { fill: var(--muted); font: 500 14px var(--body); }
.p2-burst circle { fill: none; stroke: var(--crit); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.p2-flag { font: 700 15px var(--mono); opacity: 0; transition: opacity .4s; }
.p2-flag--open { fill: var(--crit); } .p2-flag--shut { fill: var(--pass); }
.p2-packet { transition: opacity .3s; }
.p2-packet--open { fill: var(--crit); filter: drop-shadow(0 0 7px var(--crit)); }
.p2-packet--shut { fill: var(--pass); filter: drop-shadow(0 0 7px var(--pass)); }

.p2-stage[data-state="open"] .p2-packet--shut, .p2-stage[data-state="shut"] .p2-packet--open { opacity: 0; }
.p2-stage[data-state="open"] .p2-bypass { opacity: 1; }
.p2-stage[data-state="open"] .p2-flag--open { opacity: 1; }
.p2-stage[data-state="open"] #p2-runtime rect { stroke: var(--crit); fill: var(--crit-bg); }
.p2-stage[data-state="open"] #p2-gate rect { stroke-dasharray: 5 6; opacity: .75; }
.p2-stage[data-state="open"] #p2-data rect { stroke: var(--crit); }
.p2-stage[data-state="open"] .p2-burst circle { animation: p2-burst 4.6s ease-out infinite; }
.p2-stage[data-state="shut"] #p2-runtime rect { stroke: var(--pass); fill: var(--pass-bg); }
.p2-stage[data-state="shut"] .p2-flag--shut { opacity: 1; }
@keyframes p2-burst { 0%, 38% { opacity: 0; transform: scale(.6); } 42% { opacity: 1; } 70%, 100% { opacity: 0; transform: scale(3.4); } }

.p2-note { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; max-width: 80ch; }

.p2-check { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 18px; }
.p2-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 14px 0 10px; }
.p2-label { flex-basis: 100%; font: 700 13.5px var(--body); color: var(--slate); }
.p2-input { flex: 1 1 200px; font: 600 17px var(--mono); color: var(--ink); background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.p2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p2-result { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); border-left-width: 5px; background: var(--surface-2); animation: p2-in .45s cubic-bezier(.2, 1.1, .3, 1); }
.p2-result[hidden] { display: none; }
.p2-result[data-status="affected"] { border-color: var(--crit); background: var(--crit-bg); }
.p2-result[data-status="fixed"] { border-color: var(--pass); background: var(--pass-bg); }
.p2-result[data-status="unverifiable"], .p2-result[data-status="unknown"] { border-color: var(--med); background: var(--med-bg); }
.p2-result__head { display: flex; gap: 14px; align-items: flex-start; }
.p2-result__icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 800 20px var(--body); color: var(--on-strong); background: var(--muted); animation: p2-pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.p2-result[data-status="affected"] .p2-result__icon { background: var(--crit); }
.p2-result[data-status="fixed"] .p2-result__icon { background: var(--pass); }
.p2-result[data-status="unverifiable"] .p2-result__icon, .p2-result[data-status="unknown"] .p2-result__icon { background: var(--med); }
.p2-result__status { margin: 0; font: 800 20px var(--display, var(--body)); }
.p2-result__msg { margin: 4px 0 0; color: var(--slate); max-width: 60ch; }
.p2-result__fine { margin: 14px 0 0; color: var(--muted); font-size: 13px; max-width: 64ch; }
.p2-ruler { margin: 18px 4px 0; }
.p2-ruler__track { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--crit) 0 var(--fixpos, 70%), var(--pass) var(--fixpos, 70%) 100%); }
.p2-ruler__fix { position: absolute; top: -6px; bottom: -6px; width: 3px; background: var(--ink); left: var(--fixpos, 70%); border-radius: 2px; }
.p2-ruler__you { position: absolute; top: 50%; left: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--ink); border: 4px solid var(--desk); box-shadow: 0 0 0 2px var(--ink); transition: left .9s cubic-bezier(.2, 1, .3, 1); }
.p2-ruler__labels { display: flex; justify-content: space-between; margin-top: 12px; font: 600 12.5px var(--mono); color: var(--slate); }
@keyframes p2-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes p2-pop { from { transform: scale(.2); } to { transform: scale(1); } }

.p2-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.p2-table th, .p2-table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.p2-table thead th { color: var(--muted); font-weight: 700; font-size: 13px; }
.p2-table tbody th { font: 700 14.5px var(--mono); white-space: nowrap; padding-right: 16px; }

.p2-tl-wrap { padding-top: 22px; }
.p2-tl { position: relative; list-style: none; margin: 18px 0 0; padding: 0 0 0 24px; }
.p2-tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.p2-tl::after { content: ""; position: absolute; left: 6px; top: 6px; width: 2px; height: calc(var(--tl, 0) * (100% - 12px)); background: var(--accent); transition: height .5s ease-out; }
.p2-tl li { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding-bottom: 26px; opacity: .35; transition: opacity .5s; }
.p2-tl li.is-in { opacity: 1; }
.p2-tl li::before { content: ""; position: absolute; left: -24px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--desk); border: 2px solid var(--faint); transition: border-color .4s, background .4s; }
.p2-tl li.is-in::before { border-color: var(--accent); background: var(--accent); }
.p2-tl time { font: 700 15px var(--mono); color: var(--accent-ink); padding-top: 1px; }
.p2-tl b { font: 700 17px var(--body); }
.p2-tl p { margin: 4px 0 8px; color: var(--slate); max-width: 64ch; }
.p2-tag { display: inline-block; font: 700 12.5px var(--body); padding: 3px 10px; border-radius: 99px; border: 1px solid currentColor; }
.p2-tag--try { color: var(--high); background: var(--high-bg); } .p2-tag--fix { color: var(--pass); background: var(--pass-bg); } .p2-tag--info { color: var(--low); background: var(--low-bg); }

.p2-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 12px; }
.p2-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.p2-list li { position: relative; padding-left: 26px; color: var(--slate); }
.p2-list li::before { position: absolute; left: 0; top: 0; font: 800 15px var(--body); }
.p2-list--yes li::before { content: "\2713"; color: var(--pass); }
.p2-list--no li::before { content: "?"; color: var(--med); }
.p2-how { padding-top: 12px; }
.p2-how__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.p2-how__grid .panel { margin: 0; }
.p2-how__grid p { margin: 6px 0 0; color: var(--slate); }

@media (max-width: 900px) { .p2-check, .p2-two, .p2-how__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .p2-tl li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
@media (prefers-reduced-motion: reduce) {
  .p2-result, .p2-result__icon, .p2-stage[data-state="open"] .p2-burst circle { animation: none; }
  .p2-ruler__you, .p2-tl::after, .p2-tl li { transition: none; }
}
