/* Teamazo · Couche d’origine (Codex), 2/3 : jetons d’ambiance, compos, duel de compos, partenaires, offre centres. */

/* Theme tokens also cover dialogs and export clones. The grass keeps its match colors. */
:root {
  --accent-ink: #19240e;
  --soft: #26321b;
  --input: #111612;
  --secondary: #a855f7;
}
input,
select,
.link-area {
  background: var(--input);
  color: var(--white);
  border-color: var(--line);
}
.outline-btn,
.format,
.formation-btn,
.locker-group-header,
.count,
.rank-title,
.rank-goals button,
.rank-controls button,
.result-banner,
.match-header,
.team-preview,
.color-option {
  background: var(--raised);
  border-color: var(--line);
  color: var(--white);
}
.main-view-tabs,
.locker-dock,
.match-capture,
.capture-footer,
.ranking-capture,
.rank-row,
dialog,
.mobile-tabs,
.fairness {
  background: var(--panel);
  border-color: var(--line);
}
.primary-btn {
  color: var(--accent-ink);
}
.format.active,
.formation-btn.active,
.main-view-tabs button.active,
.main-view-tabs button[data-main-view='postmatch'].active,
.mobile-tabs button.active,
.assign-pill[aria-pressed='true'],
.rank-row:first-child {
  background: var(--soft);
  border-color: var(--lime);
  color: var(--lime);
}
.locker-dock button,
.assign-pill {
  background: var(--raised);
}
.ranking-list-header,
.ranking-footer,
.rank-meta,
.rank-position,
.locker-empty,
.key-hint,
.share-note,
.dialog-description {
  color: var(--muted);
}
.ranking-list-header h3,
.rank-goals .goals-value {
  color: var(--white);
}
.player-row,
.team-row {
  border-color: var(--line);
}
.export-stage,
.rank-export-stage {
  background: var(--bg);
}
.podium-card {
  color: #f1f4ed;
}
.podium-goals {
  font-size: 12px;
  margin-top: 8px;
  color: #f1f4ed;
}
.field-empty {
  color: #f1f4ed;
}
.theme-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
}
.theme-picker select {
  max-width: 175px;
  padding: 8px 10px;
  font-size: 12px;
}
.header-end {
  gap: 12px;
}
.pro-button {
  font-size: 12px;
  padding: 9px 11px;
}
.brand-word {
  max-width: 300px;
  overflow-wrap: anywhere;
}

