




.app-main h1, .app-main h2, .app-main h3 { font-family: var(--pm-font-display); }

.app-main h1 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); margin-bottom: 0.5em; }
.app-main h2 { font-size: clamp(1.125rem, 1.8vw, 1.3125rem); margin: 1.75em 0 0.5em; }
.app-main h3 { font-size: 1.0625rem; margin: 1.25em 0 0.4em; }
.app-main .pm-card h2 { margin-top: 0; }
.app-main p { margin: 0 0 1em; }



body.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--pm-background);
}

.app-main {
  flex: 1;
  width: 100%;
  
  max-width: 90rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}
.app-main p, .app-main li { max-width: 75ch; }
.app-main form .pm-field { max-width: 36rem; }

.app-main form .pm-field { margin-bottom: 1.1rem; }

.stock-src { padding: 0.75rem 0; margin-bottom: 0 !important; border-bottom: 1px solid var(--pm-border); }
.stock-src:first-of-type { border-top: 1px solid var(--pm-border); }
.stock-src + .pm-field { margin-top: 1.1rem; }
.stock-src { gap: 0.3rem; }
.stock-src__opt { font-weight: 400 !important; color: var(--pm-text) !important; padding-left: 1.6rem; }


pre.pm-mono { white-space: pre-wrap; overflow-wrap: anywhere; }
.app-table td.nw { white-space: nowrap; }
.app-gap-top { margin-top: 0.875rem; }
.app-gap-top-lg { margin-top: 2rem; }



.app-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--pm-surface);
  border-bottom: 1px solid var(--pm-border);
}


.app-brand {
  --logo-src: url('/static/partmash-logo.png');
  
  --logo-h: 60px;
}

.app-nav {
  
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-basis: 100%;
  gap: 0.25rem;
  margin: 0 -0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--pm-border);
  font-size: 0.9375rem;
}
.app-nav__util {
  position: absolute;
  top: 0;
  right: 1rem;
  height: calc(var(--logo-h, 60px) + 1.5rem);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.app-nav__util > a,
.app-nav__util > .app-drop > summary { color: var(--pm-muted); font-weight: 600; }

.app-nav > a,
.app-nav__util > a,
.app-drop > summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--pm-radius-sm);
  color: var(--pm-navy-900);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.app-nav > a:hover,
.app-nav__util > a:hover,
.app-drop > summary:hover { background: var(--pm-blue-50); color: var(--pm-blue-700); }
.app-nav > a.is-current,
.app-nav__util > a.is-current,
.app-drop.is-current > summary { background: var(--pm-blue-100); color: var(--pm-blue-700); }
.app-drop { position: relative; }
.app-drop > summary { list-style: none; }
.app-drop > summary::-webkit-details-marker { display: none; }
.app-drop > summary::after {
  content: '';
  width: 0.4rem; height: 0.4rem;
  margin-left: 0.45rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.app-drop[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.app-drop__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 50;
  min-width: 13rem;
  padding: 0.4rem;
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-md);
  box-shadow: var(--pm-shadow-md);
}
.app-drop--account .app-drop__panel, .app-drop--ops .app-drop__panel { left: auto; right: 0; }
.app-drop__panel a, .app-drop__panel .app-linkish {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--pm-radius-sm);
  color: var(--pm-ink);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}
.app-drop__panel a:hover, .app-drop__panel .app-linkish:hover { background: var(--pm-blue-50); color: var(--pm-blue-700); }
.app-drop__panel a.is-current { color: var(--pm-blue-700); font-weight: 700; }
.app-drop__panel .app-inline { display: block; }
.app-who { color: var(--pm-muted) !important; font-size: 0.875rem; overflow-wrap: anywhere; border-bottom: 1px solid var(--pm-border); border-radius: 0 !important; margin-bottom: 0.25rem; }
.app-drop--ops > summary { color: var(--pm-muted); font-weight: 500; }


.app-menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.app-menu-button { display: none; }

