:root {
  --field-green: #27ae60;
  --field-green-dark: #168348;
  --ink: #121212;
  --ink-soft: #343434;
  --white: #ffffff;
  --muted: #d8dedb;
  --attack: #ff6b2d;
  --defense: #2f80ed;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--white);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
  animation: pageFade 360ms ease both;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 5vw, 68px);
  background: rgba(30, 30, 30, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 15px;
  height: 15px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--field-green);
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.24);
}

.nav-link,
.login-button,
.hero-button,
.program-button,
.drill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-link {
  padding: 10px 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.login-button {
  padding: 10px 22px;
  background: var(--field-green);
  color: var(--white);
}

.hero-button,
.program-button {
  width: fit-content;
  padding: 12px 24px;
  background: var(--white);
  color: var(--ink);
}

.login-button:hover,
.hero-button:hover,
.program-button:hover,
.nav-link:hover,
.drill-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.login-button:hover {
  background: var(--field-green-dark);
}

.bg-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, var(--field-green-dark), var(--ink));
}

.bg-panel::before,
.bg-panel::after {
  position: absolute;
  inset: 0;
  content: "";
}

.bg-panel::before {
  z-index: -2;
  background-image: var(--bg-image);
  background-position: center;
  background-size: cover;
  opacity: 0.82;
  transform: scale(1);
  transition: transform 220ms ease;
}

.bg-panel::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(30, 30, 30, 0.88), rgba(30, 30, 30, 0.44)),
    linear-gradient(180deg, rgba(30, 30, 30, 0.18), rgba(30, 30, 30, 0.84));
}

.bg-panel.image-failed::before {
  display: none;
}

