:root {
  color-scheme: dark;
  --ink: #f4f8ff;
  --muted: #9aa8ba;
  --line: #203147;
  --panel: #0f1722;
  --field: #121d2b;
  --green: #0077ff;
  --green-dark: #005fd1;
  --blue: #0077ff;
  --red: #ff4d5f;
  --amber: #f4a62a;
  --bg: #05080d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 10%, rgba(0, 119, 255, 0.22), transparent 28%),
    radial-gradient(circle at 92% 24%, rgba(0, 119, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #020407 0%, #07101c 48%, #020407 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 10% 18%, rgba(0, 119, 255, 0.32), transparent 22%),
    radial-gradient(circle at 86% 20%, rgba(0, 119, 255, 0.22), transparent 18%),
    linear-gradient(135deg, rgba(0, 119, 255, 0.36) 0 8%, transparent 8% 62%, rgba(0, 119, 255, 0.32) 62% 70%, transparent 70%),
    linear-gradient(rgba(1, 5, 10, 0.82), rgba(1, 5, 10, 0.94)),
    url("https://images.unsplash.com/photo-1519861531473-9200262188bf?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.auth-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(0, 119, 255, 0.35);
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 750;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.25;
  font-weight: 750;
}

h3 {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

.intro {
  margin-bottom: 0;
  color: var(--muted);
}

.club-logo {
  display: block;
  object-fit: contain;
  border-radius: 999px;
  background: #05080d;
  box-shadow: 0 0 0 1px rgba(0, 119, 255, 0.42), 0 14px 38px rgba(0, 119, 255, 0.22);
}

.auth-logo {
  width: 118px;
  height: 118px;
  margin-bottom: 18px;
}

.tabs,
.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.tab,
.segment,
.nav-item {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.tab,
.segment {
  min-height: 40px;
}

.tab.active,
.segment.active,
.nav-item.active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 119, 255, 0.3), 0 1px 10px rgba(0, 119, 255, 0.12);
}

.auth-form,
.dialog-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #09111d;
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

select[multiple] {
  min-height: 132px;
  padding: 6px;
}

select[multiple] option {
  padding: 7px 8px;
}

.primary-button,
.ghost-button {
  min-height: 44px;
  border-radius: 7px;
  padding: 0 16px;
  font-size: 0.88rem;
  font-weight: 700;
}

.primary-button {
  border: 0;
  background: var(--green);
  color: #fff;
}

.primary-button:hover {
  background: var(--green-dark);
}

.primary-button.compact {
  min-height: 38px;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #09111d;
  color: var(--ink);
}

.danger-button {
  min-height: 38px;
  border: 1px solid rgba(255, 77, 95, 0.45);
  border-radius: 7px;
  padding: 0 14px;
  background: rgba(255, 77, 95, 0.12);
  color: var(--red);
  cursor: pointer;
}

.danger-button.compact {
  min-height: 34px;
  font-size: 0.84rem;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-weight: 700;
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

.connection-status {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.connection-status.online {
  color: var(--green-dark);
}

.connection-status.offline {
  color: var(--amber);
}

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #070c13;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.nav-list {
  display: grid;
  align-content: start;
  gap: 5px;
}

.nav-item {
  min-height: 38px;
  padding: 0 11px;
  font-size: 0.88rem;
  font-weight: 650;
  text-align: left;
}

.mobile-profile-nav {
  display: none;
}

.content {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar h1 {
  font-size: 1.7rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.season-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.season-picker select {
  width: auto;
  min-width: 132px;
  padding: 8px 10px;
}

.toolbar {
  margin-bottom: 16px;
}

.toolbar .segmented {
  max-width: 430px;
  grid-template-columns: repeat(3, 1fr);
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.date-box {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-weight: 800;
}

.date-box strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.badge {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(0, 119, 255, 0.14);
  color: #73b7ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.match {
  background: rgba(0, 119, 255, 0.18);
  color: #73b7ff;
}

.badge.absent {
  background: rgba(255, 77, 95, 0.16);
  color: var(--red);
}

.badge.late {
  background: rgba(244, 166, 42, 0.16);
  color: var(--amber);
}

.badge.pending {
  background: #172233;
  color: var(--muted);
}

.badge.present {
  background: rgba(0, 119, 255, 0.14);
  color: #73b7ff;
}

.group-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  border: 1px solid color-mix(in srgb, var(--group-color), #ffffff 65%);
  border-radius: 999px;
  padding: 3px 9px;
  background: color-mix(in srgb, var(--group-color), #ffffff 88%);
  color: var(--group-color);
  font-size: 0.76rem;
  font-weight: 900;
  vertical-align: middle;
}

.group-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--group-color);
}

.next-event-panel {
  margin-bottom: 18px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.next-event-panel h2 {
  margin-bottom: 8px;
}

.availability-pills {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 900;
}

.availability-pill strong {
  color: inherit;
}

.availability-pill.present {
  background: rgba(0, 119, 255, 0.18);
  color: #73b7ff;
}

.availability-pill.late {
  background: rgba(244, 166, 42, 0.18);
  color: var(--amber);
}

.availability-pill.absent {
  background: rgba(255, 77, 95, 0.18);
  color: var(--red);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
}

.quick-status {
  min-width: 84px;
  min-height: 38px;
  border: 1px solid rgba(0, 119, 255, 0.42);
  border-radius: 7px;
  background: rgba(0, 119, 255, 0.1);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  padding: 0 10px;
  text-align: center;
}

.quick-status:hover {
  border-color: #73b7ff;
  background: rgba(0, 119, 255, 0.18);
}

.quick-status.active.present {
  border-color: rgba(115, 183, 255, 0.8);
  background: rgba(0, 119, 255, 0.28);
  color: #9ccfff;
}

.quick-status.active.late {
  border-color: rgba(244, 166, 42, 0.8);
  background: rgba(244, 166, 42, 0.24);
  color: var(--amber);
}

.quick-status.active.absent {
  border-color: rgba(255, 77, 95, 0.8);
  background: rgba(255, 77, 95, 0.22);
  color: var(--red);
}

.event-main h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.event-main p {
  margin: 0;
  color: var(--muted);
}

.event-actions {
  min-width: 180px;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
}

.metric span {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 750;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.attendance-overview {
  display: grid;
  gap: 10px;
}

.attendance-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.attendance-card.needs-attention {
  border-color: rgba(255, 77, 95, 0.38);
}

.attendance-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.attendance-card header div:first-child {
  display: grid;
  gap: 4px;
}

.attendance-card header span,
.attendance-score span {
  color: var(--muted);
  font-size: 0.86rem;
}

.attendance-score {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.attendance-score strong {
  font-size: 1.45rem;
}

.attendance-counts,
.attendance-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-pill.issue {
  border-color: rgba(255, 77, 95, 0.38);
  color: var(--red);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.task-list,
.poll-list,
.invite-list,
.document-list,
.stats-grid {
  display: grid;
  gap: 12px;
}

.task-card,
.poll-card,
.invite-card,
.document-card,
.stat-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.task-card header,
.poll-card header,
.invite-card header,
.document-card,
.stat-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.document-card {
  align-items: center;
}

.document-card strong {
  display: block;
  margin-bottom: 4px;
}

.document-card p {
  margin: 0;
  color: var(--muted);
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.task-card h3,
.poll-card h3,
.invite-card h3,
.stat-card h3 {
  margin: 0 0 4px;
}

.task-card p,
.poll-card p,
.invite-card p,
.stat-card p {
  margin: 0;
  color: var(--muted);
}

.invite-form {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.profile-card header {
  display: grid;
  gap: 4px;
}

.profile-card h3,
.profile-card p {
  margin: 0;
}

.profile-card p {
  color: var(--muted);
}

.consent-check {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  gap: 10px;
  line-height: 1.45;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.consent-check input {
  flex: 0 0 auto;
  margin-top: 3px;
  width: auto;
}

.consent-check span {
  color: var(--muted);
  display: block;
  flex: 1 1 auto;
  font-size: 0.9rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.form-message {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}

.birthday-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 166, 42, 0.45);
  border-radius: 8px;
  background: rgba(244, 166, 42, 0.12);
  color: var(--ink);
}

.birthday-banner strong {
  color: var(--amber);
}

.poll-options {
  display: grid;
  gap: 10px;
}

.poll-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #09111d;
}

.poll-result {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.poll-voters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.poll-empty {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.poll-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--field);
}

.poll-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-panel {
  height: min(720px, calc(100dvh - 180px));
  min-height: 520px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.chat-notification-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 119, 255, 0.08);
}

.chat-notification-bar span {
  color: var(--muted);
  font-size: 0.82rem;
}

.chat-mode-bar,
.chat-channel-bar {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #070c13;
}

.chat-mode-bar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chat-channel-bar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.private-chat-bar {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #070c13;
}

.mode-tab,
.channel-tab {
  position: relative;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #09111d;
  color: var(--muted);
  font-weight: 800;
}

.unread-dot {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.nav-item .unread-dot {
  vertical-align: middle;
}

.unread-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  width: min(360px, calc(100% - 36px));
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.unread-toast span {
  color: var(--muted);
}

.mode-tab.active,
.channel-tab.active {
  border-color: var(--green);
  background: rgba(0, 119, 255, 0.16);
  color: #a7d2ff;
}

.channel-tab:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.chat-list {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.chat-message {
  max-width: min(620px, 90%);
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--field);
}

.chat-message.mine {
  justify-self: end;
  background: rgba(0, 119, 255, 0.16);
}

.chat-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-message strong {
  font-size: 0.82rem;
}

.message-delete-button {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 77, 95, 0.36);
  border-radius: 999px;
  background: rgba(255, 77, 95, 0.12);
  color: var(--red);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.message-delete-button:hover {
  border-color: rgba(255, 77, 95, 0.72);
  background: rgba(255, 77, 95, 0.2);
}

.chat-message span {
  color: var(--muted);
  font-size: 0.76rem;
}

.chat-message p {
  margin: 0;
}

.chat-form {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #070c13;
}

.chat-form input {
  height: 44px;
  min-height: 44px;
  align-self: center;
}

.chat-form button {
  align-self: center;
}

.stat-row {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr auto;
  align-items: center;
  gap: 12px;
}

.meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--field);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 0 12px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.88rem;
}

.heading-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.team-status-list {
  display: grid;
  gap: 12px;
}

.team-status-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.team-status-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.status-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.team-status-header h3 {
  margin: 0 0 4px;
}

.team-status-header p {
  margin: 0;
  color: var(--muted);
}

.response-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.response-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
  border-radius: 7px;
  background: var(--field);
}

.response-column h4 {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.player-pill {
  overflow-wrap: anywhere;
  border-radius: 999px;
  padding: 6px 9px;
  background: #09111d;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
}

.player-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.player-card[open] {
  border-color: rgba(0, 119, 255, 0.42);
}

.player-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.player-summary::-webkit-details-marker {
  display: none;
}

.player-summary small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.player-summary-main {
  min-width: 0;
}

.member-status {
  align-self: start;
  white-space: nowrap;
}

.player-group-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
  gap: 6px 10px;
  margin-top: 10px;
}

.player-group-list .group-badge {
  margin: 0;
}

.player-card strong {
  display: block;
  margin-bottom: 4px;
}

.player-card span {
  color: var(--muted);
}

.player-card .group-badge,
.invite-card .group-badge {
  margin: 0;
}

.invite-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.invite-link-row input {
  min-width: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.player-edit {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.player-admin-actions {
  display: grid;
  gap: 8px;
}

.player-edit label {
  font-size: 0.78rem;
}

.player-edit select {
  padding: 8px 9px;
}

.group-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.group-checks legend {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.group-checks label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.group-checks input {
  width: auto;
}

.injury-privacy-note {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-left: 3px solid #087f8c;
  background: rgba(8, 127, 140, 0.1);
  color: var(--muted);
  font-size: 0.86rem;
}

.injury-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.injury-metric {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--status-color), var(--line) 60%);
  border-radius: 6px;
  background: color-mix(in srgb, var(--status-color), transparent 88%);
}

.injury-metric::before,
.injury-status-cell::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--status-color);
}

.injury-metric strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.injury-metric span {
  color: var(--muted);
  font-size: 0.76rem;
}

.injury-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.injury-roster-header,
.injury-player-summary {
  display: grid;
  grid-template-columns: minmax(170px, 2fr) minmax(150px, 1.2fr) minmax(240px, 2.2fr) minmax(90px, 0.7fr);
  column-gap: 20px;
  align-items: center;
  width: 100%;
}

.injury-roster-header > *,
.injury-player-summary > * {
  min-width: 0;
  justify-self: start;
  text-align: left;
}

.injury-roster-header {
  padding: 8px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.injury-player-row {
  border-bottom: 1px solid var(--line);
}

.injury-player-row:last-child {
  border-bottom: 0;
}

.injury-player-summary {
  min-height: 48px;
  padding: 9px 13px;
  cursor: pointer;
  list-style: none;
}

.injury-player-summary::-webkit-details-marker {
  display: none;
}

.injury-player-summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

.injury-player-name {
  color: var(--ink);
  font-weight: 700;
}

.injury-status-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
}

.injury-current-note {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.injury-row-date {
  width: 100%;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.injury-player-body {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #0a111b;
}

.injury-current-card {
  display: grid;
  gap: 10px;
  padding-left: 12px;
  border-left: 4px solid var(--status-color);
}

.injury-current-card h3,
.injury-current-card p {
  margin: 0;
}

.muted-text {
  color: var(--muted);
}

.injury-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.injury-details p {
  width: 100%;
  white-space: pre-line;
}

.injury-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.injury-history {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.injury-history summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.injury-history-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.injury-history-item {
  display: grid;
  grid-template-columns: 12px minmax(120px, 1fr) minmax(160px, 2fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
}

.injury-history-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--status-color);
}

.injury-empty {
  padding: 14px;
  color: var(--muted);
}

.wide-dialog {
  width: min(860px, calc(100% - 32px));
}

.injury-season-list {
  max-height: min(62vh, 620px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.injury-season-item {
  display: grid;
  grid-template-columns: 10px minmax(180px, 1.5fr) minmax(130px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.injury-season-item:last-child {
  border-bottom: 0;
}

.injury-season-item > div {
  display: grid;
  gap: 2px;
}

.injury-season-item strong {
  color: var(--ink);
}

.injury-conversation {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.injury-conversation summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.injury-conversation-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.injury-messages {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.injury-message {
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.035);
}

.injury-message > div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.injury-message span {
  color: var(--muted);
  font-size: 0.75rem;
}

.injury-message p {
  margin-top: 4px;
  white-space: pre-line;
}

.injury-question-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.readiness-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 119, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 119, 255, 0.1);
}

.readiness-banner span,
.readiness-card p {
  margin: 0;
  color: var(--muted);
}

.readiness-player-panel,
.readiness-dashboard {
  display: grid;
  gap: 12px;
}

.readiness-card,
.readiness-table,
.readiness-alerts,
.readiness-week {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.readiness-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.readiness-card header,
.readiness-table-head,
.readiness-row summary {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) minmax(120px, 0.8fr) minmax(150px, 1fr);
  gap: 14px;
  align-items: center;
}

.readiness-card header {
  grid-template-columns: 1fr auto;
}

.readiness-card h3,
.readiness-week h3 {
  margin: 0;
}

.readiness-table {
  overflow: hidden;
}

.readiness-table-head {
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.readiness-row {
  border-bottom: 1px solid var(--line);
}

.readiness-row:last-child {
  border-bottom: 0;
}

.readiness-row summary {
  min-height: 48px;
  padding: 10px 13px;
  cursor: pointer;
  list-style: none;
}

.readiness-row summary::-webkit-details-marker {
  display: none;
}

.readiness-score {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  font-weight: 850;
}

.readiness-score::before,
.readiness-mini::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
}

.readiness-score.good::before,
.readiness-mini.good::before {
  background: #45d483;
}

.readiness-score.medium::before,
.readiness-mini.medium::before {
  background: #f4c542;
}

.readiness-score.low::before,
.readiness-mini.low::before {
  background: #ff4d5f;
}

.readiness-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 12px 13px 14px;
  border-top: 1px solid var(--line);
  background: #0a111b;
  color: var(--muted);
  font-size: 0.84rem;
}

.readiness-detail p {
  grid-column: 1 / -1;
  margin: 0;
}

.readiness-alerts {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-left: 3px solid var(--amber);
}

.readiness-alerts p {
  margin: 0;
}

.readiness-week {
  display: grid;
  gap: 12px;
  padding: 14px;
  overflow-x: auto;
}

.readiness-week-grid {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) repeat(7, minmax(72px, 1fr));
  gap: 1px;
  min-width: 760px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.readiness-week-grid > * {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px;
  background: var(--panel);
}

.readiness-mini {
  gap: 6px;
  justify-content: center;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.readiness-mini:not(:disabled):hover {
  background: #102033;
}

.readiness-mini:disabled {
  color: var(--muted);
  cursor: default;
}

.readiness-day-detail {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a111b;
}

.readiness-day-detail header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.readiness-day-detail h4,
.readiness-day-detail p {
  margin: 0;
}

.readiness-day-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.readiness-question-grid {
  display: grid;
  gap: 12px;
}

.readiness-question {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 119, 255, 0.08), transparent 42%),
    #0a111b;
}

.readiness-question legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 850;
}

.readiness-question legend span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  border-radius: 999px;
  background: rgba(0, 119, 255, 0.18);
  color: #a7d2ff;
  font-size: 0.76rem;
}

.readiness-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.readiness-choice {
  --choice-color: var(--muted);
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  min-height: 88px;
  padding: 10px 7px;
  border: 1px solid color-mix(in srgb, var(--choice-color), var(--line) 60%);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--choice-color), transparent 84%), transparent 72%),
    #09111d;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.readiness-choice.score-1 {
  --choice-color: #ff4d5f;
}

.readiness-choice.score-2 {
  --choice-color: #ff7a45;
}

.readiness-choice.score-3 {
  --choice-color: #f4c542;
}

.readiness-choice.score-4 {
  --choice-color: #45d483;
}

.readiness-choice.score-5 {
  --choice-color: #4c8dff;
}

.readiness-choice:hover {
  transform: translateY(-1px);
  border-color: var(--choice-color);
}

.readiness-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.readiness-choice:has(input:checked) {
  border-color: var(--choice-color);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--choice-color), transparent 72%), color-mix(in srgb, var(--choice-color), transparent 92%)),
    #09111d;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--choice-color), transparent 25%), 0 10px 28px color-mix(in srgb, var(--choice-color), transparent 84%);
}

.readiness-choice span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--choice-color), transparent 78%);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.readiness-choice small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.readiness-prefill-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(0, 119, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 119, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

dialog {
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

dialog::backdrop {
  background: rgba(16, 26, 22, 0.55);
}

.dialog-form {
  padding: 22px;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-row legend {
  width: 100%;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.choice-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.choice-row input {
  width: auto;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 980px) {
  body {
    font-size: 13px;
  }

  .dashboard {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .sidebar {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 20;
    height: 74px;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: none;
  }

  .brand-block {
    display: none;
  }

  .nav-list {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4px;
    width: 100%;
    max-width: 620px;
    height: 86px;
    margin: 0 auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 8px 10px;
    border: 1px solid rgba(0, 119, 255, 0.38);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(8, 16, 28, 0.96), rgba(0, 4, 12, 0.98));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    pointer-events: auto;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    position: relative;
    min-width: 76px;
    min-height: 68px;
    height: 68px;
    max-height: 68px;
    flex: 0 0 auto;
    align-self: center;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: transparent;
    color: rgba(244, 248, 255, 0.72);
    text-align: center;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: none;
  }

  .nav-item::before {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto;
    background: currentColor;
    opacity: 0.92;
    -webkit-mask: var(--nav-icon) center / contain no-repeat;
    mask: var(--nav-icon) center / contain no-repeat;
  }

  .nav-item[data-view="schedule"] {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
  }

  .nav-item[data-view="attendance"] {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='m3 6 1 1 2-2'/%3E%3Cpath d='m3 12 1 1 2-2'/%3E%3Cpath d='m3 18 1 1 2-2'/%3E%3C/svg%3E");
  }

  .nav-item[data-view="tasks"],
  .nav-item[data-view="documents"] {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M7 9h10'/%3E%3Cpath d='M7 13h6'/%3E%3C/svg%3E");
  }

  .nav-item[data-view="polls"],
  .nav-item[data-view="stats"] {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M8 19V9'/%3E%3Cpath d='M12 19V7'/%3E%3Cpath d='M16 19v-5'/%3E%3Cpath d='M20 19V11'/%3E%3C/svg%3E");
  }

  .nav-item[data-view="chat"] {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 8.8 8.8 0 0 1-4-.9L3 20l1.3-4.1a8 8 0 1 1 16.7-4.4Z'/%3E%3Cpath d='M8 10h8'/%3E%3Cpath d='M8 14h5'/%3E%3C/svg%3E");
  }

  .nav-item[data-view="injuries"] {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s8-4.5 8-11a5 5 0 0 0-8-4 5 5 0 0 0-8 4c0 6.5 8 11 8 11Z'/%3E%3Cpath d='M12 8v6'/%3E%3Cpath d='M9 11h6'/%3E%3C/svg%3E");
  }

  .nav-item[data-view="readiness"] {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13a8 8 0 1 1 16 0'/%3E%3Cpath d='M12 13l4-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E");
  }

  .nav-item[data-view="team"],
  .nav-item[data-view="invites"],
  .nav-item[data-view="profile"] {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
  }

  .nav-label {
    display: block;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-item.active {
    height: 68px;
    max-height: 68px;
    border-color: rgba(0, 119, 255, 0.38);
    background: linear-gradient(180deg, rgba(0, 119, 255, 0.3), rgba(0, 82, 180, 0.2));
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(115, 190, 255, 0.08), 0 8px 20px rgba(0, 119, 255, 0.2);
  }

  .nav-item .unread-dot {
    position: absolute;
    top: 8px;
    right: 12px;
    margin-left: 0;
    background: #e31b3c;
    color: #fff;
  }

  #logout-button {
    display: none;
  }

  .mobile-profile-nav {
    display: none;
  }

  .content {
    padding: 14px 14px calc(116px + env(safe-area-inset-bottom));
  }

  .event-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
  }

  .topbar > div:first-child {
    min-width: 0;
  }

  .topbar h1 {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .topbar .eyebrow {
    font-size: 0.68rem;
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .season-picker {
    font-size: 0;
  }

  .season-picker select {
    min-width: 116px;
    padding: 8px;
  }

  #profile-button {
    display: inline-flex;
    min-width: 76px;
    justify-content: center;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    min-width: 0;
  }

  .consent-check {
    gap: 8px;
  }

  .consent-check span {
    font-size: 0.84rem;
  }

  .event-actions {
    min-width: 0;
    justify-items: stretch;
  }

  .summary-grid,
  .injury-summary,
  .field-row,
  .profile-grid,
  .response-grid {
    grid-template-columns: 1fr;
  }

  .injury-question-form,
  .injury-card > header {
    display: grid;
  }

  .injury-roster-header {
    display: none;
  }

  .injury-player-summary {
    grid-template-columns: minmax(120px, 1fr) minmax(145px, 1.4fr);
    gap: 5px 10px;
  }

  .injury-current-note {
    grid-column: 1 / -1;
  }

  .injury-row-date {
    grid-column: 1 / -1;
  }

  .injury-history-item {
    grid-template-columns: 10px 1fr;
  }

  .injury-history-item span:nth-child(n + 3) {
    grid-column: 2;
  }

  .injury-season-item {
    grid-template-columns: 10px 1fr;
  }

  .injury-season-item > span:nth-child(n + 3) {
    grid-column: 2;
  }

  .readiness-banner,
  .readiness-card header,
  .readiness-detail,
  .readiness-day-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .readiness-table-head {
    display: grid;
    grid-template-columns: minmax(118px, 1.1fr) minmax(92px, 0.75fr) minmax(120px, 1fr);
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.66rem;
  }

  .readiness-row summary {
    display: grid;
    grid-template-columns: minmax(118px, 1.1fr) minmax(92px, 0.75fr) minmax(120px, 1fr);
    gap: 8px;
    min-height: 44px;
    padding: 9px 10px;
  }

  .readiness-row summary > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    font-weight: 850;
  }

  .readiness-row summary > span:nth-child(2) {
    justify-self: start;
  }

  .readiness-row summary > span:nth-child(3) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink);
  }

  .readiness-scale {
    grid-template-columns: 1fr;
  }

  .readiness-choice {
    grid-template-columns: auto 34px 1fr;
    align-items: center;
    justify-items: start;
    min-height: 54px;
    text-align: left;
  }

  .section-heading,
  .team-status-header,
  .status-header-actions,
  .task-card header,
  .poll-card header,
  .invite-card header,
  .poll-option,
  .stat-card header,
  .stat-row,
  .chat-form,
  .chat-mode-bar,
  .chat-channel-bar {
    display: grid;
  }

  .chat-notification-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-panel {
    height: calc(100dvh - 175px);
    min-height: 500px;
  }

  .chat-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .heading-actions {
    display: flex;
    justify-content: flex-start;
  }

  .document-card {
    align-items: stretch;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .player-card {
    padding: 12px;
  }

  .player-summary {
    grid-template-columns: 1fr;
  }

  .player-summary-groups {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .brand-block h2 {
    display: none;
  }

  .content {
    padding: 12px 10px 18px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 1.3rem;
  }
}
