
* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --text: #111827;
  --text-muted: #718198;
  --text-soft: #8b98ab;
  --green: #35c759;
  --green-2: #7ed957;
  --navy-1: #06101b;
  --navy-2: #071427;
  --navy-3: #040c17;
  --danger: #c92d23;
  --danger-dark: #a61f18;
  --sidebar-font: Arial, Helvetica, sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body,
#app,
.shell,
.screen {
  min-height: 100vh;
}

body {
  overflow-x: hidden;
}

.screen-hidden {
  display: none !important;
}

.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;
}

/* ACCESS + TERMS */

#access-screen,
#terms-screen {
  display: flex;
  justify-content: center;
  background: #f3f4f6;
  padding: 34px 20px 54px;
}

.access-shell {
  width: 100%;
  max-width: 720px;
}

.terms-shell {
  width: 100%;
  max-width: 920px;
}

.access-logo-wrap,
.terms-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.access-logo-image {
  width: min(560px, 92%);
  height: auto;
  display: block;
}

.terms-logo-image {
  width: min(420px, 88%);
  height: auto;
  display: block;
}

.access-subtitle {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 20px;
}

.access-card,
.terms-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 22px 22px 16px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.terms-head {
  text-align: center;
  margin-bottom: 16px;
}

.terms-title {
  font-size: 2rem;
  font-weight: 900;
  color: #111827;
}

.terms-subtitle {
  font-size: 0.98rem;
  font-weight: 700;
  color: #6b7280;
  margin-top: 6px;
}

.terms-textarea {
  width: 100%;
  height: 520px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #111827;
  padding: 14px 16px;
  resize: none;
  font-family: Arial, Helvetica, sans-serif;
}

.terms-check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  color: #374151;
  font-size: 0.96rem;
  line-height: 1.45;
}

.terms-check-row input {
  margin-top: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  color: #475569;
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  color: #111827;
  padding: 11px 14px;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
}

.field textarea {
  min-height: 250px;
  resize: vertical;
  line-height: 1.42;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa7b8;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(53, 199, 89, 0.55);
  box-shadow: 0 0 0 1px rgba(53, 199, 89, 0.16);
}

.button-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.button-row-wrap {
  flex-wrap: wrap;
}

.button-row button,
.sidebar-nav-btn,
.sidebar-logout-btn {
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.98rem;
  min-height: 44px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.button-row button {
  width: 100%;
  background: linear-gradient(180deg, #2f3743 0%, #1f2937 100%);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.16);
}

.button-row button:hover {
  filter: brightness(1.03);
}

.button-secondary {
  background: #eef2f7 !important;
  color: #374151 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
}

.screen-status {
  margin: 14px 0 0;
  color: #64748b;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* APP */

#app-screen {
  background: var(--bg);
}

.app-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(126, 217, 87, 0.12) 0%, rgba(126, 217, 87, 0) 24%),
    linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 44%, var(--navy-3) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  color: #f8fafc;
  overflow: hidden;
  min-width: 0;
}

.sidebar-top-glow {
  position: absolute;
  top: -84px;
  left: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(126, 217, 87, 0.14) 0%, rgba(126, 217, 87, 0) 70%);
  pointer-events: none;
}

.sidebar-logo-shell {
  position: relative;
  margin-bottom: 14px;
  padding: 12px 10px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 22px rgba(0,0,0,0.24);
}

.sidebar-logo-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: linear-gradient(90deg, #16a34a 0%, #7ed957 56%, rgba(126,217,87,0.1) 100%);
}

.sidebar-logo-icon {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  margin: 2px auto 0;
}

.sidebar-team-chip {
  position: relative;
  margin-bottom: 12px;
  border-radius: 16px;
  padding: 14px 14px 13px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.022) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

.sidebar-team-chip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  background: linear-gradient(180deg, #16a34a 0%, #7ed957 100%);
}

.sidebar-team-chip-value {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--sidebar-font);
}

.sidebar-logout-btn {
  width: 100%;
  margin-bottom: 14px;
  padding: 0.75rem 0.95rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 16px rgba(0,0,0,0.18);
  font-family: var(--sidebar-font);
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #95a6bd;
  margin: 0.56rem 0 0.38rem 0.08rem;
  font-family: var(--sidebar-font);
}

.sidebar-field {
  margin-bottom: 10px;
}

.app-sidebar .field input,
.app-sidebar .field select {
  font-family: var(--sidebar-font);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #0b1628;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  color: #f8fafc;
  border-radius: 14px;
  min-height: 44px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.16);
  font-weight: 700;
}

