/* Club dashboard: fixed landscape panels, with paginated records instead of scrolling. */
#public-home:has(#club-workspace.dashboard-open:not([hidden])) {
  grid-template-columns: 1fr;
  grid-template-rows: clamp(44px, 9vh, 80px) clamp(28px, 5vh, 44px) minmax(0, 1fr);
}
#public-home:has(#club-workspace.dashboard-open:not([hidden])) > .lobby-nav {
  grid-column: 1;
  grid-row: 2;
  flex-direction: row;
  display: flex;
  justify-content: center;
  padding: 0;
  gap: 4px;
  border: 0;
  border-bottom: 1px solid #20776a;
}
#public-home:has(#club-workspace.dashboard-open:not([hidden])) > .lobby-nav button {
  flex-direction: row;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 2px 20px;
  font-size: clamp(11px, 1.5vw, 19px);
  border-radius: 8px;
}
#public-home:has(#club-workspace.dashboard-open:not([hidden])) > .lobby-nav svg {
  width: 20px;
  height: 20px;
}
#club-workspace.dashboard-open {
  grid-column: 1;
  grid-row: 3;
  grid-template-rows: minmax(0, 1fr);
  padding: clamp(4px, 1vh, 12px);
  gap: 0;
}
#club-workspace.dashboard-open > .club-heading,
#club-workspace.dashboard-open > footer {
  display: none;
}
#club-dashboard {
  --cd-gold: #ffe194;
  --cd-line: #287e70;
  --cd-muted: #b5cfce;
  --cd-gap: clamp(4px, 1vh, 12px);
  font:
    400 clamp(10px, 1.65vh, 17px)/1.25 Arial,
    sans-serif;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--cd-gap);
  overflow: hidden;
}
#club-dashboard * {
  box-sizing: border-box;
}
#club-dashboard [hidden] {
  display: none !important;
}
#club-dashboard button,
#club-dashboard .cd-export,
.cd-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  min-height: 28px;
  padding: 0.45em 0.75em;
  font-family: inherit;
  font-weight: 700;
  font-size: inherit;
  border: 1px solid #70b9a1;
  border-radius: 8px;
  color: #f6f5e9;
  background: linear-gradient(#075942, #002b28);
  cursor: pointer;
  text-decoration: none;
}
#club-dashboard button:hover:not(:disabled) {
  border-color: var(--cd-gold);
  filter: brightness(1.15);
}
#club-dashboard button:disabled {
  opacity: 0.5;
  cursor: default;
}
#club-dashboard button:focus-visible,
.cd-dialog :focus-visible {
  outline: 2px solid #fff1a8;
  outline-offset: 2px;
}
#club-dashboard .cd-gold,
#club-dashboard button[aria-current='page'],
.cd-dialog button[type='submit'] {
  color: #201a04;
  border-color: #ffe6a1;
  background: linear-gradient(#fff1ad, #f6c947 55%, #bc7d14);
  box-shadow:
    inset 0 0 0 1px #bd8a25,
    0 0 8px #ffcf4c30;
}
#club-dashboard .cd-icon,
.cd-dialog .cd-icon {
  width: 1.3em;
  height: 1.3em;
  flex: 0 0 1.3em;
  vertical-align: middle;
}
#club-dashboard .cd-art {
  display: block;
  width: 100%;
  height: 100%;
}
#club-dashboard .cd-header {
  flex: 0 0 clamp(48px, 11vh, 110px);
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.3em 0.7em;
  border: 1px solid var(--cd-line);
  border-radius: 12px;
  background: linear-gradient(110deg, #004638, #001a23 65%);
  min-width: 0;
}
.cd-crest {
  height: 100%;
  aspect-ratio: 1;
}
.cd-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cd-identity {
  flex: 1;
  min-width: 0;
}
#public-home #club-dashboard .cd-header h2 {
  font-size: clamp(15px, 2.7vh, 30px);
  color: #fff7dc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-identity > span {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.2em;
}
#club-dashboard [data-action='copy'] {
  border: 0;
  background: transparent;
  padding: 2px;
}
.cd-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border: 1px solid #d0b45f;
  border-radius: 6px;
  padding: 0.25em 0.55em;
  color: #ffe298;
  text-transform: capitalize;
  background: #0f3029;
  white-space: nowrap;
}
.cd-header-count {
  display: grid;
  gap: 0.6em;
  padding-inline: 1em;
  border-inline: 1px solid #608e78;
}
#cd-online {
  color: #a6f4bc;
}
#club-dashboard .cd-header [data-action='tiers'] {
  background: #092831;
  border-color: #849ca2;
}
.cd-header [data-action='tiers'] .cd-art {
  width: 3em;
  height: 3em;
}
.cd-header small {
  display: block;
  font-size: 0.75em;
  margin-top: 0.35em;
  color: #d1e7e0;
}
.cd-tabs {
  display: flex;
  gap: var(--cd-gap);
  flex: 0 0 auto;
}
#club-dashboard .cd-tabs button {
  flex: 1;
  padding: 0.5em 0.2em;
  font-size: 1.1em;
}
#cd-status:empty {
  display: none;
}
#cd-status {
  flex: 0 0 auto;
  color: #ffe194;
}
#cd-status.error {
  color: #ffb5a6;
}
#cd-content {
  display: flex;
  gap: var(--cd-gap);
  min-height: 0;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