@media (max-width: 960px) {
  .app-header { flex-wrap: wrap; row-gap: 0; }
  
  .app-header { padding: 0.6rem 0.75rem; column-gap: 0.75rem; }
  .app-brand { --logo-h: 46px; }
  .app-menu-button {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-left: auto;
    min-height: 2.75rem; padding: 0 0.8rem;
    border: 1px solid var(--pm-border); border-radius: var(--pm-radius-sm);
    background: var(--pm-surface); color: var(--pm-navy-900); font-weight: 700; cursor: pointer;
  }
  .app-menu-button::before {
    content: ''; width: 1.1rem; height: 0.8rem;
    background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
      linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
      linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
  }
  .app-menu-toggle:focus-visible + .app-menu-button { outline: 2px solid var(--pm-blue-600); outline-offset: 2px; }
  .app-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; margin: 0.5rem 0 0.25rem; gap: 0; padding-top: 0; border-top: 0; }
  .app-nav__util { position: static; height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .app-menu-toggle:checked ~ .app-nav { display: flex; }
  .app-nav > a, .app-nav__util > a, .app-drop > summary { min-height: 2.9rem; border-radius: 0; border-top: 1px solid var(--pm-border); padding: 0 0.25rem; }
  .app-drop > summary { justify-content: space-between; }
  .app-drop__panel { position: static; box-shadow: none; border: 0; padding: 0 0 0.5rem 0.75rem; min-width: 0; }
}
.app-inline { display: inline; margin: 0; }


.app-rowform {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0;
  flex-wrap: wrap;
}
.app-rowform .pm-select,
.app-rowform .pm-input {
  width: auto;
  min-width: 8.5rem;
  padding: 0.45rem 0.6rem;
}

.app-rowform .pm-input { flex: 1 1 16rem; max-width: 26rem; }


.app-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.app-linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--pm-blue-700);
  text-decoration: underline;
  cursor: pointer;
}



.app-footer {
  border-top: 1px solid var(--pm-border);
  background: var(--pm-surface);
  font-size: 0.875rem;
  color: var(--pm-muted);
}

.app-footer__inner {
  max-width: 90rem; margin: 0 auto; padding: 1.25rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem;
}
.app-footer__owner { margin: 0; order: 1; }
.app-footer__owner strong { color: var(--pm-ink); font-weight: 600; }
.app-footer__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; order: 2; }
.app-footer__links a { color: var(--pm-ink); text-decoration: none; font-weight: 500; }
.app-footer__links a:hover, .app-footer__links a:focus-visible { color: var(--pm-blue-700); text-decoration: underline; }
@media (max-width: 640px) {
  .app-footer__inner { flex-direction: column; text-align: center; padding: 1rem 1rem 1.5rem; }
  .app-footer__links { order: 0; justify-content: center; gap: 0 0.25rem; }
  .app-footer__links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem; }
  .app-footer__owner { font-size: 0.8125rem; line-height: 1.5; }
}



.app-hint {
  display: block;
  font-weight: 400;
  color: var(--pm-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.app-radio {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 600;
  color: var(--pm-ink);
}
.app-radio input { margin-top: 0.35rem; }



.app-pill {
  display: inline-block;
  white-space: nowrap;
  padding: 0.05rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid currentColor;
  vertical-align: middle;
}
.app-pill--danger { color: var(--pm-danger); background: var(--pm-danger-bg); }
.app-pill--warning { color: var(--pm-warning); background: var(--pm-warning-bg); }
.app-pill--muted { color: var(--pm-muted); background: var(--pm-background-strong); }
.app-pill--success { color: var(--pm-success); background: var(--pm-success-bg); }



.app-scroll { overflow-x: auto; }

.app-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
  background: var(--pm-surface);
}
.app-table th,
.app-table td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--pm-border);
}
.app-table th {
  font-weight: 600;
  color: var(--pm-muted);
  white-space: nowrap;
}

.app-table td.num,
.app-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}



.app-error {
  border-left: 3px solid var(--pm-danger);
  background: var(--pm-danger-bg);
  color: var(--pm-ink);
  padding: 0.7rem 1rem;
  border-radius: 0 var(--pm-radius-sm) var(--pm-radius-sm) 0;
  margin-bottom: 1.25rem;
}

.app-alt { color: var(--pm-muted); font-size: 0.9375rem; }



:focus-visible {
  outline: 2px solid var(--pm-blue-600);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


.rep-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}
.rep-card {
  border: 1px solid var(--pm-border);
  border-top: 3px solid var(--pm-border);
  border-radius: var(--pm-radius-sm);
  background: var(--pm-surface);
  padding: 0.85rem 0.9rem;
}
.rep-card__n {
  font-size: 1.5rem; font-weight: 650; line-height: 1.1;
  font-family: var(--pm-font-mono);
  font-variant-numeric: tabular-nums;
}
.rep-card__label { font-weight: 600; margin-top: 0.15rem; }
.rep-card__sub { color: var(--pm-muted); font-size: 0.8125rem; margin-top: 0.1rem; }

