.photosport-page {
  min-height: 100vh;
}

.photosport-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.photosport-header-actions .btn.ghost,
.photosport-header-actions .btn.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.photosport-header-actions .btn.accent {
  box-shadow: 0 8px 24px rgba(253, 250, 1, 0.12);
}

.photosport-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  display: grid;
  gap: 24px;
}

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.evento-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.evento-card h3 {
  margin: 0;
  font-size: 20px;
}

.evento-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  overflow: hidden;
  display: block;
}

.evento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.evento-media--empty {
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.evento-detalle {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.photosport-main-grid,
.photosport-card-grid,
.photosport-auth-grid,
.photosport-split-grid,
.photosport-overview-grid,
.photosport-stat-grid,
.photosport-photo-grid {
  display: grid;
  gap: 24px;
}

.photosport-main-grid,
.photosport-auth-grid,
.photosport-split-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
}

.photosport-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photosport-overview-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  align-items: start;
}

.photosport-overview-grid .photosport-status {
  grid-column: 1 / -1;
}

.photosport-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photosport-stat-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.photosport-stat-grid--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.photosport-photo-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.photosport-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.photosport-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.photosport-copy {
  color: var(--text-secondary);
  line-height: 1.7;
}

.photosport-copy code,
.form-hint code,
.photosport-list code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 2px 8px;
}

.photosport-side-card,
.photosport-hero-card,
.photosport-auth-card,
.photosport-identity-card,
.photosport-stat-card,
.photosport-photo-card {
  display: grid;
  gap: 14px;
}

.photosport-hero-card h1,
.photosport-auth-card h2,
.photosport-side-card h2,
.photosport-identity-card h3 {
  margin: 0;
}

.photosport-hero-card h1 {
  line-height: 1.1;
}

.photosport-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--text-secondary);
}

.photosport-status {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.photosport-status[data-tone="success"] {
  border-color: rgba(74, 222, 128, 0.25);
  color: #86efac;
  background: rgba(74, 222, 128, 0.08);
}

.photosport-status[data-tone="warning"] {
  border-color: rgba(251, 191, 36, 0.25);
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.08);
}

.photosport-status[data-tone="error"] {
  border-color: rgba(248, 113, 113, 0.25);
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
}

.photosport-event-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.photosport-event-card {
  min-height: 100%;
}

.photosport-card-copy {
  display: grid;
  gap: 12px;
}

.photosport-card-meta {
  display: grid;
  gap: 8px;
}

.photosport-card-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.photosport-admin-events .evento-card,
.photosport-event-grid .evento-card {
  min-height: 100%;
}

.photosport-event-flags {
  display: grid;
  gap: 10px;
}

.photosport-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.photosport-table {
  display: grid;
  gap: 12px;
}

.photosport-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(180px, 200px) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.photosport-table-row--assignment {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(180px, 220px) auto;
}

.photosport-table-row--account,
.photosport-table-row--sale {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 0.85fr);
}

.photosport-table-row--queue {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 1fr) auto;
}

.photosport-table-row strong {
  display: block;
  margin-bottom: 4px;
}