.image-loader {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-section {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 118px clamp(18px, 5vw, 68px) 64px;
}

.hero-content {
  width: min(760px, 100%);
  animation: riseIn 520ms ease 80ms both;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--field-green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 720px;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.92;
}

.hero-content p:not(.section-kicker) {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 600;
}

.program-section {
  padding: 56px clamp(18px, 5vw, 68px) 76px;
  background:
    linear-gradient(180deg, var(--ink), #252525 46%, #f4f7f5 46%, #f4f7f5);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto 24px;
}

.section-heading h2 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.program-card {
  min-height: 430px;
  display: flex;
  align-items: end;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 170ms ease, box-shadow 170ms ease;
  animation: riseIn 460ms ease both;
}

.program-card:nth-child(2) {
  animation-delay: 80ms;
}

.program-card:nth-child(3) {
  animation-delay: 160ms;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.program-card:hover::before {
  transform: scale(1.035);
}

.program-card::after {
  background:
    linear-gradient(180deg, rgba(30, 30, 30, 0.04), rgba(30, 30, 30, 0.9)),
    linear-gradient(90deg, rgba(30, 30, 30, 0.76), rgba(30, 30, 30, 0.22));
}

.accent-attack {
  background: linear-gradient(135deg, #5b2617, var(--attack));
}

.accent-defense {
  background: linear-gradient(135deg, #153a66, var(--defense));
}

.accent-tryout {
  background: linear-gradient(135deg, #315044, #67b26f);
}

.tryout-section {
  padding: 18px 18px 76px;
  background: var(--ink);
}

.tryout-feature {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.tryout-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 14px;
  width: 100%;
  min-height: 300px;
  padding: clamp(24px, 4vw, 36px);
  align-content: end;
  overflow: hidden;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.tryout-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(30, 30, 30, 0.12), rgba(30, 30, 30, 0.9)),
    linear-gradient(90deg, rgba(30, 30, 30, 0.74), rgba(30, 30, 30, 0.18));
}

.tryout-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.tryout-card strong {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  font-weight: 900;
}

.tryout-card > span:last-child {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
}

.tryout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 4px;
}

.tryout-actions .program-button {
  min-height: 48px;
  background: var(--field-green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.tryout-actions .program-button.secondary {
  background: #315044;
}

.tryout-actions .program-button.report {
  background: #2563eb;
}

.program-content {
  width: 100%;
  padding: clamp(24px, 4vw, 36px);
}

.program-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.program-content h3 {
  font-size: clamp(2.7rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 0.94;
}

.program-content p {
  max-width: 480px;
  margin: 14px 0 22px;
  color: rgba(255, 255, 255, 0.88);
}

.accent-attack .program-button:hover {
  background: var(--attack);
  color: var(--white);
}

.accent-defense .program-button:hover {
  background: var(--defense);
  color: var(--white);
}

.accent-tryout .program-button:hover {
  background: #67b26f;
  color: var(--white);
}

.training-page {
  background:
    radial-gradient(circle at top left, rgba(255, 107, 45, 0.16), transparent 34%),
    linear-gradient(180deg, #1e1e1e 0%, #252525 42%, #f4f7f5 42%, #f4f7f5 100%);
}

.training-main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 126px 0 76px;
}

.training-hero {
  max-width: 820px;
  margin-bottom: 30px;
}

.attack-page .section-kicker {
  color: var(--attack);
}

.defense-page {
  background:
    radial-gradient(circle at top left, rgba(47, 128, 237, 0.18), transparent 34%),
    linear-gradient(180deg, #1e1e1e 0%, #252525 42%, #f4f7f5 42%, #f4f7f5 100%);
}

.defense-page .section-kicker {
  color: var(--defense);
}

.training-hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  font-weight: 900;
  line-height: 0.95;
}

.training-hero p:not(.section-kicker) {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 500;
}

.drill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.drill-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 170ms ease, box-shadow 170ms ease;
  animation: riseIn 420ms ease both;
}

.drill-card:nth-child(2) {
  animation-delay: 70ms;
}

.drill-card:nth-child(3) {
  animation-delay: 140ms;
}

.drill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
}

.video-frame {
  position: relative;
  display: block;
  width: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #32180e, var(--attack));
  overflow: hidden;
}

.video-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

@supports (aspect-ratio: 16 / 9) {
  .video-frame {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .video-frame::before {
    display: none;
  }
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.drill-content {
  padding: 22px;
}

.drill-number {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--attack);
  font-size: 0.82rem;
  font-weight: 900;
}

.drill-content h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 900;
  line-height: 1.1;
}

.drill-content p {
  min-height: 100px;
  margin: 12px 0 18px;
  color: #606660;
  font-size: 0.95rem;
}

.drill-button {
  width: 100%;
  padding: 11px 18px;
  background: var(--attack);
  color: var(--white);
}

.drill-button:hover {
  background: #e9571f;
}

.defense-page .video-frame {
  background: linear-gradient(135deg, #12375f, var(--defense));
}

.defense-page .drill-number {
  color: var(--defense);
}

.defense-page .drill-button {
  background: var(--defense);
}

.defense-page .drill-button:hover {
  background: #1f6fd5;
}

.site-footer {
  background: #151515;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px clamp(18px, 5vw, 68px) 22px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-copy {
  max-width: 1120px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-page,
.dashboard-page {
  background:
    radial-gradient(circle at top right, rgba(39, 174, 96, 0.2), transparent 30%),
    linear-gradient(180deg, #171717 0%, #252525 48%, #f4f7f5 48%, #f4f7f5 100%);
}

.auth-main,
.dashboard-main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 126px 0 76px;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 28px;
  align-items: stretch;
}

.auth-copy {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(30, 30, 30, 0.88), rgba(30, 30, 30, 0.38)),
    url("https://images.unsplash.com/photo-1517466787929-bc90951d0974?auto=format&fit=crop&w=900&q=70") center / cover;
  box-shadow: var(--shadow);
}

.auth-copy h1,
.dashboard-hero h1 {
  max-width: 720px;
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 900;
  line-height: 0.95;
}

.auth-copy p:not(.section-kicker),
.dashboard-hero p {
  max-width: 560px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 600;
}

.auth-form,
.dashboard-section,
.empty-state,
.user-row {
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.auth-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 34px);
}

.auth-form label {
  margin: 14px 0 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d9dfdc;
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.auth-form select,
.filter-bar select,
.filter-bar input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d9dfdc;
  border-radius: 8px;
  padding: 11px 13px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.auth-form input:focus,
.auth-form select:focus,
.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--field-green);
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.16);
}

.form-button,
.approve-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--field-green);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-button {
  width: 100%;
  margin-top: 22px;
}

.form-button:hover,
.approve-button:hover {
  background: var(--field-green-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.auth-switch {
  margin-top: 18px;
  color: #5e6660;
  text-align: center;
}

.auth-switch a {
  color: var(--field-green-dark);
  font-weight: 900;
}

.form-message {
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 800;
}

.form-message.error {
  background: #ffe8e3;
  color: #ad321c;
}

.form-message.success {
  background: #e7f8ed;
  color: #16733e;
}

.toast-message {
  animation: toastIn 220ms ease both;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast-hide {
  opacity: 0;
  transform: translateY(-8px);
}

.is-loading {
  opacity: 0.82;
  cursor: wait;
}

.dashboard-hero {
  margin-bottom: 28px;
}

.dashboard-message {
  margin-bottom: 18px;
}

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

.notice-card-head {
  display: grid;
  gap: 4px;
}

.temporary-password-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.temporary-password-value {
  flex: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.notice-card small,
.force-password-banner small {
  display: block;
  line-height: 1.45;
}

.copy-trigger.is-copied {
  background: #168348;
  color: var(--white);
}

.force-password-banner {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  border: 1px solid rgba(242, 178, 51, 0.42);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff5db;
  color: #6f4f05;
}

.force-password-banner strong {
  font-size: 0.95rem;
}

.force-password-banner p {
  font-weight: 700;
}

.dashboard-section {
  padding: clamp(22px, 4vw, 32px);
}

.dashboard-heading {
  display: block;
  margin: 0 0 18px;
}

.dashboard-heading h2,
.coach-box h2 {
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.user-list {
  display: grid;
  gap: 14px;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid #e1e7e3;
  box-shadow: none;
}

.user-row h3 {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.user-row p,
.user-row span,
.coach-box p {
  color: #606660;
}

.user-row span {
  display: inline-flex;
  margin-top: 5px;
  font-size: 0.88rem;
}

.approve-button {
  padding: 10px 18px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed #bec9c2;
  box-shadow: none;
  color: #606660;
  font-weight: 700;
}

.admin-shell {
  min-height: 100vh;
  display: block;
  background:
    radial-gradient(circle at top right, rgba(39, 174, 96, 0.18), transparent 28%),
    #121212;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 280px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 20px;
  background: #151515;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand {
  min-height: 48px;
  padding: 0 8px;
}

.admin-menu {
  display: grid;
  gap: 10px;
}

.admin-menu a,
.admin-menu-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 8px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-menu-form {
  margin: 0;
}

.admin-menu a:hover,
.admin-menu a.active,
.admin-menu-button:hover {
  background: var(--field-green);
  color: var(--white);
  transform: translateX(3px);
}

.admin-main {
  max-width: 1240px;
  margin: 0 auto 0 280px;
  padding: 30px clamp(18px, 4vw, 42px) 52px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.admin-topbar h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 0.98;
}

.admin-profile {
  min-width: 190px;
  display: grid;
  gap: 2px;
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  text-align: right;
}

.admin-profile span {
  font-weight: 900;
}

.admin-profile strong {
  color: var(--field-green);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.plan-badge {
  width: fit-content;
  justify-self: end;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(39, 174, 96, 0.18);
  color: #8ef0b6;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.plan-badge.inline {
  justify-self: start;
  background: #e7f8ed;
  color: #16733e;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

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

.stat-card,
.coach-table-card {
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-top: 5px solid var(--field-green);
}

.stat-card::after {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(39, 174, 96, 0.42);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(39, 174, 96, 0.34) 48%, rgba(39, 174, 96, 0.34) 52%, transparent 53%),
    radial-gradient(circle, rgba(39, 174, 96, 0.16), transparent 62%);
  content: "";
}

.stat-card span {
  color: #606660;
  font-weight: 900;
}

.stat-card strong {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1;
}

.stat-card.secondary-kpi {
  min-height: 120px;
  border-top-color: #aebbb4;
  background: #f7faf8;
}

.stat-card.secondary-kpi::after {
  opacity: 0.35;
}

.stat-card.secondary-kpi strong {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.coach-table-card {
  overflow: hidden;
}

.table-card-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #e3e9e5;
}

.table-card-header h2 {
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.coach-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.coach-table th,
.coach-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: middle;
}

.coach-table th {
  background: #f4f7f5;
  color: #4e5751;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coach-table tbody tr {
  border-top: 1px solid #e7ece8;
  transition: background 160ms ease;
}

.coach-table tbody tr:hover {
  background: #f7fbf8;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-badge.approved {
  background: #dff6e8;
  color: #15783f;
}

.status-badge.pending {
  background: #fff1d8;
  color: #b76300;
}

.status-badge.blocked {
  background: #ffe8e3;
  color: #ad321c;
}

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

.table-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.table-action:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  filter: saturate(1.05);
  transform: translateY(-2px);
}

.table-action.approve {
  background: var(--field-green);
}

.table-action.pending {
  background: #f2b233;
  color: #211a0a;
}

.table-action.delete {
  background: #d94332;
}

.table-action.detail {
  background: #2f80ed;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.export-action {
  min-height: 48px;
  white-space: nowrap;
}

.form-button.compact {
  min-width: 120px;
  margin-top: 0;
  padding: 0 18px;
}

.dashboard-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: start;
}

.dashboard-grid {
  margin-bottom: 24px;
}

.split-grid {
  align-items: start;
}

.panel-form {
  position: sticky;
  top: 24px;
}

.activity-list,
.distribution-list {
  display: grid;
  gap: 12px;
  padding: 20px 24px 24px;
}

.chart-wrap {
  padding: 18px 22px 24px;
  height: 320px;
}

.chart-wrap canvas {
  width: 100%;
  height: 100% !important;
  display: block;
  border-radius: 8px;
  background: var(--white);
}

.pie-wrap {
  height: 300px;
}

.activity-list p {
  border-radius: 8px;
  padding: 12px 14px;
  background: #f4f7f5;
  color: #59625b;
  font-weight: 700;
}

.activity-list strong {
  color: var(--ink);
}

.activity-list span {
  display: inline-flex;
  margin-left: 6px;
  color: #879188;
  font-size: 0.86rem;
}

.distribution-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
}

.shortcut-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(39, 174, 96, 0.18), rgba(255, 255, 255, 0.04)),
    #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.shortcut-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
}

.shortcut-card span {
  color: var(--field-green-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shortcut-card strong {
  max-width: 260px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.08;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 24px 24px;
}

.material-grid article {
  border-radius: 8px;
  padding: 18px;
  background: #f4f7f5;
}

.dashboard-program-grid {
  max-width: none;
  margin: 0;
  padding: 24px;
}

.dashboard-program-grid .program-card {
  min-height: 360px;
  animation: none;
}

.dashboard-program-grid .program-card::after {
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.1), rgba(18, 18, 18, 0.92)),
    linear-gradient(90deg, rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.28));
}

.dashboard-program-grid .program-content h3 {
  color: var(--white);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34);
}

.dashboard-program-grid .program-content p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.26);
}