.rep-card--red    { border-top-color: var(--pm-danger); }
.rep-card--yellow { border-top-color: var(--pm-warning); }
.rep-card--grey   { border-top-color: var(--pm-muted); }
.rep-card--ok     { border-top-color: var(--pm-success); }
.rep-card--over   { border-top-color: var(--pm-blue-700); }

.rep-run { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 1rem; }
.rep-run .app-hint { margin: 0; }

.rep-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.25rem 0 0.75rem; }
.rep-tab {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--pm-ink);
  background: var(--pm-surface);
  font-size: 0.875rem;
}
.rep-tab:hover { border-color: var(--pm-blue-700); }
.rep-tab--on { background: var(--pm-blue-700); border-color: var(--pm-blue-700); color: #fff; }


.rep-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-sm);
  background: var(--pm-surface);
}
.rep-filter .pm-select {
  width: auto;
  min-width: 9rem;
  max-width: 22rem;
  padding: 0.4rem 0.6rem;
}

.rep-filter .app-hint { margin: 0 0 0 auto; }

.rep-filter .rep-search { width: 13rem; max-width: 100%; padding: 0.4rem 0.6rem; }
@media (max-width: 40rem) { .rep-filter .rep-search { width: 100%; } }

.rep-pager { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin: 0.5rem 0; }
.rep-page {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--pm-ink);
  background: var(--pm-surface);
  font-size: 0.875rem;
}
.rep-page:hover { border-color: var(--pm-blue-700); }

.rep-page--off { opacity: 0.45; }

.rep-page--on {
  background: var(--pm-blue-700);
  border-color: var(--pm-blue-700);
  color: #fff;
  font-weight: 600;
}

.rep-page--gap { border-color: transparent; background: none; padding-left: 0.2rem; padding-right: 0.2rem; }
.rep-pager .app-hint { margin: 0 0.3rem; }

.rep-table { font-size: 0.875rem; }
.rep-table code { font-size: 0.8125rem; }


.rep-legend {
  border-left: 4px solid var(--pm-success);
  margin-bottom: 1rem;
}

.rep-applied { background: var(--pm-success-bg); }
.rep-applied td { border-top-color: var(--pm-success); }

.rep-num {
  text-align: right;
  font-family: var(--pm-font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rep-under { color: var(--pm-danger); font-weight: 650; }
.rep-title { max-width: 34rem; min-width: 14rem; overflow-wrap: anywhere; }

.app-more { display: inline; }
.app-more > summary { display: inline; cursor: pointer; color: var(--pm-blue-700); list-style: none; font-size: 0.8125rem; }
.app-more > summary::-webkit-details-marker { display: none; }
.app-more[open] { display: block; margin-top: 0.25rem; }

.rep-notes h3 { margin-top: 1.25em; }
.rep-notes ul { margin: 0 0 0.75em; padding-left: 1.2em; }
.rep-notes li { margin: 0.15em 0; }


.pm-button--small {
  padding: 0.2rem 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.3;
}


.rep-nofix { color: var(--pm-muted); font-size: 0.8125rem; white-space: nowrap; }


.rep-code {
  width: 7rem;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rep-code::placeholder {
  text-transform: none;
  font-family: inherit;
  font-style: italic;
  opacity: 0.65;
}


.pm-panel {
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-md);
  background: var(--pm-surface);
  box-shadow: var(--pm-shadow-sm);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  margin-block: 1.25rem;
}
.pm-panel > :first-child { margin-top: 0; }
.pm-panel > :last-child { margin-bottom: 0; }

.pm-panel h2 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}


.app-lede {
  max-width: 62ch;
  color: var(--pm-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}


.pm-choice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-sm);
  margin-bottom: 0.4rem;
  cursor: pointer;
}
.pm-choice:hover { border-color: var(--pm-blue-100); }
.pm-choice input { margin-top: 0.2rem; }


.pm-faq {
  border-top: 1px solid var(--pm-border);
  padding: 0.75rem 0;
}
.pm-faq:first-of-type { border-top: 0; padding-top: 0; }
.pm-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--pm-ink);
  
  padding: 0.15rem 0;
}
.pm-faq summary:hover { color: var(--pm-blue-700); }
.pm-faq p {
  margin: 0.5rem 0 0;
  max-width: 68ch;
  color: var(--pm-text);
  line-height: 1.6;
}
.pm-faq[open] summary { margin-bottom: 0.15rem; }


