/* Package presentation; geometry and content still use the shared window system. */
[data-window-owner="module:batmud-party-ui"] [data-window-element="party-summary"] {
  flex: 0 0 auto;
  padding: 2px 0 4px;
}

[data-window-owner="module:batmud-party-ui"] [data-window-element="party-grid"] {
  flex-shrink: 0;
}

[data-window-owner="module:batmud-party-ui"] [data-window-element^="slot-"][data-window-element$="-position"] {
  height: 14px;
  flex: 0 0 14px;
  line-height: 14px;
  padding-left: 2px;
  font-variant-numeric: tabular-nums;
}

[data-window-owner="module:batmud-party-ui"] .script-window-column[data-window-element^="member-"],
[data-window-owner="module:batmud-party-ui"] [data-window-element^="slot-"][data-window-element$="-empty"] {
  min-height: 132px;
  border: 1px solid rgba(148, 163, 170, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

[data-window-owner="module:batmud-party-ui"] [data-window-element^="slot-"][data-window-element$="-empty"] {
  display: grid;
  place-items: center;
  border-style: dashed;
  opacity: 0.5;
  font-size: 11px;
}

[data-window-owner="module:batmud-party-ui"] [data-window-element$="-name"],
[data-window-owner="module:batmud-party-ui"] [data-window-element$="-status"] {
  flex: 0 0 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

[data-window-owner="module:batmud-party-ui"] [data-window-element$="-name"] {
  height: 18px;
  line-height: 18px;
}

[data-window-owner="module:batmud-party-ui"] [data-window-element$="-status"] {
  height: 14px;
  line-height: 14px;
}

[data-window-owner="module:batmud-party-ui"] [data-window-element$="-hp"],
[data-window-owner="module:batmud-party-ui"] [data-window-element$="-sp"],
[data-window-owner="module:batmud-party-ui"] [data-window-element$="-ep"] {
  flex: 0 0 23px;
  height: 23px;
  min-height: 23px;
  overflow: hidden;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

[data-window-owner="module:batmud-party-ui"] .script-window-gauge {
  background: #0b1116;
  background: color-mix(in srgb, currentColor 9%, #0b1116);
  border-color: color-mix(in srgb, currentColor 28%, transparent);
  transition: color 180ms linear, background-color 180ms linear, border-color 180ms linear;
}

[data-window-owner="module:batmud-party-ui"] .script-window-gauge-fill {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), transparent), currentColor;
  opacity: 0.36;
  transition: width 180ms ease-out;
}

[data-window-owner="module:batmud-party-ui"] .script-window-gauge-label {
  padding: 0 3px;
  line-height: 21px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  [data-window-owner="module:batmud-party-ui"] .script-window-gauge,
  [data-window-owner="module:batmud-party-ui"] .script-window-gauge-fill {
    transition: none;
  }
}
