:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #172033;
  background: #f4f6fa;
}

body {
  margin: 0;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: white;
  border: 1px solid #d9dfec;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 32, 55, 0.06);
  padding: 20px;
  margin-bottom: 18px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: end;
}

.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.inline {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #cbd3e1;
  border-radius: 8px;
  font-size: 16px;
}

button {
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.muted {
  color: #64748b;
}

.notice {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 9px;
  border-bottom: 1px solid #e5eaf3;
  text-align: left;
  vertical-align: top;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf2f7;
  font-size: 12px;
  white-space: nowrap;
}

.badge.ok {
  background: #dcfce7;
}

.badge.warn {
  background: #ffedd5;
}

.heat {
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.heat-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.number {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2ff;
  font-weight: 700;
}

.error {
  color: #b42318;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .inline {
    flex-direction: column;
  }
}


a {
  color: #1d4ed8;
  font-weight: 700;
}

.mt {
  margin-top: 14px;
}

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

.actions button {
  padding: 8px 10px;
  font-size: 12px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #e5eaf3;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.tabs button {
  background: #edf2f7;
  color: #172033;
}

.tabs button.active {
  background: #172033;
  color: white;
}

.tab-content h3 {
  margin-top: 6px;
}

.subcard {
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fbfdff;
}

.table.compact th {
  width: 180px;
}

.table.compact th,
.table.compact td {
  padding: 7px 9px;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #edf2f7;
  color: #334155;
}

.live-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.live-status.ok {
  background: #dcfce7;
  color: #166534;
}

.live-status.warn {
  background: #ffedd5;
  color: #9a3412;
}

.live-status.error {
  background: #fee2e2;
  color: #991b1b;
}

.rule-block {
  margin: 1rem 0 1.4rem;
  padding: 0.75rem;
  border: 1px solid #d7dbe3;
  border-radius: 10px;
  background: #fff;
  overflow-x: auto;
}

.rule-block h4 {
  margin: 0 0 0.6rem;
}

.ok-lite {
  border-color: #9bd3ad;
  background: #f2fbf5;
}

.official-report {
  border-color: #c7d2fe;
  background: #f8fbff;
}

.raw-report {
  white-space: pre-wrap;
  overflow-x: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
}

select {
  padding: 10px 12px;
  border: 1px solid #cbd3e1;
  border-radius: 8px;
  font-size: 15px;
  background: white;
}

.inline.narrow {
  align-items: center;
  min-width: 440px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.audit-badges,
.audit-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.metric {
  min-width: 110px;
  border: 1px solid #e5eaf3;
  background: #fbfdff;
  border-radius: 12px;
  padding: 10px 12px;
}

.metric-value {
  font-size: 22px;
  font-weight: 800;
}

.metric-label {
  font-size: 12px;
  color: #64748b;
}

.audit-metrics.small .metric {
  min-width: 88px;
  padding: 8px 10px;
}

.audit-metrics.small .metric-value {
  font-size: 18px;
}

.badge.error {
  background: #fee2e2;
  color: #991b1b;
}

.issue-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.issue {
  border: 1px solid #e5eaf3;
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 8px;
  background: #fbfdff;
}

.issue.warning {
  border-color: #fed7aa;
  background: #fff7ed;
}

.issue.error {
  border-color: #fecaca;
  background: #fef2f2;
}

.audit-category {
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  margin-bottom: 10px;
  background: white;
  overflow: hidden;
}

.audit-category.warning {
  border-color: #fed7aa;
}

.audit-category.error {
  border-color: #fecaca;
}

.audit-category summary {
  cursor: pointer;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
}

.audit-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.audit-counts {
  color: #475569;
  font-size: 13px;
  white-space: nowrap;
}

.audit-detail {
  border-top: 1px solid #e5eaf3;
  padding: 14px;
  background: #fbfdff;
}

.compact-table {
  font-size: 13px;
}

@media (max-width: 900px) {
  .section-header {
    display: block;
  }
  .inline.narrow {
    min-width: 0;
    margin-top: 12px;
  }
  .audit-category summary {
    grid-template-columns: 1fr;
  }
  .audit-counts {
    white-space: normal;
  }
}
.audit-export-actions {
  margin-top: 12px;
  flex-wrap: wrap;
}
.audit-export-actions button {
  margin-right: 8px;
}

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

.button-link {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #edf2f7;
  color: #172033;
  text-decoration: none;
  font-weight: 700;
}

.event-list {
  margin-top: 12px;
}

.small {
  font-size: 13px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 12px;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fbfdff;
}

.link-row input,
.table input[readonly] {
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  background: #f8fafc;
}

@media (max-width: 900px) {
  .card-header-row,
  .link-row {
    display: block;
  }

  .card-header-row .actions,
  .link-row .actions {
    margin-top: 10px;
  }
}

/* Public client page - WDSF-like one-page view */
.client-body {
  min-height: 100vh;
  background: #ffffff;
  color: #071625;
  font-family: Arial, Helvetica, sans-serif;
}

.client-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  max-width: 1420px;
  margin: 0 auto;
  padding: 12px 28px 40px 20px;
}

.client-sidebar {
  position: sticky;
  top: 12px;
  align-self: start;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  background: #f7f0e7;
  border-right: 1px solid #e2c393;
}

.sidebar-title {
  background: #c57b1d;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 16px 18px;
}

.sidebar-content {
  background: #6d5870;
  color: #fff;
}

.side-section-title {
  background: #d0831f;
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  border-top: 2px solid #fff;
  text-transform: uppercase;
  font-size: 14px;
}

.side-row {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid rgba(255,255,255,0.9);
  background: #6d5870;
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-weight: 800;
  line-height: 1.2;
}

.side-row span,
.side-row small {
  display: block;
}

.side-row small {
  margin-top: 5px;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  font-size: 12px;
}

.side-row:hover,
.side-row.selected,
.side-row.active {
  background: #3e3040;
}

.side-row.active-event {
  background: #5b285d;
}

.side-row.closed-event {
  background: #6d5870;
}

.side-row.home-row {
  background: #210f24;
  font-size: 15px;
}

.side-block {
  padding: 14px 16px;
  background: #27132a;
  border-bottom: 2px solid #fff;
}

.side-block small,
.side-block strong,
.side-block span {
  display: block;
}

.side-block small {
  color: #f5b24d;
  font-weight: 800;
  margin-bottom: 5px;
}

.side-block strong {
  font-size: 15px;
  line-height: 1.3;
}

.side-block span {
  margin-top: 6px;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
}

.side-empty {
  margin: 0;
  padding: 12px 16px;
  color: rgba(255,255,255,0.82);
  border-bottom: 2px solid rgba(255,255,255,0.55);
}

.home-button {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  background: #210f24;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  font-size: 24px;
  line-height: 42px;
  text-align: center;
}

.client-main {
  min-width: 0;
  padding-left: 0;
}

.client-hero-panel,
.client-heading-panel,
.client-section,
.result-block {
  background: #fff;
  padding: 8px 0 22px;
  margin-bottom: 26px;
}

.eyebrow {
  color: #c57b1d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin: 0 0 6px;
}

.client-main h1 {
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 24px;
  color: #10223a;
}

.client-main h2 {
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 28px;
  margin: 24px 0 16px;
  color: #071625;
}

.client-main h3 {
  margin: 18px 0 10px;
}

.lead {
  max-width: 780px;
  line-height: 1.5;
  font-size: 17px;
}

.event-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.event-card,
.category-card {
  border: 1px solid #e7d5be;
  border-left: 5px solid #d0831f;
  padding: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.event-card.is-active,
.category-card.is-active {
  border-left-color: #5b285d;
}

.event-card h3,
.category-card h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.event-card-top,
.category-meta-line,
.category-card {
  display: flex;
  gap: 10px;
  align-items: center;
}

.event-card-top,
.category-meta-line {
  flex-wrap: wrap;
}

.category-card {
  justify-content: space-between;
  align-items: flex-start;
}

.category-card-list {
  display: grid;
  gap: 10px;
}

.client-primary,
.client-tab {
  background: #d0831f;
  color: #fff;
  border-radius: 3px;
  padding: 10px 14px;
}

.client-primary:hover,
.client-tab:hover:not(:disabled) {
  background: #a86518;
}

.client-tab.active {
  background: #210f24;
}

.client-tab:disabled {
  background: #c9c1ca;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.72;
}

.client-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #e4c08a;
}

.client-dl {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px 18px;
  margin: 0;
}

.client-dl dt {
  font-weight: 800;
  color: #071625;
}

.client-dl dd {
  margin: 0;
}

.compact-dl {
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 6px 10px;
  font-size: 14px;
}

.event-info-dl {
  max-width: 820px;
}

.category-info-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 24px;
  max-width: 980px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  max-width: 860px;
}

.stat-box {
  border-top: 1px solid #d0831f;
  border-bottom: 1px solid #d0831f;
  padding: 12px 8px;
  background: #f3f3f3;
}

.stat-box strong {
  display: block;
  font-size: 26px;
}

.stat-box span {
  color: #526173;
  font-size: 13px;
}

.client-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.client-table th,
.client-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #d0831f;
  text-align: left;
  vertical-align: top;
}

.client-table th {
  font-weight: 800;
  color: #000;
}

.client-table tbody tr:nth-child(odd) {
  background: #f2f2f2;
}

.client-table.compact-public th,
.client-table.compact-public td,
.compact-public th,
.compact-public td {
  padding: 7px 8px;
  font-size: 13px;
}

.ranking-table td:first-child {
  color: #c57b1d;
  width: 42px;
}

.wide-scroll {
  overflow-x: auto;
  max-width: 100%;
}

.wide-block {
  max-width: 100%;
}

.marks-table th,
.marks-table td {
  text-align: center;
  white-space: nowrap;
}

.marks-table th:first-child,
.marks-table td:first-child {
  text-align: left;
  min-width: 240px;
}

.heat-public {
  border-top: 1px solid #d0831f;
  padding: 12px 0;
}

.heat-public h3 {
  margin: 0 0 8px;
}

.heat-numbers-public {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.heat-numbers-public span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f2f2;
  border: 1px solid #d0831f;
  font-weight: 800;
}

.official-report-public,
.rule-block-public {
  border: 1px solid #e7d5be;
  padding: 12px;
  margin: 14px 0;
  background: #fffdf9;
}

.rule-block-public h4,
.rule-block-public h3 {
  margin-top: 0;
}

.rule-block-public h4 span {
  color: #64748b;
  font-weight: 400;
}

.client-live-status {
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 30;
}

@media (max-width: 920px) {
  .client-shell {
    grid-template-columns: 1fr;
    padding: 66px 14px 30px;
  }

  .client-sidebar {
    position: static;
    max-height: none;
  }

  .home-button {
    top: 12px;
    left: 14px;
  }

  .category-info-grid,
  .client-dl {
    grid-template-columns: 1fr;
  }

  .category-card {
    display: block;
  }

  .category-card .client-primary {
    margin-top: 10px;
  }
}

/* Event selection page - WDSF-like browser */
.event-browser-mode .client-shell {
  display: block;
  max-width: 1160px;
  padding: 18px 28px 44px;
}

.event-browser-mode .client-sidebar {
  display: none;
}

.event-browser-mode .client-main {
  width: 100%;
}

.client-main:focus {
  outline: none;
}

.event-browser-mode .home-button {
  display: none;
}

.event-browser-page h1 {
  margin: 0 0 26px;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #10223a;
  text-align: center;
  padding: 0 110px;
}

.browser-toolbar {
  margin-bottom: 18px;
}

.browser-toolbar-top,
.browser-advanced-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.browser-toolbar-top {
  justify-content: space-between;
}

.browser-advanced-row {
  margin-top: 28px;
}

.browser-filter {
  position: relative;
  min-width: 150px;
}

.browser-filter.competition-filter {
  min-width: 190px;
}

.browser-filter-button,
.advanced-filter-button {
  width: 100%;
  min-height: 45px;
  padding: 0 18px;
  border: 1px solid #b9b9b9;
  border-radius: 0;
  background: #fff;
  color: #6a6f77;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.advanced-filter-button {
  width: auto;
  margin-left: auto;
  color: #000;
  border-color: transparent;
  background: transparent;
}