@media (max-width: 900px) {
  .app-main table:not(.app-table--stack) { display: block; max-width: 100%; overflow-x: auto; }
}

.app-table--cards thead {
    
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .app-table--cards, .app-table--cards tbody, .app-table--cards tr, .app-table--cards td {
    display: block;
    width: auto;
  }
  .app-table--cards tr {
    background: var(--pm-surface);
    border: 1px solid var(--pm-border);
    border-radius: var(--pm-radius-md);
    box-shadow: var(--pm-shadow-sm);
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.75rem;
  }
  .app-table--cards tr:last-child { margin-bottom: 0; }
  .app-table--cards, .app-table--cards tbody { background: transparent; border: 0; box-shadow: none; }
  .app-scroll:has(.app-table--cards) { overflow: visible; }
  
  .app-table--cards td {
    display: grid;
    
    grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: baseline;
    overflow-wrap: anywhere;
    border: 0;
    padding: 0.3rem 0;
    white-space: normal !important;
    text-align: left !important;
    max-width: none !important;
    width: auto !important;
  }
  .app-table--cards td:empty, .app-table--cards td[data-label=""]:not(:has(*)) { display: none; }
  
  .app-table--cards td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pm-muted);
  }
  
  .app-table--cards td[data-label=""], .app-table--cards td:not([data-label]) { display: block; padding-top: 0.5rem; }
  .app-table--cards td[data-label=""]::before, .app-table--cards td:not([data-label])::before { content: none; }
  
  .app-table--cards td:first-child { display: block; font-size: 1.0625rem; font-weight: 600; color: var(--pm-ink); padding-bottom: 0.4rem; border-bottom: 1px solid var(--pm-border); margin-bottom: 0.3rem; }
  .app-table--cards td:first-child::before { content: none; }
  .app-table--cards form { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0.4rem 0.2rem 0; }
  .app-table--cards .pm-button { white-space: nowrap; }
  .app-table--cards td { overflow-wrap: anywhere; }
@media (min-width: 641px) {
  
  .app-table--cards tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0.75rem; align-items: start; }
  .app-table--cards tr { margin-bottom: 0; }
}
@media (max-width: 640px) {
  
  .rep-cards { grid-template-columns: 1fr 1fr; }
}



.pm-button.is-busy,
.pm-button.is-busy:hover {
  
  cursor: progress;
  opacity: 0.72;
}


.pm-button.is-busy::before {
  content: '';
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.45em;
  vertical-align: -0.05em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pm-spin 0.7s linear infinite;
}

@keyframes pm-spin { to { transform: rotate(360deg); } }


@media (prefers-reduced-motion: reduce) {
  .pm-button.is-busy::before { animation: none; }
}


.app-veil {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(244, 247, 251, 0.6);
  cursor: progress;
}
.app-veil__box {
  max-width: 22rem;
  padding: 1rem 1.25rem;
  border-radius: var(--pm-radius-sm);
  background: var(--pm-surface);
  box-shadow: 0 8px 30px rgba(15, 30, 60, 0.18);
  font-weight: 600;
  text-align: center;
}
.app-veil__box::before {
  content: '';
  display: block;
  width: 1.6rem;
  height: 1.6rem;
  margin: 0 auto 0.6rem;
  border: 3px solid var(--pm-muted);
  border-right-color: transparent;
  border-radius: 50%;
  animation: pm-spin 0.7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .app-veil__box::before { animation: none; }
}

.app-busy {
  display: inline-block;
  margin-left: 0.6rem;
  font-size: 0.875rem;
  color: var(--pm-muted);
}


.app-rename { margin: 0.35rem 0 0; }
.app-rename > summary {
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--pm-muted);
  width: fit-content;
}
.app-rename > summary:hover { color: var(--pm-ink); }
.app-rename > * { margin-top: 0.4rem; }


a.rep-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
a.rep-card:hover {
  box-shadow: 0 2px 10px rgb(16 42 76 / 0.10);
  transform: translateY(-1px);
}

a.rep-card--on {
  outline: 2px solid var(--pm-blue-500);
  outline-offset: -2px;
  box-shadow: 0 2px 10px rgb(16 42 76 / 0.10);
}
a.rep-card:focus-visible { outline: 3px solid var(--pm-blue-500); outline-offset: 2px; }