.dashboard-program-grid .program-tag {
  color: rgba(255, 255, 255, 0.96);
}

.dashboard-program-grid .program-button {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.dashboard-tryout-wrap {
  padding: 24px;
}

.dashboard-tryout-wrap .tryout-card {
  min-height: 240px;
}

.friendly-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.friendly-flow-action {
  display: grid;
  gap: 2px;
  min-height: 52px;
  align-content: center;
  justify-items: start;
  text-align: left;
  white-space: normal;
}

.friendly-flow-action span {
  font-weight: 900;
  line-height: 1.1;
}

.friendly-flow-action small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
}

.coach-action-primary {
  background: var(--field-green) !important;
  color: #ffffff !important;
}

.coach-action-secondary {
  background: #315044 !important;
  color: #ffffff !important;
}

.coach-action-report {
  background: #2563eb !important;
  color: #ffffff !important;
}

.workflow-hub {
  margin-bottom: 18px;
}

.workflow-hub-head {
  margin-bottom: 10px;
}

.workflow-hub-head h2 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.workflow-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.workflow-option {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(49, 80, 68, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbf8);
  color: #1f2937;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.workflow-option:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 174, 96, 0.36);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.09);
}

.workflow-option.active {
  border-color: rgba(39, 174, 96, 0.46);
  background: #f3fbf6;
}

.workflow-option.active::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 8px 0 0 8px;
  background: var(--field-green);
  content: "";
}

.workflow-option-meta {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(49, 80, 68, 0.1);
  color: #315044;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.workflow-option.active .workflow-option-meta {
  background: rgba(39, 174, 96, 0.18);
  color: #196c3a;
}

.workflow-option-title {
  color: #111827;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 900;
  line-height: 1.08;
}

.workflow-option-text {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.45;
}

.coach-flow-step {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

.workflow-option-action {
  width: fit-content;
  align-self: end;
  border-radius: 8px;
  padding: 8px 12px;
  background: #315044;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.1;
}

.workflow-option.active .workflow-option-action {
  background: rgba(49, 80, 68, 0.1);
  color: #315044;
}

.report-switcher-intro {
  max-width: 940px;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.report-flow-copy {
  max-width: 980px;
  margin: -4px 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  font-weight: 600;
}

.report-switcher {
  margin-bottom: 18px;
}

.report-page-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.report-page-actions .report-switcher-intro {
  margin: 0;
}

.report-input-action {
  flex: 0 0 auto;
}

.report-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.report-mode-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-height: 178px;
  padding: 18px;
  border: 1px solid rgba(49, 80, 68, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbf8);
  color: #1f2937;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.report-mode-card.is-active {
  border-color: rgba(39, 174, 96, 0.46);
  background: #f3fbf6;
}

.report-mode-card.is-active::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 8px 0 0 8px;
  background: var(--field-green);
  content: "";
}

.report-mode-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(49, 80, 68, 0.1);
  color: #315044;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.report-mode-card.is-active .report-mode-badge {
  background: rgba(39, 174, 96, 0.18);
  color: #196c3a;
}

.report-mode-title {
  color: #111827;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 900;
  line-height: 1.12;
}

.report-mode-text {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.45;
}

.report-mode-actions {
  display: flex;
  align-items: center;
  align-self: end;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-report-primary,
.btn-report-pdf,
.btn-report-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-report-primary {
  background: #315044;
  color: #ffffff;
}

.btn-report-primary:hover {
  background: #243c33;
  color: #ffffff;
}

.btn-report-primary.is-current {
  background: rgba(49, 80, 68, 0.1);
  color: #315044;
  cursor: default;
}

.btn-report-pdf {
  background: #2563eb;
  color: #ffffff;
}

.btn-report-pdf:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.btn-report-pdf.is-outline {
  border-color: rgba(37, 99, 235, 0.4);
  background: #eff6ff;
  color: #1d4ed8;
}

.btn-report-secondary {
  border-color: rgba(49, 80, 68, 0.22);
  background: #f3f6f4;
  color: #315044;
}

.btn-report-secondary:hover {
  border-color: rgba(49, 80, 68, 0.34);
  background: #e8efeb;
  color: #243c33;
}

.coach-help-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(49, 80, 68, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.coach-help-card h2 {
  color: #111827;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.1;
}

.coach-help-card ol,
.coach-help-card ul {
  margin: 0;
  padding-left: 20px;
}

.coach-help-card li + li {
  margin-top: 7px;
}

@media (max-width: 820px) {
  .friendly-dashboard-actions,
  .workflow-switcher {
    grid-template-columns: 1fr;
  }

  .workflow-option {
    min-height: 0;
  }

  .coach-help-card {
    grid-template-columns: 1fr;
  }
}

.friendly-match-page {
  background: #f4f7f5;
}

.friendly-main {
  display: grid;
  gap: 24px;
}

.friendly-hero {
  display: grid;
  gap: 16px;
  padding: clamp(34px, 6vw, 64px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 80, 68, 0.95), rgba(103, 178, 111, 0.88)),
    #315044;
  color: var(--white);
  box-shadow: var(--shadow);
}

.friendly-hero h1 {
  max-width: 820px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.friendly-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
}

.coach-guide-hero {
  background:
    linear-gradient(135deg, rgba(22, 40, 32, 0.94), rgba(49, 80, 68, 0.86)),
    url("https://images.unsplash.com/photo-1526232761682-d26e03ac148e?auto=format&fit=crop&w=1400&q=75") center/cover;
}

.friendly-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.coach-flow-actions .hero-button {
  min-height: 46px;
}

.coach-flow-actions .hero-button,
.friendly-actions .hero-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.no-break {
  white-space: nowrap;
}

.hero-button.secondary {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.hero-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

.friendly-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.coach-guide-section {
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 14px 34px rgba(30, 30, 30, 0.08);
}

.coach-guide-section > .table-card-header {
  border-bottom-color: rgba(49, 80, 68, 0.14);
}

.coach-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

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

.coach-guide-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coach-tip-card {
  display: grid;
  gap: 10px;
  min-height: 120px;
  padding: 18px;
  border: 1px solid rgba(49, 80, 68, 0.14);
  border-radius: 8px;
  background: #f8fbf8;
  color: #1f2937;
  text-decoration: none;
}

.coach-tip-card h3 {
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.15;
}

.coach-tip-card p {
  margin: 0;
  color: #4b5563;
}

.score-scale-grid .coach-tip-card {
  min-height: 110px;
  align-content: center;
}

.score-scale-grid strong {
  color: var(--field-green-dark);
  font-size: 2rem;
  line-height: 1;
}

.workflow-option-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.workflow-option-actions .workflow-option-action {
  align-self: auto;
  text-decoration: none;
}

.workflow-option-action.report-pdf-action {
  background: #2f80ed;
}

.reference-card {
  min-height: 86px;
  align-content: center;
  color: #315044;
  font-weight: 900;
}

.friendly-panel {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 8px;
  background: var(--white);
  color: #1f2937;
  box-shadow: 0 14px 34px rgba(30, 30, 30, 0.08);
}

.friendly-panel h2 {
  color: #111827;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.12;
}

.friendly-panel .section-kicker {
  color: #315044;
}

.friendly-panel p,
.friendly-list,
.friendly-facts {
  margin-top: 12px;
  color: #1f2937;
}

.friendly-list {
  padding-left: 20px;
}

.friendly-list li::marker {
  color: #315044;
}

.friendly-list li + li {
  margin-top: 8px;
}

.friendly-facts {
  display: grid;
  gap: 12px;
}

.friendly-facts div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(49, 80, 68, 0.18);
}

.friendly-facts dt {
  color: #111827;
  font-weight: 800;
}

.friendly-facts dd {
  margin: 0;
  color: #1f2937;
}

.friendly-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.friendly-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: #1f2937;
}