.advanced-filter-button.open {
  border-color: #1f2937;
  background: #fff;
}

.browser-filter.open .browser-filter-button {
  background: #505b62;
  color: #fff;
  border-color: #505b62;
}

.filter-chevron {
  font-size: 20px;
  line-height: 1;
}

.browser-filter-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% - 1px);
  left: 0;
  min-width: 100%;
  max-height: 520px;
  overflow-y: auto;
  background: #fff;
  border-left: 1px solid #c77a2c;
  border-right: 1px solid #c77a2c;
  border-bottom: 1px solid #c77a2c;
  box-shadow: 0 14px 28px rgba(0,0,0,0.14);
}

.browser-filter-menu button {
  display: block;
  width: 100%;
  padding: 7px 12px;
  border-radius: 0;
  background: #fff;
  color: #172033;
  text-align: left;
  font-weight: 400;
}

.browser-filter-menu button:hover {
  background: #f2f2f2;
}

.browser-filter-group {
  padding: 9px 12px 5px;
  font-weight: 800;
  color: #000;
}

.location-search-wrap {
  display: flex;
  gap: 18px;
  align-items: center;
}

.location-search-wrap input {
  width: 275px;
  min-height: 45px;
  border-radius: 999px;
  border-color: #b9b9b9;
  padding: 0 20px;
  font-size: 14px;
}

.browser-go-button {
  width: 52px;
  height: 45px;
  padding: 0;
  border-radius: 999px;
  background: #c27a13;
  color: #fff;
}

.browser-clear-button {
  min-height: 45px;
  border: 1px solid #cbd3e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 0;
}

.browser-month-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 18px;
  font-size: 28px;
  text-transform: none;
  letter-spacing: 0;
}

.calendar-icon {
  color: #c27a13;
  font-size: 24px;
  transform: rotate(90deg);
}

.browser-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 14px;
}

.month-nav-button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  background: transparent;
  color: #c08637;
  border-radius: 0;
  padding: 0;
  font-size: 14px;
}

.month-nav-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 999px;
  background: #c08637;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.month-nav-button.next span {
  order: 2;
}

.month-nav-button:disabled {
  visibility: hidden;
}

.browser-results-count {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 13px;
}

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

.browser-event-row {
  display: grid;
  grid-template-columns: 280px 300px minmax(0, 1fr);
  min-height: 72px;
  border: 1px solid #b7b7b7;
  border-left-width: 7px;
  background: #fff;
  cursor: pointer;
  align-items: center;
}

.browser-event-row:hover,
.browser-event-row:focus {
  outline: 2px solid rgba(194,122,19,0.35);
  background: #f8f8f8;
}

.browser-event-row.wdsf {
  border-left-color: #0064bd;
}

.browser-event-row.national {
  border-left-color: #ef6425;
}

.browser-event-row.mixed {
  border-left-color: #c50043;
}

.browser-event-date,
.browser-event-location,
.browser-event-details {
  padding: 14px 22px;
}

.browser-event-date {
  color: #0064bd;
  font-weight: 800;
}

.browser-event-row.national .browser-event-date {
  color: #ef6425;
}

.browser-event-row.mixed .browser-event-date {
  color: #c50043;
}

.browser-event-location {
  color: #000;
  font-weight: 800;
}

.browser-event-details {
  font-size: 14px;
  line-height: 1.45;
}

.browser-event-details p {
  margin: 0 0 3px;
}

.browser-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.browser-event-meta span {
  border: 1px solid #d9dfec;
  background: #f8fafc;
  border-radius: 999px;
  padding: 2px 8px;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 920px) {
  .event-browser-mode .client-shell {
    padding: 66px 14px 30px;
  }

  .browser-toolbar-top,
  .browser-advanced-row,
  .location-search-wrap {
    display: block;
  }

  .browser-filter,
  .browser-filter.competition-filter,
  .location-search-wrap input,
  .browser-go-button,
  .browser-clear-button {
    width: 100%;
    margin-bottom: 10px;
  }

  .advanced-filter-button {
    width: 100%;
    border-color: #b9b9b9;
  }

  .browser-event-row {
    grid-template-columns: 1fr;
  }

  .browser-event-date,
  .browser-event-location,
  .browser-event-details {
    padding: 10px 14px;
  }
}

