.pm-main {
  --pm-border: #3c3c36;
  --pm-panel: #191c1c;
  --pm-ink: #f3f0e9;
  --pm-muted: #babbb3;
  --pm-gold: #e5c482;
}
.pm-main [hidden] { display: none !important; }
.pm-skip { position: absolute; z-index: 2; top: .4rem; left: .5rem; padding: .6rem 1rem; transform: translateY(-160%); background: #f5e7c7; color: #191b19; }
.pm-skip:focus { transform: none; }
.pm-hero-copy { position: relative; z-index: 1; max-width: 570px; }
.pm-layout { margin: clamp(18px, 2.3vw, 32px) 0 32px; display: grid; grid-template-columns: minmax(245px, .83fr) minmax(0, 2fr); gap: clamp(14px, 2.2vw, 30px); align-items: start; }
.pm-layout > *, .pm-column > * { min-width: 0; }
.pm-column { display: grid; gap: 16px; }
.pm-layout .card { margin: 0; padding: clamp(18px, 2vw, 29px); }
.pm-layout h2, .pm-layout h3, .pm-layout p { margin: 0; }
.pm-layout h2 { line-height: 1.14; text-wrap: balance; }
.pm-layout h3 { font-size: .98rem; line-height: 1.35; }
.pm-layout p, .pm-method li { line-height: 1.52; }
.pm-selector { position: sticky; top: 1rem; }
.pm-selector h2, .pm-tanks h2 { font-size: clamp(1.28rem, 2.25vw, 1.7rem); }
.pm-field { display: grid; gap: 7px; margin-top: 15px; font-size: .85rem; font-weight: 650; color: var(--pm-muted); }
.pm-field select, .pm-field input {
  display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 43px;
  border: 1px solid #494b43; border-radius: 7px; padding: .6rem .68rem;
  background: #101414; color: var(--pm-ink); font: inherit; font-size: 16px; font-weight: 450;
  color-scheme: dark;
}
.pm-field select { text-overflow: ellipsis; }
.pm-field input::placeholder { color: #a1a39b; }
.pm-layout :is(input, select, button, a, summary):focus-visible, .pm-skip:focus-visible { outline: 2px solid var(--pm-gold, #e5c482); outline-offset: 3px; }
.pm-layout select:disabled, .pm-layout button:disabled { opacity: .45; cursor: default; }
.pm-selector-divider { margin: 19px 0 4px; height: 1px; background: var(--pm-border); }
.pm-hits { margin-top: 12px; }
.pm-hits p, #garage-count { font-size: .85rem; color: var(--pm-muted); }
.pm-hits ul { list-style: none; margin: 6px 0; padding: 0; max-height: min(325px, 45vh); overflow: auto; }
.pm-hits button[data-mission] { width: 100%; border: 0; border-bottom: 1px solid var(--pm-border); background: transparent; color: var(--pm-ink); padding: 9px 3px; text-align: left; cursor: pointer; font: inherit; }
.pm-hits button[data-mission]:hover { color: var(--pm-gold); }
.pm-hits strong, .pm-hits small { display: block; }
.pm-hits small, .pm-garage small, .pm-picks li div span { color: var(--pm-muted); font-size: .8rem; }
.pm-context { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 11px; }
.pm-context span:first-child { color: var(--pm-gold); background: #302a1d; border: 1px solid #665437; border-radius: 5px; padding: .23rem .5rem; font-size: .79rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.pm-context span + span { color: var(--pm-muted); font-size: .87rem; }
.pm-dossier h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); margin: 14px 0 12px; overflow-wrap: anywhere; }
.pm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-tags .pill { font-size: .78rem; line-height: 1.4; color: var(--pm-muted); background: #222625; border: 1px solid var(--pm-border); border-radius: 20px; padding: .2rem .55rem; }
.pm-condition-block { border-top: 1px solid var(--pm-border); margin-top: 18px; padding-top: 15px; }
.pm-condition-block h3 { color: var(--pm-muted); font-weight: 600; font-size: .82rem; }
.pm-condition-block p { margin-top: 5px; color: var(--pm-ink); white-space: pre-line; }
.pm-tip { margin: 17px 0; border-left: 3px solid var(--pm-gold); background: #24251f; padding: 10px 15px 12px; border-radius: 0 6px 6px 0; }
.pm-tip h3 { color: var(--pm-gold); font-size: .9rem; }
.pm-tip p { margin-top: 3px; }
.pm-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; justify-content: space-between; margin-top: 15px; }
.pm-layout .btn { appearance: none; color: var(--pm-ink); background: #292d2a; border: 1px solid #52544b; border-radius: 6px; padding: .49rem .75rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.pm-layout .btn:not(:disabled):hover { border-color: var(--pm-gold); color: var(--pm-gold); }
.pm-steps span, .pm-tanks #pick-lead { font-size: .87rem; color: var(--pm-muted); }
.pm-tanks #pick-lead { margin: 6px 0 12px; }
.pm-picks, .pm-garage { padding: 0; margin: 0; list-style: none; }
.pm-picks li { padding: 13px 0; border-top: 1px solid var(--pm-border); }
.pm-picks li div { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pm-picks li strong { color: var(--pm-ink); }
.pm-picks li p { margin-top: 4px; font-size: .89rem; color: var(--pm-muted); }
.pm-more > summary, .pm-method > summary { cursor: pointer; font-weight: 650; }
.pm-more { border-top: 1px solid var(--pm-border); margin-top: 8px; }
.pm-more > summary { color: var(--pm-gold); padding: 12px 0 2px; }
.pm-filter-controls { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
#garage-count { margin: 12px 0 6px; }
.pm-garage { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.pm-garage li { display: grid; gap: 3px; padding: 8px 0; border-top: 1px solid var(--pm-border); overflow-wrap: anywhere; }
.pm-garage strong { font-size: .87rem; }
#more-tanks { margin-top: 8px; }
.pm-method div { margin-top: 12px; }
.pm-method p, .pm-method li { font-size: .9rem; color: var(--pm-muted); }
.pm-method ul { padding-left: 1.2rem; }
.pm-method a, .pm-footer a { color: var(--pm-gold, #e5c482); }
.pm-footer { padding-block: 16px 32px; font-size: .9rem; }
@media (max-width: 780px) {
  .pm-layout { grid-template-columns: 1fr; }
  .pm-selector { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; }
  .pm-selector > :is(h2,.pm-selector-divider,.pm-hits), .pm-selector > .pm-field:first-of-type { grid-column: 1 / -1; }
}
@media(max-width: 440px) {
  .pm-layout .card { padding: 16px; }
  .pm-selector, .pm-garage { grid-template-columns: 1fr; }
  .pm-field { margin-top: 12px; }
}
.pm-mode { border: 0; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pm-mode legend { font-size: .85rem; color: var(--pm-muted); font-weight: 600; padding: 0; margin: 0 0 6px; }
.pm-mode label { font-size: .86rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--pm-border); padding: .4rem .6rem; border-radius: 6px; }
.pm-mode label:has(input:checked) { border-color: #a58851; background: #302a20; }
.pm-mode input { accent-color: var(--pm-gold); margin: 0; }
.pm-pick-with-image { display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: center; column-gap: 12px; }
.pm-pick-with-image > img { display: block; width: 82px; height: 62px; object-fit: contain; }
@media(max-width: 450px) {
  .pm-pick-with-image { grid-template-columns: 63px minmax(0,1fr); column-gap: 8px; }
  .pm-pick-with-image > img { width: 63px; height: 47px; }
}
.mission-hero .pm-hero-copy p { max-width: 48ch; }
.pm-selector, #mission-title { scroll-margin: 16px; }
.pm-campaign-note { border-top: 1px solid var(--pm-border); padding-top: 11px; margin-top: 17px; color: var(--pm-muted); font-size: .83rem; grid-column: 1/-1; }
.pm-campaign-note .btn { margin-top: 8px; }
.pm-method p + p { margin-top: .5rem; }