#club-dashboard[data-view='Race Room'] #cd-content {
  flex-direction: column;
}
.cd-section-body {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: var(--cd-gap);
  overflow: hidden;
}
#club-dashboard .cd-section-nav {
  display: flex;
  flex-direction: column;
  flex: 0 0 16%;
  min-width: 105px;
  gap: 0.2em;
  border: 1px solid var(--cd-line);
  border-radius: 10px;
  padding: 0.4em;
  background: linear-gradient(160deg, #002f30, #00151e);
}
#club-dashboard .cd-section-nav button {
  justify-content: start;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 0.65em 0.5em;
}
#club-dashboard .cd-section-nav button[aria-current='page'] {
  background: linear-gradient(#526c26, #003c2d);
  color: #fff0b0;
  border: 1px solid #ffda64;
}
#club-dashboard .cd-title {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  gap: 0.5em;
}
#public-home #club-dashboard .cd-title h2 {
  font-size: clamp(15px, 3vh, 30px);
  color: var(--cd-gold);
}
.cd-card {
  min-width: 0;
  min-height: 0;
  padding: clamp(5px, 1.3vh, 15px);
  border: 1px solid var(--cd-line);
  border-radius: 12px;
  background: linear-gradient(135deg, #003e32, #001d24 85%);
  overflow: hidden;
}
#club-dashboard .cd-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.2em;
  color: #fff0c3;
  margin: 0 0 0.6em;
}
#club-dashboard .cd-card p {
  color: #d2e6e0;
  margin: 0.4em 0;
}
#club-dashboard .cd-fill {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.cd-records {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.cd-table {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.cd-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.94em;
}
.cd-table th {
  background: #0b5047;
  color: #e4efe8;
  text-align: left;
}
.cd-table td,
.cd-table th {
  padding: 0.5em;
  border-bottom: 1px solid #386260;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cd-table td {
  height: 2.9em;
}
.cd-table tbody tr:nth-child(even) {
  background: #83b1b010;
}
.cd-table td:last-child {
  overflow: visible;
}
#club-dashboard .cd-table button {
  font-size: 0.85em;
  min-height: 25px;
  padding: 0.3em 0.45em;
  margin-right: 0.25em;
}
.cd-member-name {
  display: flex;
  align-items: center;
  gap: 0.5em;
  overflow: hidden;
}
#club-dashboard .cd-member-name .cd-art {
  width: 2em;
  height: 2em;
  flex-shrink: 0;
}
.cd-pager {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0.5em;
  flex: 0 0 auto;
  font-size: 0.85em;
}
.cd-pager > span:first-child {
  margin-right: auto;
}
#club-dashboard .cd-pager button {
  min-width: 28px;
  padding: 0.1em 0.5em;
  font-size: 1.2em;
}
.cd-online {
  color: #85f3a7;
}
.cd-offline {
  color: #b5cfce;
}
.cd-online::before,
.cd-offline::before {
  content: '●';
  margin-right: 0.4em;
}
.cd-positive {
  color: #74f2ad;
}
.cd-negative {
  color: #ff9b8c;
}
.cd-filters {
  display: flex;
  align-items: end;
  gap: 0.6em;
  flex: 0 0 auto;
}
#club-dashboard label {
  display: grid;
  gap: 0.2em;
  min-width: 0;
  font-size: 0.9em;
}
#club-dashboard input:not([type='checkbox']),
#club-dashboard select,
#club-dashboard textarea,
.cd-dialog input:not([type='checkbox']),
.cd-dialog select,
.cd-dialog textarea {
  width: 100%;
  min-width: 0;
  min-height: 27px;
  border: 1px solid #829e9f;
  border-radius: 6px;
  padding: 0.4em 0.6em;
  color: #fff;
  background: #001d29;
  font: inherit;
}
.cd-filters label {
  flex: 1;
}
.cd-filters > span {
  align-self: center;
}
.cd-stats {
  display: flex;
  gap: var(--cd-gap);
  flex: 0 0 auto;
}
.cd-report-stats .cd-card {
  flex: 1;
  padding: 0.6em;
}
#club-dashboard .cd-report-stats h3 {
  font-size: 0.9em;
  margin-bottom: 0.2em;
  color: var(--cd-muted);
}
.cd-report-stats strong {
  font-size: 1.6em;
}
.cd-chip-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--cd-gap);
  flex: 0 0 27%;
  min-width: 0;
}
.cd-chip-sidebar .cd-stats {
  display: block;
}
.cd-balance {
  display: flex;
  gap: 0.6em;
  align-items: center;
  border-top: 1px solid #286359;
  padding: 0.65em 0;
}
#club-dashboard .cd-balance .cd-art {
  width: 3em;
  height: 3em;
}
.cd-balance strong {
  display: block;
  font-size: 1.7em;
}
.cd-chip-sidebar button {
  width: 100%;
  margin: 0.3em 0;
}
#club-dashboard[data-view='Club Chips'] .cd-section-body > .cd-section-nav {
  flex: 0 0 auto;
  flex-direction: row;
  border: 0;
  padding: 0;
}
.cd-room-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
  gap: var(--cd-gap);
  flex: 1;
  min-height: 0;
}
.cd-stack {
  display: flex;
  flex-direction: column;
  gap: var(--cd-gap);
  min-height: 0;
  min-width: 0;
}
.cd-stack .cd-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}
.cd-stack button {
  margin-top: 0.4em;
}
.cd-race {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 0.6em;
  border-color: #48d3c4;
  padding: 1.2em;
}
.cd-race-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cd-race-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #001927bb, transparent 50%, #001d1bd9),
    linear-gradient(90deg, transparent, #001a2099);
}
.cd-race-art img,
#club-dashboard .cd-race-art > .cd-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cd-race-heading,
.cd-race-live,
.cd-race-bottom {
  position: relative;
  z-index: 1;
}
#public-home #club-dashboard .cd-race-heading h2 {
  font-size: clamp(20px, 4vh, 40px);
  color: #fff;
}
.cd-race-live {
  align-self: center;
  text-align: center;
  padding: 0.7em;
  border: 1px solid #dbc56b;
  border-radius: 12px;
  background: #001e29d9;
}
#club-dashboard .cd-race-live h3 {
  display: block;
  color: #fff1ba;
  font-size: 1.7em;
}
#club-dashboard #cd-live {
  color: #bcffd9;
  font-weight: 700;
  line-height: 1.5;
}
.cd-presence {
  display: flex;
  justify-content: space-around;
  gap: 0.5em;
  margin-top: 0.5em;
}
.cd-presence span {
  display: block;
  font-size: 0.9em;
}
.cd-presence strong {
  display: block;
  font-size: 1.6em;
}
.cd-race-bottom {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.cd-personal-balance {
  display: flex;
  gap: 0.5em;
  align-items: center;
  flex: 1;
}
#club-dashboard .cd-personal-balance .cd-art {
  width: 3.2em;
  height: 3.2em;
}
.cd-personal-balance strong {
  display: block;
  font-size: 1.8em;
}
#club-dashboard .cd-race-bottom button {
  font-size: 1.3em;
  padding: 0.6em 1em;
}
.cd-announcement {
  display: flex;
  align-items: center;
  gap: 1em;
  flex: 0 0 auto;
}
.cd-announcement strong {
  flex-shrink: 0;
  color: var(--cd-gold);
}
.cd-announcement p {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cd-manage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--cd-gap);
  flex: 1;
  min-height: 0;
}
.cd-manage-grid > .cd-card {
  display: flex;
  flex-direction: column;
}
#cd-settings {
  flex: 1;
  min-height: 0;
}
#cd-settings fieldset {
  display: grid;
  height: 100%;
  min-height: 0;
  border: 0;
  padding: 0;
  gap: 0.5em;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(45px, 1fr) auto minmax(36px, auto) auto;
}
.cd-brand-preview {
  grid-column: 1/-1;
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #6eaa8c;
  border-radius: 8px;
  display: flex;
  justify-content: end;
  align-items: end;
  padding: 0.5em;
  gap: 0.5em;
}
.cd-brand-preview > img,
.cd-brand-preview > .cd-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cd-logo-preview {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1em;
  width: 25%;
}
.cd-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#club-dashboard .cd-upload {
  position: relative;
  border: 1px solid #eed287;
  padding: 0.4em;
  border-radius: 6px;
  background: #002b29e8;
  cursor: pointer;
}
.cd-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
#cd-settings label:has([name='name']) {
  grid-column: 1/-1;
  grid-template-columns: auto 1fr;
  align-items: center;
}
#club-dashboard #cd-settings textarea {
  resize: none;
  height: 3.5em;
}
#club-dashboard .cd-approval {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.cd-approval input {
  accent-color: #05c87b;
}
.cd-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  flex: 1;
}
#club-dashboard .cd-share .cd-art {
  width: 6em;
  height: 6em;
}
.cd-full-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cd-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--cd-gap);
  flex: 1;
  min-height: 0;
}
.cd-tier-grid .cd-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  padding: 0.7em;
  position: relative;
}
#club-dashboard .cd-tier-grid .cd-art {
  width: 6em;
  height: 6em;
  min-height: 0;
  flex: 1;
}
#club-dashboard .cd-tier-grid h3 {
  font-size: 1.6em;
  margin: 0;
}
#club-dashboard .cd-tier-grid p {
  align-self: stretch;
  display: flex;
  gap: 0.4em;
  margin: 0.15em 0;
}
.cd-tier-grid button {
  width: 100%;
  margin-top: auto;
}
.cd-tier-status {
  color: #90ffc1;
  font-weight: bold;
}
.cd-current-tier {
  border: 2px solid #abef9f;
  box-shadow: inset 0 0 20px #64d97b30;
}
.cd-tier-bronze {
  background: linear-gradient(130deg, #49301e, #16211c);
  border-color: #af7d46;
}
.cd-tier-gold {
  background: linear-gradient(130deg, #494021, #15221b);
  border-color: #edca63;
}
.cd-tier-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}
#club-dashboard footer {
  font-size: 0.8em;
  color: #a9c8c6;
  flex: 0 0 auto;
  text-align: right;
}
.cd-dialog {
  max-width: 800px;
  width: 80vw;
  max-height: 90dvh;
  box-sizing: border-box;
  padding: 20px;
  background: #002b2c;
  color: white;
  border: 1px solid #f0d888;
  border-radius: 12px;
  font:
    14px Arial,
    sans-serif;
}
.cd-dialog::backdrop {
  background: #00101cce;
}
.cd-dialog form {
  display: grid;
  gap: 8px;
}
.cd-dialog label {
  display: grid;
  gap: 4px;
}
.cd-dialog label:has([type='checkbox']) {
  display: flex;
  align-items: center;
}
.cd-dialog [role='status'] {
  color: #ffcbb2;
  margin: 0;
}
.cd-dialog h2 {
  margin: 0 0 8px;
}
.cd-dialog .cd-actions {
  display: flex;
  justify-content: end;
  gap: 8px;
}
@media (max-height: 600px) {
  #club-dashboard {
    font-size: 11px;
  }
  #club-dashboard .cd-header {
    gap: 0.5em;
  }
  #club-dashboard .cd-header h2 {
    font-size: 16px;
  }
  #club-dashboard .cd-card h3 {
    margin-bottom: 0.3em;
  }
  #club-dashboard .cd-section-nav {
    min-width: 100px;
    flex-basis: 17%;
    padding: 2px;
    gap: 0;
  }
  #club-dashboard .cd-section-nav button {
    min-height: 24px;
    padding: 0.25em 0.35em;
    font-size: 0.9em;
  }
  #club-dashboard .cd-report-stats strong {
    font-size: 1.3em;
  }
  #club-dashboard .cd-filters input,
  #club-dashboard .cd-filters select {
    padding: 2px;
    min-height: 24px;
  }
  #club-dashboard .cd-tier-grid .cd-art {
    width: 3em;
    height: 3em;
  }
  #club-dashboard .cd-tier-grid p {
    font-size: 0.85em;
  }
  .cd-tier-intro {
    display: none;
  }
  #cd-settings fieldset {
    gap: 3px;
    grid-template-rows: minmax(20px, 1fr) auto auto auto;
  }
  #club-dashboard #cd-settings textarea {
    height: 2.4em;
    padding: 3px;
  }
  .cd-brand-preview {
    padding: 2px;
  }
  .cd-dialog {
    padding: 10px;
    font-size: 12px;
  }
  .cd-dialog form {
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
  }
  .cd-dialog h2,
  .cd-dialog form > p,
  .cd-dialog .cd-actions {
    grid-column: 1/-1;
  }
  .cd-dialog h2 {
    font-size: 18px;
    margin: 0;
  }
  .cd-dialog form > p {
    margin: 0;
  }
}
@media (max-width: 700px) {
  #public-home:has(#club-workspace.dashboard-open:not([hidden])) > .lobby-nav button {
    padding: 2px 12px;
    gap: 5px;
  }
  #public-home:has(#club-workspace.dashboard-open:not([hidden])) > .lobby-nav svg {
    width: 16px;
    height: 16px;
  }
  #club-dashboard {
    font-size: 10px;
  }
  .cd-header .cd-role-pill,
  .cd-crest,
  .cd-header-count {
    display: none;
  }
  #club-dashboard .cd-header {
    flex-basis: 40px;
  }
  .cd-header [data-action='tiers'] .cd-art {
    width: 2em;
    height: 2em;
  }
  #club-dashboard .cd-header h2 {
    font-size: 14px;
  }
  #club-dashboard .cd-tabs button {
    min-height: 27px;
  }
  .cd-room-layout {
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  }
  .cd-stack .cd-card p {
    display: none;
  }
  .cd-stack .cd-card {
    padding: 4px;
  }
  #club-dashboard .cd-stack .cd-card h3 {
    font-size: 10px;
  }
  #club-dashboard .cd-stack button {
    padding: 2px 4px;
    min-height: 25px;
    font-size: 9px;
  }
  .cd-race {
    padding: 5px;
  }
  #club-dashboard .cd-race-live h3 {
    font-size: 1.2em;
  }
  .cd-race-live {
    padding: 3px;
  }
  .cd-presence {
    margin-top: 2px;
  }
  .cd-presence .cd-icon {
    display: none;
  }
  #club-dashboard .cd-race-heading h2 {
    font-size: 18px;
  }
  #club-dashboard .cd-race-bottom button {
    font-size: 10px;
    padding: 5px;
  }
  .cd-personal-balance strong {
    font-size: 1.3em;
  }
  #club-dashboard .cd-personal-balance .cd-art {
    width: 2em;
    height: 2em;
  }
  .cd-announcement {
    padding: 3px 5px;
    gap: 5px;
  }
  .cd-announcement strong {
    font-size: 9px;
  }
  #club-dashboard footer {
    font-size: 7px;
  }
  .cd-table td,
  .cd-table th {
    padding: 3px;
  }
  .cd-table {
    font-size: 9px;
  }
  #club-dashboard .cd-table button {
    font-size: 9px;
    min-height: 22px;
    padding: 1px 3px;
  }
  .cd-table button .cd-icon {
    display: none;
  }
  #club-dashboard .cd-section-nav {
    min-width: 88px;
  }
  #club-dashboard .cd-section-nav .cd-icon {
    display: none;
  }
  #club-dashboard .cd-section-nav button {
    font-size: 9px;
    min-height: 21px;
  }
  .cd-chip-sidebar {
    flex-basis: 25%;
  }
  .cd-chip-sidebar .cd-card p {
    display: none;
  }
  .cd-chip-sidebar .cd-card {
    padding: 5px;
  }
  #club-dashboard .cd-balance .cd-art {
    width: 2em;
    height: 2em;
  }
  .cd-balance strong {
    font-size: 1.3em;
  }
  .cd-manage-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  }
  #club-dashboard .cd-upload {
    font-size: 8px;
    padding: 2px;
  }
  #cd-settings label {
    font-size: 9px;
  }
  #club-dashboard input:not([type='checkbox']),
  #club-dashboard select {
    min-height: 23px;
    padding: 2px;
  }
  #club-dashboard #cd-save-settings {
    padding: 2px;
    min-height: 23px;
  }
  .cd-approval {
    font-size: 8px !important;
  }
  .cd-tier-grid .cd-card {
    padding: 3px;
    gap: 1px;
  }
  #club-dashboard .cd-tier-grid h3 {
    font-size: 12px;
  }
  #club-dashboard .cd-tier-grid p {
    font-size: 8px;
  }
  #club-dashboard .cd-tier-grid button {
    font-size: 8px;
    min-height: 24px;
    padding: 2px;
  }
  .cd-tier-grid small,
  .cd-tier-status {
    font-size: 8px;
  }
  .cd-tier-foot {
    font-size: 8px;
  }
  .cd-tier-foot button {
    min-height: 24px !important;
  }
}
#club-dashboard .cd-header {
  min-height: 0;
  height: clamp(48px, 11vh, 110px);
  max-height: clamp(48px, 11vh, 110px);
}
#club-dashboard .cd-crest {
  flex: 0 0 clamp(40px, 9vh, 90px);
  width: clamp(40px, 9vh, 90px);
  height: 100%;
}
#club-dashboard .cd-header [data-action='tiers'] .cd-art {
  width: 3em;
  height: 3em;
}
@media (max-width: 700px) {
  #club-dashboard .cd-header {
    height: 40px;
    max-height: 40px;
  }
}
@media (max-height: 600px) {
  .cd-share {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-content: center;
    gap: 0.5em 1em;
  }
  #club-dashboard .cd-share .cd-art {
    grid-row: 1/4;
    width: 4em;
    height: 4em;
  }
  .cd-share > p:last-child {
    grid-column: 2/-1;
  }
  .cd-share > h3 {
    grid-column: 2;
  }
  .cd-share > button {
    grid-column: 3;
    grid-row: 1/3;
  }
}
@media (max-height: 600px) {
  #club-dashboard[data-view='Club Chips'] .cd-title {
    display: none;
  }
  #club-dashboard .cd-chip-sidebar .cd-card {
    padding: 5px;
  }
  #club-dashboard .cd-chip-sidebar .cd-card > p {
    display: none;
  }
  #club-dashboard .cd-chip-sidebar .cd-balance {
    padding: 4px 0;
  }
  #club-dashboard .cd-chip-sidebar .cd-balance .cd-art {
    width: 2em;
    height: 2em;
  }
  #club-dashboard .cd-chip-sidebar .cd-balance strong {
    font-size: 1.3em;
  }
  #club-dashboard .cd-chip-sidebar button {
    margin: 2px 0;
    padding: 3px;
  }
}
@media (max-height: 600px) {
  #club-dashboard .cd-manage-grid .cd-stack p {
    display: none;
  }
  #club-dashboard .cd-manage-grid .cd-stack .cd-card {
    padding: 5px;
  }
  #club-dashboard .cd-manage-grid .cd-stack button {
    padding: 3px;
  }
  #club-dashboard .cd-report-stats {
    display: none;
  }
  #club-dashboard .cd-chip-sidebar .cd-stats > h3 {
    display: none;
  }
  #club-dashboard .cd-tier-grid .cd-art {
    display: none;
  }
  #club-dashboard .cd-tier-grid p {
    margin: 0;
  }
  #club-dashboard .cd-tier-grid {
    gap: 4px;
  }
  #club-dashboard .cd-tier-grid .cd-card {
    gap: 2px;
    padding: 4px;
  }
  #club-dashboard .cd-table td:last-child {
    overflow: hidden;
  }
}
@media (max-height: 450px) {
  #public-home:has(#club-workspace.dashboard-open:not([hidden])) {
    grid-template-rows: 44px 0 minmax(0, 1fr);
  }
  #public-home:has(#club-workspace.dashboard-open:not([hidden])) > .lobby-nav {
    display: none;
  }
  #club-dashboard[data-view='Members'] .cd-fill > h3 {
    display: none;
  }
  #club-dashboard .cd-chip-sidebar .cd-balance {
    padding: 3px 0;
  }
  #club-dashboard .cd-chip-sidebar .cd-card {
    flex-shrink: 0;
  }
  #club-dashboard[data-view='Manage'] .cd-title {
    min-height: 18px;
  }
}
@media (max-height: 600px) {
  #club-dashboard[data-view='Race Room'] .cd-stack p {
    display: none;
  }
  #club-dashboard[data-view='Race Room'] .cd-stack .cd-card {
    padding: 5px;
  }
  #club-dashboard[data-view='Race Room'] .cd-stack button {
    margin-top: 2px;
    padding: 3px;
  }
}
@media (max-width: 700px) {
  #club-dashboard .cd-chip-sidebar .cd-card {
    padding: 3px;
  }
  #club-dashboard[data-view='Reports'] .cd-fill > h3 {
    display: none;
  }
  #club-dashboard .cd-manage-grid .cd-stack .cd-card {
    padding: 2px;
  }
  #club-dashboard .cd-manage-grid .cd-stack button {
    margin-top: 0;
  }
}
#club-dashboard .cd-tier-grid .cd-art {
  flex: 0 1 8em;
  width: 8em;
  height: 8em;
  margin: auto 0;
}
#club-dashboard[data-view='Reports'] #cd-content[data-section='Overview'] .cd-report-stats {
  display: flex;
}
@media (max-width: 700px) {
  #club-dashboard[data-view='Race Room'] .cd-stack .cd-card {
    padding: 2px;
  }
  #club-dashboard[data-view='Race Room'] .cd-stack button {
    margin: 0;
  }
}