@media (min-width: 1100px) {
  .rep-table { table-layout: auto; }
  
  .rep-table--report .rep-title { width: 42%; }
  .rep-table td, .rep-table th { padding-top: 0.45rem; padding-bottom: 0.45rem; }
}




.app-steps { margin: 0.5rem 0 0.5rem 1.1rem; padding: 0; }
.app-steps li { margin: 0.3rem 0; }


.app-sheet {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  white-space: pre;
  overflow-x: auto;
}


.app-figure { margin: 0.75rem 0 0; }
.app-figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius-sm);
  display: block;
}
.app-figure figcaption { margin-top: 0.35rem; }


.app-choice { margin-top: 0.6rem; }
.app-choice > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--pm-blue-700);
  width: fit-content;
}
.app-choice > summary:hover { text-decoration: underline; }
.app-choice[open] > summary { margin-bottom: 0.5rem; }


.app-page-help { margin: -0.25rem 0 1.25rem; color: var(--pm-muted); font-size: 0.95rem; }
.app-page-help a { white-space: nowrap; margin-left: 0.35rem; }
.help { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 1.5rem; align-items: start; }
.help > * { min-width: 0; }
.help-toc { position: sticky; top: 1rem; font-size: 0.9rem; }
.help-toc ol { padding-left: 1.2rem; margin: 0.5rem 0; }
.help-toc li { margin: 0.2rem 0; }
.help-body h2 { margin-top: 2.25rem; padding-top: 0.75rem; border-top: 1px solid var(--pm-border); scroll-margin-top: 1rem; }
.help-body h3, .help-body h4 { margin-top: 1.5rem; scroll-margin-top: 1rem; }
.help-body blockquote { margin: 1rem 0; padding: 0.6rem 1rem; border-left: 4px solid var(--pm-blue-700); background: var(--pm-blue-50); }
.help-body pre { overflow-x: auto; padding: 0.75rem 1rem; background: var(--pm-blue-50); border-radius: 6px; font-size: 0.85rem; }
.help-table { overflow-x: auto; margin: 0.75rem 0 1.25rem; }

@media (max-width: 1000px) {
  .help { grid-template-columns: 1fr; }
  .help-toc { position: static; }
}

.help-body .app-table--cards tbody { display: block !important; }
.help-body .app-table--cards tr { margin-bottom: 0.75rem !important; }
.help-body code { overflow-wrap: anywhere; }
.help-toc__fold > summary { cursor: pointer; }


.dash-glance { margin: 1rem 0 1.5rem; }
.dash-glance__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.dash-glance__head h2 { margin: 0; }
.dash-glance__head .pm-button { margin-left: auto; }
.dash-tiles { margin: 0.75rem 0 0; }
.dash-tile { display: block; color: var(--pm-ink); text-decoration: none; transition: box-shadow var(--pm-transition), transform var(--pm-transition); }
.dash-tile:hover { box-shadow: var(--pm-shadow-md); transform: translateY(-1px); }
.dash-fold { margin: 1rem 0; }
.dash-fold > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.dash-fold > summary::-webkit-details-marker { display: none; }
.dash-fold > summary .app-linkish { margin-left: auto; color: var(--pm-blue-700); }
.dash-used { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: 0.9rem; font-weight: 600; }
.dash-used__box {
  display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem;
  border-radius: 0.3rem; font-size: 0.8rem; font-weight: 800; line-height: 1;
}
.dash-used--on .dash-used__box { background: var(--pm-success); color: #fff; }
.dash-used--off { color: var(--pm-muted); font-weight: 500; }
.dash-used--off .dash-used__box { background: var(--pm-background-strong); color: var(--pm-muted); border: 1px solid var(--pm-border); }
@media (max-width: 640px) {
  .dash-tiles { grid-template-columns: 1fr 1fr; }
  .dash-glance__head .pm-button { margin-left: 0; width: 100%; justify-content: center; }
}



.auth-card { max-width: 27rem; margin: 1.5rem auto 2rem; padding: 2rem 1.75rem; box-shadow: var(--pm-shadow-md); }
.auth-card h1 { margin-bottom: 0.35rem; }
.auth-card__lead { color: var(--pm-muted); margin-bottom: 1.5rem !important; }
.auth-card form .pm-field { max-width: none; }
.auth-card .pm-button--primary { width: 100%; justify-content: center; min-height: 3rem; }
.auth-card__foot { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--pm-border); text-align: center; }
@media (max-width: 480px) {
  .auth-card { margin: 0.5rem 0 1.5rem; padding: 1.5rem 1.1rem; }
}