.app-sidebar .field input::placeholder {
  color: #97a8bf;
}

.app-sidebar .field input:focus,
.app-sidebar .field select:focus {
  border-color: rgba(126, 217, 87, 0.55);
  box-shadow: 0 0 0 1px rgba(126, 217, 87, 0.18), 0 8px 16px rgba(0,0,0,0.16);
}

.app-sidebar .field select {
  padding-right: 40px;
}

.app-sidebar .field select option {
  background: #0b1628;
  color: #f8fafc;
}

.app-sidebar .field select optgroup {
  background: #0b1628;
  color: #f8fafc;
}

#sidebar-opponent-select {
  color: #f8fafc;
}

.sidebar-button-row {
  margin-top: 0;
  margin-bottom: 14px;
}

.sidebar-button-row .sidebar-nav-btn {
  text-align: center;
  justify-content: center;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-nav-btn {
  width: 100%;
  text-align: left;
  padding: 0.74rem 0.95rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.015) 100%);
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 7px 16px rgba(0,0,0,0.18);
  font-family: var(--sidebar-font);
}

.sidebar-nav-btn-active {
  background: linear-gradient(180deg, rgba(17,35,71,0.98) 0%, rgba(10,24,52,0.98) 100%);
  border: 1px solid rgba(126,217,87,0.34);
  box-shadow: inset 4px 0 0 #35c759, 0 8px 18px rgba(0,0,0,0.24);
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-version {
  color: #6e8098;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  font-family: var(--sidebar-font);
}

.sidebar-quote-dot {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  margin: 0 auto 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  position: relative;
}

.sidebar-quote-dot::before {
  content: "•";
  color: #f8fafc;
  font-size: 24px;
  font-weight: 900;
  line-height: 44px;
  width: 44px;
  text-align: center;
  display: block;
}

.sidebar-quote-card {
  border-radius: 18px;
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, rgba(126,217,87,0.08) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

/* PREPARATION BLOCK */

.sidebar-quote-card {
  margin-top: 22px;
  padding: 16px 14px 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11, 20, 39, 0.96), rgba(8, 15, 30, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.sidebar-quote-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.sidebar-quote-kicker {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #dbe6f3;
  margin: 0 0 10px 0;
  padding-left: 12px;
  font-family: var(--sidebar-font);
}

.sidebar-quote-text {
  margin: 0 0 10px 0;
  padding-left: 12px;
  color: #f8fafc;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 800;
  font-family: var(--sidebar-font);
}

.sidebar-quote-author {
  margin: 0;
  padding-left: 12px;
  font-size: 0.8rem;
  font-weight: 900;
  color: #ff4d4d;
  letter-spacing: 0.05em;
  font-family: var(--sidebar-font);
}

.app-main {
  min-width: 0;
  padding: 16px 22px 28px 22px;
}

.app-main-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, #061335 0%, #091b4a 48%, #0a1f53 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 5px solid #35c759;
  border-radius: 22px;
  padding: 14px 24px 14px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -56px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(126, 217, 87, 0.17) 0%, rgba(126, 217, 87, 0) 70%);
  pointer-events: none;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fd0ff;
  margin-bottom: 8px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1;
  color: #f8fafc;
}

.hero p {
  margin: 0;
  color: #d3dbea;
  font-size: 13px;
  line-height: 1.4;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card,
.band,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.card {
  padding: 16px;
}

.band {
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.band-label,
.danger-kicker,
.stat-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.band-label {
  color: var(--text-soft);
  margin-bottom: 7px;
}

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

.section-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.03;
  color: var(--text);
  font-weight: 900;
}

.section-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.current-opponent-card {
  padding: 16px 16px 14px;
}

.current-opponent-value {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.04;
  color: var(--text);
  margin-bottom: 8px;
  word-break: break-word;
}

.current-opponent-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.42;
}

.last-processed-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.last-processed-head,
.processing-head {
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 14px 15px 12px;
  min-height: 108px;
  position: relative;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #35c759 0%, #7ed957 100%);
}

.stat-label {
  color: #64748b;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.08;
  color: #111827;
  margin-bottom: 6px;
  word-break: break-word;
}

.stat-value-small {
  font-size: 16px;
  line-height: 1.22;
}

.stat-sub {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.35;
}

.processing-card {
  padding-top: 14px;
}

.processing-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.processing-hidden-meta {
  display: none;
}

.processing-area-label {
  font-size: 13px !important;
  color: #111827 !important;
  font-weight: 800 !important;
}

.processing-card .field {
  gap: 6px;
}

.processing-card .field textarea {
  min-height: 224px;
  background: #ffffff;
  border-radius: 14px;
}

.processing-button-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.processing-button-row button {
  width: 100%;
}

.processing-action-btn {
  min-height: 38px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #4b5563 !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.processing-action-btn:hover {
  background: #f8fafc !important;
  filter: none !important;
}

.processing-action-btn-muted {
  background: #ffffff !important;
}

.danger-card {
  border: 1px solid rgba(201, 45, 35, 0.22);
  border-left: 6px solid #d33a2c;
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, #fffefe 0%, #fff8f7 100%);
}

.danger-kicker {
  color: #c92d23;
  margin-bottom: 8px;
}

.danger-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  color: #1f2937;
}