.friendly-table th,
.friendly-table td {
  padding: 14px;
  border: 1px solid rgba(49, 80, 68, 0.18);
  vertical-align: top;
  text-align: left;
}

.friendly-table thead th {
  background: #315044;
  color: var(--white);
  font-size: 0.86rem;
}

.friendly-table tbody th {
  width: 190px;
  background: #eaf4ed;
  color: #111827;
  font-weight: 800;
}

.friendly-table td {
  background: #ffffff;
  color: #1f2937;
  font-size: 0.92rem;
  line-height: 1.55;
}

.friendly-match-input-grid {
  align-items: start;
}

.friendly-match-form h2 {
  margin-bottom: 18px;
  color: #111827;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.friendly-scale-help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: #eef5ef;
  color: #1f2937;
  font-size: 0.86rem;
  font-weight: 700;
}

.friendly-score-field {
  padding: 14px;
  border: 1px solid rgba(49, 80, 68, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.friendly-score-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.friendly-score-options label {
  cursor: pointer;
}

.friendly-score-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.friendly-score-options span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(49, 80, 68, 0.22);
  border-radius: 8px;
  background: #f8fbf8;
  color: #1f2937;
  font-weight: 900;
}

.friendly-score-options input:checked + span {
  border-color: #315044;
  background: #315044;
  color: var(--white);
}

.friendly-match-side {
  display: grid;
  gap: 18px;
}

.friendly-result-list {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.friendly-result-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(49, 80, 68, 0.14);
}

.friendly-result-list dt {
  color: #4b5563;
  font-weight: 700;
}

.friendly-result-list dd {
  margin: 0;
  color: #111827;
  font-weight: 900;
  text-align: right;
}

.friendly-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 24px 24px;
}

.friendly-report-filter {
  align-items: center;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.friendly-report-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.friendly-report-actions .btn,
.friendly-report-actions .table-action,
.friendly-report-actions .form-button,
.friendly-report-actions .btn-report-primary,
.friendly-report-actions .btn-report-pdf,
.friendly-report-actions .btn-report-secondary {
  min-height: 44px;
  margin: 0;
  white-space: nowrap;
}

.friendly-report-stats {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.friendly-report-stats .stat-card {
  min-height: 126px;
  padding: 20px;
}

.friendly-report-stats .stat-card::after {
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  opacity: 0.24;
}

.friendly-report-stats .stat-card span {
  color: #374151;
  font-size: 0.9rem;
}

.friendly-report-stats .stat-card strong {
  max-width: 100%;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.friendly-report-stats .friendly-category-card {
  grid-column: span 2;
}

.friendly-report-stats .friendly-category-card .friendly-category-value {
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  white-space: normal;
}

@media (max-width: 760px) {
  .friendly-report-stats .friendly-category-card {
    grid-column: span 1;
  }
}

.friendly-indicator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 24px;
}

.friendly-indicator-card {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(49, 80, 68, 0.14);
  border-radius: 8px;
  background: #f8fbf8;
}

.friendly-indicator-card span {
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 800;
}

.friendly-indicator-card strong {
  color: #111827;
  font-size: 1.45rem;
  line-height: 1;
}

.friendly-report-table {
  min-width: 1120px;
  table-layout: fixed;
}

.friendly-report-table td,
.friendly-report-table th {
  min-width: 0;
  padding: 13px 14px;
}

.friendly-report-table th {
  white-space: normal;
  line-height: 1.2;
}

.friendly-report-table th:nth-child(1),
.friendly-report-table td:nth-child(1),
.friendly-report-table th:nth-child(4),
.friendly-report-table td:nth-child(4),
.friendly-report-table th:nth-child(5),
.friendly-report-table td:nth-child(5),
.friendly-report-table th:nth-child(6),
.friendly-report-table td:nth-child(6),
.friendly-report-table th:nth-child(7),
.friendly-report-table td:nth-child(7) {
  width: 128px;
}

.friendly-report-table td.table-progress-cell {
  min-width: 128px;
  width: 128px;
  overflow: visible;
  text-overflow: clip;
}

.friendly-report-table th:nth-child(2),
.friendly-report-table td:nth-child(2),
.friendly-report-table th:nth-child(3),
.friendly-report-table td:nth-child(3) {
  width: 150px;
}

.friendly-report-table th:nth-child(8),
.friendly-report-table td:nth-child(8) {
  width: 190px;
}

.friendly-report-table th:nth-child(9),
.friendly-report-table td:nth-child(9) {
  width: 130px;
}

.friendly-report-table td:nth-child(2),
.friendly-report-table td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friendly-report-table td:nth-child(4),
.friendly-report-table td:nth-child(5),
.friendly-report-table td:nth-child(6),
.friendly-report-table td:nth-child(7) {
  white-space: nowrap;
}

.friendly-report-table td:nth-child(8) {
  white-space: normal;
  line-height: 1.25;
}

.friendly-detail-section {
  margin-bottom: 24px;
}

.friendly-detail-section .table-card-header {
  align-items: flex-start;
  gap: 14px;
}

.friendly-detail-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 20px;
  margin-bottom: 0;
}

.friendly-detail-stats .stat-card {
  min-height: 112px;
  padding: 18px;
}

.friendly-detail-stats .stat-card strong {
  max-width: 100%;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
}

.friendly-detail-stats .stat-card small {
  color: #606660;
  font-weight: 800;
}

.friendly-detail-stats .friendly-category-card {
  grid-column: span 2;
}

.friendly-detail-stats .friendly-category-value {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.3;
}

.friendly-detail-indicators {
  padding-top: 0;
}

.friendly-detail-history {
  min-width: 920px;
}

.friendly-detail-history td:last-child {
  min-width: 220px;
  white-space: normal;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .friendly-detail-section .table-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .friendly-detail-section .table-card-header .table-action {
    width: 100%;
  }

  .friendly-detail-stats .friendly-category-card {
    grid-column: span 1;
  }
}

.material-link-card {
  position: relative;
  isolation: isolate;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  border: 1px solid rgba(39, 174, 96, 0.18);
  border-radius: 8px;
  padding: 20px;
  overflow: hidden;
  color: var(--white);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.material-link-card::before,
.material-link-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.material-link-card::before {
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(145deg, rgba(15, 53, 28, 0.84), rgba(24, 119, 62, 0.88)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 42%);
}

.material-link-card::after {
  top: -32px;
  right: -20px;
  z-index: -1;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.16) 49%, rgba(255, 255, 255, 0.16) 51%, transparent 52%);
  opacity: 0.85;
}

.material-link-card-attack::before {
  background:
    linear-gradient(145deg, rgba(15, 53, 28, 0.84), rgba(31, 138, 78, 0.9)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 42%);
}

.material-link-card-defense::before {
  background:
    linear-gradient(145deg, rgba(17, 42, 62, 0.9), rgba(28, 93, 154, 0.88)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 42%);
}

.material-link-card:hover,
.material-link-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
}

.material-link-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

.material-link-kicker {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.material-link-card h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.material-link-card p {
  max-width: 34ch;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.84);
}