.pct-box { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }


.fwd-ok { margin: 1rem 0 0; padding: 0.6rem 0.9rem; border-radius: var(--pm-radius-sm); color: var(--pm-success); background: var(--pm-success-bg); font-weight: 500; }

.fwd-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.fwd-addr .pm-mono { overflow-wrap: anywhere; word-break: break-all; min-width: 0; }



.rep-tab { display: inline-flex; align-items: center; gap: 0.4rem; }
.rep-tab__n { font-variant-numeric: tabular-nums; font-size: 0.75rem; font-weight: 600; padding: 0.05rem 0.45rem;
  border-radius: 999px; background: var(--pm-background); color: var(--pm-ink); }
.rep-tab--on .rep-tab__n { background: rgb(255 255 255 / 0.22); color: #fff; }

.rep-sku code { white-space: nowrap; }

.rep-act { min-width: 10.5rem; }
.rep-act .pm-button { white-space: nowrap; }
.rep-fix > summary { white-space: nowrap; font-size: 0.8125rem; }
.rep-done { color: var(--pm-success); font-weight: 600; white-space: nowrap; }
.rep-legend > p { margin: 0 0 0.4rem; }
.rep-legend > ul { margin: 0 0 0.4rem; }
.rep-legend > p:last-child { margin-bottom: 0; }

.app-main .app-page-help { max-width: none; }
  
  .app-table--cards td > .app-pill { justify-self: start; }
  
  .app-table--cards .rep-sku code { white-space: normal; overflow-wrap: anywhere; }
  
  .rep-table--report.app-table--cards td:first-child { display: inline-block; border: 0; margin: 0; padding: 0 0.4rem 0 0; }
  .rep-table--report.app-table--cards td.rep-sku { display: inline; padding: 0; font-size: 1.0625rem; font-weight: 600; color: var(--pm-ink); }
  .rep-table--report.app-table--cards td.rep-sku::before { content: none; }
  .rep-table--report.app-table--cards td.rep-sku code { display: inline; font-size: inherit; font-weight: inherit; }
  .rep-table--report.app-table--cards td.rep-sku .cell-v { display: inline; }
  .rep-table--report.app-table--cards td.rep-sku + td { border-top: 1px solid var(--pm-border); margin-top: 0.4rem; padding-top: 0.5rem; }
  
  .app-table--cards .app-linkish { padding: 0.6rem 0.25rem; }


.app-main li, .app-main p { overflow-wrap: break-word; }
.cell-v { min-width: 0; }

.cust-find { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.cust-find .pm-input { flex: 1 1 14rem; max-width: 24rem; }
.cust-find .cust-count { margin-left: auto; }

.app-table--cards .app-pill { white-space: normal; max-width: 100%; border-radius: 0.6rem; line-height: 1.35; padding-top: 0.25rem; padding-bottom: 0.25rem; }

.demo-link { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.demo-link .pm-mono { overflow-wrap: anywhere; }



.vt-pair { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.vt-pair > select.pm-input { flex: 1 1 12rem; width: auto; }
.vt-money { display: inline-flex; align-items: center; gap: 0.35rem; flex: 0 1 9rem; }
.vt-money[hidden] { display: none; }
.vt-money > span { color: var(--pm-muted, #5b6b80); font-weight: 600; }
.vt-money .pm-input { width: 100%; min-width: 0; }
.vt-time { flex: 0 0 9rem; width: 9rem; }
.pm-field .vt-sub { display: block; margin-top: 0.7rem; font-weight: 500; font-size: 0.9rem; }
.pm-field .app-hint { margin: 0.35rem 0 0; }
.vt-table td { vertical-align: top; }
.vt-table th { white-space: normal; }
.vt-table td:nth-child(5) { min-width: 8.5rem; }
.vt-table td:nth-child(3) { min-width: 7.5rem; }
.vt-table td.vt-src { min-width: 10rem; overflow-wrap: anywhere; }
.vt-table td:last-child { white-space: nowrap; }


.rep-keep { margin-left: 0.35rem; }
.rep-keep .app-linkish { font-size: 0.85rem; }
.rep-kept { font-weight: 600; white-space: nowrap; }
.vt-check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; }
.vt-check input { margin-top: 0.3rem; }


.app-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 0.95rem; margin: 0; }
