.supply-view {
  display: grid;
  gap: 1.125rem;
  min-width: 0;
  padding-bottom: 2rem;
}
.supply-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  flex-wrap: wrap;
  padding: .25rem .25rem .65rem;
}
.supply-header h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.supply-header .muted,
.supply-section-label {
  margin: .4rem 0 0;
}
.supply-section-label {
  color: var(--accent);
  margin: 0 0 .45rem;
  font-size: .8rem;
  font-weight: 700;
}
.supply-actions,
.supply-filters,
.supply-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
}
.supply-actions > * { min-width: 0; }
.supply-panel { min-width: 0; }
.supply-panel > h2 {
  margin: 0 0 .8rem;
  color: var(--ink);
  font-size: 1.12rem;
}
.supply-panel > h3,
.supply-mutation-form > h3 {
  margin: 1.15rem 0 .45rem;
  font-size: .95rem;
}
.supply-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.supply-profile-banner {
  border-left: .27rem solid var(--accent);
  display: grid;
  gap: .75rem;
}
.supply-profile-banner p,
.supply-profile-banner ul { margin-block: 0; }
.supply-filters {
  align-items: end;
  padding-bottom: .9rem;
}
.supply-filters label,
.supply-mutation-form label {
  display: grid;
  gap: .32rem;
  font-weight: 650;
  font-size: .85rem;
}
.supply-filters input,
.supply-filters select,
.supply-mutation-form input,
.supply-mutation-form textarea,
.supply-mutation-form select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 2.5rem;
  border-radius: .45rem;
  font: inherit;
  padding: .48rem .65rem;
  width: 100%;
}
.supply-filters input { min-width: min(100%, 15rem); }
.supply-filters select { min-width: 9rem; }
.supply-filters input::placeholder { color: var(--muted); }
.supply-reset { background: var(--surface); }
.supply-results { font-size: .85rem; margin: .2rem 0 .6rem; }
.supply-results:empty { display: none; }
.supply-link { color: var(--accent); line-height: 1.5; font-weight: 650; }
.supply-link:hover { text-decoration-thickness: .14em; }
.supply-link:focus-visible,
.supply-view summary:focus-visible,
.supply-dialog summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: .15em;
}
.supply-table { width: 100%; }
.supply-table table { width: 100%; min-width: 39rem; border-collapse: collapse; }
.supply-table th,
.supply-table td { padding: .75rem .65rem; text-align: start; border-bottom: 1px solid var(--line); }
.supply-table th { background: var(--paper); color: var(--muted); font-weight: 650; white-space: nowrap; }
.supply-table tr:last-child td { border-bottom: 0; }
.supply-table td:last-child { white-space: nowrap; }
.supply-table td small { display: block; margin-top: .18rem; }
.supply-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .75rem; margin: 0; }
.supply-stat dt,
.supply-facts dt { color: var(--muted); font-size: .85rem; }
.supply-stat dd {
  margin: .2rem 0 0;
  color: var(--accent-strong);
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
}
.supply-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: .8rem;
  margin: 0;
}
.supply-facts dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.supply-badge {
  display: inline-flex;
  align-items: center;
  padding: .19rem .55rem;
  border-radius: 2rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
  font-size: .77rem;
  white-space: nowrap;
}
.supply-badge.is-good { background: var(--accent-soft); color: var(--accent-strong); }
.supply-badge.is-info { background: #e2edf1; color: #265769; }
.supply-badge.is-warn { background: var(--warning-soft); color: var(--warning); }
.supply-body-text { margin: .35rem 0 0; line-height: 1.75; white-space: pre-wrap; }
.supply-list { margin: .35rem 0 0; padding-inline-start: 1.25em; line-height: 1.75; }
.supply-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  min-height: 8rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.supply-empty p { margin: 0 0 .35rem; }
.supply-pagination { justify-content: end; padding-top: .8rem; color: var(--muted); font-size: .83rem; }
.supply-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.supply-dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: min(57rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 3rem);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1rem 3rem #172f3e2b;
}
.supply-dialog::backdrop { background: #12232cd0; }
.supply-dialog-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  z-index: 1;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: .9rem 1.15rem;
}
.supply-dialog-header h2 { margin: 0; font-size: 1.28rem; }
.supply-dialog-close {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.25rem;
  min-height: 2.25rem;
  border-radius: 50%;
  font-size: 1.2rem;
}
.supply-dialog-body { padding: 1.1rem; }
.supply-dialog-body > div > .supply-table { margin-top: .75rem; }
.supply-point-detail,
.supply-player,
.supply-mutation-form { display: grid; gap: .75rem; }
.supply-player {
  margin-block: .3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: .8rem;
}
.supply-player-status { margin: 0; color: var(--accent-strong); font-weight: 700; }
.supply-player-detail {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .85rem;
  color: var(--muted);
  font-size: .83rem;
}
.supply-video-stage:has(video[hidden]) { display: none; }
.supply-video-stage video {
  display: block;
  width: 100%;
  max-height: 54vh;
  background: #172f3e;
  border-radius: .4rem;
}
.supply-player [hidden] { display: none; }
.supply-mutation-form { margin-top: .65rem; }
.supply-mutation-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.supply-mutation-form h3 { margin: 0; }
.supply-mutation-form .button { justify-self: start; }
.supply-form-error { color: var(--danger); }
.supply-view summary,
.supply-dialog summary { cursor: pointer; color: var(--accent-strong); font-weight: 700; }
@media (max-width: 54rem) {
  .supply-profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 36rem) {
  .supply-mutation-form .form-grid { grid-template-columns: 1fr; }
  .supply-filters label { width: 100%; }
  .supply-dialog { max-height: calc(100dvh - 1rem); }
}