.compo-bar {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 16px;
  min-width: 0;
}
.compo-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.compo-bar-top .section-label {
  font-size: 10px;
  letter-spacing: 1px;
}
.compo-tools {
  display: flex;
  gap: 5px;
}
.compo-tools button {
  padding: 6px 8px;
  font-size: 11px;
}
.compo-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 3px;
}
.compo-tab {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--raised);
}
.compo-tab.active {
  border-color: var(--lime);
  background: var(--soft);
}
.compo-tab > button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.compo-tab.active > button:first-child {
  color: var(--lime);
}
.compo-tab > button:first-child {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compo-tab > button.compo-edit {
  padding: 8px 6px;
}
.compo-tab > button:last-child {
  padding-right: 9px;
}
.compo-tab .icon {
  width: 12px;
  height: 12px;
}
.workspace-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0;
}
.wide-dialog {
  width: min(1250px, calc(100vw - 32px));
  max-width: none;
  padding: 26px;
  max-height: 90dvh;
}
.wide-dialog .dialog-heading h2 {
  font: 700 34px var(--display);
}
.wide-dialog .dialog-description {
  margin-bottom: 20px;
}
.comparison-cards {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 3px 2px 15px;
  scroll-snap-type: x proximity;
  align-items: stretch;
}
.comparison-card {
  flex: 1 0 340px;
  max-width: 520px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.comparison-card.chosen {
  border-color: var(--lime);
}
.compare-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.compare-title h3 {
  font: 700 25px var(--display);
  overflow-wrap: anywhere;
}
.compare-tag {
  font-size: 10px;
  color: var(--lime);
  white-space: nowrap;
}
.compare-meta {
  font-size: 12px;
  color: var(--muted);
}
.mini-token {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  max-width: 58px;
  z-index: 1;
}
.mini-token svg {
  width: 26px;
  height: 26px;
}
.mini-token span {
  max-width: 60px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 8px;
  color: #fff;
  background: #102217dd;
  border-radius: 3px;
  padding: 0 3px;
}
.compare-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  text-align: center;
  background: var(--panel);
  border-radius: 7px;
  padding: 10px 5px;
}
.compare-metrics strong {
  display: block;
  font: 700 25px var(--display);
  color: var(--lime);
}
.compare-metrics small {
  font-size: 10px;
  color: var(--muted);
}
.compare-rosters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
}
.compare-team {
  min-width: 0;
}
.compare-team h4 {
  font-size: 13px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.compare-team h4 span {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
}
.compare-team ul {
  padding: 0;
  list-style: none;
  margin: 8px 0;
}
.compare-team li {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.compare-team li span {
  overflow-wrap: anywhere;
}
.compare-team li b {
  font-weight: 500;
  white-space: nowrap;
}
.role-summary {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.comparison-card .primary-btn {
  width: 100%;
  font-size: 12px;
  white-space: normal;
}
.compare-bench {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 30px;
}
.pro-editor h3 {
  font-size: 18px;
  margin-bottom: 20px;
}
.brand-input-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 14px;
}
.brand-input-row input[type='color'] {
  height: 43px;
  width: 100%;
  padding: 4px;
}
.brand-links {
  margin: 20px 0;
}
.brand-links > label {
  font-size: 12px;
  font-weight: 600;
}
.brand-links textarea {
  min-height: 75px;
  margin-top: 7px;
  font-size: 11px;
}
.pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pro-actions button {
  font-size: 12px;
  padding: 9px;
}
.poster-preview {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  align-self: start;
}
.brand-poster {
  background: #fff;
  color: #172119;
  text-align: center;
  padding: 32px 24px;
  border: 1px solid #dce2d9;
  font-family: Arial, sans-serif;
  border-radius: 2px;
  overflow: hidden;
  --poster-accent: #c4f85c;
}
.poster-top {
  font-size: 9px;
  letter-spacing: 2.4px;
  font-weight: 700;
}
.poster-symbol {
  font-size: 28px;
  margin: 15px auto;
  width: 58px;
  height: 58px;
  line-height: 58px;
  background: var(--poster-accent);
  border-radius: 50%;
}
.brand-poster h3 {
  font: 800 36px/1.05 var(--display);
  text-transform: uppercase;
  overflow-wrap: anywhere;
  margin: 15px 0;
}
.poster-lead {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}
.poster-qr {
  margin: 22px auto;
  background: white;
  width: 224px;
  height: 224px;
  padding: 16px;
  display: grid;
  place-items: center;
  color: #53624f;
  border: 1px solid #e5eae3;
  font-size: 12px;
}
.poster-qr canvas,
.poster-qr img {
  width: 192px !important;
  height: 192px !important;
  max-width: 100%;
  image-rendering: pixelated;
}
.poster-call {
  font-size: 13px;
  letter-spacing: 1px;
}
.brand-poster > p:not(.poster-lead) {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 10px;
  color: #52604c;
}
.poster-insta {
  font-size: 15px;
  font-weight: 700;
  margin: 19px 0 7px;
}
.poster-host {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.brand-poster > small {
  display: block;
  margin-top: 25px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #687361;
}
.pricing-heading {
  text-align: center;
  margin: 40px 0 20px;
}
.pricing-heading h3 {
  font: 700 30px var(--display);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.price-card {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 11px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 13px;
}
.price-card.popular {
  border-color: var(--lime);
  background: var(--soft);
}
.plan-tag {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--lime);
  font-weight: 700;
}
.price-card h3 {
  font-size: 20px;
}
.plan-price {
  font: 700 43px var(--display);
}
.plan-price small {
  font: 400 12px var(--font);
  color: var(--muted);
  margin-left: 4px;
}
.price-card > p:not(.plan-price),
.price-card ul {
  font-size: 12px;
  color: var(--muted);
}
.price-card ul {
  padding-left: 16px;
  line-height: 2;
  flex: 1;
  margin: 0;
}
.price-card button {
  white-space: normal;
  font-size: 12px;
  width: 100%;
}
.plan-request {
  padding: 18px;
  border: 1px solid var(--lime);
  border-radius: 8px;
  margin-top: 20px;
}
.plan-request p {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 12px;
}
html[data-theme='light'] .rating-edit {
  background: #f5efdb;
  color: #725305;
}
html[data-theme='light'] .player-initials {
  background: #e8eee7;
  color: #334c33;
}
html[data-theme='light'] .board-wrap {
  background: #e6ede2;
}
html[data-theme='light'] .rank-row:first-child {
  color: var(--white);
}
html[data-theme='light'] .fairness strong {
  color: var(--lime);
}
html[data-theme='light'] .clear-locker {
  color: #8a4141;
}
html[data-theme='light'] .toast {
  background: #fff;
  color: #141a15;
  border-color: #16803c;
}
html[data-theme='light'] .team-row .role {
  color: #52654e;
}

html[data-theme='light'] .team-preview {
  color: var(--white);
}
@media (max-width: 1100px) {
  .avatar {
    display: none;
  }
  .saved {
    display: none;
  }
  .brand-word {
    max-width: 260px;
  }
  .header-end {
    gap: 8px;
  }
}
@media (max-width: 760px) {
  .app-header {
    height: auto;
    min-height: 100px;
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand {
    min-width: 0;
    max-width: 100%;
  }
  .brand-word {
    font-size: 27px;
    max-width: calc(100vw - 100px);
  }
  .header-end {
    width: 100%;
    justify-content: space-between;
  }
  .theme-picker select {
    max-width: 185px;
    padding: 7px;
  }
  .pro-button {
    padding: 8px;
  }
  .theme-picker .icon {
    width: 17px;
  }
  .compo-bar {
    padding: 9px;
  }
  .compo-tools button {
    padding: 7px;
    font-size: 10px;
  }
  .compo-tab > button {
    font-size: 11px;
  }
  .wide-dialog {
    width: calc(100vw - 18px);
    padding: 18px;
    max-height: 92dvh;
  }
  .wide-dialog .dialog-heading h2 {
    font-size: 29px;
  }

  .comparison-card {
    flex-basis: min(310px, calc(100vw - 66px));
    padding: 13px;
  }
  .comparison-cards {
    gap: 12px;
  }
  .compare-rosters {
    gap: 10px;
  }
  .pro-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .poster-preview {
    padding: 10px;
  }
  .brand-poster {
    padding: 24px 12px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .price-card {
    padding: 20px;
  }
  .price-card ul {
    width: 100%;
  }
  .pricing-heading h3 {
    font-size: 26px;
  }
  .podium-goals {
    font-size: 10px;
  }
}
@media print {
  body.printing-poster > *:not(#print-poster-stage) {
    display: none !important;
  }
  body.printing-poster {
    background: white !important;
    margin: 0 !important;
  }
  #print-poster-stage {
    display: block !important;
    width: 180mm;
    margin: 12mm auto;
  }
  .brand-poster {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    border: 0 !important;
    padding: 12mm !important;
  }
  .brand-poster h3 {
    font-size: 55px;
  }
  .poster-qr {
    width: 80mm;
    height: 80mm;
    padding: 6mm;
  }
  .poster-qr img {
    width: 68mm !important;
    height: 68mm !important;
  }
  .poster-top {
    font-size: 13px;
  }
  .poster-call {
    font-size: 20px;
  }
  .poster-lead {
    font-size: 22px;
  }
}
@media (max-width: 760px) {
  .theme-picker {
    min-width: 0;
  }
  .theme-picker select {
    width: 142px;
    max-width: calc(100vw - 178px);
    font-size: 11px;
  }
  .pro-button {
    font-size: 11px;
    padding: 8px;
    white-space: normal;
    max-width: 135px;
  }
  .header-end {
    gap: 7px;
  }
}
.form-field > span {
  color: var(--white);
}
.form-field > input,
.form-field > select {
  padding: 10px 12px;
  min-height: 43px;
}
.color-choice {
  background: var(--raised);
}
.pending-note {
  background: var(--raised);
  border-color: var(--line);
}
.capture-footer,
.bottom-note,
.bottom-note strong {
  color: var(--muted);
}
.mvp-crown {
  background: #e6bd67;
  border-color: var(--panel);
}
html[data-theme='street'] .compo-bar,
html[data-theme='street'] .main-view-tabs {
  border-color: var(--secondary);
}
.capture-footer strong,
.ranking-footer strong {
  max-width: 55%;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.capture-footer span,
.ranking-footer span {
  max-width: 48%;
  text-align: right;
}
@media (min-width: 761px) and (max-width: 1350px) {
  .saved,
  .avatar {
    display: none;
  }
}
.postmatch-actions .primary-btn {
  background: #e6bd67;
  border-color: #e6bd67;
  color: #2f250f;
}
.poster-symbol {
  display: grid;
  place-items: center;
  line-height: 1;
}
.poster-symbol svg {
  width: 30px;
  height: 30px;
}

.app-header {
  height: 76px;
  min-height: 0;
  flex-wrap: nowrap;
}

.header-end {
  width: auto;
}

.brand-word {
  font-size: 29px;
}
.intro {
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.intro h1 {
  font: 700 18px/1.4 var(--font);
  letter-spacing: 0.7px;
}
.intro .outline-btn {
  padding: 9px 13px;
  font-size: 12px;
}
.main-view-tabs {
  margin-bottom: 18px;
}
.main-view-tabs button {
  padding: 10px 17px;
}
.main-view-tabs button strong {
  font-size: 13px;
}

.format-bar {
  margin-bottom: 19px;
}
.postmatch-heading {
  margin: 0 0 17px;
}
.postmatch-heading h2 {
  font: 600 17px/1.4 var(--font);
}
.postmatch-heading .icon {
  width: 23px !important;
  height: 23px !important;
}
.theme-picker {
  gap: 8px;
}
.theme-picker select {
  font-size: 12px;
  max-width: 190px;
  width: auto;
}
.theme-picker .icon {
  width: 17px;
  height: 17px;
}
.bottom-note {
  display: flex !important;
  flex-wrap: wrap;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 11px;
}
.partner-footer-link {
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.partner-footer-link:hover {
  color: var(--white);
  text-decoration: underline;
}
.partner-footer-link .icon {
  width: 14px;
  height: 14px;
}
.compo-bar-top {
  flex-wrap: wrap;
}
.compo-tools {
  margin-left: auto;
  flex-wrap: wrap;
}
.compo-tools button {
  font-size: 11px;
  padding: 7px 9px;
}
.compo-tools .icon {
  width: 14px;
  height: 14px;
}
.compo-tab > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.compo-tab > button.compo-edit {
  padding: 9px 7px;
}
.wide-dialog .dialog-heading h2 {
  font: 700 25px/1.3 var(--font);
}
.compare-title h3 {
  font: 700 17px/1.3 var(--font);
}
.compare-metrics strong {
  font: 700 24px/1.4 var(--font);
}
.compare-metrics small {
  font-size: 10px;
}
.compare-metrics > div:nth-child(2) {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.compare-metrics > div:nth-child(2) strong {
  color: var(--gold);
}
.comparison-card .mini-token {
  width: 18px;
  height: 18px;
  border: 1px solid #ffffff88;
  display: grid;
  place-items: center;
  font: 700 9px/1 var(--font);
  border-radius: 50%;
  color: white;
}
.comparison-card .mini-token span {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 9px;
}
.comparison-card .mini-token svg {
  display: none;
}
.comparison-card .primary-btn {
  gap: 7px;
}
.compare-meta {
  font-size: 11px;
}
.compare-tag {
  font-size: 9px;
  letter-spacing: 0.6px;
}
.podium {
  max-width: 860px;
  gap: 18px;
  padding-top: 18px;
  align-items: end;
}
.podium-card,
.podium-card.first,
.podium-card.third {
  --medal: #94a3b8;
  background: #141719;
  border: 1px solid #94a3b855;
  border-top: 2px solid var(--medal);
  border-radius: 9px;
  box-shadow: 0 14px 30px #0002;
  padding: 20px 19px 18px;
  color: #f4f7f9;
  min-height: 270px;
}
.podium-card.first {
  --medal: #eab308;
  border-color: #eab30855;
  border-top-color: #eab308;
  min-height: 306px;
}
.podium-card.third {
  --medal: #d97706;
  border-color: #d9770655;
  border-top-color: #d97706;
}
.podium-banner,
.first .podium-banner,
.third .podium-banner {
  color: var(--medal);
  font: 700 10px/1.4 var(--font);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.podium-rank {
  font: 600 13px/1 var(--font);
  padding: 6px 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
}
.podium-banner .icon {
  height: 16px;
  width: 16px;
}
.mvp-crown {
  display: none;
}
.podium-rating,
.first .podium-rating {
  font: 700 26px/1 var(--font);
  top: 73px;
  left: 19px;
  color: #f4f7f9;
}
.first .podium-rating {
  top: 88px;
}
.podium-rating small {
  font: 500 8px/1.4 var(--font);
  letter-spacing: 0.5px;
  color: #aab3bc;
  margin-top: 6px;
}
.podium-card h3 {
  font: 700 19px/1.3 var(--font);
  min-height: 26px;
}
.podium-team {
  color: #adb7c1;
  line-height: 1.5;
  font-size: 10px;
  margin-top: 4px;
}
.podium-title,
.first .podium-title {
  border-color: #ffffff20;
  background: #ffffff05;
  color: #cbd4dc;
  font: 600 10px/1.4 var(--font);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  margin-top: 11px;
  max-width: 100%;
  border-radius: 4px;
}
.first .podium-title {
  color: #f7d46a;
}
.podium-title .icon {
  height: 13px;
  width: 13px;
}
.podium-goals {
  font: 500 11px/1.4 var(--font);
  color: #cbd4dc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}
.podium-goals .icon {
  width: 12px;
  height: 12px;
}
.podium-jersey {
  margin-top: 23px;
}
.first .podium-jersey {
  margin-top: 27px;
}
.rank-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.rank-title .icon {
  margin: 0;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}
.goals-value {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.goals-value .icon {
  width: 12px;
  height: 12px;
}
.rank-controls .icon {
  height: 13px;
  width: 13px;
}
.rank-position {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
}
.rank-first {
  display: grid;
  place-items: center;
}

.rank-export-stage .rank-title {
  display: inline-flex;
}
.rank-export-stage .podium-title .icon {
  display: block;
}
.partner-demo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  padding: 10px 18px;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
}
.partner-demo-bar button {
  color: var(--muted);
  border: 0;
  background: none;
  font-size: 11px;
  margin-left: 12px;
  letter-spacing: 0;
  text-decoration: underline;
}
.partner-demo-bar .icon {
  width: 15px;
  height: 15px;
}
.partner-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--raised);
  padding: 13px 19px;
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  color: var(--white);
}
.partner-strip strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.partner-strip p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.partner-strip > div {
  min-width: 0;
}
.partner-strip > .icon {
  color: var(--lime);
  height: 20px;
  width: 20px;
}
.partner-strip small {
  display: block;
  color: var(--gold);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.5px;
  margin-top: 5px;
}
.ranking-capture > .partner-strip {
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  margin-bottom: 20px;
  border-radius: 7px;
}
.field-demo-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.field-demo-watermark span {
  font: 700 clamp(11px, 1.6vw, 22px)/1.4 var(--font);
  color: #fff8;
  border: 1px solid #fff5;
  padding: 9px 12px;
  transform: rotate(-22deg);
  letter-spacing: 1px;
  white-space: nowrap;
  background: #10201444;
}
.ranking-capture,
.match-capture,
.brand-poster {
  position: relative;
}
.export-demo-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  gap: 80px;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}
.export-demo-watermark span {
  font:
    700 24px/1.4 Arial,
    sans-serif;
  letter-spacing: 3px;
  padding: 13px 22px;
  border: 2px solid #83907f66;
  color: #56635288;
  background: #ffffff4d;
  transform: rotate(-22deg);
  white-space: nowrap;
}
.export-demo-label {
  position: relative;
  z-index: 91;
  background: #f1deab;
  color: #463713;
  text-align: center;
  padding: 13px;
  font:
    700 13px/1.5 Arial,
    sans-serif;
  letter-spacing: 1px;
}
.export-stage .partner-strip,
.rank-export-stage .partner-strip {
  padding: 16px 22px;
}
.export-stage .partner-strip strong,
.rank-export-stage .partner-strip strong {
  font-size: 18px;
}
.export-stage .partner-strip p,
.rank-export-stage .partner-strip p {
  font-size: 14px;
}
.partner-dialog .dialog-description {
  max-width: 780px;
}
.partner-status {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--raised);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.partner-status.active {
  border-left-color: var(--lime);
  color: var(--lime);
}
.partner-dialog h3 {
  font: 600 16px/1.4 var(--font);
}
.pro-editor h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.partner-dialog .brand-input-row {
  grid-template-columns: 115px minmax(0, 1fr);
  align-items: end;
}
.partner-dialog .brand-input-row button {
  justify-self: end;
  align-self: center;
  margin-top: 14px;
  font-size: 12px;
}
.partner-live-preview {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  background: var(--bg);
  align-self: start;
}
.partner-preview-heading {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}
.partner-preview-field {
  position: relative;
  min-height: 248px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px 22px;
  border: 1px solid #7c9676;
  border-radius: 4px;
  background: #223c2b;
  overflow: hidden;
}
.preview-halfway {
  position: absolute;
  inset: 0 50%;
  border-left: 1px solid #adc0a95c;
}
.preview-center {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid #adc0a95c;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#partner-preview-identity {
  position: relative;
  text-align: center;
  background: #102218ee;
  border: 1px solid #ffffff33;
  border-top: 3px solid var(--preview-accent, #c4f85c);
  border-radius: 6px;
  padding: 16px;
  max-width: 100%;
  color: white;
}
#partner-preview-identity strong {
  font-size: 22px;
  line-height: 1.3;
  display: block;
  overflow-wrap: anywhere;
}
#partner-preview-identity p {
  font-size: 12px;
  line-height: 1.7;
  color: #ccd8c8;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.preview-watermark {
  position: absolute;
  bottom: 12px;
  left: 5px;
  right: 5px;
  text-align: center;
  color: #eee6c6;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.partner-dialog .pricing-heading {
  text-align: left;
  margin-top: 29px;
}
.partner-dialog .pricing-heading h3 {
  font-size: 21px;
}
.plan-tag {
  font-size: 9px;
}
.plan-price {
  font: 700 34px/1.2 var(--font);
}
.price-card h3 {
  font-size: 16px;
  min-height: 46px;
}
.price-card a {
  font-size: 12px;
  white-space: normal;
  width: 100%;
  text-decoration: none;
}
.plan-choice {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-choice input {
  accent-color: var(--lime);
}
.activation-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 9px;
  margin-top: 22px;
}
.activation-panel > div {
  width: 100%;
}
.activation-panel p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 7px;
}
.activation-panel a {
  white-space: normal;
  font-size: 12px;
  text-decoration: none;
}
.activation-panel > button {
  font-size: 12px;
}
.activation-panel .workspace-note {
  width: 100%;
  margin: 0;
}
.activation-panel textarea {
  width: 100%;
  min-height: 160px;
}
.partner-dialog a[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.55;
}
.partner-assets {
  margin-top: 23px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.partner-assets summary {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.poster-insta {
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.partner-dialog .link-area {
  width: 100%;
}
@media (max-width: 760px) {
  .app-header {
    padding: 13px 15px;
    gap: 12px;
    height: 68px;
  }
  .brand-word {
    font-size: 25px;
    max-width: 160px;
  }
  .brand-mark {
    width: 29px;
    height: 29px;
  }
  .brand {
    gap: 9px;
  }

  .theme-picker {
    gap: 5px;
  }
  .theme-picker select {
    width: 132px;
    max-width: none;
    padding: 8px 5px;
    font-size: 10px;
  }
  .theme-picker .icon {
    height: 15px;
    width: 15px;
  }
  .header-end {
    width: auto;
  }
  .app {
    padding-top: 18px;
  }
  .intro {
    padding-bottom: 14px;
    margin-bottom: 15px;
  }
  .intro h1 {
    font-size: 13px;
    letter-spacing: 0.4px;
    line-height: 1.6;
  }
  .main-view-tabs button {
    padding: 9px 10px;
  }
  .main-view-tabs button strong {
    font-size: 12px;
  }

  .compo-bar-top {
    gap: 9px;
  }
  .compo-tools {
    width: 100%;
    margin: 0;
  }
  .compo-tools button {
    font-size: 10px;
    flex: 1;
    padding: 9px 6px;
  }
  .compo-tools button .icon {
    width: 13px;
  }
  .compo-tab > button {
    font-size: 11px;
  }
  .bottom-note {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.6;
  }
  .partner-footer-link {
    font-size: 10px;
    line-height: 1.6;
  }
  .postmatch-heading h2 {
    font-size: 14px;
  }
  .podium {
    gap: 7px;
    padding-top: 10px;
    margin-bottom: 22px;
  }
  .podium-card,
  .podium-card.first,
  .podium-card.third {
    padding: 11px 7px 12px;
    min-height: 218px;
    border-radius: 6px;
  }
  .podium-card.first {
    min-height: 244px;
  }
  .podium-banner,
  .first .podium-banner,
  .third .podium-banner {
    font-size: 7px;
    letter-spacing: 0.3px;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .podium-banner .icon {
    height: 12px;
    width: 12px;
  }
  .podium-rank {
    font-size: 9px;
    padding: 4px;
    border-radius: 3px;
  }
  .podium-rating,
  .first .podium-rating {
    font-size: 20px;
    top: 56px;
    left: 7px;
  }
  .first .podium-rating {
    top: 67px;
  }
  .podium-rating small {
    font-size: 6px;
    margin-top: 3px;
  }
  .podium-jersey,
  .first .podium-jersey {
    height: 65px;
    margin: 15px 0 9px;
    justify-items: end;
  }
  .first .podium-jersey {
    height: 82px;
  }
  .podium-jersey svg {
    width: 45px;
    height: 50px;
  }
  .first .podium-jersey svg {
    width: 55px;
    height: 62px;
  }
  .podium-card h3 {
    font-size: 12px;
    min-height: 17px;
  }
  .podium-team {
    font-size: 8px;
    line-height: 1.4;
  }
  .podium-title,
  .first .podium-title {
    font-size: 7px;
    padding: 4px;
    gap: 3px;
    line-height: 1.5;
  }
  .podium-title .icon {
    width: 10px;
    height: 10px;
  }
  .podium-goals {
    font-size: 9px;
    margin-top: 7px;
  }
  .rank-title {
    font-size: 8px;
    gap: 3px;
  }
  .rank-title .icon {
    height: 10px;
    width: 10px;
  }
  .rank-position {
    font-size: 14px;
  }
  .rank-name {
    font-size: 12px;
  }
  .rank-meta {
    font-size: 9px;
  }
  .partner-strip {
    padding: 10px 13px;
    gap: 9px;
  }
  .partner-strip strong {
    font-size: 12px;
  }
  .partner-strip p {
    font-size: 10px;
    line-height: 1.5;
  }
  .partner-strip small {
    font-size: 8px;
  }
  .partner-demo-bar {
    font-size: 8px;
    gap: 6px;
    letter-spacing: 0.4px;
    padding: 9px;
  }
  .partner-demo-bar button {
    font-size: 10px;
    margin-left: 3px;
  }
  .partner-dialog .dialog-heading h2 {
    font-size: 22px;
  }
  .partner-status {
    font-size: 9px;
  }
  .price-card h3 {
    min-height: 0;
  }
  .activation-panel {
    padding: 14px;
  }
  .activation-panel a {
    width: 100%;
  }
  .field-demo-watermark span {
    font-size: 10px;
    letter-spacing: 0.3px;
  }
  .wide-dialog .dialog-heading h2 {
    font-size: 22px;
  }
  .rank-export-stage .podium-card {
    padding: 20px 19px 18px;
    min-height: 270px;
  }
  .rank-export-stage .podium-card.first {
    min-height: 306px;
  }
  .rank-export-stage .podium {
    gap: 18px;
  }
  .rank-export-stage .podium-banner {
    font-size: 10px;
    justify-content: space-between;
  }
  .rank-export-stage .podium-rank {
    font-size: 13px;
  }
  .rank-export-stage .podium-rating {
    font-size: 26px;
    top: 73px;
    left: 19px;
  }
  .rank-export-stage .first .podium-rating {
    top: 88px;
  }
  .rank-export-stage .podium-card h3 {
    font-size: 19px;
  }
  .rank-export-stage .podium-jersey {
    height: 83px;
    justify-items: center;
    margin-top: 23px;
  }
  .rank-export-stage .first .podium-jersey {
    height: 105px;
    margin-top: 27px;
  }
  .rank-export-stage .podium-jersey svg {
    width: 79px;
    height: 75px;
  }
  .rank-export-stage .first .podium-jersey svg {
    width: 94px;
    height: 88px;
  }
  .rank-export-stage .podium-title {
    font-size: 10px;
    padding: 6px 8px;
  }
  .rank-export-stage .podium-team {
    font-size: 10px;
  }
  .rank-export-stage .podium-goals {
    font-size: 11px;
  }
  .rank-export-stage .podium-rating small {
    font-size: 8px;
  }
}
html[data-theme='clay'] .rating-edit {
  background: #efe0c9;
  color: #745012;
}
html[data-theme='clay'] .player-initials {
  background: #eee4da;
  color: #644b3e;
}
html[data-theme='clay'] .clear-locker {
  color: #924738;
}
html[data-theme='clay'] .team-row .role {
  color: var(--muted);
}
html[data-theme='clay'] .toast {
  background: #fffdf8;
  color: #2d2620;
}
html[data-theme='clay'] .rank-row:first-child {
  color: var(--white);
}
.mode-launcher {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
}
.mode-launcher .icon {
  width: 15px;
  height: 15px;
}
.mode-launcher.is-online {
  border-color: var(--lime);
  color: var(--lime);
  background: var(--soft);
}
.online-dialog {
  width: min(790px, calc(100vw - 24px));
  max-height: 90dvh;
}
.online-dialog .dialog-heading h2 {
  font: 700 24px/1.3 var(--font);
}

.online-mode-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--raised);
  border-radius: 6px;
  padding: 11px;
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0;
}
.online-mode-summary .icon {
  color: var(--lime);
}
.online-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.online-choice {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.online-choice > .icon {
  width: 23px;
  height: 23px;
  color: var(--lime);
}
.online-choice h3 {
  font-size: 15px;
  font-weight: 600;
}
.online-choice p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.online-choice input {
  width: 100%;
  padding: 10px;
  font-size: 12px;
}
.online-choice button {
  width: 100%;
  font-size: 12px;
}
.online-feedback {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 17px;
  overflow-wrap: anywhere;
}
.online-feedback.error {
  color: var(--gold);
}
.online-settings {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
}
.online-settings summary {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.online-dialog code {
  font-size: 11px;
}
.online-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.online-actions button {
  font-size: 11px;
  white-space: normal;
}
.online-room-info {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.online-room-info h3 {
  font-size: 22px;
  margin: 4px 0 9px;
}
.online-room-info p {
  font-size: 12px;
  color: var(--muted);
}
.online-members {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.online-member {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 10px;
}
.online-member:before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--lime);
  border-radius: 50%;
}
#online-resume {
  font-size: 12px;
  margin-top: 12px;
}
#online-share-link {
  width: 100%;
  min-height: 95px;
  font-size: 11px;
}
.header-end {
  gap: 12px;
}

@media (max-width: 760px) {
  .app-header {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    gap: 11px;
    padding: 13px 15px;
  }
  .header-end {
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
  }
  .mode-launcher {
    font-size: 10px;
    padding: 8px;
  }
  .mode-launcher .icon {
    width: 13px;
    height: 13px;
  }
  .theme-picker select {
    width: 125px;
  }
  .online-dialog {
    padding: 18px;
  }
  .online-dialog .dialog-heading h2 {
    font-size: 21px;
  }
  .online-entry-grid {
    grid-template-columns: 1fr;
  }
  .online-choice {
    padding: 15px;
  }
  .online-actions button {
    flex: 1;
    min-width: 130px;
  }
  .online-mode-summary {
    font-size: 11px;
  }
  .online-settings .form-field > span {
    font-size: 12px;
  }
}
.online-transport {
  display: flex;
  gap: 9px;
  margin: 17px 0 8px;
}
.online-transport button {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  font-size: 12px;
}
.online-transport button.active {
  border-color: var(--lime);
  background: var(--soft);
  color: var(--lime);
}
.online-transport small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: var(--muted);
}
.online-transport .icon {
  width: 20px;
  height: 20px;
}
@media (max-width: 460px) {
  .online-transport button {
    padding: 10px 8px;
    font-size: 11px;
  }
  .online-transport small {
    font-size: 9px;
  }
}

.host-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  font-size: 12px;
}
.host-controls label {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  cursor: pointer;
}
.host-controls small {
  display: block;
  width: 100%;
  padding-left: 25px;
  color: var(--muted);
  font-size: 10px;
}
.host-controls button {
  font-size: 11px;
}
.room-readonly [data-live-disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}
.room-readonly .player-token {
  opacity: 1;
  cursor: default;
}
.online-actions {
  margin-top: 14px;
}