.photosport-table-row p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.photosport-sidebar-note {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.photosport-inline-note {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 13px;
}

.photosport-auth-grid .admin-panel-card {
  min-height: 100%;
}

.photosport-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photosport-tabs .btn.is-active {
  background: var(--accent);
  color: var(--black);
  border-color: transparent;
}

.photosport-session-card {
  background: rgba(255, 255, 255, 0.02);
}

.photosport-form-stack {
  display: grid;
  gap: 16px;
}

.photosport-stat-card span {
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photosport-stat-card strong {
  font-size: 34px;
  line-height: 1;
}

.photosport-context-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.photosport-context-toolbar label {
  flex: 1;
  min-width: 180px;
}

.photosport-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photosport-assignment-stack {
  display: grid;
  gap: 10px;
}

.photosport-assignment-stack label {
  display: grid;
  gap: 6px;
}

.photosport-import-summary,
.photosport-import-warnings {
  margin-top: 16px;
}

.photosport-import-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.photosport-import-card {
  gap: 8px;
}

.photosport-import-card span {
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photosport-import-card strong {
  font-size: 28px;
  line-height: 1;
}

.photosport-warning-table {
  display: grid;
  gap: 10px;
}

.photosport-warning-table__head,
.photosport-warning-table__row {
  display: grid;
  grid-template-columns: 90px 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.photosport-warning-table__head {
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photosport-warning-table__row {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.55;
}

.photosport-upload-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.photosport-upload-box strong,
.photosport-upload-box small {
  color: var(--text-secondary);
}

.photosport-upload-box.is-dragover {
  border-color: rgba(253, 250, 1, 0.4);
  background: rgba(253, 250, 1, 0.06);
}

.photosport-progress {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.photosport-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(253, 250, 1, 0.75), rgba(253, 250, 1, 1));
}

.photosport-photo-card {
  min-height: 100%;
}

.photosport-photo-preview {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.photosport-photo-preview img,
.photosport-photo-preview-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photosport-photo-preview-placeholder {
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.photosport-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.photosport-badge[data-tone="success"] {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
}

.photosport-badge[data-tone="warning"] {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}

.photosport-badge[data-tone="error"] {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

.photosport-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photosport-photo-copy {
  color: var(--text-secondary);
  line-height: 1.6;
}

.photosport-photo-copy strong {
  color: var(--text-primary);
}

body.theme-light.page-admin .evento-card,
body.theme-light.page-admin .photosport-table-row,
body.theme-light.page-admin .photosport-inline-note,
body.theme-light.page-admin .photosport-status,
body.theme-light.page-admin .photosport-upload-box,
body.theme-light.page-admin .photosport-warning-table__row,
body.theme-light.page-admin .photosport-photo-preview,
body.theme-light.page-admin .photosport-session-card {
  background: rgba(17, 24, 39, 0.02);
  border-color: rgba(17, 24, 39, 0.08);
  color: var(--text-primary);
}

body.theme-light.page-admin .photosport-warning-table__head,
body.theme-light.page-admin .photosport-kicker,
body.theme-light.page-admin .photosport-copy,
body.theme-light.page-admin .photosport-sidebar-note,
body.theme-light.page-admin .photosport-stat-card span,
body.theme-light.page-admin .photosport-photo-copy,
body.theme-light.page-admin .evento-detalle,
body.theme-light.page-admin .photosport-table-row p,
body.theme-light.page-admin .photosport-upload-box strong,
body.theme-light.page-admin .photosport-upload-box small {
  color: var(--text-secondary);
}

body.theme-light.page-admin .photosport-copy code,
body.theme-light.page-admin .form-hint code,
body.theme-light.page-admin .photosport-list code {
  background: rgba(17, 24, 39, 0.06);
}

body.theme-light.page-admin .evento-media--empty {
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(17, 24, 39, 0.03);
}

body.theme-light.page-admin .photosport-badge {
  background: rgba(17, 24, 39, 0.06);
  color: var(--text-primary);
}

body.theme-light.page-admin .photosport-progress {
  background: rgba(17, 24, 39, 0.06);
  border-color: rgba(17, 24, 39, 0.08);
}

@media (max-width: 1100px) {
  .photosport-card-grid,
  .photosport-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photosport-stat-grid--five,
  .photosport-stat-grid--six,
  .photosport-import-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .photosport-main-grid,
  .photosport-auth-grid,
  .photosport-split-grid,
  .photosport-overview-grid {
    grid-template-columns: 1fr;
  }

  .photosport-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .photosport-header-actions {
    justify-content: flex-start;
  }

  .photosport-main {
    padding: 20px 16px 48px;
  }

  .photosport-warning-table__head,
  .photosport-warning-table__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .photosport-card-grid,
  .photosport-stat-grid,
  .photosport-photo-grid {
    grid-template-columns: 1fr;
  }

  .photosport-import-cards,
  .photosport-table-row,
  .photosport-table-row--account,
  .photosport-table-row--sale,
  .photosport-table-row--queue {
    grid-template-columns: 1fr;
  }

  .photosport-context-toolbar {
    flex-direction: column;
  }

  .photosport-section-head {
    flex-direction: column;
  }
}