.material-grid h3 {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.material-grid p {
  margin-top: 8px;
  color: #606660;
}

.material-link-cta {
  width: fit-content;
  margin-top: auto;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.material-link-card:hover .material-link-cta,
.material-link-card:focus-visible .material-link-cta {
  background: rgba(255, 255, 255, 0.22);
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
}

.profile-hero h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.profile-hero p:not(.section-kicker) {
  margin-top: 10px;
  color: #606660;
}

.profile-hero-meta {
  width: min(260px, 100%);
  display: grid;
  gap: 10px;
  align-items: stretch;
}

.profile-hero-meta .table-action {
  width: 100%;
  justify-content: center;
}

.settings-card {
  width: min(520px, 100%);
}

.student-average {
  background: var(--field-green);
}

.student-average strong {
  color: var(--white);
  font-size: 1.8rem;
}

.student-recommendation-card {
  background: var(--field-green);
}

.student-recommendation-card strong {
  color: var(--white);
  font-size: 1.8rem;
}

.student-recommendation-card small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.student-history-chip {
  min-width: 150px;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  background: #f7faf8;
  padding: 12px 14px;
  color: #606660;
  text-align: center;
}

.student-history-chip span {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.student-history-chip strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.15rem;
}

.metric-block {
  margin-top: 18px;
  border-top: 1px solid #e1e7e3;
  padding-top: 14px;
}

.metric-block h3 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.auth-form textarea {
  width: 100%;
  border: 1px solid #d9dfdc;
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.recommendation-body {
  display: grid;
  gap: 12px;
  padding: 20px 24px 24px;
  color: var(--ink);
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.recommendation-grid span {
  border-radius: 8px;
  padding: 14px;
  background: #f4f7f5;
  color: #606660;
  font-weight: 900;
}

.recommendation-grid strong {
  display: block;
  color: var(--field-green-dark);
  font-size: 1.4rem;
}

.insight-list {
  list-style: none;
  margin: 0;
  padding: 20px 24px 24px;
  display: grid;
  gap: 10px;
}

.insight-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #dfe7e2;
}

.insight-list li:last-child {
  border-bottom: 0;
}

.insight-list strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.insight-list span {
  color: #606660;
  white-space: nowrap;
}

.secondary-report-section {
  margin-top: 16px;
}

.muted-copy {
  color: #606660;
}

.training-library {
  background: #121212;
}

.library-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 68px);
  background: rgba(18, 18, 18, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

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

.library-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.library-nav a:hover,
.library-nav a.active {
  background: var(--field-green);
  color: var(--white);
}

.public-user-badge {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(260px, 100%);
  border: 1px solid rgba(44, 167, 90, 0.55);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(8, 18, 13, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1;
  white-space: nowrap;
}

.public-user-role {
  color: #68d391;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
}

.public-user-separator {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 900;
}

.public-user-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
}

.library-main,
.module-detail-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.library-hero,
.module-hero {
  position: relative;
  border-radius: 8px;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(120deg, rgba(18, 18, 18, 0.94), rgba(18, 18, 18, 0.72)),
    radial-gradient(circle at 18% 18%, rgba(39, 174, 96, 0.36), transparent 34%),
    linear-gradient(135deg, rgba(39, 174, 96, 0.26), rgba(255, 255, 255, 0.06)),
    #1e1e1e;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.library-hero.defense {
  background:
    linear-gradient(120deg, rgba(18, 18, 18, 0.94), rgba(18, 18, 18, 0.72)),
    radial-gradient(circle at 18% 18%, rgba(47, 128, 237, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(47, 128, 237, 0.24), rgba(255, 255, 255, 0.06)),
    #1e1e1e;
}

.module-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.96), rgba(18, 18, 18, 0.65)),
    var(--module-image);
  background-position: center;
  background-size: cover;
  opacity: 0.72;
}

.module-hero > * {
  position: relative;
  z-index: 1;
}

.library-hero h1,
.module-hero h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  font-weight: 900;
  line-height: 0.96;
}

.library-hero p:not(.section-kicker),
.module-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
}

.module-band {
  margin-top: 24px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 24px 24px;
}

.module-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #111c16;
  color: var(--ink);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.module-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 142px;
  background:
    linear-gradient(135deg, rgba(39, 174, 96, 0.26), rgba(47, 128, 237, 0.18)),
    #1e1e1e;
  overflow: hidden;
}

.module-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.module-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 220ms ease, filter 220ms ease;
}

.module-card:hover .module-thumb img {
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.05);
}

.module-thumb .phase-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.module-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    #f4f7f5;
}

.module-card h3 {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.1;
}

.module-card p,
.module-card small {
  color: #606660;
}

.module-card p {
  flex: 1;
}

.phase-badge,
.level-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.phase-badge.attack {
  background: #ffe8dc;
  color: #c84f19;
}

.phase-badge.defense {
  background: #e3efff;
  color: #1f6fd5;
}

.level-badge {
  background: #e7f8ed;
  color: #16733e;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.module-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
}

.module-video {
  border-radius: 8px;
  overflow: hidden;
}

.module-video-wrap {
  min-width: 0;
}

.video-fallback-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 10px;
  border-radius: 8px;
  padding: 9px 14px;
  background: rgba(39, 174, 96, 0.16);
  color: #bff3d2;
  font-weight: 900;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.video-fallback-link:hover {
  background: rgba(39, 174, 96, 0.28);
  transform: translateY(-1px);
}

.position-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.position-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.book-section {
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.book-section h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  font-weight: 900;
}

.book-section p,
.book-section li {
  color: #606660;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.coach-summary-card {
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(39, 174, 96, 0.12), rgba(255, 255, 255, 0.04)),
    #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.summary-head h2 {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
}

.summary-head p {
  color: #606660;
  font-size: 0.92rem;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-metrics span {
  min-height: 68px;
  display: grid;
  align-content: center;
  border-radius: 8px;
  padding: 10px;
  background: #f4f7f5;
  color: #606660;
  font-size: 0.82rem;
  font-weight: 800;
}

.summary-metrics strong {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}

.mini-progress,
.score-progress {
  overflow: hidden;
  border-radius: 999px;
  background: #e2e9e5;
}

.mini-progress {
  height: 9px;
  margin-bottom: 14px;
}

.mini-progress span,
.score-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--field-green), #68d391);
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.progress-with-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  white-space: nowrap;
  vertical-align: middle;
}

.score-progress {
  width: 120px;
  height: 10px;
  display: inline-flex;
  flex: 0 0 auto;
  margin-right: 8px;
  vertical-align: middle;
}