.danger-copy {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #718198;
}

.danger-button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.danger-btn {
  min-width: 220px;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #d74435 0%, #bf2e22 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(191, 46, 34, 0.18);
}

.danger-btn:hover {
  filter: brightness(1.02);
}

.status-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

#status-text {
  color: var(--text-muted);
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

@media (max-width: 1500px) {
  .app-main {
    padding: 14px 18px 24px 18px;
  }

  .app-main-inner {
    max-width: 1380px;
  }
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .app-main {
    padding: 12px 14px 22px 14px;
  }

  .app-main-inner {
    max-width: none;
  }

  .hero {
    padding: 13px 18px 13px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .current-opponent-value {
    font-size: 20px;
  }

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

@media (max-width: 1120px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .processing-two-col {
    grid-template-columns: 1fr;
  }

  .processing-button-row {
    grid-template-columns: 1fr;
  }

  .processing-card .field textarea {
    min-height: 180px;
  }

  .last-processed-head,
  .processing-head,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

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

  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }

  .app-main {
    padding: 12px;
  }

  .danger-button-row {
    flex-direction: column;
  }

  .danger-btn {
    width: 100%;
    min-width: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  #access-screen,
  #terms-screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .button-row {
    flex-direction: column;
  }

  .access-logo-image {
    width: min(420px, 95%);
  }

  .terms-logo-image {
    width: min(320px, 92%);
  }

  .sidebar-team-chip-value {
    font-size: 0.88rem;
  }

  .sidebar-nav-btn,
  .sidebar-logout-btn {
    font-size: 0.9rem;
  }
}

/* REPORTS */

.reports-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 13px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
}

.reports-table thead {
  background: #f1f5f9;
}

.reports-table th {
  text-align: left;
  padding: 10px 10px;
  font-weight: 800;
  color: #475569;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

.reports-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: #1f2937;
  font-weight: 600;
  white-space: nowrap;
}

.reports-table th:first-child,
.reports-table td:first-child {
  width: 1%;
  min-width: 180px;
  white-space: nowrap;
}

.reports-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.reports-table tbody tr:hover {
  background: #f3f6fa;
}

.reports-row-active {
  background: #e8f5ec !important;
  box-shadow: inset 4px 0 0 #35c759;
}

#reports-player-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 14px;
}

.reports-direction-shell {
  background: linear-gradient(180deg, #f3f5f8 0%, #eef2f6 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 20px rgba(15, 23, 42, 0.04);
}

.reports-direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reports-bucket {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  min-height: 84px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 18px rgba(15, 23, 42, 0.04);
  text-align: center;
}

.reports-bucket-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
}

.reports-bucket-value {
  font-size: 22px;
  line-height: 1.08;
  font-weight: 900;
  color: #111827;
}

.reports-bucket-value.is-empty {
  color: #94a3b8;
}

.reports-section-header {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 16px 20px 14px 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.reports-section-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
  background: linear-gradient(180deg, #35c759 0%, #7ed957 100%);
}

.reports-section-header-title {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 900;
  color: #111827;
  margin-bottom: 8px;
}

.reports-section-header-sub {
  font-size: 13px;
  line-height: 1.4;
  color: #718198;
}

.reports-section-header-compact {
  padding-top: 14px;
  padding-bottom: 14px;
}

.reports-section-header-compact .reports-section-header-title {
  margin-bottom: 0;
}

.reports-player-select-field {
  margin-top: -2px;
}

.reports-player-line {
  display: none;
}

.reports-table-card {
  padding: 14px 14px 8px 14px;
}

.reports-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 16px;
}

