/* Install action on the public entry screen. */
.entry-install-button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid rgba(89, 243, 167, .22);
  background: rgba(10, 25, 17, .72);
  color: #b9d9c7;
  font-size: .64rem;
  font-weight: 800;
}

.entry-install-button:hover {
  border-color: rgba(89, 243, 167, .5);
  background: #102a1c;
  color: #fff;
}

.entry-install-button svg {
  width: 16px;
  color: var(--green-hot);
}

.entry-install-button.is-installed {
  border-color: var(--line);
  background: #0b1510;
  color: #6f7c75;
  cursor: default;
}

/* Mobile accessibility pass: the original visual system used desktop-scale
   micro type. These rules keep the compact look without dropping below a
   comfortably readable size on phones and small tablets. */
@media (max-width: 820px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    font-size: 16px;
    line-height: 1.5;
  }

  button,
  input,
  textarea,
  select {
    font-size: .82rem !important;
  }

  input,
  textarea,
  select {
    font-size: 1rem !important;
  }

  :where(.entry-view, .public-preview, .app-shell, .notification-drawer, .install-guide) p {
    font-size: .875rem !important;
    line-height: 1.55;
  }

  :where(.entry-view, .public-preview, .app-shell, .notification-drawer, .install-guide) small {
    font-size: .76rem !important;
    line-height: 1.4;
  }

  /* Entry screen */
  .brand b {
    font-size: .92rem !important;
  }

  .brand small {
    font-size: .66rem !important;
  }

  .eyebrow {
    font-size: .74rem !important;
  }

  .entry-copy h1 {
    font-size: clamp(3.7rem, 17vw, 5.7rem) !important;
  }

  .entry-lead {
    font-size: 1rem !important;
    line-height: 1.65;
  }

  .entry-action b {
    font-size: .9rem !important;
  }

  .entry-action small {
    font-size: .72rem !important;
  }

  .entry-note {
    font-size: .72rem !important;
  }

  .entry-install-button {
    min-height: 48px;
    font-size: .84rem !important;
  }

  .floating-card {
    min-width: 145px;
    padding: 13px 14px;
  }

  .floating-card small {
    font-size: .58rem !important;
  }

  .floating-card b {
    font-size: .72rem !important;
  }

  .floating-card > span,
  .floating-chat > span {
    font-size: .66rem !important;
  }

  .entry-footer {
    font-size: .6rem !important;
  }

  /* Shared member area */
  .app-topbar p,
  .event-card-top > span,
  .profile-card > header > span,
  .dashboard-card header small,
  .conversation-title p,
  .chat-context > section:first-child > small,
  .next-chat-event > small {
    font-size: .66rem !important;
  }

  .app-topbar h1 {
    font-size: 1.38rem !important;
  }

  .mobile-nav button span {
    font-size: .68rem !important;
  }

  .event-copy > small,
  .event-copy p,
  .profile-copy > small,
  .profile-copy p,
  .profile-copy > div span,
  .profile-card > footer,
  .schedule-list em,
  .chat-preview-card footer,
  .message header time,
  .message blockquote,
  .message footer button,
  .context-status small,
  .online-row small,
  .next-chat-event > div > span small,
  .placeholder-screen span,
  .user-popover header small {
    font-size: .7rem !important;
  }

  .dashboard-card header h2,
  .schedule-list span b,
  .chat-preview-card b,
  .conversation-title h2,
  .message header b,
  .chat-context h3,
  .online-row b,
  .next-chat-event > div > span b,
  .user-popover header b {
    font-size: .82rem !important;
  }

  .message p,
  .chat-context > section:first-child p,
  .message-composer textarea {
    font-size: .88rem !important;
  }

  .schedule-list time small {
    font-size: .58rem !important;
  }

  .schedule-list time b,
  .next-chat-event time b {
    font-size: 1.35rem !important;
  }

  .attendance-actions button,
  .placeholder-screen button,
  .next-chat-event button,
  .user-popover > button {
    font-size: .75rem !important;
  }

  /* Events, team, profile and settings use many compact labels. */
  :where(.events-screen, .team-screen, .profile-screen, .settings-screen) :where(p, small, label, li, dd, dt) {
    font-size: .78rem !important;
    line-height: 1.5;
  }

  :where(.events-screen, .team-screen, .profile-screen, .settings-screen) :where(button, a) {
    font-size: .8rem !important;
  }

  :where(.events-screen, .team-screen, .profile-screen, .settings-screen) b {
    font-size: .86rem !important;
  }

  :where(.events-screen, .team-screen, .profile-screen, .settings-screen) :where(em, time) {
    font-size: .74rem !important;
  }

  /* Manager workspaces */
  :where(.manager-screen, .manager-workspace, [class*="manager-"]) :where(p, small, label, li, dd, dt) {
    font-size: .76rem !important;
    line-height: 1.5;
  }

  :where(.manager-screen, .manager-workspace, [class*="manager-"]) :where(button, a) {
    font-size: .78rem !important;
  }

  :where(.manager-screen, .manager-workspace, [class*="manager-"]) b {
    font-size: .82rem !important;
  }

  :where(.manager-screen, .manager-workspace, [class*="manager-"]) :where(em, time) {
    font-size: .72rem !important;
  }

  .manager-event-row time b,
  .manager-roster-panel > header em {
    font-size: 1.15rem !important;
  }

  /* Public spectator mode */
  .public-app-header > nav button {
    font-size: .7rem !important;
  }

  .public-section-head p,
  .public-section-head > div:first-child > span,
  .public-next-match > p,
  .public-next-match > span,
  .public-next-match > small,
  .public-upcoming header p,
  .public-upcoming header span,
  .public-standings header p,
  .public-standings header span,
  .public-team-note,
  .public-club-card figcaption,
  .public-club-card section p,
  .public-club-card section span,
  .public-legal a,
  .public-legal span {
    font-size: .72rem !important;
  }

  .public-competition-tabs button,
  .public-team-filters button,
  .public-hero > div > button {
    font-size: .74rem !important;
  }

  .public-upcoming b,
  .public-next-match article b,
  .public-player-grid p,
  .public-social-grid strong,
  .public-social-grid em {
    font-size: .78rem !important;
  }

  .public-upcoming small,
  .public-upcoming em,
  .public-player-grid article > small,
  .public-social-grid small {
    font-size: .68rem !important;
  }

  .public-table-head,
  .public-standings [data-public-table-body] > div {
    font-size: .74rem !important;
  }

  .public-preview em {
    font-size: .72rem !important;
  }

  /* Drawers, install flow and status banners */
  .notification-drawer :where(p, small, span, time),
  .pwa-status-list :where(b, em),
  .connection-banner :where(b, small),
  .app-update-banner :where(b, small),
  .install-guide :where(p, li) {
    font-size: .72rem !important;
  }

  .notification-item b,
  .notification-drawer-head h2,
  .install-guide h2 {
    font-size: .9rem !important;
  }
}

@media (max-width: 430px) {
  .floating-card {
    min-width: 132px;
    padding: 11px 12px;
  }

  .floating-event {
    left: -4%;
  }

  .floating-chat {
    right: -4%;
  }
}