/* v12 - language selector + responsive public event browser */
.language-switcher {
  position: fixed;
  top: 12px;
  right: 18px;
  z-index: 80;
  font-family: Arial, Helvetica, sans-serif;
}
.language-button {
  min-width: 86px;
  height: 34px;
  padding: 0 10px;
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 10px;
  background: #06101d;
  color: #d8e2ee;
  box-shadow: 0 6px 18px rgba(2,8,23,0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.language-button .flag-icon,
.language-menu .flag-icon,
.flag-icon {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.16);
  flex: 0 0 auto;
}
.flag-ro { background: linear-gradient(90deg, #002b7f 0 33.333%, #fcd116 33.333% 66.666%, #ce1126 66.666% 100%); }

.flag-hu { background: linear-gradient(180deg, #ce2939 0 33.333%, #ffffff 33.333% 66.666%, #477050 66.666% 100%); }
.flag-en { background: #012169; position: relative; overflow: hidden; }
.flag-en::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(33deg, transparent 0 43%, #fff 43% 50%, #c8102e 50% 55%, #fff 55% 62%, transparent 62% 100%),
    linear-gradient(147deg, transparent 0 43%, #fff 43% 50%, #c8102e 50% 55%, #fff 55% 62%, transparent 62% 100%),
    linear-gradient(90deg, transparent 0 42%, #fff 42% 58%, transparent 58% 100%),
    linear-gradient(0deg, transparent 0 36%, #fff 36% 64%, transparent 64% 100%),
    linear-gradient(90deg, transparent 0 46%, #c8102e 46% 54%, transparent 54% 100%),
    linear-gradient(0deg, transparent 0 42%, #c8102e 42% 58%, transparent 58% 100%);
}
.language-caret { color: #94a3b8; }
.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 176px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(2, 8, 23, 0.25);
  border: 1px solid #e5e7eb;
}
.language-menu button {
  width: 100%;
  border-radius: 7px;
  padding: 9px 10px;
  background: #fff;
  color: #172033;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.language-menu button:hover,
.language-menu button.active {
  background: #eef5ff;
  color: #1d4ed8;
}
.event-browser-page {
  padding-right: 0;
}
.event-browser-page h1 {
  padding-left: 110px;
  padding-right: 110px;
}
.browser-event-row {
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.browser-event-row:hover,
.browser-event-row:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(2, 8, 23, 0.08);
}
@media (max-width: 1100px) {
  .browser-event-row {
    grid-template-columns: 190px 230px minmax(0, 1fr);
  }
  .browser-event-date,
  .browser-event-location,
  .browser-event-details {
    padding: 12px 16px;
  }
}
@media (max-width: 720px) {
  .event-browser-mode .client-shell {
    padding: 72px 10px 24px;
  }
  .event-browser-page h1 {
    font-size: 27px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }
  .language-switcher {
    top: 10px;
    right: 10px;
  }
  .home-button {
    width: 38px;
    height: 38px;
    line-height: 38px;
  }
  .browser-month-heading h2 {
    font-size: 24px;
  }
  .browser-month-nav {
    gap: 12px;
    align-items: flex-start;
  }
  .month-nav-button {
    max-width: 50%;
    line-height: 1.2;
  }
  .browser-event-row {
    min-height: 0;
  }
  .browser-event-details {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .language-button { min-width: 76px; }
  .language-menu { width: 165px; }
  .event-browser-page h1 { font-size: 24px; }
  .browser-filter-button,
  .advanced-filter-button,
  .location-search-wrap input,
  .browser-go-button,
  .browser-clear-button { min-height: 42px; }
  .browser-event-date,
  .browser-event-location,
  .browser-event-details { padding: 9px 12px; }
}

/* Browser month/year picker */
.browser-month-heading {
  position: relative;
  display: inline-block;
  min-width: min(100%, 420px);
}
.browser-month-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.browser-calendar-toggle {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.browser-calendar-toggle:hover,
.browser-calendar-toggle:focus {
  border-color: #c08637;
  background: #fff7ed;
  outline: none;
}
.calendar-icon {
  position: relative;
  width: 17px;
  height: 16px;
  border: 2px solid #c08637;
  border-radius: 3px;
  display: inline-block;
  transform: none;
  box-sizing: border-box;
}
.calendar-icon::before,
.calendar-icon::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: #c08637;
}
.calendar-icon::before { left: 3px; }
.calendar-icon::after { right: 3px; }
.browser-calendar-popover {
  position: absolute;
  z-index: 55;
  top: calc(100% - 8px);
  left: 0;
  width: min(390px, calc(100vw - 32px));
  background: #fff;
  border: 2px solid #c08637;
  box-shadow: 0 20px 55px rgba(2, 8, 23, 0.28);
  padding: 10px 12px 14px;
}
.browser-calendar-year-wrap {
  position: relative;
  margin-bottom: 12px;
}
.browser-calendar-year-button {
  width: 100%;
  min-height: 58px;
  border-radius: 0;
  background: #59636a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 800;
}
.browser-calendar-year-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #c08637;
  box-shadow: 0 14px 28px rgba(2, 8, 23, 0.18);
}
.browser-calendar-year-menu button,
.browser-calendar-months button {
  border-radius: 0;
  border: 1px solid transparent;
  background: #fff;
  color: #172033;
  font-weight: 500;
}
.browser-calendar-year-menu button {
  width: 100%;
  display: block;
  padding: 10px 14px;
}
.browser-calendar-year-menu button:hover,
.browser-calendar-year-menu button.active,
.browser-calendar-months button:hover,
.browser-calendar-months button.active {
  border-color: #c08637;
  background: #fff7ed;
  color: #b46b0c;
}
.browser-calendar-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
}
.browser-calendar-months button {
  min-height: 52px;
  padding: 0 12px;
}
.browser-calendar-months p {
  margin: 6px 0;
  color: #64748b;
  font-weight: 700;
}
@media (max-width: 720px) {
  .browser-month-heading {
    display: block;
    min-width: 0;
  }
  .browser-calendar-popover {
    left: 0;
    width: calc(100vw - 44px);
  }
}

/* WDSF category stage view v7 */
.category-submenu {
  background: #6d5870;
}

.category-tab-row {
  padding-left: 28px;
  font-size: 13px;
  background: #6d5870;
}

.category-tab-row.selected {
  background: #463848;
}

.gold-text,
.ranking-table td:first-child,
.client-table td:first-child {
  color: #c57b1d;
}

.public-search {
  display: block;
  width: min(760px, 100%);
  box-sizing: border-box;
  border-radius: 0;
  border: 1px solid #b8b8b8;
  margin: 4px 0 6px;
}

.search-label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}

.tiny-button {
  background: #c57b1d;
  color: #fff;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 11px;
}

.event-info-list {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px 18px;
  max-width: 760px;
}
.event-info-list dt { font-weight: 800; }
.event-info-list dd { margin: 0; }

.wdsf-section { margin-bottom: 34px; }
.wdsf-table th,
.wdsf-table td { border-bottom-color: #d0831f; }
.wdsf-table tbody tr:nth-child(odd) { background: #f2f2f2; }
.marks-scroll { overflow-x: auto; }
.marks-matrix th,
.marks-matrix td { text-align: center; white-space: nowrap; }
.marks-matrix th:nth-child(2),
.marks-matrix td:nth-child(2) { text-align: left; }

/* v10 - public TopTurnier tables */
.round-result-divider th {
  background: #fff;
  color: #0b2239;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-top: 14px;
}
.marks-table th:first-child,
.marks-table td:first-child {
  min-width: 44px;
  width: 44px;
  text-align: left;
}
.marks-table th:nth-child(2),
.marks-table td:nth-child(2) {
  min-width: 72px;
  text-align: left;
}
.marks-table th:nth-child(3),
.marks-table td:nth-child(3) {
  min-width: 48px;
}

/* v15 - visible public language selector */
.public-language-select {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  padding: 7px 12px;
  font-weight: 700;
  color: #1f2937;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.category-row.stage-current,
.category-row.stage-online { outline: 2px solid rgba(22, 163, 74, .55); }
.category-row.stage-unconfirmed,
.category-row.stage-open { outline: 2px solid rgba(217, 119, 6, .45); }

/* v16: selector pentru rundele din arbitrajul online desktop */
.summary-item.wide { grid-column: 1 / -1; }
.summary-item select { width: 100%; max-width: 100%; padding: 8px 10px; border: 1px solid #cfd8e3; border-radius: 8px; background: #fff; }

/* v17 - public language selector and current round heats */
.hidden { display: none !important; }
.heats-public-block .heats-category-title {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #06101d;
  text-transform: uppercase;
}
.heat-dance-block {
  margin: 22px 0 26px;
}
.heat-dance-block h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.heat-public {
  border-top: 1px solid #d98d21;
  padding: 9px 0;
  display: grid;
  grid-template-columns: minmax(80px, 140px) 1fr;
  gap: 14px;
  align-items: center;
}
.heat-public:last-child { border-bottom: 1px solid #d98d21; }
.heat-public-label {
  font-weight: 800;
  color: #111827;
}
.heat-numbers-public {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.heat-numbers-public span,
.numbers .number {
  display: inline-flex;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d98d21;
  background: #fff;
  color: #111827;
  font-weight: 700;
}

.heats-view-toggle {
  margin: 0 0 1rem;
  padding: .65rem .8rem;
  border: 1px solid rgba(193, 127, 24, .35);
  background: rgba(255, 249, 239, .75);
  max-width: 760px;
}
.heats-view-toggle label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  cursor: pointer;
}
.heats-view-toggle input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}
.heat-competitor-table-wrap {
  overflow-x: auto;
  max-width: 760px;
}
.heat-competitor-table {
  width: auto;
  min-width: 420px;
}
.heat-competitor-table th,
.heat-competitor-table td {
  text-align: center;
  font-size: 1.05rem;
  padding: .32rem .85rem;
}
.heat-competitor-table tbody th {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}


/* TOPTURNIER embedded category pages v25 */
.category-card-main {
  min-width: 260px;
  flex: 1 1 auto;
}
.category-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 620px;
}
.category-card-actions .client-primary,
.category-card-actions .client-tab {
  border: 0;
  cursor: pointer;
  font-weight: 700;
}
.embedded-category-heading {
  margin-bottom: 12px;
}
.embedded-category-tabs {
  margin: 0 0 12px 0;
}
@media (max-width: 860px) {
  .category-card {
    display: block;
  }
  .category-card-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }
}

/* TOPTURNIER public results/marks/skating/notifications v28 */
.category-context-line {
  margin: 0 0 1rem;
  color: #111827;
}
.link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #c47a12;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.notify-category-link {
  font-weight: 700;
}
.public-toast-stack {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  max-width: 420px;
}
.public-toast {
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .28);
  font-weight: 700;
}
.public-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.marks-detail-table th,
.marks-detail-table td,
.skating-majority-table th,
.skating-majority-table td {
  text-align: center;
  vertical-align: middle;
}
.marks-detail-table th:nth-child(2),
.marks-detail-table td:nth-child(2),
.skating-majority-table th:first-child,
.skating-majority-table td:first-child {
  text-align: left;
}

.skating-majority-table .majority-start-column {
  border-left: 2px solid #d0831f;
}

/* v40 - public live mobile/tablet navigation */
.menu-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 130;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  background: #210f24;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  font-size: 24px;
  line-height: 42px;
  text-align: center;
}
.menu-overlay {
  display: none;
}
.category-submenu {
  background: #4f4052;
  border-bottom: 2px solid rgba(255,255,255,0.82);
}
.category-tab-row {
  padding-left: 34px;
  min-height: 42px;
  font-size: 13px;
  background: #4f4052;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.category-tab-row.selected,
.category-tab-row:hover {
  background: #210f24;
}
.category-tab-row span::before {
  content: '›';
  display: inline-block;
  margin-right: 8px;
  color: #f5b24d;
}

@media (max-width: 1100px) {
  .client-body.mobile-menu-open {
    overflow: hidden;
  }
  .menu-toggle {
    display: block;
  }
  .client-shell {
    display: block;
    padding: 68px 14px 30px;
    max-width: 100%;
  }
  .client-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    width: min(86vw, 360px);
    max-height: 100vh;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 18px 0 42px rgba(2, 8, 23, .32);
    border-right: 1px solid #e2c393;
  }
  .client-body.mobile-menu-open .client-sidebar {
    transform: translateX(0);
  }
  .menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(2, 8, 23, .48);
  }
  .client-body.mobile-menu-open .menu-overlay {
    display: block;
  }
  .home-button {
    top: 12px;
    left: 62px;
    z-index: 100;
  }
  .language-switcher {
    z-index: 100;
  }
  .client-main h1 {
    font-size: clamp(25px, 8vw, 36px);
    line-height: 1.15;
    margin-bottom: 16px;
  }
  .client-main h2 {
    font-size: 22px;
  }
  .client-heading-panel,
  .client-section,
  .result-block {
    margin-bottom: 18px;
  }
  .event-card-grid {
    grid-template-columns: 1fr;
  }
  .category-info-grid,
  .client-dl,
  .event-info-list {
    grid-template-columns: 1fr;
  }
  .category-card {
    display: block;
  }
  .category-card-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }
  .client-section,
  .result-block,
  .wide-scroll,
  .marks-scroll,
  .heat-competitor-table-wrap {
    overflow-x: auto;
  }
  .client-table {
    min-width: 560px;
  }
  .compact-public {
    min-width: 520px;
  }
  .heat-public {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .client-live-status {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }
}

@media (max-width: 520px) {
  .client-shell {
    padding-left: 10px;
    padding-right: 10px;
  }
  .home-button,
  .menu-toggle {
    width: 38px;
    height: 38px;
    line-height: 38px;
  }
  .home-button {
    left: 56px;
  }
  .language-button {
    min-width: 68px;
    height: 32px;
    padding: 0 8px;
  }
  .event-card,
  .category-card,
  .official-report-public,
  .rule-block-public {
    padding: 12px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-box strong {
    font-size: 22px;
  }
}


/* v41: vizualizare arbitraj online protejată */
.protected-online-body { background: #f6f3ea; }
.protected-shell { width: min(1440px, calc(100vw - 24px)); margin: 18px auto 40px; }
.protected-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.protected-head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.protected-login-card { max-width: 520px; margin: 0 auto; }
.protected-login-form input { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(15,23,42,.18); }
.protected-event-grid { margin-top: 16px; }
.protected-category-list { margin-top: 16px; }
.protected-category-actions { gap: 8px; }
.protected-category-actions .client-tab,
.protected-category-actions .client-primary { text-decoration: none; text-align: center; }
.protected-results-table-wrap { margin-top: 14px; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; margin-top: 14px; }
.summary-item { border: 1px solid rgba(15,23,42,.12); border-radius: 12px; padding: 12px; background: #fff; }
.summary-item strong { display: block; font-size: 19px; margin-top: 4px; word-break: break-word; }
.summary-item span { color: #6b7280; font-size: 12px; }
.summary-item.wide { grid-column: 1 / -1; }
.summary-item select { width: 100%; max-width: 100%; padding: 8px 10px; border: 1px solid #cfd8e3; border-radius: 8px; background: #fff; }
.live-judging-table th,
.live-judging-table td { text-align: center; vertical-align: middle; }
.live-judging-table th:first-child,
.live-judging-table td:first-child { text-align: left; min-width: 220px; }
.live-cell { min-width: 38px; padding: 5px 8px; border: 1px solid #d6dee8; border-radius: 8px; background: #eef2f7; color: #1f2937; cursor: pointer; }
.live-cell.has-marks { background: #fff4bd; border-color: #e2b84d; font-weight: 800; }
.live-cell.disabled { display: inline-block; cursor: default; min-height: 28px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.48); padding: 24px; }
.modal-backdrop.hidden { display: none; }
.modal-card { width: min(560px, 96vw); max-height: 90vh; overflow: auto; border-radius: 16px; background: #fff; box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32); padding: 18px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.modal-head h3 { margin: 0; }
.danger-lite { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.25); color: #991b1b; }
@media (max-width: 700px) {
  .protected-shell { width: min(100vw - 14px, 100%); margin-top: 8px; }
  .protected-head { flex-direction: column; }
  .protected-head-actions { width: 100%; justify-content: stretch; }
  .protected-head-actions > * { flex: 1; }
  .live-judging-table th:first-child,
  .live-judging-table td:first-child { min-width: 160px; }
}

/* v43 - protected online results: same mobile/tablet structure as public live page */
.protected-online-body {
  background: #f6f3ea;
}
.protected-client-shell {
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  max-width: 1500px;
}
.protected-main {
  min-width: 0;
}
.protected-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.protected-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.protected-login-card {
  max-width: 520px;
  margin: 0 auto;
}
.protected-login-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, .18);
}
.protected-event-grid {
  margin-top: 16px;
}
.protected-category-list {
  margin-top: 16px;
}
.protected-category-actions {
  gap: 8px;
}
.protected-category-actions .client-tab,
.protected-category-actions .client-primary {
  text-decoration: none;
  text-align: center;
}
.protected-menu-hint {
  display: none;
}
.protected-sidebar .sidebar-row,
.protected-sidebar .link-row {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.protected-sidebar .link-row {
  display: block;
}
.sidebar-current-card {
  padding: 12px 14px;
  background: rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .24);
}
.sidebar-current-card strong,
.sidebar-current-card span {
  display: block;
}
.sidebar-current-card span {
  opacity: .82;
  font-size: 12px;
  margin-top: 3px;
}
.protected-sidebar-category.selected > .protected-category-row,
.protected-category-row.selected {
  background: #210f24;
}
.protected-category-submenu .category-tab-row {
  width: 100%;
  border: 0;
  color: #fff;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.protected-category-submenu .category-tab-row:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.protected-category-submenu .category-tab-row.selected {
  background: #210f24;
}
.protected-results-table-wrap {
  margin-top: 14px;
}
.protected-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.summary-item {
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.summary-item strong {
  display: block;
  font-size: 19px;
  margin-top: 4px;
  word-break: break-word;
}
.summary-item span {
  color: #6b7280;
  font-size: 12px;
}
.summary-item.wide {
  grid-column: 1 / -1;
}
.summary-item select {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #fff;
}
.live-judging-table {
  table-layout: auto;
}
.live-judging-table th,
.live-judging-table td {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.live-judging-table th:first-child,
.live-judging-table td:first-child {
  text-align: left;
  min-width: 220px;
  white-space: normal;
}
.live-cell {
  min-width: 38px;
  padding: 5px 8px;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  background: #eef2f7;
  color: #1f2937;
  cursor: pointer;
  box-sizing: border-box;
}
.live-cell.has-marks {
  background: #fff4bd;
  border-color: #e2b84d;
  font-weight: 800;
}
.live-cell.disabled {
  display: inline-block;
  cursor: default;
  min-height: 28px;
}
.protected-results-cards {
  display: none;
  margin-top: 12px;
  gap: 10px;
}
.protected-judging-card {
  border: 1px solid #e7d5be;
  border-radius: 14px;
  background: #fffdf9;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}
.protected-judging-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ecd2ad;
}
.protected-judging-card-head > div:first-child {
  min-width: 0;
}
.protected-start-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 30px;
  margin-right: 8px;
  border-radius: 999px;
  background: #210f24;
  color: #fff;
}
.protected-judging-card-head span {
  word-break: break-word;
}
.protected-card-result {
  text-align: center;
  min-width: 44px;
  padding: 4px 7px;
  border-radius: 9px;
  background: #f2f2f2;
}
.protected-card-result span {
  display: block;
  font-size: 10px;
  color: #64748b;
  line-height: 1;
}
.protected-card-result strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}
.protected-judge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.protected-judge-item {
  display: grid;
  gap: 4px;
  justify-items: stretch;
  min-width: 0;
}
.protected-judge-item > span:first-child {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #071625;
}
.protected-judge-item .live-cell,
.protected-judge-item button.live-cell,
.protected-judge-item span.live-cell {
  width: 100%;
  min-width: 0;
  text-align: center;
  padding: 7px 4px;
}
.protected-calc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #ecd2ad;
}
.protected-calc-strip span {
  flex: 1 1 58px;
  min-width: 58px;
  border-radius: 9px;
  background: #f3f3f3;
  padding: 5px 7px;
  text-align: center;
}
.protected-calc-strip em,
.protected-calc-strip strong {
  display: block;
  font-style: normal;
}
.protected-calc-strip em {
  font-size: 10px;
  color: #64748b;
}
.protected-calc-strip strong {
  font-size: 13px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.48);
  padding: 24px;
}
.modal-backdrop.hidden {
  display: none;
}
.modal-card {
  width: min(560px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
  padding: 18px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.modal-head h3 {
  margin: 0;
}
.danger-lite {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.25);
  color: #991b1b;
}

@media (max-width: 1100px) {
  .protected-client-shell {
    display: block;
    padding: 68px 14px 30px;
    max-width: 100%;
  }
  .protected-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    width: min(86vw, 360px);
    max-height: 100vh;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 18px 0 42px rgba(2, 8, 23, .32);
    border-right: 1px solid #e2c393;
  }
  .client-body.mobile-menu-open .protected-sidebar {
    transform: translateX(0);
  }
  .protected-home-button {
    top: 12px;
    left: 62px;
    z-index: 100;
  }
  .protected-head,
  .protected-mobile-stack {
    flex-direction: column;
    align-items: stretch;
  }
  .protected-head-actions {
    width: 100%;
    justify-content: stretch;
  }
  .protected-head-actions > * {
    flex: 1;
  }
  .protected-main h1 {
    font-size: clamp(25px, 8vw, 36px);
    line-height: 1.15;
  }
  .protected-main h2 {
    font-size: 22px;
    line-height: 1.18;
  }
  .protected-menu-hint {
    display: block;
  }
  .protected-category-actions {
    margin-top: 12px;
  }
  .protected-category-actions .client-tab {
    display: none;
  }
  .protected-results-table-wrap {
    display: none;
  }
  .protected-results-cards {
    display: grid;
  }
  .protected-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .summary-item.wide {
    grid-column: 1 / -1;
  }
  .protected-detail-table {
    min-width: 420px;
  }
}

@media (max-width: 700px) {
  .protected-client-shell {
    padding-left: 10px;
    padding-right: 10px;
  }
  .protected-head-actions {
    gap: 6px;
  }
  .protected-head-actions > * {
    padding-left: 8px;
    padding-right: 8px;
  }
  .protected-summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .summary-item {
    padding: 9px;
    border-radius: 10px;
  }
  .summary-item strong {
    font-size: 16px;
  }
  .summary-item select {
    padding: 7px 8px;
    font-size: 13px;
  }
  .protected-results-header .muted {
    display: none;
  }
  .protected-judging-card {
    padding: 9px;
    border-radius: 12px;
  }
  .protected-judging-card-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .protected-judging-card-head .protected-card-result:nth-child(3) {
    grid-column: 2;
  }
  .protected-start-no {
    min-width: 34px;
    min-height: 28px;
    margin-right: 6px;
  }
  .protected-judge-grid {
    grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
    gap: 6px;
  }
  .protected-judge-item .live-cell,
  .protected-judge-item button.live-cell,
  .protected-judge-item span.live-cell {
    padding: 6px 2px;
    border-radius: 7px;
  }
  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }
  .modal-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 16px 16px 0 0;
    padding: 14px;
  }
}

@media (max-width: 430px) {
  .protected-summary-grid {
    grid-template-columns: 1fr;
  }
  .protected-judge-grid {
    grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
  }
  .protected-card-result {
    min-width: 38px;
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* v43 protected sidebar row aliases */
.protected-sidebar .sidebar-section-title {
  background: #d0831f;
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  border-top: 2px solid #fff;
  text-transform: uppercase;
  font-size: 14px;
}
.protected-sidebar .sidebar-row {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid rgba(255,255,255,0.9);
  background: #6d5870;
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-weight: 800;
  line-height: 1.2;
}
.protected-sidebar .sidebar-row strong,
.protected-sidebar .sidebar-row span {
  display: block;
}
.protected-sidebar .sidebar-row span {
  margin-top: 5px;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  font-size: 12px;
}
.protected-sidebar .sidebar-row:hover,
.protected-sidebar .sidebar-row.selected {
  background: #3e3040;
}
.protected-sidebar .sidebar-row:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* v44 - grupare categorii în meniuri public/protejat */
.category-group-title,
.protected-category-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.category-group-title span,
.protected-category-group-title span {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.20);
  font-size: 12px;
}
.side-category-group-items,
.protected-category-menu-group .protected-sidebar-categories {
  background: #6d5870;
}
.side-empty-compact {
  padding: 9px 16px 10px 28px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.32);
}
.side-category-group-active .category-group-title,
.protected-category-menu-group-live .protected-category-group-title {
  background: #2f7d3c;
}
.side-category-group-not_started .category-group-title {
  background: #8a6b34;
}
.side-category-group-not_closed .category-group-title,
.protected-category-menu-group-not_closed .protected-category-group-title {
  background: #d0831f;
}
.side-category-group-closed .category-group-title,
.protected-category-menu-group-closed .protected-category-group-title {
  background: #4d4651;
}
.protected-category-menu-group .protected-category-row {
  padding-left: 24px;
}

/* v46 - desktop category actions on screen, mobile/tablet actions in menu */
.category-card-actions {
  align-items: flex-start;
}
.category-card-action-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: min(720px, 100%);
}
.category-open-button {
  white-space: nowrap;
}
.category-screen-tab {
  border: 1px solid #d0831f;
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 36px;
  line-height: 1;
  background: #fff8ee;
  color: #8a4d00;
  box-shadow: none;
}
.category-screen-tab:hover,
.category-screen-tab:focus-visible,
.category-screen-tab.selected,
.category-screen-tab.is-default {
  background: #d0831f;
  color: #fff;
}
.public-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.public-category-tabs .category-screen-tab {
  font-weight: 800;
}
.public-mobile-menu-hint {
  display: none;
}
@media (min-width: 1101px) {
  .client-sidebar .category-submenu {
    display: none;
  }
  .category-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
  }
}
@media (max-width: 1100px) {
  .category-card-action-tabs,
  .public-category-tabs {
    display: none;
  }
  .public-mobile-menu-hint {
    display: block;
    margin-top: 12px;
  }
  .category-card-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
}


/* v47 - accordion category groups: one open group at a time */
.category-group-title,
.protected-category-group-title {
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.category-group-title::after,
.protected-category-group-title::after {
  content: '▸';
  margin-left: 8px;
  font-size: 13px;
  opacity: .92;
}
.category-group-title.is-open::after,
.protected-category-group-title.is-open::after {
  content: '▾';
}
.category-group-title span,
.protected-category-group-title span {
  margin-left: auto;
  margin-right: 6px;
}
.side-category-group-items[hidden],
.protected-sidebar-categories[hidden] {
  display: none !important;
}
.side-category-group.is-collapsed + .side-category-group .category-group-title,
.protected-category-menu-group.is-collapsed + .protected-category-menu-group .protected-category-group-title {
  border-top-color: rgba(255,255,255,.85);
}


/* v50 - discreet sum sorting controls for non-final result tables */
.results-sort-toggle,
.protected-sort-toggle {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid rgba(193, 127, 24, .25);
  background: rgba(255, 249, 239, .55);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.results-sort-toggle label,
.protected-sort-toggle strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}
.results-sort-toggle input,
.protected-sort-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
}
.protected-sort-toggle strong {
  font-size: 13px;
  font-weight: 700;
}
.protected-sort-toggle em {
  font-style: normal;
  color: #374151;
}
@media (max-width: 760px) {
  .results-sort-toggle,
  .protected-sort-toggle {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    justify-content: flex-start;
  }
}


.results-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 6px 0 14px; }
.results-detail-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #0f172a; background: #f8fafc; border: 1px solid #d7dee8; border-radius: 999px; padding: 6px 10px; cursor: pointer; user-select: none; }
.results-detail-toggle input { width: 14px; height: 14px; margin: 0; }
.result-detail-cell { min-width: 28px; padding: 3px 7px; border: 1px solid #d7dee8; border-radius: 7px; background: #f8fafc; color: inherit; font: inherit; font-weight: 700; line-height: 1.1; cursor: pointer; }
.result-detail-cell:hover,
.result-detail-cell:focus { background: #fff4bd; border-color: #e2b84d; outline: none; }
.result-detail-cell.total-cell { font-weight: 900; }
.result-detail-modal-card { width: min(680px, 96vw); }
.result-detail-summary { margin-bottom: 12px; }
.dance-detail-table th,
.dance-detail-table td { text-align: center; }
.dance-detail-table th:first-child,
.dance-detail-table td:first-child { text-align: left; }

.result-detail-person-line { margin: 0 0 12px; font-weight: 800; color: #071d3a; }
.dance-detail-horizontal-table th,
.dance-detail-horizontal-table td { white-space: nowrap; }
.dance-detail-horizontal-table td:first-child { font-weight: 700; }



/* v42: rezultate cu detalii pe dans active direct */
.result-detail-modal-card { width: min(760px, 96vw); }
.result-detail-person-line { margin: 0 0 12px; font-weight: 800; color: #071d3a; }
.dance-detail-table { width: 100%; table-layout: fixed; }
.dance-detail-table th,
.dance-detail-table td { text-align: center; vertical-align: middle; white-space: nowrap; min-width: 56px; }
.single-official-detail-table th:first-child,
.single-official-detail-table td:first-child { text-align: center; }
.all-officials-detail-table th:first-child,
.all-officials-detail-table td:first-child { text-align: left; width: 210px; }
.dance-detail-horizontal-table td:first-child { font-weight: inherit; }


/* public category page refinements */
.category-section-heading {
  margin: 0 0 22px;
}
.category-section-heading h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  color: #071f3a;
  letter-spacing: .02em;
}
.category-section-heading p {
  margin: 8px 0 0;
  color: #111827;
  font-size: 15px;
}
.recall-results-table th,
.recall-results-table td {
  text-align: center;
  vertical-align: middle;
}
.recall-results-table .round-result-divider th {
  text-align: left;
  font-size: 1.08rem;
  letter-spacing: .05em;
  padding-top: 15px;
  padding-bottom: 10px;
}
.officials-table th,
.officials-table td {
  vertical-align: middle;
}
.category-card-status-line,
.category-card-dance-line {
  margin-top: 7px;
}
.category-card-dance-line span {
  font-weight: 700;
  color: #0b2239;
}


/* v43 - public fixes: no duplicate section titles, aligned additional info, robust official/result tables */
.embedded-category-heading p {
  margin: 8px 0 0;
  color: #111827;
  font-size: 15px;
}
.additional-info-dl {
  grid-template-columns: max-content minmax(3rem, auto) !important;
  column-gap: 28px;
  max-width: 420px;
  align-items: baseline;
}
.additional-info-dl dt {
  white-space: nowrap;
}
.additional-info-dl dd {
  justify-self: end;
  min-width: 3rem;
  text-align: right;
}
.round-result-divider th {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .055em;
}
.officials-table {
  width: 100%;
  max-width: 720px;
  table-layout: fixed;
}
.officials-table th,
.officials-table td {
  text-align: left;
}
.officials-table th:first-child,
.officials-table td:first-child {
  width: auto;
}
.recall-results-table thead th {
  text-align: center;
}


/* v44 - public sidebar/category final display fixes */
.selected-event-button {
  display: block;
  width: 100%;
  border: 0;
  text-align: left;
  color: #fff;
  cursor: pointer;
}
.selected-event-button:hover,
.selected-event-button:focus {
  background: #3e3040;
  outline: none;
}
.category-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* v51 - public sidebar category tabs restored after modular split */
.category-submenu {
  display: grid;
  gap: 0;
  background: rgba(49, 37, 51, .18);
  border-bottom: 2px solid rgba(255,255,255,.9);
  padding: 6px 0 8px 18px;
}
.category-submenu-tab {
  appearance: none;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  padding: 9px 12px;
}
.category-submenu-tab:hover,
.category-submenu-tab:focus-visible,
.category-submenu-tab.selected {
  background: rgba(255,255,255,.14);
  border-left-color: #ffd08a;
  outline: 0;
}

/* v51 - in detaliile pe dans nu evidențiem primul dans; evidențiem coloana Sumă */
.dance-detail-table td:first-child {
  color: inherit;
}
.dance-detail-table th:last-child,
.dance-detail-table td:last-child,
.result-detail-cell.total-cell {
  color: #c57b1d;
}
.dance-detail-table td:last-child strong {
  color: inherit;
}

/* v52 - meniul public ascunde grupurile goale si afiseaza totalul categoriilor la eveniment */
.selected-event-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
.selected-event-title-line small {
  margin-bottom: 0;
}
.side-block .selected-event-count,
.selected-event-count {
  display: inline-flex !important;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.20);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}
.side-category-group-single .side-category-group-items {
  border-top: 0;
}


/* v53 - notele din detaliile pe dans sunt centrate sub codul dansului */
.recall-results-table th,
.recall-results-table td,
.marks-detail-table th,
.marks-detail-table td,
.dance-detail-horizontal-table th,
.dance-detail-horizontal-table td,
.single-official-detail-table th,
.single-official-detail-table td {
  text-align: center;
  vertical-align: middle;
}
.all-officials-detail-table th:first-child,
.all-officials-detail-table td:first-child {
  text-align: left;
}
.result-detail-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* v54 - meniu redimensionabil, categorie curentă vizibilă, finale centrate și profiluri responsive */
:root {
  --public-menu-width: 380px;
  --public-display-scale: 1;
}

.client-shell {
  grid-template-columns: var(--public-menu-width) minmax(0, 1fr);
  max-width: min(1540px, calc(100vw - 24px));
}

.client-sidebar {
  width: var(--public-menu-width);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
}

.client-main {
  min-width: 0;
  zoom: var(--public-display-scale);
}

@supports not (zoom: 1) {
  .client-main {
    transform: scale(var(--public-display-scale));
    transform-origin: top left;
    width: calc(100% / var(--public-display-scale));
  }
}

.public-layout-controls {
  padding: 10px 12px 12px;
  background: #2b152e;
  border-bottom: 2px solid rgba(255,255,255,.85);
  color: #fff;
}
.public-layout-title {
  margin-bottom: 7px;
  color: #f5b24d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.public-layout-row {
  display: grid;
  grid-template-columns: minmax(94px, 1fr) 32px 32px;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
}
.public-layout-row button,
.public-layout-reset {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-weight: 900;
}
.public-layout-row button:hover,
.public-layout-reset:hover {
  background: #d0831f;
}
.public-layout-reset {
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
}

.side-row.category-row {
  overflow: visible;
}
.category-row-title {
  display: flex !important;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  min-width: max-content;
}
.category-row-meta {
  white-space: nowrap;
}
.side-row.category-row.selected,
.side-row.category-row.current-category,
.side-row.category-row.selected.active-event,
.side-row.category-row.selected.closed-event {
  background: #210f24 !important;
  color: #fff;
  box-shadow: inset 6px 0 0 #ffd08a, inset 0 0 0 2px rgba(255,208,138,.38);
}
.side-row.category-row.selected .category-row-meta,
.side-row.category-row.current-category .category-row-meta {
  color: #ffd08a;
}
.category-selected-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ffd08a;
  box-shadow: 0 0 0 3px rgba(255,208,138,.22);
}
.category-submenu .category-submenu-tab.selected {
  background: #210f24;
  border-left-color: #ffd08a;
}

.final-rule9-table th,
.final-rule9-table td {
  text-align: center !important;
  vertical-align: middle;
  white-space: nowrap;
}
.final-rule9-table th:nth-child(3),
.final-rule9-table td:nth-child(3) {
  text-align: left !important;
  min-width: 280px;
  white-space: normal;
}
.final-rule9-table th:nth-child(n+4),
.final-rule9-table td:nth-child(n+4) {
  min-width: 58px;
}
.final-rule9-table th:last-child,
.final-rule9-table td:last-child {
  min-width: 78px;
}

@media (min-width: 1600px) {
  .client-shell {
    max-width: min(1920px, calc(100vw - 32px));
    gap: 42px;
  }
  .client-main h1 {
    font-size: clamp(38px, 3vw, 56px);
  }
  .client-table {
    font-size: 15px;
  }
}

@media (max-width: 1100px) {
  .client-shell {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .client-sidebar {
    width: min(96vw, var(--public-menu-width));
    max-width: 96vw;
  }
  .public-layout-controls {
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .category-row-title,
  .category-row-meta {
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .public-layout-row {
    grid-template-columns: minmax(86px, 1fr) 30px 30px;
  }
  .client-main h1 {
    font-size: clamp(23px, 7vw, 32px);
  }
  .client-main h2 {
    font-size: 20px;
  }
  .final-rule9-table th:nth-child(3),
  .final-rule9-table td:nth-child(3) {
    min-width: 230px;
  }
}

/* v55 - fara controale vizibile; redimensionare cu mouse-ul */
.public-layout-controls {
  display: none !important;
}

@media (min-width: 1101px) {
  .client-sidebar {
    position: relative;
    cursor: default;
  }
  .client-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: -6px;
    width: 12px;
    height: 100%;
    cursor: col-resize;
    z-index: 4;
  }
  .client-sidebar.can-resize,
  .client-sidebar.is-resizing,
  body.public-resizing-menu {
    cursor: col-resize !important;
  }
  body.public-resizing-menu,
  body.public-resizing-menu * {
    user-select: none !important;
  }
  .client-sidebar.is-resizing::after,
  .client-sidebar.can-resize::after {
    background: linear-gradient(to right, transparent, rgba(255, 208, 138, .45), transparent);
  }
  .client-main {
    transform-origin: top left;
  }
}

@media (min-width: 701px) {
  .client-main {
    position: relative;
  }
  .client-main::after {
    content: '';
    position: fixed;
    right: 8px;
    bottom: 8px;
    width: 24px;
    height: 24px;
    cursor: nwse-resize;
    z-index: 3;
  }
  .client-main.can-resize-screen,
  .client-main.is-screen-resizing,
  body.public-resizing-screen {
    cursor: nwse-resize !important;
  }
  body.public-resizing-screen,
  body.public-resizing-screen * {
    user-select: none !important;
  }
  .client-main.can-resize-screen::after,
  .client-main.is-screen-resizing::after {
    background: linear-gradient(135deg, transparent 50%, rgba(208, 131, 31, .35) 50%);
    border-radius: 4px;
  }
}


/* v56 - meniu inchis/deschis din buton, fara buton Home separat */
.home-button {
  display: none !important;
}
@media (min-width: 1101px) {
  .menu-toggle {
    display: block;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    line-height: 38px;
    z-index: 150;
  }
  .client-shell {
    padding-left: 64px;
    transition: grid-template-columns .18s ease, padding-left .18s ease;
  }
  .client-body.desktop-menu-collapsed .client-shell {
    grid-template-columns: 0 minmax(0, 1fr);
    gap: 0;
    padding-left: 64px;
  }
  .client-body.desktop-menu-collapsed .client-sidebar {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    padding: 0 !important;
    visibility: hidden;
  }
  .client-body.desktop-menu-collapsed .client-main {
    width: 100%;
  }
}
.category-card-dance-line span {
  white-space: normal;
}
.final-rule9-table th,
.final-rule9-table td,
.final-rule9-table tbody td,
.final-rule9-table thead th {
  text-align: center !important;
  vertical-align: middle !important;
}
.final-rule9-table th:nth-child(3),
.final-rule9-table td:nth-child(3) {
  text-align: left !important;
}

/* v60 - navigare fara meniu, filtre evenimente/categorii, grupare responsive */
.events-hero-panel .lead,
.events-hero-panel p.lead {
  display: none !important;
}

.public-top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.public-back-button,
.event-return-tab {
  background: #2b152e !important;
  color: #fff !important;
  border-color: #2b152e !important;
}
.public-back-button:hover,
.event-return-tab:hover {
  background: #d0831f !important;
  border-color: #d0831f !important;
}

.public-filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid #ead7b7;
  border-radius: 12px;
  background: #fffaf3;
}
.public-filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #5e4a34;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.public-filter-panel input,
.public-filter-panel select {
  min-height: 38px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8c1a0;
  border-radius: 10px;
  background: #fff;
  color: #071625;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 10px;
  text-transform: none;
  letter-spacing: 0;
}
.public-filter-panel input:focus,
.public-filter-panel select:focus {
  outline: 2px solid rgba(208, 131, 31, .35);
  border-color: #d0831f;
}

.event-list-group,
.category-overview-group {
  margin-top: 18px;
}
.event-list-group > h3,
.category-overview-group > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 9px 12px;
  border-left: 5px solid #d0831f;
  background: #fff4e3;
  color: #2b152e;
  font-size: 18px;
  text-transform: uppercase;
}
.event-list-group > h3 span,
.category-overview-group > h3 span {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d0831f;
  color: #fff;
  font-size: 13px;
}
.event-list-group.closed-events > h3,
.category-overview-group-closed > h3 {
  border-left-color: #6d5870;
  background: #f2edf3;
}
.category-overview-group-active > h3 {
  border-left-color: #2f7f3e;
  background: #edf8ef;
}
.category-overview-group-not_started > h3 {
  border-left-color: #a47a2d;
  background: #fff7e6;
}

.public-event-list,
.public-category-list {
  min-width: 0;
}

.event-card .client-dl dd,
.event-card .client-dl dt {
  word-break: normal;
}

@media (max-width: 1100px) {
  .client-body.desktop-menu-collapsed .client-shell,
  .client-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
  .public-filter-panel {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
  .embedded-category-tabs.public-category-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 8px 0;
    background: #fff;
    overflow-x: auto;
    white-space: nowrap;
  }
  .embedded-category-tabs.public-category-tabs .client-tab {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .public-filter-panel {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .client-hero-panel h1,
  .client-heading-panel h1 {
    font-size: clamp(24px, 8vw, 34px);
  }
  .event-list-group > h3,
  .category-overview-group > h3 {
    font-size: 15px;
  }
  .category-card {
    grid-template-columns: 1fr;
  }
  .category-card-actions {
    justify-content: flex-start;
  }
  .category-card-action-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 2px;
  }
  .category-card-action-tabs .client-tab {
    flex: 0 0 auto;
  }
}

@media (orientation: portrait) and (max-width: 900px) {
  .client-shell {
    gap: 14px;
  }
  .event-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (orientation: landscape) and (max-height: 640px) {
  .client-sidebar {
    max-height: calc(100vh - 8px);
    top: 4px;
  }
  .client-heading-panel,
  .client-hero-panel,
  .client-section {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* v64 - mobile/tablet navigation without relying on side menu */
.category-card-clickable {
  cursor: pointer;
}
.category-card-clickable:focus-visible {
  outline: 3px solid rgba(208, 131, 31, .45);
  outline-offset: 3px;
}
.category-card-clickable:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}
.category-card-mobile-hint {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #8a4d00;
}
.public-category-mobile-nav {
  display: none;
}

@media (max-width: 1100px) {
  .category-card-action-tabs {
    display: none !important;
  }
  .category-card-mobile-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff8ee;
    border: 1px solid #ead7b7;
  }
  .category-card-mobile-hint::after {
    content: '›';
    font-size: 16px;
    line-height: 1;
  }
  .category-card {
    touch-action: manipulation;
  }
  .category-card h3,
  .category-card-main,
  .category-meta-line {
    min-width: 0;
  }
  .category-card h3 {
    overflow-wrap: anywhere;
  }
  .embedded-category-tabs.public-category-tabs {
    display: none !important;
  }
  .public-category-mobile-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: end;
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 12px 0 0;
    padding: 8px;
    border: 1px solid #ead7b7;
    border-radius: 14px;
    background: rgba(255, 250, 243, .98);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .10);
  }
  .category-mobile-event-button {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    white-space: nowrap;
    background: #2b152e !important;
    color: #fff !important;
    border-color: #2b152e !important;
  }
  .category-mobile-select-label {
    display: grid;
    gap: 4px;
    min-width: 0;
    font-size: 11px;
    font-weight: 800;
    color: #5f4863;
    text-transform: uppercase;
    letter-spacing: .03em;
  }
  .category-mobile-tab-select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d7c4a8;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    background: #fff;
  }
}

@media (max-width: 520px) {
  .public-category-mobile-nav {
    grid-template-columns: 1fr;
  }
  .category-mobile-event-button,
  .category-mobile-tab-select {
    min-height: 42px;
  }
  .category-card-mobile-hint {
    width: fit-content;
  }
}

/* v42 - portrait phone/tablet layout for public display */
html {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
.client-body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.client-main,
.client-section,
.result-block,
.client-heading-panel,
.client-hero-panel,
.wide-block,
.wide-scroll,
.marks-scroll,
.heat-competitor-table-wrap {
  min-width: 0;
  max-width: 100%;
}
.wide-scroll,
.marks-scroll,
.heat-competitor-table-wrap,
.protected-results-table-wrap {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.client-table th,
.client-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}
.category-card-main,
.event-card,
.category-card,
.browser-event-row,
.browser-event-date,
.browser-event-location,
.browser-event-details {
  min-width: 0;
}
.category-card h3,
.event-card h3,
.client-main h1,
.client-main h2,
.client-main h3 {
  overflow-wrap: anywhere;
}

@media (max-width: 820px) and (orientation: portrait) {
  .client-shell {
    display: block;
    padding: 64px 10px 28px;
    width: 100%;
    max-width: 100%;
  }
  .event-browser-mode .client-shell {
    padding: 66px 10px 26px;
  }
  .client-sidebar {
    width: min(92vw, 380px);
  }
  .menu-toggle,
  .home-button {
    top: 10px;
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
  .menu-toggle { left: 10px; }
  .home-button { left: 58px; }
  .language-switcher {
    top: 10px;
    right: 8px;
  }
  .language-button,
  .public-language-select {
    height: 34px;
    min-width: 64px;
    max-width: 128px;
    padding: 0 8px;
    font-size: 12px;
  }
  .client-main h1 {
    font-size: clamp(21px, 7.2vw, 30px);
    line-height: 1.12;
    letter-spacing: 0.015em;
    margin-bottom: 12px;
  }
  .client-main h2 {
    font-size: clamp(18px, 5.4vw, 23px);
    line-height: 1.18;
    margin: 16px 0 10px;
  }
  .client-main h3 {
    font-size: 17px;
    line-height: 1.2;
  }
  .lead,
  .category-context-line {
    font-size: 14px;
    line-height: 1.38;
  }
  .client-hero-panel,
  .client-heading-panel,
  .client-section,
  .result-block {
    padding: 4px 0 14px;
    margin-bottom: 16px;
  }
  .client-action-bar,
  .embedded-category-tabs,
  .protected-head-actions,
  .protected-category-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .client-action-bar .client-tab,
  .embedded-category-tabs .client-tab,
  .protected-head-actions .client-tab,
  .protected-head-actions .client-primary,
  .protected-category-actions .client-tab,
  .protected-category-actions .client-primary {
    width: 100%;
    min-height: 42px;
    padding: 9px 8px;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
  }
  .client-primary,
  .client-tab,
  .tiny-button,
  button {
    touch-action: manipulation;
  }
  .category-card,
  .event-card {
    display: block;
    width: 100%;
    padding: 12px;
  }
  .category-card-main {
    width: 100%;
    min-width: 0;
  }
  .category-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
    max-width: none;
    width: 100%;
    margin-top: 12px;
  }
  .category-card-actions .client-primary,
  .category-card-actions .client-tab {
    width: 100%;
    min-height: 42px;
    padding: 9px 8px;
    text-align: center;
    line-height: 1.15;
    white-space: normal;
  }
  .category-card-list {
    gap: 8px;
  }
  .category-info-grid,
  .client-dl,
  .event-info-list,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .event-info-list dt,
  .client-dl dt {
    margin-top: 6px;
  }
  .event-info-list dd,
  .client-dl dd {
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(208, 131, 31, .22);
  }
  .stat-box {
    padding: 10px 8px;
  }
  .stat-box strong {
    font-size: 22px;
  }
  .public-filter-panel,
  .category-filter-panel {
    width: 100%;
  }
  .public-filter-panel .inline,
  .category-filter-panel .inline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .public-search,
  input,
  select {
    max-width: 100%;
  }
  .heats-public-block .heats-category-title {
    font-size: clamp(22px, 7vw, 30px);
  }
  .heat-dance-block h3 {
    font-size: 18px;
  }
  .heat-public {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .heat-numbers-public {
    gap: 6px;
  }
  .heat-numbers-public span,
  .numbers .number {
    min-width: 34px;
    height: 30px;
    padding: 0 7px;
  }
  .heats-view-toggle {
    max-width: 100%;
    font-size: 13px;
  }
  .client-table {
    min-width: 0;
    font-size: 12px;
  }
  .client-table th,
  .client-table td {
    padding: 7px 6px;
  }
  .ranking-table td:first-child {
    width: 34px;
  }
  .ranking-table th:nth-child(2),
  .ranking-table td:nth-child(2) {
    min-width: 150px;
  }
  .compact-public {
    min-width: 0;
  }
  .marks-table,
  .marks-detail-table,
  .skating-majority-table,
  .marks-matrix,
  .heat-competitor-table,
  .live-judging-table {
    width: max-content;
    min-width: 100%;
  }
  .marks-table th,
  .marks-table td,
  .marks-detail-table th,
  .marks-detail-table td,
  .skating-majority-table th,
  .skating-majority-table td,
  .marks-matrix th,
  .marks-matrix td,
  .heat-competitor-table th,
  .heat-competitor-table td,
  .live-judging-table th,
  .live-judging-table td {
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .marks-table th:first-child,
  .marks-table td:first-child,
  .marks-detail-table th:first-child,
  .marks-detail-table td:first-child,
  .live-judging-table th:first-child,
  .live-judging-table td:first-child {
    min-width: 40px;
  }
  .marks-table th:nth-child(2),
  .marks-table td:nth-child(2),
  .marks-detail-table th:nth-child(2),
  .marks-detail-table td:nth-child(2),
  .live-judging-table th:nth-child(2),
  .live-judging-table td:nth-child(2) {
    min-width: 160px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .official-report-public,
  .rule-block-public {
    padding: 10px;
    margin: 10px 0;
  }
  .public-toast-stack {
    top: 58px;
    right: 8px;
    left: 8px;
    max-width: none;
  }
  .client-live-status {
    right: 8px;
    bottom: 8px;
    max-width: calc(100vw - 16px);
    padding: 5px 8px;
    font-size: 11px;
    opacity: .92;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  .client-shell,
  .event-browser-mode .client-shell {
    padding-left: 8px;
    padding-right: 8px;
  }
  .client-main h1 {
    font-size: clamp(20px, 7.8vw, 27px);
  }
  .client-main h2 {
    font-size: 18px;
  }
  .client-action-bar,
  .embedded-category-tabs,
  .category-card-actions,
  .protected-head-actions,
  .protected-category-actions {
    grid-template-columns: 1fr;
  }
  .client-tab,
  .client-primary {
    min-height: 42px;
  }
  .event-card-top,
  .category-meta-line {
    gap: 6px;
  }
  .badge,
  .pill,
  .browser-event-meta span {
    font-size: 11px;
  }
  .client-table {
    font-size: 11.5px;
  }
  .client-table th,
  .client-table td {
    padding: 6px 5px;
  }
  .ranking-table th:nth-child(2),
  .ranking-table td:nth-child(2) {
    min-width: 120px;
  }
  .side-row {
    padding: 13px 14px;
  }
  .category-tab-row {
    min-height: 44px;
    padding-left: 28px;
  }
}

@media (max-width: 820px) and (orientation: portrait) {
  .protected-shell {
    width: min(100%, calc(100vw - 16px));
    margin: 8px auto 28px;
  }
  .protected-head {
    display: block;
  }
  .protected-head-actions {
    margin-top: 10px;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    align-items: flex-start;
    padding: 10px;
  }
  .modal-card {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    padding: 14px;
  }
}

/* v51 - online.log live page shares public event layout, protected actions only */
.protected-public-like-head {
  margin-top: 0;
}
.protected-public-top-nav {
  margin-bottom: 6px;
}
.protected-category-filter-panel {
  grid-template-columns: minmax(220px, 1fr);
}
.protected-category-overview-group h3 {
  margin: 0 0 10px;
  color: #2b152e;
}
.protected-category-card .category-card-actions {
  justify-content: flex-end;
}
.protected-head-actions {
  position: sticky;
  top: 10px;
  z-index: 40;
  align-self: flex-start;
}
.protected-head-actions .client-tab {
  white-space: nowrap;
}

/* v51 - protected online results aligned with desktop Arbitraj online */
.live-judging-summary {
  grid-template-columns: minmax(210px, .85fr) minmax(360px, 1.65fr) minmax(140px, .55fr) minmax(120px, .45fr);
  align-items: stretch;
}
.live-judging-summary .summary-item.wide {
  grid-column: auto;
}
.live-judging-control-stack,
.live-judging-meta-stack {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  min-width: 0;
}
.live-judging-control-stack:empty { display: none; }
.live-row-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.live-category-card strong {
  white-space: nowrap;
  overflow: auto;
  word-break: normal;
  font-size: 18px;
}
.live-recalls-card {
  align-self: stretch;
}
.live-judging-table.live-final-table {
  table-layout: fixed;
  min-width: 1120px;
}
.live-judging-table.live-final-table th,
.live-judging-table.live-final-table td {
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.live-judging-table.live-final-table .pair-col {
  width: 260px;
  min-width: 260px;
  text-align: left;
  white-space: normal;
}
.live-judging-table.live-final-table .judge-col,
.live-judging-table.live-final-table .calc-col {
  width: 64px;
  min-width: 64px;
}
.live-judging-table.live-final-table .place-col,
.live-judging-table.live-final-table .sum-col {
  width: 58px;
  min-width: 58px;
}
.live-judging-table.live-final-table .calc-separator {
  border-left: 2px solid #94a3b8;
}
.live-judging-table.live-final-table .judge-group,
.live-judging-table.live-final-table .calc-group {
  font-weight: 900;
  background: #f8fafc;
}
.live-judging-table.live-final-table .live-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
}
.modal-subtitle {
  margin: 4px 0;
}
.modal-dance-table th,
.modal-dance-table td {
  text-align: center;
}
@media (max-width: 1180px) {
  .live-judging-summary {
    grid-template-columns: minmax(190px, .9fr) minmax(300px, 1.4fr);
  }
  .live-recalls-card,
  .live-judging-summary > .summary-item,
  .live-judging-summary > .protected-sort-toggle {
    grid-column: auto;
  }
}
@media (max-width: 1100px) {
  .protected-head-actions {
    position: static;
  }
  .protected-category-card .category-card-actions {
    align-items: stretch;
  }
  .protected-category-card .category-card-actions .client-primary {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .live-judging-summary,
  .live-row-pair {
    grid-template-columns: 1fr;
  }
}

/* v65 - rezultate online cu layout identic paginii live publice */
.protected-online-body {
  background: #ffffff;
}
.protected-client-shell {
  grid-template-columns: var(--public-menu-width) minmax(0, 1fr);
  max-width: min(1540px, calc(100vw - 24px));
}
.protected-sidebar {
  width: var(--public-menu-width);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
}
.protected-category-card[role="button"] {
  cursor: pointer;
}
.protected-category-card[role="button"]:focus-visible {
  outline: 3px solid rgba(208, 131, 31, .45);
  outline-offset: 3px;
}
.protected-category-overview-group > h3 span.muted {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #d0831f;
  color: #fff;
  font-size: 13px;
  opacity: 1;
}
.protected-sidebar .sidebar-current-card {
  background: #27132a;
  color: #fff;
  border-bottom: 2px solid #fff;
}
.protected-sidebar .sidebar-current-card span {
  color: rgba(255,255,255,0.82);
}
@media (min-width: 1101px) {
  .client-body.desktop-menu-collapsed .protected-client-shell {
    grid-template-columns: 0 minmax(0, 1fr);
    gap: 0;
    padding-left: 64px;
  }
  .client-body.desktop-menu-collapsed .protected-sidebar {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    padding: 0 !important;
    visibility: hidden;
  }
}
#logoutButton {
  display: none !important;
}

/* v59 - compact public event header and stable statistics row */
.event-heading-panel {
  padding-top: 6px;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.event-heading-panel .public-top-nav {
  margin-bottom: 8px;
}
.event-heading-compact {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr);
  gap: 18px 28px;
  align-items: start;
}
.event-title-block .eyebrow {
  margin-bottom: 4px;
}
.event-title-block h1 {
  font-size: clamp(30px, 3.45vw, 46px);
  line-height: 1.08;
  margin-bottom: 0;
  max-width: 980px;
}
.compact-event-info {
  max-width: none;
  align-self: stretch;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 7px 12px;
  padding: 12px 14px;
  border: 1px solid #f0d4ad;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 249, 240, .75), rgba(255,255,255,.95));
}
.client-section {
  margin-bottom: 18px;
}
.client-section h2 {
  margin-top: 12px;
  margin-bottom: 12px;
}
.stats-grid {
  max-width: none;
  grid-template-columns: repeat(6, minmax(108px, 1fr));
  gap: 10px;
}
.stat-box {
  min-width: 0;
  padding: 10px 8px;
}
.stat-box strong {
  font-size: 24px;
  line-height: 1;
}
.stat-box span {
  display: block;
  margin-top: 5px;
  line-height: 1.15;
}
.event-categories-section h2 {
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .event-heading-compact {
    grid-template-columns: 1fr;
  }
  .compact-event-info {
    max-width: 720px;
  }
  .stats-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
}

@media (max-width: 640px) {
  .event-title-block h1 {
    font-size: clamp(25px, 8vw, 34px);
  }
  .compact-event-info {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* v60 - categorii TopTurnier anulate */
.side-category-group-cancelled .category-group-title,
.protected-category-menu-group-cancelled .protected-category-group-title {
  background: #9f1d20;
}
.category-overview-group-cancelled > h3 {
  border-left-color: #9f1d20;
  background: #fff1f1;
}
.category-card.is-cancelled,
.category-card.status-cancelled {
  opacity: .82;
}

/* v44 - cancelled category summary card and modal */
.stat-box-button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.stat-box-button:hover,
.stat-box-button:focus-visible {
  outline: 2px solid rgba(208, 131, 31, 0.35);
  outline-offset: 2px;
  background: #fff7e8;
}
.cancelled-categories-modal-card {
  width: min(720px, 96vw);
}
.cancelled-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cancelled-category-row {
  border: 1px solid rgba(208, 131, 31, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fffaf2;
}
.cancelled-category-row strong {
  display: block;
  color: #17233a;
}
.cancelled-category-row span {
  display: block;
  margin-top: 4px;
  color: #526173;
  font-size: 13px;
}


/* v65 - modale statistici, filtre dinamice, tabele rezultate uniforme */
.stat-details-modal-card {
  width: min(820px, 96vw);
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.stat-modal-head,
.modal-head.stat-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(208, 131, 31, 0.22);
}
.stat-modal-body {
  overflow-y: auto;
  max-height: min(70vh, 680px);
  padding-right: 4px;
}
.cancelled-category-list {
  max-height: calc(20 * 44px);
  overflow-y: auto;
  padding-right: 4px;
}
.modal-close-sticky {
  position: sticky;
  top: 0;
}
.event-filter-panel {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.category-filter-panel {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.public-results-table {
  table-layout: fixed;
  width: 100%;
}
.public-results-table .rank-col { width: 46px; }
.public-results-table .pair-col { width: 54%; }
.public-results-table .country-col { width: 24%; }
.public-results-table .start-col { width: 110px; }
.public-results-table th,
.public-results-table td {
  vertical-align: middle;
}
.public-results-table th:nth-child(4),
.public-results-table td:nth-child(4) {
  text-align: center;
}
.result-block .ranking-table,
.result-block .public-results-table {
  margin-top: 4px;
}


/* v0.66: locurile/range-urile nu se rup pe mai multe rânduri */
.rank-nowrap,
.ranking-table td:first-child,
.recall-results-table td:first-child,
.public-results-table td:first-child { white-space: nowrap; }
.recall-results-table th,
.recall-results-table td { vertical-align: middle; }


/* v2.0.2 - rânduri interactive în statistici și stări concurenți */
.interactive-stat-row {
  padding: 0;
  overflow: hidden;
}
.stat-row-button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: inherit;
  padding: 10px 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.stat-row-button:hover,
.stat-row-button:focus-visible {
  background: #fff2dc;
  outline: 2px solid rgba(208, 131, 31, .42);
  outline-offset: -2px;
}
.competitor-details-modal-card {
  width: min(860px, 96vw);
}
.competitor-details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.competitor-details-head h3 {
  margin: 2px 0 0;
}
.competitor-country {
  margin: 6px 0 0;
  color: #526173;
}
.competitor-registration-table th:last-child,
.competitor-registration-table td:last-child,
.participants-status-table th:last-child,
.participants-status-table td:last-child {
  white-space: nowrap;
}
.competitor-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border: 1px solid #b9c4d3;
  border-radius: 999px;
  padding: 3px 9px;
  background: #f3f6fa;
  color: #29384d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}
.competitor-status-badge.status-confirmed {
  border-color: #85c99b;
  background: #e6f7eb;
  color: #17652f;
}
.competitor-status-badge.status-excused {
  border-color: #92b9df;
  background: #eaf4ff;
  color: #174f82;
}
.competitor-status-badge.status-unexcused {
  border-color: #e3b451;
  background: #fff4cf;
  color: #7d5600;
}
.competitor-status-badge.status-disqualified {
  border-color: #dc8b8b;
  background: #fff0f0;
  color: #9f1d20;
}
.competitor-status-badge.status-unconfirmed {
  border: 2px dashed #c27b15;
  background: #fff4dc;
  color: #7a4900;
}
.competitor-status-badge.status-removed,
.competitor-status-badge.status-unknown {
  border-color: #b8bec8;
  background: #f0f1f3;
  color: #59616d;
}
.participant-status-unconfirmed td:first-child {
  border-left: 4px solid #c27b15;
}
.participant-status-disqualified {
  opacity: .78;
}
@media (max-width: 720px) {
  .competitor-registration-table,
  .participants-status-table {
    min-width: 620px;
  }
}

/* v2.0.3 - înscrieri, modale cu un singur scroll și filtrare competitori */
body.modal-open {
  overflow: hidden;
}
.stat-details-modal-card {
  max-height: min(90vh, 820px);
  min-height: 0;
}
.stat-modal-head {
  flex: 0 0 auto;
}
.stat-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cancelled-category-list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.stat-modal-head-with-filter,
.stat-modal-title-row,
.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-modal-head-with-filter {
  justify-content: space-between;
}
.stat-modal-title-row {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}
.stat-modal-title-row h3 {
  margin: 0;
}
.competitor-modal-filter {
  width: min(330px, 46vw);
  min-width: 190px;
  margin: 0;
}
.modal-head-actions {
  flex: 0 0 auto;
}
.registration-section + .registration-section {
  margin-top: 34px;
}
.invalid-registration-section h2 {
  color: #8a1f17;
}
.registration-list-table .participant-status-unconfirmed {
  outline: 2px dashed rgba(208, 131, 31, .55);
  outline-offset: -2px;
}
@media (max-width: 680px) {
  .stat-modal-head-with-filter,
  .competitor-details-head {
    align-items: flex-start;
  }
  .competitor-modal-filter {
    width: 100%;
    min-width: 0;
  }
  .modal-head-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

/* v2.0.4 - antet fix și navigare compactă pentru rezultate online */
.protected-persistent-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1800;
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px 12px 68px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #d9e2ef;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  backdrop-filter: blur(10px);
}
.protected-header-event { min-width: 0; }
.protected-header-event .eyebrow { margin: 0 0 2px; }
.protected-header-event h1 {
  margin: 0;
  max-width: min(760px, 58vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(21px, 2.2vw, 34px);
}
.protected-header-meta {
  margin: 3px 0 0;
  color: #60708d;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.protected-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.protected-header-user {
  display: grid;
  gap: 1px;
  min-width: 120px;
  padding: 6px 10px;
  border-radius: 12px;
  background: #f1f5f9;
}
.protected-header-user span { color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.protected-header-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.protected-language-switcher { position: relative; top: auto; right: auto; }
.protected-language-switcher .language-menu { right: 0; left: auto; min-width: 190px; }
.protected-header-visible .protected-client-shell { margin-top: 108px; }
.protected-header-visible .protected-menu-toggle,
.protected-header-visible .protected-home-button { top: 22px; z-index: 1900; }
.protected-sidebar {
  overflow-x: hidden !important;
}
.protected-sidebar .sidebar-content,
.protected-sidebar .protected-category-menu-group,
.protected-sidebar .protected-sidebar-categories,
.protected-sidebar .sidebar-row,
.protected-sidebar .protected-category-group-title {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.protected-sidebar .sidebar-row strong,
.protected-sidebar .sidebar-row span,
.protected-sidebar .protected-category-group-title {
  overflow-wrap: anywhere;
  word-break: normal;
}
.protected-category-card.is-unavailable {
  cursor: default;
  opacity: .78;
  background: #f8fafc;
}
.protected-category-row.is-unavailable { opacity: .65; }
.protected-stats-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
.protected-event-summary-strip { margin-top: 0; }
.protected-event-extra-info { margin: 0; min-width: min(520px, 100%); }
.protected-events-list { margin-top: 0; }
.flag-es { background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%); }
.flag-it { background: linear-gradient(90deg, #009246 0 33.333%, #fff 33.333% 66.666%, #ce2b37 66.666% 100%); }
.flag-de { background: linear-gradient(180deg, #000 0 33.333%, #dd0000 33.333% 66.666%, #ffce00 66.666% 100%); }
.flag-fr { background: linear-gradient(90deg, #0055a4 0 33.333%, #fff 33.333% 66.666%, #ef4135 66.666% 100%); }
.flag-ru { background: linear-gradient(180deg, #fff 0 33.333%, #0039a6 33.333% 66.666%, #d52b1e 66.666% 100%); }
@media (max-width: 980px) {
  .protected-persistent-header { align-items: flex-start; padding-left: 58px; }
  .protected-header-event h1 { max-width: 48vw; }
  .protected-header-actions { max-width: 50vw; }
  .protected-header-user { display: none; }
}
@media (max-width: 720px) {
  .protected-persistent-header { min-height: 122px; padding: 10px 10px 10px 52px; gap: 8px; }
  .protected-header-event h1 { max-width: 46vw; font-size: 19px; white-space: normal; line-height: 1.05; }
  .protected-header-meta { max-width: 46vw; white-space: normal; font-size: 12px; }
  .protected-header-actions { max-width: 52vw; gap: 5px; }
  .protected-header-actions .client-tab { padding: 8px 9px; font-size: 12px; }
  .protected-header-visible .protected-client-shell { margin-top: 136px; }
  .protected-header-visible .protected-menu-toggle,
  .protected-header-visible .protected-home-button { top: 18px; }
  .protected-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v2.0.4 - steagul limbii engleze este steagul SUA */
.flag-en {
  background:
    linear-gradient(180deg,
      #b22234 0 7.69%, #fff 7.69% 15.38%,
      #b22234 15.38% 23.07%, #fff 23.07% 30.76%,
      #b22234 30.76% 38.45%, #fff 38.45% 46.14%,
      #b22234 46.14% 53.83%, #fff 53.83% 61.52%,
      #b22234 61.52% 69.21%, #fff 69.21% 76.90%,
      #b22234 76.90% 84.59%, #fff 84.59% 92.28%,
      #b22234 92.28% 100%) !important;
  position: relative;
  overflow: hidden;
}
.flag-en::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 42% !important;
  height: 54% !important;
  background: #3c3b6e !important;
  transform: none !important;
  border: 0 !important;
  opacity: 1 !important;
}
.flag-en::after { content: none !important; display: none !important; }

/* v2.0.4 - identitatea userului rămâne vizibilă în header pe toate dimensiunile */
@media (max-width: 980px) {
  .protected-header-user {
    display: grid;
    min-width: 0;
    max-width: 150px;
    padding: 5px 8px;
  }
  .protected-header-user span { display: none; }
  .protected-header-user strong { max-width: 134px; }
}
@media (max-width: 720px) {
  .protected-header-user {
    max-width: 110px;
    padding: 4px 6px;
  }
  .protected-header-user strong {
    max-width: 98px;
    font-size: 12px;
  }
}


/* v2.0.10 - coloane finale: loc, număr de concurs, nume */
.final-ranking-table th:nth-child(2),
.final-ranking-table td:nth-child(2) {
  width: 110px;
  min-width: 80px;
  text-align: center;
}
.final-ranking-table th:nth-child(3),
.final-ranking-table td:nth-child(3) {
  text-align: left;
}
.final-ranking-table th:nth-child(4),
.final-ranking-table td:nth-child(4) {
  text-align: left;
}
.skating-majority-table .final-start-number {
  min-width: 76px;
  text-align: center;
  white-space: nowrap;
}
.skating-majority-table .final-competitor-name {
  min-width: 210px;
  text-align: left;
  white-space: normal;
}
@media (max-width: 900px) {
  .final-ranking-table th:nth-child(2),
  .final-ranking-table td:nth-child(2) {
    min-width: 70px;
    width: 82px;
  }
  .final-ranking-table th:nth-child(3),
  .final-ranking-table td:nth-child(3) {
    min-width: 150px;
  }
  .skating-majority-table .final-competitor-name {
    min-width: 170px;
  }
}


/* v2.0.11 - layout universal: telefon, tabletă, laptop, desktop și proiector */
html {
  min-width: 0;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body,
.client-body {
  min-width: 0;
  max-width: 100vw;
  overflow-x: hidden;
}
.client-shell,
.client-main,
.client-section,
.client-hero-panel,
.event-card-grid,
.category-card-list,
.protected-client-shell,
.protected-main,
.protected-header-event,
.protected-header-actions {
  min-width: 0;
  box-sizing: border-box;
}
.client-shell {
  width: 100%;
  max-width: min(1920px, 100vw);
}
.client-main {
  width: 100%;
  padding-inline: clamp(10px, 2vw, 30px);
  font-size: clamp(14px, .35vw + 12px, 18px);
}
.client-main h1 { font-size: clamp(25px, 3.2vw, 54px); overflow-wrap: anywhere; }
.client-main h2 { font-size: clamp(20px, 2vw, 34px); overflow-wrap: anywhere; }
.client-main h3 { overflow-wrap: anywhere; }
.client-section,
.client-hero-panel,
.event-card,
.category-card,
.protected-category-card { padding: clamp(12px, 1.5vw, 22px); }
.event-card-grid,
.category-card-list,
.protected-events-list,
.protected-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.client-table-wrap,
.table-wrap,
.results-table-wrap,
.final-table-wrap,
.skating-table-wrap,
.registration-table-wrap,
.modal-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.client-table,
.final-ranking-table,
.skating-majority-table,
.competitor-registration-table,
.participants-status-table {
  width: 100%;
}
.client-tab,
.client-primary,
.menu-toggle,
.language-button,
.category-screen-tab,
.sidebar-row,
button,
a[role="button"] {
  min-height: 44px;
  touch-action: manipulation;
}
.language-menu {
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-backdrop { padding: clamp(8px, 2vw, 24px); }
.modal-card,
.stat-details-modal-card,
.competitor-details-modal-card,
.result-detail-modal-card {
  width: min(960px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
}
.modal-head { gap: 10px; }
.modal-head h3 { min-width: 0; overflow-wrap: anywhere; }
.stat-modal-body,
.modal-scroll,
#onlineResultsModalBody { overscroll-behavior: contain; }

/* tabletă și laptop compact */
@media (max-width: 1100px) {
  .client-shell,
  .client-body.desktop-menu-collapsed .client-shell {
    display: block;
    padding: 10px;
  }
  .client-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0;
    width: min(88vw, 420px) !important;
    max-width: 420px !important;
    height: 100dvh;
    overflow: hidden !important;
    transform: translateX(-105%);
    transition: transform .2s ease;
    z-index: 1600;
    visibility: visible !important;
  }
  .mobile-menu-open .client-sidebar { transform: translateX(0); }
  .client-sidebar .sidebar-content { height: calc(100dvh - 58px); overflow-y: auto; overflow-x: hidden; }
  .menu-overlay { z-index: 1500; }
  .menu-toggle { position: fixed; z-index: 2000; }
  .public-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .embedded-category-tabs { flex-wrap: wrap; }
}

/* telefon și tabletă portret */
@media (max-width: 720px) {
  .client-shell,
  .client-body.desktop-menu-collapsed .client-shell { padding: 6px; }
  .client-main { padding-inline: 6px; }
  .client-section,
  .client-hero-panel,
  .event-card,
  .category-card,
  .protected-category-card { border-radius: 12px; padding: 12px; }
  .public-filter-panel { grid-template-columns: 1fr; gap: 9px; padding: 10px; }
  .event-card-grid,
  .category-card-list,
  .protected-events-list,
  .protected-category-grid { grid-template-columns: 1fr; }
  .public-top-nav,
  .category-card-actions,
  .category-card-action-tabs,
  .protected-header-actions { gap: 6px; }
  .public-top-nav > *,
  .category-card-actions > *,
  .category-card-action-tabs > * { flex: 1 1 140px; }
  .client-table { font-size: 13px; }
  .client-table th,
  .client-table td { padding: 8px 7px; }
  .stat-modal-head-with-filter,
  .stat-modal-title-row,
  .competitor-details-head { flex-direction: column; align-items: stretch; }
  .modal-head-actions { flex-direction: row; width: 100%; }
  .modal-head-actions > * { flex: 1 1 auto; }
  .competitor-modal-filter { width: 100%; }

  .protected-persistent-header {
    min-height: 154px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding: 10px 8px 8px 54px;
    gap: 6px;
  }
  .protected-header-event h1,
  .protected-header-meta { max-width: 100%; white-space: nowrap; }
  .protected-header-actions {
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(74px, 1fr) repeat(3, auto) auto;
    align-items: center;
  }
  .protected-header-user { max-width: none; min-width: 0; }
  .protected-header-user strong { max-width: 100%; }
  .protected-header-actions .client-tab { min-height: 38px; padding: 6px 8px; }
  .protected-header-visible .protected-client-shell { margin-top: 168px; }
  .protected-header-visible .protected-menu-toggle { top: 16px; }
  .protected-language-switcher .language-button { min-height: 38px; padding: 6px 8px; }
}

@media (max-width: 460px) {
  .protected-persistent-header { min-height: 178px; }
  .protected-header-actions { grid-template-columns: minmax(0, 1fr) repeat(2, auto); }
  .protected-header-user { grid-column: 1 / -1; }
  .protected-header-actions [data-online-i18n="publicPage"] { grid-column: 1 / 2; }
  .protected-header-visible .protected-client-shell { margin-top: 192px; }
  .client-main h1 { font-size: clamp(23px, 8vw, 32px); }
  .client-main h2 { font-size: 20px; }
  .client-tab,
  .client-primary { font-size: 13px; padding-inline: 10px; }
}

/* telefon în landscape: folosim înălțimea, nu doar lățimea */
@media (orientation: landscape) and (max-height: 560px) {
  .protected-persistent-header {
    min-height: 88px;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
    padding: 7px 8px 7px 54px;
  }
  .protected-header-actions { display: flex; max-width: 58vw; }
  .protected-header-user { max-width: 120px; }
  .protected-header-visible .protected-client-shell { margin-top: 98px; }
  .client-section,
  .client-hero-panel { padding-block: 10px; }
}

/* proiector / ecran mare */
@media (min-width: 1600px) and (min-height: 850px) {
  .client-shell { max-width: min(2200px, calc(100vw - 32px)); }
  .client-main { font-size: clamp(17px, .65vw, 23px); }
  .client-main h1 { font-size: clamp(44px, 3.4vw, 72px); }
  .client-main h2 { font-size: clamp(30px, 2vw, 46px); }
  .client-table { font-size: clamp(16px, .7vw, 22px); }
  .client-table th,
  .client-table td { padding: 13px 14px; }
  .client-tab,
  .client-primary,
  .language-button { min-height: 50px; font-size: 17px; }
  .event-card-grid,
  .category-card-list { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
}

.flag-tr { position: relative; background: #e30a17; overflow: hidden; }
.flag-tr::before { content: "☾"; position: absolute; color: #fff; font-size: 13px; line-height: 16px; left: 5px; top: -1px; }
.flag-tr::after { content: "★"; position: absolute; color: #fff; font-size: 7px; line-height: 16px; left: 13px; top: 0; }

/* Runde cu puncte (WDSF absolut) */
.points-scroll { overflow-x: auto; }
.points-results-table td, .points-results-table th { text-align: center; white-space: nowrap; }
.points-results-table td:nth-child(2), .points-results-table th:nth-child(2) { text-align: left; }
.points-details { margin-top: .5rem; display: flex; flex-direction: column; gap: .25rem; }
.points-detail > summary { cursor: pointer; padding: .35rem .5rem; background: rgba(0,0,0,.04); border-radius: 6px; font-weight: 600; }
.points-detail[open] > summary { margin-bottom: .35rem; }
.points-detail-scroll { overflow-x: auto; }
.points-judge-table td, .points-judge-table th { text-align: center; white-space: nowrap; padding: .2rem .4rem; }
.points-judge-table .points-judge-letter { text-align: left; }
.points-judge-table .points-mean-row td { font-weight: 700; border-top: 2px solid rgba(0,0,0,.2); }


/* Stare de pierdere a sincronizării live */
.event-unsynchronized-banner {
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 16px;
  margin:0 0 16px; padding:13px 18px; border:1px solid #dc2626; border-radius:12px;
  background:linear-gradient(135deg,rgba(127,29,29,.96),rgba(185,28,28,.92)); color:#fff;
  box-shadow:0 10px 28px rgba(127,29,29,.24); text-align:center; font-weight:700;
}
.event-unsynchronized-banner strong { font-size:1.08em; letter-spacing:.08em; }
.event-unsynchronized-banner span { font-weight:500; }
.event-unsynchronized-banner.compact { margin:4px 0 12px; padding:8px 12px; font-size:.82rem; letter-spacing:.08em; }
.side-unsynchronized { display:inline-flex; width:max-content; margin-top:6px; padding:3px 8px; border-radius:999px; background:#b91c1c; color:#fff; font-size:.7rem; font-style:normal; font-weight:900; letter-spacing:.06em; }
@media (max-width:640px){.event-unsynchronized-banner{align-items:flex-start;flex-direction:column;text-align:left}}

/* v3.0.6 - navigare categorie, antet eveniment și meniu fără scroll orizontal */
.client-sidebar,
.sidebar-content,
.side-category-group-items,
.category-submenu {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.client-sidebar *,
.sidebar-content * {
  box-sizing: border-box;
  min-width: 0;
}
.side-row,
.side-block,
.category-submenu-tab,
.category-row-title,
.category-row-meta {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.category-submenu {
  padding-right: 0;
}
.category-submenu-tab {
  width: 100%;
}
.public-home-row {
  position: sticky;
  top: 0;
  z-index: 3;
}
.category-event-name {
  margin: 0 0 8px;
  color: #c57b1d;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.started-ranking-table th:first-child,
.started-ranking-table td:first-child {
  width: 80px;
  white-space: nowrap;
}
.ranking-participant-section + .ranking-participant-section {
  margin-top: 34px;
}

/* v3.0.7 - structură unitară cu cinci coloane pentru Înscrieri/Clasament */
.five-column-participant-table {
  table-layout: fixed;
}
.five-column-participant-table th:nth-child(1),
.five-column-participant-table td:nth-child(1) { width: 7%; }
.five-column-participant-table th:nth-child(2),
.five-column-participant-table td:nth-child(2) { width: 10%; }
.five-column-participant-table th:nth-child(3),
.five-column-participant-table td:nth-child(3) { width: 38%; }
.five-column-participant-table th:nth-child(4),
.five-column-participant-table td:nth-child(4) { width: 27%; }
.five-column-participant-table th:nth-child(5),
.five-column-participant-table td:nth-child(5) { width: 18%; }
@media (max-width: 760px) {
  .five-column-participant-table { table-layout: auto; }
}
