

.stadium-chat-notice {
  margin:0; padding:8px 10px; color:var(--ui-text,#f3eee3);
  background:var(--ui-accent-soft,#26354a); border-inline-start:3px solid var(--ui-accent,#d39e58);
  overflow-wrap:anywhere; max-height:5.5em; overflow:auto; font-size:12px;
}

.stadium-chat-notice[hidden] {display:none}

.stadium-chat-notice strong {margin-inline-end:4px}

body:has(dialog[open], .stadium-chat-handle[aria-expanded=true]) .attendance-launch {display:none}


/* source: stadium-chat.css */
.stadium-chat {
  /* The card shell's generic aside is a framed panel. The season drawer is not. */
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  align-self: auto;
  --chat-width: min(320px, 75vw);
  position: fixed;
  z-index: 5;
  inset-block-start: var(--chat-top, clamp(56px, 15%, 120px));
  inset-inline-end: 0;
  color: var(--ui-text);
}

.stadium-chat-handle {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 32px;
  min-height: 44px;
  padding: 4px 5px;
  writing-mode: vertical-rl;
  font-size: 11px;
  background: var(--ui-surface);
  border-color: var(--ui-line-strong);
  border-radius: 6px 0 0 6px;
}

.stadium-friends-handle { top: 48px; }

.stadium-chat-dot {
  position: absolute;
  z-index: 1;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ee4358;
  box-shadow: 0 0 0 1px var(--ui-surface);
  pointer-events: none;
}

.stadium-chat-guest {
  display: inline-grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  margin-inline-end: .35em;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .8em;
}

.stadium-chat [hidden] { display: none !important; }

.stadium-chat-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  width: var(--chat-width);
  height: min(610px, 76vh);
  height: min(610px, 76dvh);
  max-height: var(--chat-height, calc(100dvh - clamp(56px, 15dvh, 120px) - 12px - env(safe-area-inset-bottom, 0px)));
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid var(--ui-line);
  border-radius: 6px 0 0 6px;
  box-shadow: 0 8px 24px #0005;
  animation: side-drawer-enter .2s ease-out both;
}

@media (prefers-reduced-motion: reduce) { .stadium-chat-panel { animation: none; }}

.stadium-chat-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ui-surface);
  opacity: var(--chat-opacity, 1);
}

.stadium-chat-heading, .stadium-chat-actions, .stadium-chat-compose, .stadium-chat-nickname, .stadium-chat-opacity {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stadium-chat-heading { grid-row: 1; justify-content: space-between; }

.stadium-chat-opacity { grid-row: 2; min-height: 34px; white-space: nowrap; font-size: 11px; color: var(--ui-text); }

.stadium-chat-opacity input { flex: 1; min-width: 0; padding: 0; }

.stadium-chat-opacity output { min-width: 4ch; text-align: end; }

.stadium-chat-nickname { grid-row: 3; }

.stadium-chat button { min-height: 33px; padding: 4px 7px; font-size: 11px; white-space: nowrap; }

.stadium-chat button.stadium-chat-handle { min-height: 44px; padding: 4px 5px; }

.stadium-chat-label-compact { display: none; }

@media (max-width: 800px) {
  .stadium-chat button.stadium-chat-handle {
    display: grid;
    place-content: center;
    width: 10px;
    min-width: 10px;
    box-sizing: border-box;
    border-inline-end: 0;
    padding: 0;
    writing-mode: horizontal-tb;
    font: 600 9px/1.2 var(--ui-font-system);
    text-align: center;
  }

  .stadium-chat-label { display: none; }

  .stadium-chat-label-compact { display: grid; }}

.stadium-chat-info { grid-row: 4; color: var(--ui-text); font-size: 11px; }

.stadium-chat-info [data-chat-lineup-share] { margin-block-end: 4px; }

.stadium-chat-log { grid-row: 5; min-height: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; margin: 0 0 7px; padding: 0; }

.stadium-chat-log li { padding: 6px 1px; border-bottom: 1px solid var(--ui-line); overflow-wrap: anywhere; font-size: 12px; }

.stadium-chat-log b { margin-inline-end: 6px; color: var(--ui-accent-text); }

.stadium-chat-log button.stadium-chat-lineup-link {
  padding: 2px 0;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #245dae;
  color: light-dark(#124c9c, #86b9ff);
  font: inherit;
  font-weight: 700;
  white-space: normal;
  text-align: start;
}

.stadium-chat-lineup-link:hover { text-decoration: underline; }

.stadium-chat-compose { grid-row: 6; }

.stadium-chat input[type=text] { min-width: 0; flex: 1; width: 100%; box-sizing: border-box; font-size: 16px; }

body:has(.stadium-chat-handle[aria-expanded=true]) .quick-shift-right { z-index: 4; }


.stadium-chat-panel { grid-template-rows: repeat(5, auto) minmax(0, 1fr) auto; }

.stadium-chat-panel > .stadium-chat-notice { grid-row: 5; }

.stadium-chat-panel > .stadium-chat-log { grid-row: 6; }

.stadium-chat-footer { grid-row: 7; display: flex; flex-direction: column; min-inline-size: 0; gap: 5px; }

.stadium-chat-footer > button { inline-size: 100%; box-sizing: border-box; }
#stadiumChat .stadium-friends-handle{display:none!important}#stadiumChat{font-family:Ntreev;z-index:150}#stadiumChat button,#stadiumChat input{font-family:inherit}