@media (max-width: 1100px) {
  .reports-direction-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.current-opponent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.exports-ready-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(53, 199, 89, 0.10);
  border: 1px solid rgba(53, 199, 89, 0.24);
  color: #1d6f3a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

.exports-action-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.exports-action-card .button-row {
  margin: 0;
}

.exports-action-card .processing-action-btn {
  width: 100%;
}

#generate-export-btn {
  min-height: 48px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%) !important;
  color: #1f2937 !important;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

#generate-export-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e9edf2 100%) !important;
  box-shadow:
    0 12px 22px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-1px);
  filter: none !important;
}

#generate-export-btn:active {
  transform: translateY(0);
  box-shadow:
    0 5px 12px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

#generate-export-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(31, 41, 55, 0.14),
    0 10px 22px rgba(15, 23, 42, 0.08) !important;
}

#generate-export-btn.is-busy {
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

@media (max-width: 900px) {
  .current-opponent-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   SIDEBAR UPGRADE (MLB LEVEL)
========================= */

/* Divider line */
.sidebar-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.14), transparent);
  margin: 14px 0 16px;
}

/* Section spacing */
.sidebar-section {
  margin-bottom: 6px;
}

/* Improve label spacing */
.sidebar-section-label {
  margin-top: 12px;
  margin-bottom: 6px;
}

/* Make logout feel isolated */
.sidebar-logout-btn {
  margin-bottom: 8px;
}

/* Prep block upgrade */
.sidebar-quote-card {
  margin-top: 12px;
  padding: 16px 14px 18px;
  background: linear-gradient(180deg, rgba(126,217,87,0.10) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.10);
}

/* Slight hover polish */
.sidebar-nav-btn:hover,
.sidebar-logout-btn:hover {
  transform: translateX(2px);
}

/* =========================
   DASHBOARD TUTORIAL SECTION UPGRADE
========================= */

#dashboard-page .page-stack > .last-processed-section:last-of-type {
  margin-top: 14px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#dashboard-page .page-stack > .last-processed-section:last-of-type .section-head {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

#dashboard-page .page-stack > .last-processed-section:last-of-type .stats-grid {
  gap: 16px;
}

#dashboard-page .page-stack > .last-processed-section:last-of-type .stat-card {
  min-height: 124px;
  border: 1px solid rgba(31, 41, 55, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

#dashboard-page .page-stack > .last-processed-section:last-of-type .stat-card::before {
  background: linear-gradient(90deg, #3f4754 0%, #1f2937 100%);
}

#dashboard-page .page-stack > .last-processed-section:last-of-type .stat-label {
  color: #475569;
}

#dashboard-page .page-stack > .last-processed-section:last-of-type .stat-value {
  color: #111827;
}

#dashboard-page .page-stack > .last-processed-section:last-of-type .stat-sub {
  color: #7b8798;
}


/* FAQ FLOATING BUTTON */

.faq-fab-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
}

.faq-fab-panel {
  position: relative;
}

.faq-fab-button {
  list-style: none;
  cursor: pointer;
  min-width: 84px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.faq-fab-button::-webkit-details-marker {
  display: none;
}

.faq-fab-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.26);
}

.faq-fab-panel[open] .faq-fab-button {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.faq-fab-card {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(760px, calc(100vw - 260px));
  max-height: min(78vh, 820px);
  overflow-y: auto;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 22px 44px rgba(15, 23, 42, 0.18),
    0 8px 18px rgba(15, 23, 42, 0.08);
}

.faq-fab-head {
  margin-bottom: 14px;
}

.faq-fab-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7c8aa0;
  margin-bottom: 6px;
}

.faq-fab-title {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.05;
  color: #111827;
  font-weight: 900;
}

.faq-fab-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #718198;
}

.faq-fab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.faq-fab-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.faq-fab-item summary {
  position: relative;
  display: block;
  padding: 15px 42px 15px 14px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #111827;
  cursor: pointer;
  list-style: none;
}

.faq-fab-item summary::-webkit-details-marker {
  display: none;
}

.faq-fab-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 900;
  color: #9aa7b8;
}

.faq-fab-item[open] summary::after {
  content: "–";
  color: #64748b;
}

.faq-fab-item[open] summary {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.faq-fab-answer {
  padding: 12px 14px 14px;
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
  background: #fcfdff;
}

@media (max-width: 900px) {
  .faq-fab-wrap {
    right: 14px;
    bottom: 14px;
  }

  .faq-fab-card {
    right: 0;
    bottom: 58px;
    width: min(94vw, 520px);
    max-height: 72vh;
    padding: 16px;
  }

  .faq-fab-grid {
    grid-template-columns: 1fr;
  }
}