.percent-text {
  display: inline-block;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.progress-with-value .score-progress {
  flex: 0 0 52px;
  width: 52px;
  height: 7px;
  margin-right: 0;
}

.progress-with-value .percent-text {
  display: inline-block;
  min-width: 36px;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}

.score-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-badge.baik {
  background: #dff6e8;
  color: #15783f;
}

.score-badge.cukup {
  background: #fff1d8;
  color: #b76300;
}

.score-badge.kurang {
  background: #ffe8e3;
  color: #ad321c;
}

.super-card,
.detail-panel {
  margin-bottom: 24px;
}

.super-table th,
.super-table td {
  min-width: 130px;
}

.detail-table {
  min-width: 1040px;
}

.detail-panel .table-card-header p:not(.section-kicker) {
  color: #606660;
  font-weight: 700;
}

/* Admin panel refinement layer */
.coach-table-card,
.auth-form,
.dashboard-section,
.empty-state,
.user-row,
.stat-card,
.shortcut-card,
.coach-summary-card,
.book-section,
.module-band {
  border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.coach-table-card {
  overflow: hidden;
}

.table-card-header {
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, #ffffff, #fbfdfb);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.coach-table {
  width: 100%;
  min-width: 880px;
  table-layout: fixed;
  border-collapse: collapse;
}

.detail-table {
  min-width: 1040px;
}

.coach-table th,
.coach-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coach-table th {
  border-bottom: 1px solid #dce5df;
  background: #f4f7f5;
  color: #3f4943;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
}

.coach-table tbody tr {
  border-top: 1px solid #e9efeb;
}

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

.btn,
.table-action,
.form-button,
.export-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, filter 140ms ease;
}

.btn-sm,
.table-action {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.btn-primary,
.form-button,
.table-action.approve {
  background: var(--field-green);
  color: var(--white);
}

.btn-success {
  background: #68d391;
  color: #10391f;
}

.btn-warning,
.table-action.pending {
  background: #f2b233;
  color: #211a0a;
}

.btn-danger,
.table-action.delete {
  background: #d94332;
  color: var(--white);
}

.btn-info,
.table-action.detail {
  background: #2f80ed;
  color: var(--white);
}

.btn:hover,
.table-action:hover,
.form-button:hover,
.export-action:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.form-button {
  width: 100%;
  margin-top: 18px;
}

.form-button.compact {
  width: auto;
  min-width: 112px;
  margin-top: 0;
}

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

.form-grid .field,
.dynamic-metrics .field {
  display: grid;
  gap: 7px;
}

.form-grid .field.full,
.dynamic-metrics,
.metric-block,
.auth-form .form-button {
  grid-column: 1 / -1;
}

.auth-form {
  justify-content: flex-start;
  padding: 20px;
}

.auth-form label,
.form-grid label,
.dynamic-metrics label {
  margin: 0;
}

.auth-form input,
.auth-form select,
.auth-form textarea,
.filter-bar select,
.filter-bar input {
  min-height: 42px;
  border-radius: 6px;
  padding: 9px 11px;
}

.filter-bar {
  gap: 10px;
  padding: 12px;
}

.stats-grid {
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  min-height: 128px;
  padding: 18px;
}

.stat-card strong {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.summary-grid,
.dashboard-grid {
  gap: 14px;
  margin-bottom: 18px;
}

.split-grid.students-split {
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.split-grid.students-split > * {
  min-width: 0;
}

.table-card-header h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.08;
}

.admin-main .coach-table {
  min-width: 760px;
}

.admin-main .coach-table th,
.admin-main .coach-table td {
  padding: 8px 10px;
  font-size: 0.84rem;
  vertical-align: middle;
}

.admin-main .action-group {
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
}

.admin-main .table-action {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 8px;
  font-size: 11px;
}

.admin-main .score-progress {
  width: 82px;
}

.admin-main:has(.students-split) .admin-topbar h1 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.students-split .table-card-header {
  padding: 16px 18px 12px;
}

.students-split .table-card-header h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.admin-main:has(.students-split) > .filter-bar {
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
}

.admin-main:has(.students-split) > .filter-bar input,
.admin-main:has(.students-split) > .filter-bar select {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 0.86rem;
}

.students-split .auth-form input,
.students-split .auth-form select {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 0.86rem;
}

.students-split .table-action {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 10.5px;
}

/* Simple full-width admin tables */
.admin-main .coach-table-card {
  border: 1px solid #e0e7e2;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.admin-main .table-card-header {
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  border-bottom: 1px solid #e4ebe6;
  background: #ffffff;
}

.admin-main .table-card-header .section-kicker {
  margin-bottom: 4px;
  font-size: 0.68rem;
}

.admin-main .table-card-header h2 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.15;
}

.admin-main .table-wrap {
  overflow-x: auto;
}

.admin-main .coach-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
  border-collapse: collapse;
}

.admin-main .detail-table {
  min-width: 980px;
}

.admin-main .coach-table th,
.admin-main .coach-table td {
  padding: 8px 10px;
  border-top: 1px solid #e8eee9;
  font-size: 0.82rem;
  line-height: 1.35;
  vertical-align: middle;
}

.admin-main .coach-table th {
  border-top: 0;
  border-bottom: 1px solid #dbe4de;
  background: #f6f9f7;
  color: #46504a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-main .coach-table tbody tr:hover {
  background: #fbfdfb;
}

.admin-main .score-progress {
  width: 76px;
  height: 7px;
  margin-right: 6px;
  background: #e5ece8;
}

.admin-main .percent-text {
  font-size: 0.78rem;
}

.admin-main .progress-with-value {
  gap: 6px;
}

.admin-main .progress-with-value .score-progress {
  flex: 0 0 52px;
  width: 52px;
  height: 7px;
  margin-right: 0;
}

.admin-main .progress-with-value .percent-text {
  display: inline-block;
  min-width: 36px;
}

.coach-table td:has(.progress-with-value),
.detail-table td:has(.progress-with-value),
.admin-main .coach-table td:has(.progress-with-value),
.admin-main .detail-table td:has(.progress-with-value) {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.coach-table td .progress-with-value,
.detail-table td .progress-with-value {
  min-width: 92px;
  max-width: 100%;
}

.table-progress-col {
  min-width: 112px;
}

.table-progress-cell,
.coach-table td.table-progress-cell,
.detail-table td.table-progress-cell,
.admin-main .coach-table td.table-progress-cell,
.admin-main .detail-table td.table-progress-cell {
  min-width: 112px;
  width: 112px;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.table-progress-cell .progress-with-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-width: 98px;
  max-width: none;
  white-space: nowrap;
}

.table-progress-cell .score-progress,
.table-progress-cell .progress-with-value .score-progress {
  flex: 0 0 46px;
  width: 46px;
  height: 7px;
  margin-right: 0;
}

.table-progress-cell .percent-text,
.table-progress-cell .progress-with-value .percent-text {
  display: inline-block;
  min-width: 40px;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.progress-fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: fit-content;
  min-width: 98px;
  max-width: none;
  overflow: visible;
}

.progress-fraction .progress-with-value {
  min-width: 98px;
  max-width: none;
}

.progress-raw {
  color: #67736b;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.admin-main .status-badge,
.admin-main .score-badge,
.admin-main .plan-badge.inline {
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.68rem;
  line-height: 1;
}

.admin-main .action-group {
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
}

.admin-main .table-action {
  flex: 0 0 auto;
  min-height: 27px;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 10.5px;
  line-height: 1.1;
}

.admin-main .table-action:hover {
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* Shared coach/admin baseline from students page */
.admin-main .admin-topbar h1 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.admin-main .admin-topbar {
  align-items: center;
  margin-bottom: 18px;
}

.admin-main .admin-topbar .section-kicker {
  margin-bottom: 6px;
  font-size: 0.7rem;
}

.admin-main .admin-profile {
  min-width: 170px;
  padding: 12px 14px;
}

.admin-main .filter-bar {
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
}

.admin-main .filter-bar input,
.admin-main .filter-bar select,
.admin-main .auth-form input,
.admin-main .auth-form select,
.admin-main .auth-form textarea {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 0.86rem;
}

.admin-main .auth-form {
  padding: 18px;
}

.admin-main .auth-form label {
  margin: 0;
  font-size: 0.82rem;
}

.admin-main .split-grid {
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-main .split-grid > * {
  min-width: 0;
}

.admin-main .stat-card,
.admin-main .shortcut-card,
.admin-main .coach-summary-card {
  min-height: 118px;
  padding: 16px;
}

.admin-main .stat-card strong {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.admin-main .chart-wrap,
.admin-main .pie-wrap {
  height: 290px;
  padding: 14px 16px 18px;
}

.admin-main .settings-card {
  width: min(460px, 100%);
}

.date-field {
  position: relative;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #d9dfdc;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}

.date-field input[type="date"] {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  padding: 9px 11px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.date-field:focus-within {
  border-color: var(--field-green);
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.16);
}

.date-field.is-empty input[type="date"] {
  color: transparent;
}

.date-field.is-empty input[type="date"]::-webkit-datetime-edit,
.date-field.is-empty input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.date-field.is-empty input[type="date"]::-webkit-datetime-edit-text,
.date-field.is-empty input[type="date"]::-webkit-datetime-edit-month-field,
.date-field.is-empty input[type="date"]::-webkit-datetime-edit-day-field,
.date-field.is-empty input[type="date"]::-webkit-datetime-edit-year-field {
  color: transparent;
}

.date-field input[type="date"]::-webkit-calendar-picker-indicator {
  position: relative;
  z-index: 3;
  cursor: pointer;
}

.date-placeholder {
  position: absolute;
  left: 11px;
  top: 50%;
  z-index: 1;
  max-width: calc(100% - 42px);
  color: #879188;
  font-size: 0.86rem;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 140ms ease;
}

.date-field.has-value .date-placeholder {
  opacity: 0;
}

.date-field.is-empty:focus-within .date-placeholder {
  opacity: 0.45;
}

.admin-main .filter-bar .date-field,
.admin-main .auth-form .date-field,
.students-split .auth-form .date-field {
  min-height: 38px;
}

.admin-main .filter-bar .date-field input[type="date"],
.admin-main .auth-form .date-field input[type="date"],
.students-split .auth-form .date-field input[type="date"] {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.86rem;
}

.admin-main .profile-hero {
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px;
}

.admin-main .profile-hero h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.08;
}

.admin-main .profile-hero p:not(.section-kicker) {
  margin-top: 6px;
}

.admin-main .recommendation-body,
.admin-main .activity-list,
.admin-main .material-grid {
  padding: 16px;
}

.admin-main .dashboard-grid,
.admin-main .summary-grid {
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 1200px) {
  .admin-main .split-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin coaches table: compact multi-action rows */
.admin-main:has(.coaches-table) .admin-topbar h1 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.admin-main:has(.coaches-table) .admin-topbar {
  margin-bottom: 18px;
}

.admin-main:has(.coaches-table) > .filter-bar {
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
}

.admin-main:has(.coaches-table) > .filter-bar input,
.admin-main:has(.coaches-table) > .filter-bar select {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 0.86rem;
}

.coaches-table {
  min-width: 940px;
}

.coaches-table .action-group.compact-actions {
  display: grid;
  gap: 4px;
  align-items: start;
}

.coaches-table .primary-actions,
.coaches-table .secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.action-post-form {
  display: flex;
  margin: 0;
}

.coaches-table .primary-actions .table-action {
  min-height: 24px;
  padding: 4px 7px;
  font-size: 10px;
  line-height: 1;
}

.coaches-table .secondary-actions .table-action {
  min-height: 20px;
  padding: 3px 5px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
  opacity: 0.88;
}

.coaches-table .table-action.pending,
.coaches-table .table-action.detail[href*="reset"],
.coaches-table .table-action.delete[href*="block"] {
  filter: saturate(0.9);
}

@media (max-width: 820px) {
  .coaches-table {
    min-width: 0;
  }

  .coaches-table .action-group.compact-actions {
    width: 100%;
  }
}

.shortcut-card {
  min-height: 128px;
  padding: 18px;
}

.chart-wrap,
.pie-wrap {
  height: 300px;
  padding: 16px 18px 20px;
}

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

@media (max-width: 1200px) {
  .split-grid.students-split {
    grid-template-columns: 1fr;
  }
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .report-page-actions {
    flex-direction: column;
  }

  .report-mode-grid {
    grid-template-columns: 1fr;
  }

  .report-mode-actions,
  .friendly-report-actions {
    justify-content: flex-start;
  }

  .report-filter-toolbar .btn-report-primary,
  .report-filter-toolbar .btn-report-pdf,
  .report-filter-toolbar .btn-report-secondary {
    flex: 1 1 180px;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .library-nav {
    width: 100%;
    align-items: center;
  }

  .public-user-badge {
    min-height: 34px;
    max-width: 100%;
    padding: 6px 10px;
  }

  .public-user-name {
    font-size: 0.76rem;
  }

  .hero-section {
    min-height: 82vh;
    padding: 140px 18px 48px;
  }

  .program-section {
    padding: 44px 18px 56px;
    background: var(--ink);
  }

  .section-heading,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .program-grid {
    display: grid;
  }

  .program-card {
    min-height: 360px;
  }

  .tryout-section {
    padding: 0 18px 56px;
  }

  .tryout-card,
  .dashboard-tryout-wrap .tryout-card {
    min-height: 220px;
  }

  .friendly-info-grid {
    grid-template-columns: 1fr;
  }

  .coach-guide-grid,
  .coach-guide-grid.three,
  .coach-guide-grid.four {
    grid-template-columns: 1fr;
  }

  .friendly-hero {
    padding: 28px;
  }

  .training-page {
    background: linear-gradient(180deg, #1e1e1e 0%, #252525 34%, #f4f7f5 34%, #f4f7f5 100%);
  }

  .training-main {
    width: min(100% - 36px, 680px);
    padding: 140px 0 54px;
  }

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

  .drill-content p {
    min-height: 0;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .auth-page,
  .dashboard-page {
    background: linear-gradient(180deg, #1e1e1e 0%, #252525 34%, #f4f7f5 34%, #f4f7f5 100%);
  }

  .auth-main,
  .dashboard-main {
    width: min(100% - 36px, 680px);
    padding: 140px 0 54px;
  }

  .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: 360px;
  }

  .user-row {
    align-items: stretch;
    flex-direction: column;
  }

  .approve-button {
    width: 100%;
  }

  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 16px 18px;
  }

  .admin-menu {
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  }

  .admin-menu a,
  .admin-menu-button {
    justify-content: center;
    padding: 9px 8px;
    font-size: 0.82rem;
  }

  .admin-main {
    margin-left: 0;
    padding: 24px 18px 44px;
  }

  .admin-topbar,
  .table-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-profile {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

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

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

  .dashboard-grid,
  .split-grid,
  .material-grid,
  .filter-bar,
  .module-grid,
  .module-hero,
  .book-grid,
  .recommendation-grid {
    grid-template-columns: 1fr;
  }

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

  .panel-form {
    position: static;
  }

  .profile-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-hero-meta {
    width: 100%;
  }

  .summary-head,
  .summary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-metrics {
    grid-template-columns: 1fr;
  }

  .table-wrap:not(.allow-mobile-scroll) {
    overflow-x: visible;
  }

  .table-wrap:not(.allow-mobile-scroll) .coach-table,
  .table-wrap:not(.allow-mobile-scroll) .detail-table,
  .table-wrap:not(.allow-mobile-scroll) .super-table {
    min-width: 0;
    width: 100%;
    table-layout: auto;
  }

  .table-wrap:not(.allow-mobile-scroll) .coach-table colgroup,
  .table-wrap:not(.allow-mobile-scroll) .detail-table colgroup,
  .table-wrap:not(.allow-mobile-scroll) .super-table colgroup {
    display: none;
  }

  .table-wrap:not(.allow-mobile-scroll) .coach-table thead,
  .table-wrap:not(.allow-mobile-scroll) .detail-table thead,
  .table-wrap:not(.allow-mobile-scroll) .super-table thead {
    display: none;
  }

  .table-wrap:not(.allow-mobile-scroll) .coach-table,
  .table-wrap:not(.allow-mobile-scroll) .coach-table tbody,
  .table-wrap:not(.allow-mobile-scroll) .coach-table tr,
  .table-wrap:not(.allow-mobile-scroll) .coach-table td,
  .table-wrap:not(.allow-mobile-scroll) .detail-table,
  .table-wrap:not(.allow-mobile-scroll) .detail-table tbody,
  .table-wrap:not(.allow-mobile-scroll) .detail-table tr,
  .table-wrap:not(.allow-mobile-scroll) .detail-table td,
  .table-wrap:not(.allow-mobile-scroll) .super-table,
  .table-wrap:not(.allow-mobile-scroll) .super-table tbody,
  .table-wrap:not(.allow-mobile-scroll) .super-table tr,
  .table-wrap:not(.allow-mobile-scroll) .super-table td {
    display: block;
    width: 100%;
  }

  .table-wrap:not(.allow-mobile-scroll) .coach-table tbody tr,
  .table-wrap:not(.allow-mobile-scroll) .detail-table tbody tr,
  .table-wrap:not(.allow-mobile-scroll) .super-table tbody tr {
    margin-bottom: 12px;
    border: 1px solid #dfe6e1;
    border-radius: 8px;
    padding: 4px 0;
    background: #f9fbfa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .table-wrap:not(.allow-mobile-scroll) .coach-table td,
  .table-wrap:not(.allow-mobile-scroll) .detail-table td,
  .table-wrap:not(.allow-mobile-scroll) .super-table td {
    display: grid;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid #e7eeea;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .table-wrap:not(.allow-mobile-scroll) .coach-table tbody tr td:first-child,
  .table-wrap:not(.allow-mobile-scroll) .detail-table tbody tr td:first-child,
  .table-wrap:not(.allow-mobile-scroll) .super-table tbody tr td:first-child {
    border-top: 0;
  }

  .table-wrap:not(.allow-mobile-scroll) .coach-table td::before,
  .table-wrap:not(.allow-mobile-scroll) .detail-table td::before,
  .table-wrap:not(.allow-mobile-scroll) .super-table td::before {
    content: attr(data-label);
    color: #606660;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .table-wrap:not(.allow-mobile-scroll) .coach-table td > *,
  .table-wrap:not(.allow-mobile-scroll) .detail-table td > *,
  .table-wrap:not(.allow-mobile-scroll) .super-table td > * {
    min-width: 0;
  }

  .table-wrap:not(.allow-mobile-scroll) .action-group {
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
  }

  .table-wrap:not(.allow-mobile-scroll) .action-group .table-action,
  .table-wrap:not(.allow-mobile-scroll) .action-group .btn,
  .table-wrap:not(.allow-mobile-scroll) .action-group .action-post-form {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .table-wrap:not(.allow-mobile-scroll) .progress-with-value {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    white-space: nowrap;
  }

  .table-wrap:not(.allow-mobile-scroll) .progress-with-value .score-progress,
  .table-wrap:not(.allow-mobile-scroll) .score-progress {
    width: 100%;
    max-width: 160px;
    flex-basis: auto;
    margin-right: 0;
  }

  .table-wrap:not(.allow-mobile-scroll) .progress-with-value .percent-text,
  .table-wrap:not(.allow-mobile-scroll) .percent-text,
  .table-wrap:not(.allow-mobile-scroll) .status-badge,
  .table-wrap:not(.allow-mobile-scroll) .score-badge,
  .table-wrap:not(.allow-mobile-scroll) .plan-badge.inline {
    width: fit-content;
  }

  .table-wrap:not(.allow-mobile-scroll) .coach-table td .progress-with-value,
  .table-wrap:not(.allow-mobile-scroll) .detail-table td .progress-with-value {
    min-width: 0;
  }

  .table-wrap.allow-mobile-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .brand {
    max-width: 178px;
    line-height: 1.05;
  }

  .login-button,
  .nav-link {
    min-height: 44px;
    padding: 9px 14px;
    font-size: 0.92rem;
  }

  .hero-content h1 {
    font-size: clamp(3rem, 18vw, 4.5rem);
  }

  .hero-button,
  .program-button {
    width: 100%;
  }

  .training-main {
    width: calc(100% - 28px);
  }

  .drill-content {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Friendly Match coach UX layout fixes */
.coach-guide-page {
  width: min(100% - 40px, 1180px);
}

.coach-guide-page .coach-guide-section {
  overflow: hidden;
  border: 1px solid rgba(49, 80, 68, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 14px 34px rgba(30, 30, 30, 0.08);
}

.coach-guide-page .coach-guide-grid,
.coach-guide-page .coach-tip-grid,
.coach-guide-page .score-scale-grid,
.coach-guide-page .reference-grid {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.coach-guide-page .coach-guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coach-guide-page .coach-guide-grid.three,
.coach-guide-page .reference-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coach-guide-page .coach-guide-grid.four,
.coach-guide-page .coach-tip-grid,
.coach-guide-page .score-scale-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coach-guide-page .coach-flow-card,
.coach-guide-page .coach-tip-card,
.coach-guide-page .score-scale-card,
.coach-guide-page .reference-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  min-height: 120px;
  padding: 18px;
  border: 1px solid rgba(49, 80, 68, 0.14);
  border-radius: 8px;
  background: #f8fbf8;
  color: #1f2937;
  text-decoration: none;
}

.coach-guide-page .coach-flow-step {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--field-green);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
}

.coach-guide-page .score-scale-card {
  align-content: center;
  min-height: 116px;
}

.coach-guide-page .score-scale-card strong {
  display: block;
  color: var(--field-green-dark);
  font-size: 2.15rem;
  line-height: 1;
}

.coach-guide-page .score-scale-card span {
  display: block;
  color: #1f2937;
  font-weight: 900;
  line-height: 1.25;
}

.coach-guide-page .reference-card {
  align-content: center;
  min-height: 90px;
  color: #315044;
  font-weight: 900;
}

#friendly-guide,
.coach-guide-page .friendly-workflow-panel {
  margin-top: 4px;
  scroll-margin-top: 170px;
}

.coach-guide-page .friendly-workflow-panel .table-card-header {
  padding: 24px 24px 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbf8);
}

.coach-guide-page .workflow-intro {
  max-width: 860px;
  margin-top: 8px;
  color: #4b5563;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.55;
}

.coach-guide-page .friendly-workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 24px 24px;
}

.coach-guide-page .friendly-step-card {
  align-content: start;
  min-height: 168px;
  background:
    linear-gradient(180deg, #ffffff, #f3faf5);
  border-color: rgba(49, 80, 68, 0.16);
}

.coach-guide-page .friendly-step-card h3 {
  color: #111827;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  font-weight: 900;
  line-height: 1.15;
}

.coach-guide-page .friendly-step-card p {
  color: #374151;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.coach-guide-page .friendly-step-card .coach-flow-step {
  width: 38px;
  height: 38px;
  background: var(--field-green);
  box-shadow: 0 8px 18px rgba(39, 174, 96, 0.28);
}

.workflow-switcher {
  align-items: stretch;
}

.workflow-option {
  grid-template-rows: auto auto 1fr auto auto;
  overflow: hidden;
}

.workflow-option-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}

.friendly-dashboard-actions .friendly-flow-action {
  min-height: 64px;
  padding: 10px 12px;
}

.coach-help-card {
  overflow: hidden;
}

@media (max-width: 980px) {
  .coach-guide-page .coach-guide-grid.three,
  .coach-guide-page .coach-guide-grid.four,
  .coach-guide-page .coach-tip-grid,
  .coach-guide-page .score-scale-grid,
  .coach-guide-page .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coach-guide-page .friendly-workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .coach-guide-page {
    width: min(100% - 28px, 680px);
  }

  #friendly-guide,
  .coach-guide-page .friendly-workflow-panel {
    scroll-margin-top: 120px;
  }

  .coach-guide-page .coach-guide-grid,
  .coach-guide-page .coach-guide-grid.three,
  .coach-guide-page .coach-guide-grid.four,
  .coach-guide-page .coach-tip-grid,
  .coach-guide-page .score-scale-grid,
  .coach-guide-page .reference-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .friendly-dashboard-actions {
    grid-template-columns: 1fr;
  }
}
