@font-face {
  font-family: "Bebas Report";
  src: url("/public/fonts/Bebas-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Design system aliases: prefer these names for new UI work in T2/T3. */
  --color-bg-canvas: #07111a;
  --color-bg-surface: #102130;
  --color-panel-primary: rgba(13, 20, 29, 0.96);
  --color-panel-elevated: rgba(18, 27, 39, 0.98);
  --color-card-default: #121c28;
  --color-card-soft: #162231;
  --color-card-strong: #1b2a3b;
  --color-border-default: #243446;
  --color-border-strong: #35506a;
  --color-border-soft: rgba(255, 255, 255, 0.06);
  --color-text-primary: #ebf4ff;
  --color-text-strong: #f6fbff;
  --color-text-secondary: #bfd1e3;
  --color-text-tertiary: #8fa6bd;
  --color-brand-primary: #00ffc2;
  --color-brand-strong: #00ffc2;
  --color-brand-gradient-highlight: #66ffdb;
  --color-brand-ink: #062019;
  --color-focus-ring: #00ffc2;
  --color-warning: #f0c45a;
  --color-danger: #f46a6a;
  --color-info: #4f7bff;
  --shadow-panel: 0 22px 54px rgba(0, 0, 0, 0.22);
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.16);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 22px;
  --font-size-3xl: 30px;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-title: 1.35;
  --line-height-body: 1.65;
  --line-height-meta: 1.5;
  --report-card-padding: 24px;
  --report-title-block-height: 52px;
  --report-bar-height: 14px;
  --font-display-numeric: "Bebas Report", "Arial Narrow", sans-serif;
  --font-display-title: "Bebas Report", "Avenir Next", "PingFang SC", "Noto Sans SC", sans-serif;

  --bg: #07111a;
  --bg-accent: #102130;
  --panel: rgba(13, 20, 29, 0.96);
  --panel-elevated: rgba(18, 27, 39, 0.98);
  --card: #121c28;
  --card-soft: #162231;
  --card-strong: #1b2a3b;
  --line: #243446;
  --line-strong: #35506a;
  --line-soft: rgba(255, 255, 255, 0.06);
  --txt: #ebf4ff;
  --txt-strong: #f6fbff;
  --muted: #8fa6bd;
  --muted-strong: #bfd1e3;
  --brand: #00ffc2;
  --brand-strong: #00ffc2;
  --brand-gradient-highlight: #66ffdb;
  --brand-ink: #062019;
  --focus: #00ffc2;
  --warn: #f0c45a;
  --danger: #f46a6a;
  --bar: #4f7bff;
  --shadow-panel: 0 22px 54px rgba(0, 0, 0, 0.22);
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.16);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 22px;
  --text-3xl: 30px;

  /* Legacy aliases kept for compatibility with existing UI. */
  --bg: var(--color-bg-canvas);
  --bg-accent: var(--color-bg-surface);
  --panel: var(--color-panel-primary);
  --panel-elevated: var(--color-panel-elevated);
  --card: var(--color-card-default);
  --card-soft: var(--color-card-soft);
  --card-strong: var(--color-card-strong);
  --line: var(--color-border-default);
  --line-strong: var(--color-border-strong);
  --line-soft: var(--color-border-soft);
  --txt: var(--color-text-primary);
  --txt-strong: var(--color-text-strong);
  --muted: var(--color-text-tertiary);
  --muted-strong: var(--color-text-secondary);
  --brand: var(--color-brand-primary);
  --brand-strong: var(--color-brand-strong);
  --brand-gradient-highlight: var(--color-brand-gradient-highlight);
  --brand-ink: var(--color-brand-ink);
  --focus: var(--color-focus-ring);
  --warn: var(--color-warning);
  --danger: var(--color-danger);
  --bar: var(--color-info);
  --text-xs: var(--font-size-xs);
  --text-sm: var(--font-size-sm);
  --text-md: var(--font-size-md);
  --text-lg: var(--font-size-lg);
  --text-xl: var(--font-size-xl);
  --text-2xl: var(--font-size-2xl);
  --text-3xl: var(--font-size-3xl);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--txt);
  background: var(--bg);
  font-family: "Avenir Next", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.5;
}

/* Display typography: Bebas handles Latin letters and numbers while the
   following fonts keep Chinese headings legible. Body copy stays unchanged. */
h1,
h2,
h3,
h4,
h5,
h6,
.report-section-subtitle,
.locked-card-subtitle,
.player-mirror-name-en,
.hero-brand,
.poster-logo-brand,
.poster-logo-camp,
.poster-name {
  font-family: var(--font-display-title);
}

.page-color-bends {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(25, 68, 86, 0.46), transparent 42%),
    linear-gradient(180deg, #0c1d29 0%, #08131d 46%, #060e16 100%);
  isolation: isolate;
}

.page-color-bends::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(4, 10, 16, 0.04), rgba(4, 10, 16, 0.46)),
    radial-gradient(circle at center, transparent 18%, rgba(3, 8, 13, 0.46) 100%);
}

.page-color-bend {
  position: absolute;
  display: block;
  width: 108vw;
  height: 34vw;
  min-height: 280px;
  border-radius: 50%;
  filter: blur(48px) saturate(128%);
  opacity: 0.26;
  will-change: transform;
  transform-origin: center;
}

.page-color-bend-teal {
  left: -38vw;
  top: -12vw;
  z-index: 2;
  background: radial-gradient(ellipse at center, rgba(0, 255, 194, 0.94) 0%, rgba(0, 255, 194, 0.34) 34%, transparent 70%);
  transform: rotate(21deg);
  animation: page-bend-drift-teal 22s ease-in-out infinite alternate;
}

.page-color-bend-violet {
  right: -46vw;
  top: 18vh;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(138, 92, 255, 0.88) 0%, rgba(70, 102, 214, 0.34) 38%, transparent 72%);
  transform: rotate(-26deg);
  animation: page-bend-drift-violet 28s ease-in-out infinite alternate;
}

.page-color-bend-coral {
  left: 5vw;
  bottom: -19vw;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(255, 92, 122, 0.72) 0%, rgba(206, 68, 112, 0.24) 38%, transparent 72%);
  transform: rotate(-8deg);
  animation: page-bend-drift-coral 26s ease-in-out infinite alternate;
}

@keyframes page-bend-drift-teal {
  from { transform: translate3d(-4vw, -2vh, 0) rotate(18deg) scale(0.96); }
  to { transform: translate3d(12vw, 8vh, 0) rotate(28deg) scale(1.08); }
}

@keyframes page-bend-drift-violet {
  from { transform: translate3d(5vw, -5vh, 0) rotate(-30deg) scale(1.04); }
  to { transform: translate3d(-12vw, 10vh, 0) rotate(-18deg) scale(0.94); }
}

@keyframes page-bend-drift-coral {
  from { transform: translate3d(-8vw, 6vh, 0) rotate(-12deg) scale(0.94); }
  to { transform: translate3d(10vw, -8vh, 0) rotate(2deg) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .page-color-bend {
    animation: none;
  }
}

.share-export-root {
  position: fixed;
  left: -20000px;
  top: 0;
  width: 1080px;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}

body.public-share-mode .controls,
body.public-share-mode #btnOpenImportModal,
body.public-share-mode :is(#btnContact, #btnMiniAssistant),
body.public-share-mode #miniAssistantContainer,
body.public-share-mode #btnLogout,
body.public-share-mode #btnShareQrTop,
body.public-share-mode #authUserMeta {
  display: none !important;
}

body.public-share-mode .layout {
  grid-template-columns: minmax(0, 1fr);
}

body.public-share-mode .topbar {
  padding: 18px 22px;
}

body.public-share-mode .topbar-actions {
  justify-content: flex-end;
}

body.public-poster-mode .controls,
body.public-poster-mode #btnOpenImportModal,
body.public-poster-mode :is(#btnContact, #btnMiniAssistant),
body.public-poster-mode #miniAssistantContainer,
body.public-poster-mode #btnLogout,
body.public-poster-mode #btnShareQrTop,
body.public-poster-mode #btnShareImageTop,
body.public-poster-mode #shareImageTopLink,
body.public-poster-mode #authUserMeta {
  display: none !important;
}

body.public-poster-mode .layout {
  grid-template-columns: minmax(0, 1fr);
}

body.public-poster-mode .topbar {
  margin-bottom: 18px;
  padding: 18px 22px;
}

body.public-poster-mode .topbar-actions {
  justify-content: flex-end;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-6);
}

/* Let the desktop workspace use the window while preserving shared reports. */
body:not(.public-share-mode):not(.public-poster-mode) .shell {
  width: 100%;
  max-width: none;
}

.topbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  min-height: 92px;
  padding: 20px 22px;
  border: 0;
  border-bottom: 1px solid rgba(62, 93, 119, 0.5);
  border-radius: 0;
  background: rgba(8, 19, 29, 0.88);
  box-shadow: 0 0 0 100vmax rgba(8, 19, 29, 0.88), 0 14px 32px rgba(0, 0, 0, 0.12);
  clip-path: inset(0 -100vmax -32px);
  backdrop-filter: blur(18px);
}

.poster-view {
  width: min(100%, 440px);
  margin: 0 auto;
}

.poster-page {
  --poster-bg: var(--color-bg-canvas);
  --poster-text: var(--color-text-primary);
  --poster-muted: var(--color-text-secondary);
  background: var(--poster-bg);
  padding: 18px 0 28px;
}

.poster-stack {
  display: grid;
  gap: 18px;
}

.poster-widget-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  margin: 0 18px;
  padding: 18px 16px;
  border-radius: 26px;
  background: var(--color-card-default);
  border: 1px solid var(--color-border-default);
  color: var(--poster-text);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
}

.poster-widget-card::before {
  content: "";
  position: absolute;
  inset: auto -32px -46px auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.65;
}

.poster-widget-card.is-green::before {
  background: radial-gradient(circle, rgba(0, 255, 194, 0.12), transparent 72%);
}

.poster-widget-card.is-orange::before {
  background: radial-gradient(circle, rgba(0, 255, 194, 0.12), transparent 72%);
}

.poster-widget-card.is-red::before {
  background: radial-gradient(circle, rgba(246, 89, 89, 0.08), transparent 72%);
}

.poster-widget-card-hero {
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 16px;
}

.poster-widget-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.poster-widget-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
}

.poster-widget-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.poster-kicker {
  margin: 0;
  color: var(--poster-muted);
  font-size: 11px;
  line-height: 1.5;
}

.poster-brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poster-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.poster-logo-brand {
  color: #00ffc2;
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
}

.poster-logo-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.18);
}

.poster-logo-camp {
  color: #e7ffde;
  font-size: 14px;
  font-weight: 800;
}

.poster-hero-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 14px;
  align-items: center;
}

.poster-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.poster-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.poster-badge.is-gold {
  color: #ffd76d;
  background: rgba(81, 65, 17, 0.64);
}

.poster-badge.is-green {
  color: var(--brand-strong);
  background: rgba(0, 255, 194, 0.12);
}

.poster-name {
  margin: 6px 0 0;
  font-size: 58px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.poster-identity-submeta {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  color: rgba(229, 235, 236, 0.72);
  font-size: 11px;
  line-height: 1.5;
}

.poster-hero-avatar {
  width: 108px;
  height: 108px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-gradient-highlight), var(--brand));
  border: 4px solid var(--brand);
  box-sizing: border-box;
}

.poster-hero-avatar .player-mirror-avatar-image,
.poster-mirror-avatar-card .player-mirror-avatar-image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.poster-hero-avatar .player-mirror-avatar-initials,
.poster-mirror-avatar-card .player-mirror-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.poster-score-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.poster-score {
  margin: 0;
  color: var(--brand-strong);
  font-family: var(--font-display-numeric);
  font-size: 118px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.025em;
}

.poster-score-track-block {
  display: grid;
  gap: 10px;
}

.poster-score-track-labels,
.poster-score-track-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: end;
}

.poster-score-track-label {
  position: relative;
  padding-bottom: 16px;
  color: rgba(241, 248, 251, 0.86);
  font-size: 12px;
}

.poster-score-track-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 2px;
  height: 68px;
  background: rgba(0, 209, 120, 0.62);
  border-radius: 999px;
  opacity: 0.55;
}

.poster-score-track {
  position: relative;
  overflow: hidden;
  display: flex;
  width: 100%;
  height: 28px;
  border-radius: 0;
  background: rgba(120, 120, 120, 0.62);
}

.poster-score-track-segments {
  display: flex;
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
}

.poster-score-track-segment {
  height: 100%;
  flex-shrink: 0;
  background: var(--brand);
  border-right: 2px solid rgba(0, 0, 0, 0.45);
}

.poster-score-track-segment.is-bright {
  background: var(--brand-strong);
}

.poster-score-track-rest {
  flex: 1 1 auto;
  background: #233044;
}

.poster-score-track-value,
.poster-score-track-max,
.poster-list-row-head {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
}

.poster-score-track-max {
  text-align: right;
}

.poster-score-segment-head,
.poster-list-row-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.poster-list-row-head span {
  color: rgba(241, 248, 251, 0.8);
  font-size: 12px;
}

.poster-list-row-head strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.poster-progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.poster-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.poster-progress-track.is-tech,
.poster-progress-track.is-fitness {
  height: 7px;
  background: rgba(255, 255, 255, 0.14);
}

.poster-progress-fill.is-tech {
  background: var(--bar);
}

.poster-progress-fill.is-fitness {
  background: var(--warn);
}

.poster-completion-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 255, 194, 0.12);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
}

.poster-completion-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 255, 194, 0.2);
}

.poster-rating-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.poster-rating-ring-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-rating-ring {
  width: 148px;
  height: 148px;
  display: block;
}

.poster-rating-ring-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 12;
}

.poster-rating-ring-value {
  fill: none;
  stroke: url(#posterRatingRingGradient);
  stroke-width: 12;
  transform: rotate(-90deg);
  transform-origin: 80px 80px;
  stroke-linecap: round;
}

.poster-rating-ring-core {
  fill: var(--color-card-soft);
}

.poster-rating-ring-number {
  fill: #ffffff;
  font-family: "Bebas Report", "Arial Narrow", sans-serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 0.025em;
}

.poster-rating-side {
  display: grid;
  gap: 10px;
}

.poster-rating-orbit {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 12px;
  align-items: center;
}

.poster-rating-tag-col {
  display: grid;
  gap: 12px;
}

.poster-rating-tag-col.is-left {
  justify-items: start;
}

.poster-rating-tag-col.is-right {
  justify-items: end;
}

.poster-keyword-cloud,
.poster-keyword-list,
.poster-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.poster-keyword-pill,
.poster-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 255, 194, 0.08);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.poster-keyword-pill.is-rating {
  background: rgba(0, 255, 194, 0.08);
}

.poster-ai-summary-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 14px 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.poster-ai-summary-card h4 {
  margin: 0;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 800;
}

.poster-ai-lines {
  display: grid;
  gap: 10px;
}

.poster-ai-line {
  display: grid;
  gap: 4px;
}

.poster-ai-line-label {
  color: #f3f3f3;
  font-size: 12px;
  font-weight: 800;
}

.poster-ai-line-text {
  color: rgba(255, 246, 239, 0.92);
  font-size: 13px;
  line-height: 1.75;
}

.poster-list-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.poster-list-row {
  display: grid;
  gap: 6px;
}

.poster-row-note,
.poster-empty-copy,
.poster-fitness-summary {
  position: relative;
  z-index: 1;
  color: rgba(237, 243, 247, 0.76);
  font-size: 11px;
  line-height: 1.6;
}

.poster-fitness-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.poster-radar-card-copy {
  position: relative;
  z-index: 1;
  color: rgba(248, 214, 214, 0.78);
  font-size: 12px;
}

.poster-radar-stage {
  position: relative;
  z-index: 1;
  min-height: 300px;
  padding-top: 6px;
}

.poster-radar-svg {
  width: 100%;
  height: auto;
  display: block;
}

.poster-mirror-banner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0, 255, 194, 0.12);
}

.poster-mirror-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 213, 63, 0.2);
  font-size: 16px;
}

.poster-mirror-banner-copy {
  color: var(--brand-strong);
  font-size: 14px;
  line-height: 1.5;
}

.poster-mirror-banner-kicker {
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}

.poster-mirror-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
}

.poster-mirror-avatar-card {
  width: 88px;
  height: 88px;
}

.poster-mirror-avatar-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--bg-surface-2), var(--bg-canvas));
}

.poster-mirror-copy h4 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.poster-mirror-subline,
.poster-mirror-achievement {
  margin-top: 6px;
  color: rgba(226, 241, 229, 0.76);
  font-size: 12px;
  line-height: 1.5;
}

.poster-mirror-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.poster-mini-stat {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--color-card-strong);
}

.poster-mini-stat span {
  color: rgba(214, 228, 217, 0.64);
  font-size: 10px;
}

.poster-mini-stat strong {
  color: #f3fff2;
  font-size: 12px;
  line-height: 1.4;
}

.poster-advanced-copy,
.poster-plan-week p,
.poster-plan-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(238, 245, 239, 0.9);
  font-size: 13px;
  line-height: 1.8;
}

.poster-plan-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.poster-plan-week {
  display: grid;
  gap: 0;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  background: var(--color-card-soft);
}

.poster-plan-week + .poster-plan-week {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.poster-plan-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
}

.poster-plan-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 255, 194, 0.12);
  font-size: 18px;
}

.poster-plan-copy {
  display: grid;
  gap: 6px;
}

.poster-plan-index {
  display: inline-flex;
  min-height: 24px;
  width: fit-content;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f0d88f;
  font-size: 11px;
  font-weight: 800;
}

.poster-plan-week h4 {
  margin: 0;
  color: #f4fff2;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .poster-view {
    width: 100%;
  }

  .poster-name {
    font-size: 52px;
  }

  .poster-score {
    font-size: 92px;
  }

  .poster-rating-orbit,
  .poster-hero-row,
  .poster-mirror-grid,
  .poster-mirror-stats {
    grid-template-columns: 1fr;
  }

  .poster-hero-avatar,
  .poster-hero-avatar .player-mirror-avatar-shell {
    width: 96px;
    height: 96px;
  }
}

.topbar h1 {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display-title);
  font-size: clamp(34px, 2.25vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.055em;
}

.topbar-utility-hidden {
  display: none !important;
}

.topbar p {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #1a2736, #152131);
  color: var(--txt);
  font-weight: 700;
  font-size: var(--text-md);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: #41627f;
  background: linear-gradient(180deg, #1d2d3e, #172536);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.action-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 255, 194, 0.16);
  border-color: var(--focus);
}

button:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.48;
}

.btn-primary,
#btnShareImageTop,
#btnCreateStudent,
#btnCreateAssessment,
#btnLoadReport,
.assessment-step-button:not(.is-secondary) {
  border-color: rgba(0, 255, 194, 0.28);
  background: linear-gradient(180deg, var(--brand-gradient-highlight), var(--brand));
  color: var(--brand-ink);
  box-shadow: 0 12px 26px rgba(0, 255, 194, 0.16);
}

.btn-primary:hover,
#btnShareImageTop:hover,
#btnCreateStudent:hover,
#btnCreateAssessment:hover,
#btnLoadReport:hover,
.assessment-step-button:not(.is-secondary):hover {
  border-color: rgba(0, 255, 194, 0.38);
  background: linear-gradient(180deg, var(--brand-gradient-highlight), var(--brand));
}

.btn-secondary,
:is(#btnContact, #btnMiniAssistant),
#btnOpenImportModal,
.assessment-step-button.is-secondary,
.student-card-button,
.rating-tips-trigger {
  background: linear-gradient(180deg, #182636, #142130);
  color: var(--txt);
}

.btn-ghost,
.ghost-button,
.modal-close {
  min-height: 40px;
  padding: 0 14px;
  background: rgba(20, 31, 44, 0.8);
  color: #d8ebff;
  border-color: rgba(78, 102, 128, 0.75);
  box-shadow: none;
}

.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(17, 28, 40, 0.72);
  color: #9ed4ff;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease, transform 120ms ease;
}

.action-link:hover {
  transform: translateY(-1px);
  border-color: #4d7297;
  background: rgba(22, 38, 54, 0.9);
  color: #b4deff;
}

.layout {
  --controls-track-size: clamp(500px, 32vw, 560px);
  --controls-layout-gap: 0px;
  display: grid;
  grid-template-columns: minmax(0, var(--controls-track-size)) minmax(0, 1fr);
  column-gap: var(--controls-layout-gap);
  align-items: stretch;
}

.layout.is-controls-motion-ready {
  transition:
    grid-template-columns 520ms cubic-bezier(0.22, 1, 0.36, 1),
    column-gap 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--panel-elevated), var(--panel));
  min-height: calc(100vh - 84px);
  min-height: calc(100dvh - 84px);
  box-shadow: var(--shadow-panel);
}

.controls {
  padding: 22px 22px 24px;
  height: calc(100vh - 84px);
  height: calc(100dvh - 84px);
  max-height: calc(100vh - 84px);
  max-height: calc(100dvh - 84px);
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
  transition: padding 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.controls.panel {
  border: 0;
  border-right: 1px solid rgba(113, 146, 161, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.controls-panel-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  min-width: 0;
  transition: margin 360ms ease;
}

.controls h2,
.report-panel-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.controls-panel-heading h2 {
  overflow: hidden;
  white-space: nowrap;
  transform-origin: left center;
  transition:
    opacity 160ms ease 160ms,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1) 100ms;
}

.controls > :not(.controls-panel-heading) {
  min-width: 456px;
  transform-origin: left top;
  transition:
    opacity 180ms ease 150ms,
    transform 440ms cubic-bezier(0.22, 1, 0.36, 1) 80ms,
    visibility 0s linear 0s;
}

.controls-collapse-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  aspect-ratio: 1 / 1;
  flex: 0 0 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #d8fff5;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 7px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: transform;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.controls-collapse-toggle:hover,
.controls-collapse-toggle:focus-visible {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(0, 255, 194, 0.52);
  background: linear-gradient(180deg, var(--brand-gradient-highlight), var(--brand));
  color: var(--brand-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 7px 18px rgba(0, 255, 194, 0.3), 0 0 24px rgba(0, 255, 194, 0.18);
}

.controls-collapse-toggle:active {
  transform: scale(0.94);
}

.controls-collapse-icon {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 50%;
}

.controls-collapse-arrow { fill: currentColor; stroke-width: 1; }

.controls-collapse-chevron,
.controls-collapse-dashboard {
  transform-origin: 50% 50%;
  transition:
    opacity 180ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.controls-collapse-chevron {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.controls-collapse-dashboard {
  opacity: 0;
  transform: scale(0.72);
}

.block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #141f2c, #111a25);
  box-shadow: var(--shadow-card);
}

.block > * + * {
  margin-top: 0;
}

.workflow-guide {
  gap: 14px;
  border-color: rgba(0, 255, 194, 0.22);
  background:
    radial-gradient(circle at top right, rgba(0, 255, 194, 0.1), transparent 28%),
    linear-gradient(180deg, #152432, #111b27);
}

.workflow-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workflow-guide-head h3 {
  margin: 0;
}

.workflow-guide-badge {
  background: rgba(79, 123, 255, 0.12);
  border-color: rgba(79, 123, 255, 0.22);
  color: #a8c3ff;
}

.workflow-guide-list {
  margin: 0;
  padding-left: 20px;
  color: var(--txt);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.workflow-guide-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(53, 80, 106, 0.9);
  background: rgba(10, 19, 28, 0.62);
  color: var(--muted-strong);
  font-size: var(--text-sm);
}

.history-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block h3 {
  margin: 0 0 12px;
  font-size: var(--text-xl);
  color: var(--txt-strong);
  line-height: 1.25;
}

.student-panel-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--txt);
  box-shadow: none;
  text-align: left;
}

.student-panel-toggle:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.student-panel-toggle:focus-visible {
  border-radius: 14px;
}

.student-panel-heading,
.student-panel-toggle-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-panel-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--txt-strong);
}

.student-panel-toggle-meta {
  color: var(--muted);
  font-size: var(--text-sm);
}

.student-panel-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 140ms ease;
}

.student-panel-toggle.is-open .student-panel-chevron {
  transform: rotate(225deg);
}

.student-panel-body {
  margin-top: 0;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 300ms cubic-bezier(.22,1,.36,1), margin-top 300ms ease, opacity 200ms ease, visibility 0s linear 300ms;
}
.student-panel-body.is-open {
  margin-top: 16px;
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.student-panel-body-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 10px;
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.block-head h3 {
  margin: 0;
}

.count-pill {
  min-width: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 255, 194, 0.1);
  border: 1px solid rgba(0, 255, 194, 0.2);
  color: var(--brand-strong);
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: center;
}

.student-search-label {
  margin-bottom: 0;
}

.hint {
  color: var(--muted);
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.5;
}

.block-note {
  margin: -4px 0 2px;
  color: #d2e6f8;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.inline-status {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #35506a;
  background: rgba(11, 20, 29, 0.82);
  color: #d9ebfb;
  font-size: 13px;
  line-height: 1.5;
}

.inline-status.is-success {
  border-color: rgba(0, 255, 194, 0.34);
  background: rgba(18, 59, 56, 0.32);
  color: #00ffc2;
}

.inline-status.is-error {
  border-color: rgba(244, 106, 106, 0.34);
  background: rgba(72, 24, 24, 0.3);
  color: #ffd7d7;
}

.context-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #31465d;
  background: rgba(12, 20, 29, 0.72);
}

.context-card-label {
  color: #9bb4ca;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.context-card-text {
  margin: 6px 0 0;
  color: var(--txt);
  font-size: 14px;
  line-height: 1.5;
}

.hint-link {
  color: #9ed4ff;
  font-weight: 700;
  text-decoration: none;
}

.hint-link:hover {
  color: #c2e4ff;
  text-decoration: underline;
}

.hint-link:focus-visible {
  outline: none;
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(0, 255, 194, 0.16);
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

.number-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: var(--text-sm);
}

.number-field-label {
  color: inherit;
  font-weight: 600;
  line-height: 1.45;
}

.target-score-summary {
  margin-top: 0;
  color: #8ecbdb;
  line-height: 1.6;
}

.assessment-locked-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
  gap: 12px 22px;
  margin: 2px 0 0;
  padding: 0;
  color: #d2e8ff;
}

.assessment-context-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.assessment-context-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.assessment-context-item strong {
  color: #e4f2ff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.assessment-context-item strong span {
  color: #a9c3d9;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #0f1722, #101b28);
  color: #d4e8ff;
  font-size: var(--text-md);
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

select:not([size]),
select[size="1"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;
  background-image:
    linear-gradient(180deg, #0f1722, #101b28),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.5L6 6L10.5 1.5' stroke='%2397AFC6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 16px center;
  background-size: auto, 12px 8px;
}

input::placeholder,
textarea::placeholder {
  color: #6f859a;
}

input[type="file"] {
  padding: 9px 12px;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#assessmentMetaFields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 0;
}

#assessmentBlock {
  gap: 0;
  padding: 22px;
}

.assessment-composer-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#assessmentBlockTitle {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: var(--brand-strong);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

#assessmentBlockTitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-gradient-highlight), var(--brand));
  box-shadow: 0 0 16px rgba(0, 255, 194, 0.22);
}

#assessmentBlock .block-note {
  margin: 0;
  color: #c5d8e9;
  line-height: 1.7;
}

.assessment-content-divider {
  height: 1px;
  margin: 22px 0 24px;
  background: linear-gradient(90deg, rgba(0, 255, 194, 0.48), rgba(54, 78, 103, 0.62) 42%, rgba(54, 78, 103, 0.12));
}

.assessment-final-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
  padding-top: 28px;
  border-top: 1px solid rgba(54, 78, 103, 0.72);
}

.assessment-final-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assessment-final-head h4 {
  margin: 0;
  color: var(--brand-strong);
  font-size: var(--text-xl);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0;
}

.assessment-final-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.coach-comment-field {
  gap: 8px;
  color: var(--muted-strong);
  font-size: var(--text-sm);
  font-weight: 600;
}

.coach-comment-field textarea {
  min-height: 120px;
  line-height: 1.65;
}

.assessment-final-section #btnCreateAssessment {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  border-radius: 12px;
}

.assessment-final-section #btnCreateAssessment:disabled {
  border-color: rgba(117, 137, 157, 0.38);
  background: #263644;
  color: #a6b6c4;
  opacity: 1;
}

.assessment-submit-hint {
  margin: -8px 0 0;
  color: #ffd48a;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.assessment-final-section .inline-status {
  margin-top: -4px;
}

#scoreFields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.score-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: linear-gradient(180deg, #111a25, #0d1520);
}

.score-group-head {
  margin-bottom: 10px;
}

.score-group-title {
  margin: 0;
  color: var(--txt-strong);
  font-size: var(--text-md);
  font-weight: 700;
}

.score-group-description {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
}

.score-group-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.score-group-grid.is-single {
  grid-template-columns: 1fr;
}

.score-field {
  margin: 0;
  padding: 14px;
  border: 1px solid #2d4054;
  border-radius: 14px;
  background: linear-gradient(180deg, #111a25, #101822);
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.score-field-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.score-field-name {
  color: var(--txt-strong);
  font-size: var(--text-md);
  font-weight: 700;
}

.score-field-range {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.score-field-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 10px;
  text-align: right;
}

.score-field-input {
  margin-top: 0;
}

.score-field-select {
  margin-top: 10px;
}

.score-field-stepper {
  margin-top: 10px;
}

.number-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.number-stepper-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  appearance: textfield;
  -moz-appearance: textfield;
  min-height: 46px;
}

.number-stepper-input.is-suggested {
  color: #7f8fa6;
}

.number-stepper-input::-webkit-outer-spin-button,
.number-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-stepper-unit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 52px;
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, #132131, #152536);
  color: #a7c8e2;
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.number-stepper-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.number-stepper-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #35506c;
  background: linear-gradient(180deg, #1c3043, #172537);
  color: #d9eeff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.score-field-status {
  margin-top: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.4;
}

.score-field-meta .score-field-status {
  margin-top: 0;
}

.technical-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "identity outcome"
    "controls controls";
  align-items: start;
  gap: 16px 20px;
  min-height: 146px;
  padding: 18px 20px;
}

.technical-score-row .score-field-top {
  grid-area: identity;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.technical-score-row .score-field-name,
.technical-score-row .score-field-range,
.technical-score-row .score-field-status {
  white-space: nowrap;
}

.technical-score-row .score-field-name {
  font-size: 14px;
  line-height: 1.3;
}

.technical-score-row .score-field-range {
  color: var(--txt-strong);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

.technical-score-row .score-field-stepper,
.technical-score-row .score-field-status {
  margin-top: 0;
}

.technical-score-stepper {
  display: grid;
  grid-template-columns: minmax(62px, 1fr) auto;
  gap: 8px;
}

.technical-score-stepper .number-stepper-input {
  min-height: 40px;
  padding: 7px 10px;
}

.technical-score-stepper .number-stepper-actions {
  gap: 6px;
}

.technical-score-stepper .number-stepper-button {
  width: 36px;
  height: 36px;
}

.technical-score-inputs {
  grid-area: controls;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.technical-score-input-group {
  display: grid;
  grid-template-columns: minmax(118px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(147, 174, 202, 0.18);
  border-radius: 12px;
  background: rgba(7, 17, 28, 0.42);
  color: var(--txt-strong);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.technical-score-input-group > span {
  display: grid;
  min-width: 0;
  gap: 3px;
  white-space: nowrap;
}

.technical-score-input-group small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.technical-score-input-group .technical-score-stepper {
  min-width: 0;
}

.technical-score-result {
  color: var(--brand);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.technical-score-outcome {
  grid-area: outcome;
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 0;
  text-align: right;
}

.technical-score-outcome .score-field-status {
  margin-top: 0;
}

@media (max-width: 760px) {
  .technical-score-input-group {
    grid-template-columns: minmax(106px, auto) minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .technical-score-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "identity"
      "outcome"
      "controls";
  }

  .technical-score-outcome {
    justify-items: start;
    text-align: left;
  }

  .technical-score-input-group {
    grid-template-columns: 1fr;
  }
}


.score-field-help,
.score-field-derived {
  margin: 8px 0 0;
  font-size: var(--text-xs);
  line-height: 1.45;
}

.score-field-help {
  color: #93aeca;
}

.score-field-derived {
  color: #00ffc2;
}

.score-field-standalone {
  margin-top: 0;
  padding: 16px;
}

.rating-tips-trigger {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 4px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: left;
}

/* Completion changes the status text, not the card/input palette. A scoring
   request must never flash yellow or recolor every previously completed field. */
.score-field.is-pending .score-field-status { color: var(--muted); }
.score-field.is-complete .score-field-status { color: var(--brand); }

.score-field-input:focus,
.number-stepper-input:focus {
  outline: none;
  border-color: #00ffc2;
  box-shadow: 0 0 0 2px rgba(0, 255, 194, 0.14);
}

.score-field-select:focus {
  outline: none;
  border-color: #00ffc2;
  box-shadow: 0 0 0 2px rgba(0, 255, 194, 0.14);
}

.number-stepper-button:hover {
  filter: brightness(1.08);
}

.assessment-completion-hint {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.assessment-completion-hint.is-pending {
  color: #ffd48a;
}

.assessment-completion-hint.is-complete {
  color: #00ffc2;
}

.assessment-step {
  border: 0;
  border-top: 1px solid rgba(54, 78, 103, 0.72);
  border-radius: 0;
  padding: 30px 0;
  background: transparent;
  box-shadow: none;
}

.assessment-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.assessment-step.is-confirmed {
  border-color: rgba(0, 255, 194, 0.24);
  box-shadow: none;
}

.assessment-step.is-pending {
  border-color: rgba(54, 78, 103, 0.72);
}

.assessment-step-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.assessment-step-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.assessment-step-head-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
}

.assessment-step-head h4 {
  margin: 0;
  font-size: 22px;
  color: var(--txt-strong);
  line-height: 1.3;
  letter-spacing: 0;
}

.assessment-step-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0;
}

.assessment-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  flex-wrap: nowrap;
  width: auto;
  max-width: 100%;
}

.assessment-step-chip::before {
  display: none;
}

.assessment-step-badge {
  color: #9bd4ff;
}

.assessment-step-score {
  color: #00ffc2;
  align-self: flex-start;
}

.assessment-step-score::before {
  display: none;
}

.assessment-step-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.assessment-step-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(17, 27, 39, 0.96);
  border: 1px solid #27435d;
}

.assessment-step-summary p {
  margin: 0;
  color: #b9cde1;
  font-size: 13px;
  line-height: 1.5;
}

.assessment-step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.assessment-step-button {
  width: fit-content;
  min-width: 120px;
  min-height: 44px;
}

.assessment-step-button:not(.is-secondary) {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
}

.assessment-step-button.is-secondary,
.ghost-button {
  background: linear-gradient(180deg, #182636, #142130);
  color: #d7f0ff;
  border: 1px solid #35526f;
}

.step-empty {
  padding: 14px;
  border: 1px dashed #2f465f;
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.physical-pool-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(43, 60, 81, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 29, 42, 0.96), rgba(14, 22, 33, 0.96));
}

.physical-pool-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.physical-pool-group-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.physical-pool-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.physical-pool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(73, 93, 116, 0.88);
  background: linear-gradient(180deg, rgba(29, 38, 51, 0.94), rgba(20, 28, 39, 0.94));
  color: #b8c7d8;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.physical-pool-chip:not(:disabled):hover {
  border-color: rgba(0, 255, 194, 0.5);
  color: #e6f6ff;
}

.physical-pool-chip.is-selected {
  border-color: rgba(0, 255, 194, 0.5);
  background: linear-gradient(180deg, rgba(21, 69, 74, 0.94), rgba(16, 47, 52, 0.94));
  color: #00ffc2;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 194, 0.12);
}

.physical-pool-chip.is-added,
.physical-pool-chip:disabled {
  border-color: rgba(80, 98, 119, 0.6);
  background: rgba(27, 35, 46, 0.88);
  color: rgba(185, 199, 214, 0.66);
  opacity: 1;
}

.physical-pool-chip-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(86, 106, 128, 0.55);
  background: rgba(42, 52, 65, 0.86);
  color: #93a7bb;
  font-size: 11px;
  font-weight: 700;
}

.physical-pool-actions {
  display: flex;
}

.physical-pool-add-button {
  min-width: 220px;
}

.physical-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.physical-item-card {
  border: 1px solid #2b3c51;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #121d2a, #111924);
}

.physical-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.physical-item-title {
  color: var(--txt-strong);
  font-size: 15px;
  font-weight: 700;
}

.physical-item-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.physical-item-category {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #173048;
  border: 1px solid #2d5778;
  color: #95d5ff;
  font-size: 11px;
  font-weight: 700;
}

.physical-item-meta,
.inline-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.physical-item-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2px 0 12px;
}

.physical-inline-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  color: #dfefff;
  font-size: 12px;
}

.physical-inline-field select {
  min-width: 0;
}

.physical-help-toggle {
  margin-top: 10px;
}

.physical-help-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #2a4053;
}

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

.physical-help-block {
  padding: 10px 12px;
  border: 1px solid #2a4053;
  border-radius: 12px;
  background: #0f1822;
}

.physical-method-block,
.physical-conversion-block {
  grid-column: 1 / -1;
}

.physical-help-title {
  color: #e9f5ff;
  font-size: 12px;
  font-weight: 700;
}

.physical-help-copy {
  margin: 6px 0 0;
  color: #9cb2c8;
  font-size: 12px;
  line-height: 1.5;
}

.physical-help-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #9cb2c8;
  font-size: 12px;
  line-height: 1.45;
}

.physical-method-block .physical-help-list {
  columns: 2;
  column-gap: 28px;
}

.physical-method-block .physical-help-list li {
  break-inside: avoid;
  margin-bottom: 4px;
}

.physical-standard-table {
  width: 100%;
  margin-top: 6px;
  border-collapse: collapse;
  color: #abc0d3;
  font-size: 11px;
  line-height: 1.25;
}

.physical-standard-table th,
.physical-standard-table td {
  padding: 4px 2px;
  border-bottom: 1px solid rgba(71, 94, 116, 0.36);
  text-align: left;
  white-space: nowrap;
}

.physical-standard-table th {
  color: #7792aa;
  font-size: 10px;
  font-weight: 700;
}

.physical-standard-table th:last-child,
.physical-standard-table td:last-child {
  width: 48px;
  color: #00ffc2;
  text-align: right;
}

.physical-standard-table tbody tr:last-child td {
  border-bottom: 0;
}

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

.physical-summary-chip {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #31445a;
  background: #111d29;
}

.physical-summary-chip strong {
  display: block;
  color: #00ffc2;
  font-size: 16px;
}

.physical-summary-chip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.slider-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comprehensive-restore-button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border-radius: 12px;
}

.slider-card {
  padding: 16px;
  border: 1px solid #2c3e53;
  border-radius: 16px;
  background: linear-gradient(180deg, #121d2a, #111924);
}

.slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.slider-title {
  color: #ecf6ff;
  font-size: 14px;
  font-weight: 700;
}

.slider-value {
  min-width: 46px;
  text-align: right;
  color: #00ffc2;
  font-size: 16px;
  font-weight: 700;
}

.slider-input {
  width: 100%;
  margin: 14px 0 2px;
  accent-color: #00ffc2;
}

.step-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.step-overview-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #152433;
  border: 1px solid #2c445e;
  color: #9dd8ff;
  font-size: 12px;
}

.report-note-block {
  margin-top: 6px;
}

.bars-empty {
  padding: 12px;
  border: 1px dashed #33465b;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}

.fitness-empty-state {
  position: relative;
  min-height: 240px;
  border: 1px dashed rgba(73, 98, 124, 0.72);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 26, 37, 0.88), rgba(12, 20, 30, 0.92));
}

.fitness-empty-skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px 20px;
}

.fitness-empty-row {
  display: grid;
  grid-template-columns: 132px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.fitness-empty-text,
.fitness-empty-bar,
.fitness-empty-value,
.fitness-empty-note {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(86, 99, 118, 0.16), rgba(122, 138, 160, 0.28), rgba(86, 99, 118, 0.16));
}

.fitness-empty-text {
  height: 12px;
}

.fitness-empty-text-lg {
  width: 112px;
}

.fitness-empty-text-md {
  width: 92px;
}

.fitness-empty-text-sm {
  width: 78px;
}

.fitness-empty-bar {
  height: var(--report-bar-height);
  width: 100%;
}

.fitness-empty-bar-short {
  width: 78%;
}

.fitness-empty-bar-mid {
  width: 88%;
}

.fitness-empty-value {
  height: 12px;
  width: 42px;
  justify-self: end;
}

.fitness-empty-value-short {
  width: 34px;
}

.fitness-empty-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.fitness-empty-note {
  height: 10px;
}

.fitness-empty-note-long {
  width: 86%;
}

.fitness-empty-note-mid {
  width: 68%;
}

.fitness-empty-note-short {
  width: 54%;
}

.fitness-empty-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.fitness-empty-message span {
  max-width: min(680px, 100%);
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(82, 119, 154, 0.46);
  background: rgba(10, 16, 24, 0.84);
  color: #d8e6f6;
  font-size: 15px;
  line-height: 1.55;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.bar-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.bar-label-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.bar-label-primary {
  color: #eef5ff;
  font-weight: 700;
  line-height: 1.45;
}

.bar-label-secondary {
  color: rgba(178, 195, 217, 0.68);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.bar-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.history-search-label {
  margin-bottom: 0;
}

.history-record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px 8px 10px 4px;
  scrollbar-gutter: stable;
}

.history-record-empty,
.history-record-loading,
.history-record-error {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed #324b65;
  background: rgba(13, 21, 31, 0.72);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.history-record-error {
  border-color: rgba(244, 106, 106, 0.34);
  color: #ffd7d7;
}

.history-record-listing {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-record-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 14px 26px;
  border: 1px solid #2a3c4f;
  border-radius: 16px;
  background: linear-gradient(180deg, #111a25, #101822);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.history-record-item:hover {
  transform: translateY(-1px);
  border-color: #3d5b79;
  box-shadow: var(--shadow-card);
}

.history-record-item.is-selected {
  border-color: rgba(0, 255, 194, 0.38);
  background: linear-gradient(180deg, rgba(15, 44, 47, 0.96), rgba(14, 31, 39, 0.96));
  box-shadow: inset 0 0 0 1px rgba(0, 255, 194, 0.14);
}

.history-record-item.is-loading {
  border-color: rgba(0, 255, 194, 0.4);
}

.history-record-item.is-selected::before,
.history-record-item.is-loading::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 10px;
  width: 4px;
  border-radius: 999px;
  background: rgba(0, 255, 194, 0.88);
}

.history-record-item.is-loading::before {
  background: rgba(0, 255, 194, 0.88);
}

.history-record-top,
.history-record-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.history-record-date {
  color: var(--txt-strong);
  font-size: 15px;
  font-weight: 700;
}

.history-record-score {
  color: #9cdfff;
  font-size: 13px;
  font-weight: 700;
}

.history-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-record-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #37506a;
  background: rgba(20, 31, 44, 0.84);
  color: #cce3f8;
  font-size: 11px;
  font-weight: 700;
}

.history-record-badge.is-ready {
  border-color: rgba(0, 255, 194, 0.34);
  color: #00ffc2;
}

.history-record-badge.is-pending {
  border-color: rgba(240, 196, 90, 0.3);
  color: #ffd78b;
}

.history-record-badge.is-legacy {
  border-color: rgba(79, 123, 255, 0.28);
  color: #a8c3ff;
}

.history-record-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.student-admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px 8px 10px 4px;
  scrollbar-gutter: stable;
}

.student-admin-empty {
  padding: 12px;
  border: 1px dashed #31465f;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.student-admin-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
  padding: 12px;
  border: 1px solid #283647;
  border-radius: 14px;
  background: #101822;
  cursor: pointer;
  transition: border-color 280ms ease, background-color 280ms ease, box-shadow 280ms ease;
}

.student-admin-item:hover {
  border-color: rgba(0, 255, 194, 0.5);
  box-shadow: var(--shadow-card);
}

.student-admin-item.is-selected {
  border-color: #00FFC2;
  background: rgba(0, 255, 194, 0.04);
}

.student-admin-item.is-expanded {
  border-color: #00FFC2;
  background: rgba(0, 255, 194, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 194, 0.14);
}

.student-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.student-admin-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 32px;
}

.student-admin-delete {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #9babbc;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}
.student-admin-delete svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.student-admin-delete:hover { color: #ffb1b1; background: rgba(244, 106, 106, 0.1); }
.student-admin-delete:focus-visible { outline: 2px solid #00ffc2; outline-offset: 2px; }

.student-admin-name {
  color: #ebf5ff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.student-admin-info:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

.student-admin-code {
  margin-top: 0;
  color: #93b8d7;
  font-size: 12px;
  line-height: 1.35;
}

.student-admin-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 300ms cubic-bezier(.22,1,.36,1), opacity 200ms ease, visibility 0s linear 300ms;
}

.student-admin-details-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.student-admin-summary { margin-top: 8px; }
.student-admin-item.is-expanded .student-admin-details {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .student-admin-item, .student-admin-details, .student-panel-body, .student-admin-delete { transition: none; }
}

.student-admin-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.student-admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.student-card-button {
  min-width: 0;
  min-height: 42px;
  padding: 2px 10px 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #1b2b3d, #162536);
  color: #d7f0ff;
  border: 1px solid #31526d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.student-card-button.is-primary {
  grid-column: 1 / -1;
  border-color: #405161;
  color: #dce8f2;
}

.report-wrap {
  position: relative;
  padding: 22px 22px 64px;
  height: calc(100vh - 144px);
  height: calc(100dvh - 144px);
  max-height: calc(100vh - 144px);
  max-height: calc(100dvh - 144px);
  overflow: auto;
}

.report-wrap.panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.report-panel-title {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 18px;
  color: var(--txt-strong);
}

.controls,
.report-wrap {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: stable;
}

.controls.is-scrolling,
.report-wrap.is-scrolling {
  scrollbar-color: rgba(83, 225, 192, 0.3) transparent;
}

.controls::-webkit-scrollbar,
.report-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.controls::-webkit-scrollbar-track,
.report-wrap::-webkit-scrollbar-track {
  margin: 4px 0;
  border-radius: 999px;
  background: transparent;
}

.controls::-webkit-scrollbar-thumb,
.report-wrap::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: rgba(83, 225, 192, 0);
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 194, 0);
  transition:
    background-color 360ms ease,
    box-shadow 360ms ease;
}

.controls.is-scrolling::-webkit-scrollbar-thumb,
.report-wrap.is-scrolling::-webkit-scrollbar-thumb {
  background-color: rgba(83, 225, 192, 0.3);
  box-shadow: inset 0 0 0 1px rgba(158, 255, 232, 0.1);
}

.controls.is-scrolling::-webkit-scrollbar-thumb:hover,
.report-wrap.is-scrolling::-webkit-scrollbar-thumb:hover {
  background-color: rgba(121, 240, 212, 0.48);
}

.controls::-webkit-scrollbar-corner,
.report-wrap::-webkit-scrollbar-corner {
  background: transparent;
}

.report-context-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 0 0 20px;
  margin-bottom: 0;
}

.report-context-identity {
  min-width: 0;
  flex: 1 1 200px;
}

.report-context-bar strong {
  display: block;
  margin: 0 0 5px;
  color: #edf7fa;
  font-size: 20px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.report-context-meta {
  display: block;
  color: #9fb6c5;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.empty {
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed #385072;
  border-radius: 12px;
}

.report-scroll-body > .empty {
  height: calc(100% - 46px);
  border: 0;
  border-radius: 0;
  background: transparent;
}

.empty {
  position: relative;
  overflow: hidden;
  color: var(--muted);
}

.report-empty-preview {
  position: absolute;
  inset: 18px 0 0;
  display: grid;
  grid-template-rows: minmax(120px, 0.72fr) minmax(96px, 0.46fr) minmax(220px, 1fr);
  gap: 18px;
  padding: 16px;
  opacity: 0.38;
  filter: blur(8px);
  transform: scale(0.985);
  transform-origin: center;
  pointer-events: none;
}

.report-empty-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 20, 0.2);
}

.report-empty-preview-hero,
.report-empty-preview-cards span,
.report-empty-preview-panel {
  border: 1px solid rgba(85, 126, 158, 0.5);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(26, 42, 58, 0.96), rgba(14, 25, 36, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.report-empty-preview-hero {
  background:
    linear-gradient(90deg, rgba(0, 255, 194, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(24, 42, 57, 0.98), rgba(13, 23, 34, 0.98));
}

.report-empty-preview-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.report-empty-preview-panel {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 28px;
}

.report-empty-preview-title,
.report-empty-preview-row {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: rgba(152, 185, 211, 0.42);
}

.report-empty-preview-title {
  width: 26%;
  height: 24px;
  background: rgba(0, 255, 194, 0.38);
}

.report-empty-preview-row.is-short { width: 58%; }
.report-empty-preview-row.is-medium { width: 76%; }

.report-empty-copy {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100% - 32px));
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 30px;
  border: 1px solid rgba(0, 255, 194, 0.24);
  border-radius: 20px;
  background: rgba(9, 18, 28, 0.76);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  text-align: center;
}

.report-empty-eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.report-empty-copy h3 {
  margin: 0;
  color: var(--txt-strong);
  font-size: clamp(22px, 2.4vw, 30px);
}

.report-empty-copy p {
  max-width: 440px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .report-empty-preview-cards {
    grid-template-columns: 1fr;
  }

  .report-empty-preview-cards span:nth-child(n + 2) {
    display: none;
  }

  .report-empty-copy {
    padding: 24px 20px;
  }
}

.report-loading {
  min-height: 164px;
  box-sizing: border-box;
  align-content: center;
  color: var(--txt);
}

.report-loading-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 420px;
}

.report-loading-indicator {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 3px solid rgba(0, 255, 194, 0.18);
  display: grid;
  place-items: center;
}

.report-loading.report-empty-copy {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.report-loading-indicator.is-loading {
  width: auto;
  height: 42px;
  border: 0;
  border-radius: 0;
}
.report-loading-indicator:not(.is-loading) .report-text-loader { display: none; }

/* Adapted from Uiverse.io by gagan-gv; FOCUS color and report English typeface. */
.report-text-loader {
  display: inline-flex;
  color: var(--brand);
  white-space: nowrap;
  pointer-events: none;
}
.report-text-loader span {
  display: inline-block;
  font-family: var(--font-display-title);
  font-size: 40px;
  font-weight: 400;
  line-height: 44px;
  letter-spacing: 0.2em;
  animation: report-text-blur 1.2s ease-in-out infinite both;
}
.report-text-loader span:nth-child(2) { animation-delay: 0.03s; }
.report-text-loader span:nth-child(3) { animation-delay: 0.06s; }
.report-text-loader span:nth-child(4) { animation-delay: 0.09s; }
.report-text-loader span:nth-child(5) { animation-delay: 0.12s; }
.report-text-loader span:nth-child(6) { animation-delay: 0.15s; }
.report-text-loader span:nth-child(7) { animation-delay: 0.18s; }
@keyframes report-text-blur {
  0%, 100% { filter: blur(2.5px); opacity: 0.85; }
  50%, 80% { filter: blur(0); opacity: 1; }
}

/* Only the central card changes; preserve the empty-state skeleton and backdrop. */
.report-loading:not(.is-error) h3,
.report-loading:not(.is-error) p {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .report-text-loader span { animation: none; filter: none; }
}

.report-loading-indicator.is-success {
  border-color: rgba(0, 255, 194, 0.28);
  background: rgba(0, 255, 194, 0.08);
}

.report-loading-indicator.is-success::before {
  content: "✓";
  color: var(--brand-strong);
  font-size: 24px;
  font-weight: 800;
}

.report-loading-indicator.is-error {
  border-color: rgba(244, 106, 106, 0.35);
  background: rgba(244, 106, 106, 0.08);
}

.report-loading-indicator.is-error::before {
  content: "!";
  color: #ffd7d7;
  font-size: 24px;
  font-weight: 800;
}

.report-loading h3 {
  margin: 0;
  color: var(--txt-strong);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.report-loading p {
  margin: 0;
  color: var(--muted-strong);
  font-size: var(--text-md);
  line-height: 1.7;
}

.report-loading.is-error {
  border-color: rgba(244, 106, 106, 0.35);
}

.report-loading.is-error h3 {
  color: #ffd7d7;
}

.report-loading.is-error p {
  color: #f3b7b7;
}

.report-loading.is-success {
  border-color: rgba(0, 255, 194, 0.28);
}

.report-loading.is-success h3 {
  color: var(--brand-strong);
}

.report-loading.is-success p {
  color: #cce8f5;
}

.hidden {
  display: none !important;
}

.report {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upgrade-cards {
  margin-top: 2px;
}

.upgrade-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 150px;
}

.upgrade-lock {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(0, 255, 194, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 27, 39, 0.72), rgba(13, 20, 31, 0.86));
  color: #c9dcf0;
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.2px;
  min-height: 92px;
}

.hero {
  position: relative;
  min-height: 228px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(120deg, #152231 0%, #0f151d 45%, #0c1217 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid #1f2a39;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image, none);
  background-position: center;
  background-size: cover;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 12, 0.2), rgba(4, 8, 12, 0.55));
  z-index: 1;
}

.hero-signature {
  position: absolute;
  top: 32px;
  right: 22px;
  z-index: 2;
  max-width: calc(100% - 44px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.hero-corner-logo {
  display: block;
  flex: none;
  width: 178px;
  aspect-ratio: 891 / 134;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.hero-corner-logo img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  /* Align the visible wordmarks optically with the adjacent Chinese text. */
  transform: translateY(5.6%);
}

.hero-signature-divider {
  flex: none;
  width: 1px;
  height: 22px;
  background: var(--brand);
  opacity: .75;
}

.hero-watermark {
  max-width: 240px;
  color: var(--brand);
  font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 2;
  padding: 20px 22px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding-right: 18px;
}

.focus-logo {
  font-size: 56px;
  color: var(--brand);
  font-weight: 800;
  text-shadow: 0 0 16px rgba(0, 255, 194, 0.3);
}

.hero-name {
  font-size: 64px;
  color: var(--brand);
  font-weight: 800;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.hero-right {
  width: auto;
  min-width: min(340px, 42vw);
  max-width: 52%;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.hero-brand {
  font-size: 40px;
  font-weight: 700;
  color: var(--brand);
}

.hero-camp {
  font-size: 28px;
  color: var(--brand);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 15px;
  color: #00ffc2;
  line-height: 1.4;
  letter-spacing: 0.1px;
  overflow-wrap: normal;
}

.hero-meta > div {
  white-space: nowrap;
}

@media (max-width: 1320px) {
  .hero-name {
    font-size: 48px;
  }
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 31, 42, 0.96), rgba(20, 27, 37, 0.96));
  padding: var(--report-card-padding);
  display: flex;
  flex-direction: column;
}

.metric-card h4 {
  margin: 0;
  font-size: 16px;
  color: #00ffc2;
  line-height: 1.45;
  letter-spacing: 0.15px;
}

.metric-value {
  margin-top: 14px;
  font-family: var(--font-display-numeric);
  font-size: 64px;
  color: #00ffc2;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.025em;
  font-variant-numeric: tabular-nums;
}

.metric-sub {
  margin: 10px 0 0;
  color: #8294ad;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.1px;
}

.metric-note {
  margin: 12px 0 0;
  color: #8caec8;
  font-size: 14px;
  line-height: 1.75;
}

.progress-line-compact {
  margin-top: 16px;
  height: var(--report-bar-height);
}

.progress-text-compact {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #00ffc2;
  font-weight: 600;
}

.keyword-cloud {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #1f2f35;
  border: 1px solid #2f464f;
  color: #9ce8ff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 31, 42, 0.96), rgba(20, 27, 37, 0.96));
  padding: var(--report-card-padding);
}

.chart-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.012em;
}

.report-section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: var(--report-title-block-height);
  margin-bottom: 20px;
}

.report-section-subtitle {
  margin: 0;
  color: #aebfd5;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.report-section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 194, 0.24);
  background: rgba(0, 255, 194, 0.08);
  color: #00ffc2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-section-note {
  margin: -4px 0 14px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.6;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 210px minmax(140px, 1fr) 54px;
  align-items: center;
  gap: 16px;
  min-height: 38px;
  padding: 3px 0;
  font-size: 14px;
  line-height: 1.45;
}

.bar-row > :last-child {
  color: #dce9f7;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

#techBars .bar-label-line {
  flex-wrap: nowrap;
}

#fitnessBars .bar-row {
  grid-template-columns: minmax(220px, 0.95fr) minmax(120px, 1.25fr) 54px;
  min-height: 54px;
  padding: 2px 0;
}

.bar-track {
  height: var(--report-bar-height);
  border-radius: 999px;
  background: #233044;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--bar);
}

.bar-fill.warn {
  background: var(--warn);
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.row2 > .chart-card {
  display: flex;
  flex-direction: column;
  min-height: 350px;
}

#fitnessBars {
  flex: 1 1 auto;
  justify-content: center;
  gap: 10px;
}

#radarChart {
  width: 100%;
  height: 235px;
  min-height: 235px;
  flex: 1 1 auto;
}

#radarChart text {
  font-family: "Avenir Next", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.progress-line {
  margin-top: 20px;
  width: 100%;
  height: var(--report-bar-height);
  border-radius: 999px;
  background: #3d4554;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0;
  background: #00ffc2;
}

.progress-text {
  margin-top: 8px;
  color: #00ffc2;
  font-weight: 700;
}

.coach-comment-card {
  margin-top: 12px;
  padding: var(--report-card-padding);
}

.coach-comment-card h3,
.report-comparison-card h3 {
  margin-bottom: 0;
}

.coach-comment-card .coach-comment-body {
  width: min(100%, 1280px);
  max-width: none;
  margin-inline: auto;
}

.report-comparison-card {
  margin-top: 12px;
  padding: var(--report-card-padding);
  border-color: rgba(76, 102, 130, 0.78);
  background:
    radial-gradient(circle at top right, rgba(116, 142, 176, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(23, 31, 42, 0.97), rgba(17, 24, 35, 0.98));
}

.report-trend-body,
.report-trend-loading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-compare-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-compare-board {
  padding: 8px 0 0;
}

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

.history-compare-summary-card {
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(75, 96, 120, 0.72);
  background:
    radial-gradient(circle at top right, rgba(0, 255, 194, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(19, 28, 39, 0.98), rgba(13, 21, 32, 0.98));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.history-compare-summary-card.is-loading {
  justify-content: flex-start;
}

.history-compare-summary-label {
  color: #8ea3b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.history-compare-summary-value {
  color: #f4f8fc;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.history-compare-summary-value.is-up {
  color: #00ffc2;
}

.history-compare-summary-value.is-down {
  color: #ffb6bd;
}

.history-compare-summary-value.is-flat {
  color: #f4f8fc;
}

.history-compare-summary-value.is-loading,
.history-compare-summary-label.is-loading {
  color: transparent;
}

.history-compare-summary-label.history-compare-skeleton {
  width: 58%;
  height: 11px;
}

.history-compare-summary-value.history-compare-skeleton {
  width: 72%;
  height: 24px;
}

.history-compare-graph-shell {
  position: relative;
  min-height: 258px;
}

.history-compare-graph-empty {
  min-height: 236px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(78, 103, 130, 0.68);
  background:
    linear-gradient(180deg, rgba(15, 23, 34, 0.9), rgba(11, 18, 28, 0.94)),
    radial-gradient(circle at top, rgba(0, 255, 194, 0.05), transparent 48%);
  color: #d9e7f6;
  font-size: 14px;
  line-height: 1.7;
  display: flex;
  align-items: center;
}

.history-compare-graph {
  width: 100%;
  height: auto;
  display: block;
}

.history-compare-guide {
  stroke: rgba(89, 109, 130, 0.38);
  stroke-width: 2;
}

.history-compare-guide.is-current {
  stroke: rgba(0, 255, 194, 0.38);
}

.history-compare-line {
  fill: none;
  stroke: rgba(238, 242, 248, 0.94);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-compare-point {
  fill: rgba(255, 255, 255, 0.88);
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 4;
}

.history-compare-point.is-empty {
  fill: rgba(18, 28, 38, 0.85);
  stroke: rgba(204, 216, 231, 0.5);
}

.history-compare-point.is-current {
  fill: #00ffc2;
  stroke: rgba(0, 255, 194, 0.25);
  stroke-width: 8;
  filter: drop-shadow(0 0 12px rgba(0, 255, 194, 0.38));
}

.history-compare-slot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: -18px;
}

.history-compare-slot {
  position: relative;
  min-height: 218px;
  padding: 0 12px 14px;
}

.history-compare-slot-glow {
  position: absolute;
  inset: 0 14% 0;
  border-radius: 20px;
  background: transparent;
}

.history-compare-slot.is-current .history-compare-slot-glow,
.history-compare-slot-skeleton.is-current .history-compare-slot-glow {
  background:
    linear-gradient(180deg, rgba(20, 84, 69, 0.08), rgba(11, 30, 36, 0.38)),
    radial-gradient(circle at top, rgba(0, 255, 194, 0.16), transparent 56%);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 194, 0.12), 0 0 26px rgba(0, 255, 194, 0.12);
}

.history-compare-slot-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 118px 8px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
}

.history-compare-current-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 255, 194, 0.14);
  border: 1px solid rgba(0, 255, 194, 0.24);
  color: #00ffc2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.history-compare-current-tag-hidden {
  visibility: hidden;
}

.history-compare-total-value {
  color: #f7fbff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.history-compare-slot.is-current .history-compare-total-value {
  color: #00ffc2;
  text-shadow: 0 0 16px rgba(0, 255, 194, 0.18);
}

.history-compare-secondary-line {
  color: #9fb4c7;
  font-size: 12px;
  line-height: 1.45;
}

.history-compare-slot.is-current .history-compare-secondary-line {
  color: #dff7f2;
}

.history-compare-date {
  margin-top: 10px;
  color: #7f93a8;
  font-size: 12px;
  font-weight: 700;
}

.history-compare-slot.is-current .history-compare-date {
  color: #00ffc2;
}

.history-compare-empty-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
}

.history-compare-empty-line,
.history-compare-skeleton {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(73, 92, 116, 0.24), rgba(111, 132, 158, 0.4), rgba(73, 92, 116, 0.24));
  background-size: 200% 100%;
  animation: report-trend-skeleton 1.5s linear infinite;
}

.history-compare-empty-line {
  width: 70%;
  height: 10px;
  animation: none;
  opacity: 0.45;
}

.history-compare-empty-line-short {
  width: 46%;
}

.history-compare-skeleton-graph {
  position: relative;
  min-height: 236px;
  border-radius: 18px;
  border: 1px dashed rgba(68, 87, 110, 0.62);
  background:
    linear-gradient(180deg, rgba(17, 25, 35, 0.82), rgba(11, 18, 28, 0.92)),
    repeating-linear-gradient(90deg, transparent, transparent 24.7%, rgba(77, 96, 119, 0.14) 24.7%, rgba(77, 96, 119, 0.14) 25.3%);
}

.history-compare-slot-skeleton .history-compare-slot-inner {
  gap: 8px;
}

.history-compare-skeleton-total {
  width: 62%;
  height: 24px;
}

.history-compare-skeleton-meta {
  width: 76%;
  height: 10px;
}

.history-compare-skeleton-date {
  width: 36%;
  height: 11px;
  margin-top: 10px;
}

.history-compare-footnote {
  margin-top: 12px;
  color: #8fa4ba;
  font-size: 12px;
  line-height: 1.6;
}

.report-comparison-state {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(78, 103, 130, 0.68);
  background: rgba(16, 23, 33, 0.72);
  color: #d9e7f6;
  font-size: 14px;
  line-height: 1.6;
}

@keyframes report-trend-skeleton {
  from {
    background-position: 0% 0%;
  }

  to {
    background-position: 200% 0%;
  }
}

@media (max-width: 900px) {
  .history-compare-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-compare-slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
  }

  .history-compare-slot {
    min-height: 200px;
  }

  .history-compare-slot-inner {
    padding-top: 98px;
  }
}

@media (max-width: 640px) {
  .history-compare-summary-grid {
    grid-template-columns: 1fr;
  }

  .history-compare-slot-grid {
    grid-template-columns: 1fr;
  }

  .history-compare-graph-shell {
    min-height: 210px;
  }

  .history-compare-total-value {
    font-size: 28px;
  }
}

/* --------------------------------------------------------------------------
   Uiverse-inspired form interaction system
   Reference: https://uiverse.io/mahiatlinux/thin-elephant-70 (MIT)
   Keeps the FOCUS teal identity while adopting the reference's calm spacing,
   focus-within emphasis and clear primary/secondary action hierarchy.
   -------------------------------------------------------------------------- */

:root {
  --form-surface: #1a2530;
  --form-surface-hover: #1d2a36;
  --form-surface-deep: #111a24;
  --form-border: #344454;
  --form-border-hover: #4b6174;
  --form-accent-border: rgba(0, 255, 194, 0.74);
  --form-accent-soft: rgba(0, 255, 194, 0.1);
  --form-focus-ring: rgba(0, 255, 194, 0.12);
}

.controls .block,
.modal-card,
.auth-card {
  border-color: rgba(70, 88, 106, 0.72);
  background: linear-gradient(180deg, rgba(22, 32, 44, 0.98), rgba(16, 25, 35, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 16px 38px rgba(0, 0, 0, 0.16);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.controls .block {
  gap: 16px;
  padding: 22px;
  margin-bottom: 18px;
}

.controls .block:hover,
.modal-card:hover,
.auth-card:hover {
  border-color: rgba(93, 116, 137, 0.82);
}

.controls .block:focus-within,
.modal-card:focus-within,
.auth-card:focus-within {
  border-color: rgba(0, 255, 194, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 0 3px rgba(0, 255, 194, 0.045),
    0 18px 44px rgba(0, 0, 0, 0.2);
}

label,
.number-field,
.coach-comment-field,
.physical-inline-field {
  gap: 9px;
  color: #d6e4f0;
  font-weight: 600;
}

input,
select,
textarea {
  min-height: 52px;
  padding: 11px 14px;
  border: 1.5px solid var(--form-border);
  border-radius: 12px;
  background: var(--form-surface);
  color: #eff7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease;
}

select:not([size]),
select[size="1"] {
  background-image:
    linear-gradient(180deg, var(--form-surface), var(--form-surface)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.5L6 6L10.5 1.5' stroke='%23AFC2D2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--form-border-hover);
  background-color: var(--form-surface-hover);
}

input:focus,
select:focus,
textarea:focus,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.score-field-input:focus,
.score-field-select:focus,
.number-stepper-input:focus {
  outline: none;
  border-color: var(--form-accent-border);
  background-color: #1c2b34;
  box-shadow:
    0 0 0 3px var(--form-focus-ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

input::placeholder,
textarea::placeholder {
  color: #8297aa;
}

textarea {
  padding: 14px;
  line-height: 1.65;
}

input[type="file"] {
  padding: 7px 8px;
  color: #9fb2c4;
}

input[type="file"]::file-selector-button {
  min-height: 36px;
  margin-right: 10px;
  padding: 0 13px;
  border: 1px solid #425568;
  border-radius: 9px;
  background: #263442;
  color: #e8f2fb;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}

input[type="file"]::file-selector-button:hover {
  border-color: var(--form-accent-border);
  background: var(--form-accent-soft);
  color: var(--brand-strong);
}

.grid2,
#assessmentMetaFields,
.score-group-grid,
.physical-list,
.slider-list {
  gap: 14px;
}

.score-field,
.physical-item-card,
.slider-card,
.technical-score-input-group,
.physical-pool-panel {
  border: 1.5px solid rgba(67, 84, 102, 0.76);
  background: linear-gradient(180deg, rgba(26, 37, 49, 0.98), rgba(20, 29, 40, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.score-field:hover,
.physical-item-card:hover,
.slider-card:hover,
.technical-score-input-group:hover,
.physical-pool-panel:hover {
  transform: translateY(-1px);
  border-color: rgba(92, 115, 136, 0.92);
  background: linear-gradient(180deg, rgba(29, 42, 55, 0.98), rgba(22, 32, 43, 0.98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.score-field:focus-within,
.physical-item-card:focus-within,
.slider-card:focus-within,
.technical-score-input-group:focus-within,
.physical-pool-panel:focus-within {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 194, 0.58);
  box-shadow:
    0 0 0 3px rgba(0, 255, 194, 0.055),
    0 14px 32px rgba(0, 0, 0, 0.16);
}

button,
.action-link {
  min-height: 46px;
  border-radius: 12px;
  font-weight: 650;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease;
}

.btn-primary,
#btnShareImageTop,
#btnCreateStudent,
#btnCreateAssessment,
#btnLoadReport,
#btnStartExcelImport,
.assessment-step-button:not(.is-secondary) {
  border: 1px solid #405161;
  background: #202b36;
  color: #dce8f2;
  box-shadow: none;
}

.btn-primary:not(:disabled),
#btnShareImageTop:not(:disabled),
#btnCreateStudent:not(:disabled),
#btnCreateAssessment:not(:disabled),
#btnLoadReport:not(:disabled),
#btnStartExcelImport:not(:disabled),
.assessment-step-button:not(.is-secondary):not(:disabled) {
  border-color: var(--brand);
  background: var(--brand);
  color: #062019;
  box-shadow: none;
  transform: none;
}

.btn-secondary,
.ghost-button,
.student-card-button,
.rating-tips-trigger,
.assessment-step-button.is-secondary,
.physical-help-toggle,
.comprehensive-restore-button,
.action-link,
.topbar-actions .topbar-tooltip-trigger,
.topbar-actions .topbar-tooltip-trigger:is(#btnContact, #btnMiniAssistant),
.topbar-actions .topbar-tooltip-trigger#btnOpenImportModal,
.topbar-actions .topbar-tooltip-trigger#btnLogout {
  border: 1px solid #405161;
  background: #202b36;
  color: #dce8f2;
  box-shadow: none;
}

.btn-secondary:hover,
.ghost-button:hover,
.student-card-button:hover,
.rating-tips-trigger:hover,
.assessment-step-button.is-secondary:hover,
.physical-help-toggle:hover,
.comprehensive-restore-button:hover,
.action-link:hover,
.topbar-actions .topbar-tooltip-trigger:hover,
.topbar-actions .topbar-tooltip-trigger:is(#btnContact, #btnMiniAssistant):hover,
.topbar-actions .topbar-tooltip-trigger#btnOpenImportModal:hover,
.topbar-actions .topbar-tooltip-trigger#btnLogout:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 194, 0.68);
  background: rgba(0, 255, 194, 0.1);
  color: var(--brand-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.number-stepper-button {
  border-color: #405161;
  background: #202b36;
  color: #dce8f2;
  box-shadow: none;
}

.number-stepper-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 194, 0.68);
  background: rgba(0, 255, 194, 0.12);
  color: var(--brand-strong);
  filter: none;
}

button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.student-card-button:disabled {
  transform: none;
  border-color: rgba(77, 91, 106, 0.54);
  background: #222b34;
  color: #728293;
  box-shadow: none;
  opacity: 0.58;
}

@media (max-width: 640px) {
  .controls .block {
    gap: 14px;
    padding: 18px;
  }

  input,
  select,
  textarea {
    min-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .score-field,
  .physical-item-card,
  .slider-card,
  .technical-score-input-group,
  .physical-pool-panel,
  button,
  .action-link {
    transition-duration: 0.01ms;
  }

  .score-field:hover,
  .physical-item-card:hover,
  .slider-card:hover,
  .technical-score-input-group:hover,
  .physical-pool-panel:hover,
  button:hover,
  .action-link:hover {
    transform: none;
  }
}

/* 3D glass tooltip navigation, adapted from the supplied Uiverse pattern. */
.topbar {
  z-index: 20;
  clip-path: inset(0 -100vmax -340px);
}

.topbar-tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.topbar-tooltip {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 30;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  color: #fff;
  background: rgba(16, 24, 36, 0.72);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.42),
    inset 0 0 10px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-5px) scale(0.96);
  transform-origin: top center;
  transition:
    opacity 0.32s ease,
    transform 0.32s ease,
    visibility 0s linear 0.32s;
}

.topbar-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  border-width: 0 7px 8px;
  border-style: solid;
  border-color: transparent transparent rgba(255, 255, 255, 0.28);
  filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, 0.24));
  transform: translateX(-50%);
}

.topbar-tooltip-container:hover .topbar-tooltip,
.topbar-tooltip-container:focus-within .topbar-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  transition-delay: 0s;
}

.topbar-tooltip-container:hover .topbar-tooltip::after,
.topbar-tooltip-container:focus-within .topbar-tooltip::after {
  border-color: transparent transparent rgba(255, 255, 255, 0.54);
}

.topbar-contact-popover {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 32;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 228px;
  padding: 14px;
  border: 1px solid rgba(0, 255, 194, 0.42);
  border-radius: 18px;
  color: var(--txt);
  background: rgba(10, 21, 31, 0.94);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(0, 255, 194, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px) scale(0.94);
  transform-origin: top center;
  transition:
    opacity 220ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 280ms;
}

.topbar-contact-popover::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  border-width: 0 8px 9px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 255, 194, 0.42);
  transform: translateX(-50%);
}

.topbar-contact-title {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  color: var(--brand-strong);
}

.topbar-contact-popover img {
  display: block;
  width: 200px;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border: 7px solid #fff;
  border-radius: 13px;
  background: #fff;
  object-fit: contain;
}

.topbar-contact-container:hover .topbar-contact-popover,
.topbar-contact-container:focus-within .topbar-contact-popover,
.topbar-contact-container.is-contact-open .topbar-contact-popover {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  transition-delay: 0s;
}

.topbar-contact-container.is-contact-open > .topbar-tooltip-trigger {
  border-color: rgba(0, 255, 194, 0.62);
  color: var(--brand-ink);
  background: linear-gradient(180deg, var(--brand-gradient-highlight), var(--brand));
}

.topbar-actions .topbar-tooltip-trigger,
.topbar-actions .topbar-tooltip-trigger:is(#btnContact, #btnMiniAssistant),
.topbar-actions .topbar-tooltip-trigger#btnOpenImportModal,
.topbar-actions .topbar-tooltip-trigger#btnLogout,
#betaVersions .btn-secondary.report-download-action {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.08),
    0 6px 16px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  text-transform: none;
  transition:
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.topbar-actions .topbar-tooltip-trigger:hover,
.topbar-actions .topbar-tooltip-trigger:is(#btnContact, #btnMiniAssistant):hover,
.topbar-actions .topbar-tooltip-trigger#btnOpenImportModal:hover,
.topbar-actions .topbar-tooltip-trigger#btnLogout:hover,
#betaVersions .btn-secondary.report-download-action:hover {
  border-color: rgba(0, 255, 194, 0.52);
  color: var(--brand-ink);
  background: linear-gradient(180deg, var(--brand-gradient-highlight), var(--brand));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 7px 18px rgba(0, 255, 194, 0.3),
    0 0 24px rgba(0, 255, 194, 0.18);
  transform: translateY(-3px);
}

.topbar-actions .topbar-tooltip-trigger:active,
.topbar-actions .topbar-tooltip-trigger:is(#btnContact, #btnMiniAssistant):active,
.topbar-actions .topbar-tooltip-trigger#btnOpenImportModal:active,
.topbar-actions .topbar-tooltip-trigger#btnLogout:active,
#betaVersions .btn-secondary.report-download-action:active {
  border-color: rgba(0, 255, 194, 0.62);
  color: var(--brand-ink);
  background: linear-gradient(180deg, var(--brand-gradient-highlight), var(--brand));
  box-shadow:
    inset 0 2px 5px rgba(4, 55, 46, 0.16),
    0 4px 12px rgba(0, 255, 194, 0.22);
  transform: translateY(-1px) scale(0.985);
}

@media (max-width: 760px) {
  .topbar-actions .topbar-tooltip-trigger,
  .topbar-actions .topbar-tooltip-trigger:is(#btnContact, #btnMiniAssistant),
  .topbar-actions .topbar-tooltip-trigger#btnOpenImportModal,
  .topbar-actions .topbar-tooltip-trigger#btnLogout,
#betaVersions .btn-secondary.report-download-action {
    min-height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }

  .topbar-tooltip {
    max-width: min(220px, 80vw);
    padding: 10px 12px;
    white-space: normal;
  }

  .topbar-contact-popover {
    width: min(210px, calc(100vw - 28px));
    padding: 12px;
  }

  .topbar-contact-popover img {
    width: 182px;
  }
}

/* ===== React Bits inspired global canvas & navigation =====
   Adapted to the FOCUS teal identity and the existing vanilla app shell. */
.page-color-bends {
  background:
    radial-gradient(circle at 20% -12%, rgba(27, 183, 147, 0.13), transparent 38%),
    linear-gradient(180deg, #08090e 0%, #090d15 46%, #061019 100%);
}

.page-color-bends::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background-image: radial-gradient(circle, rgba(224, 216, 255, 0.24) 0 1px, transparent 1.3px);
  background-size: 22px 22px;
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.92) 54%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.92) 54%, transparent 96%);
}

.page-color-bends::after {
  z-index: 5;
  background:
    linear-gradient(180deg, rgba(3, 4, 9, 0.05), rgba(4, 8, 15, 0.58)),
    radial-gradient(circle at 50% 24%, transparent 0 27%, rgba(4, 7, 13, 0.14) 61%, rgba(2, 5, 10, 0.7) 100%);
}

.page-color-bend {
  width: 122vw;
  height: 42vw;
  min-height: 410px;
  filter: blur(62px) saturate(150%);
  mix-blend-mode: screen;
}

.page-color-bend-teal {
  top: -17vw;
  left: -48vw;
  background: radial-gradient(ellipse at center, rgba(0, 255, 194, 0.78) 0%, rgba(10, 148, 116, 0.42) 34%, transparent 70%);
  opacity: 0.3;
}

.page-color-bend-violet {
  display: none;
}

.page-color-bend-coral {
  display: none;
}

.topbar {
  min-height: 84px;
  padding: 18px 22px;
  /* The workspace starts directly below the full-width navigation backdrop.
     Its own panel padding keeps the content from feeling cramped. */
  margin-bottom: 0;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  isolation: isolate;
}

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  border-bottom: 1px solid rgba(204, 187, 255, 0.14);
  background: linear-gradient(180deg, rgba(9, 9, 16, 0.82), rgba(9, 11, 18, 0.62));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025);
  transform: translateX(-50%);
  pointer-events: none;
}

.topbar h1 {
  color: var(--brand);
  text-shadow: 0 0 26px rgba(0, 255, 194, 0.22);
}

.topbar-actions {
  gap: 10px;
}

.topbar-actions .btn-secondary,
.topbar-actions #btnOpenImportModal,
.topbar-actions #btnLogout,
.topbar-actions :is(#btnContact, #btnMiniAssistant) {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border-color: rgba(213, 203, 255, 0.14);
  color: rgba(241, 244, 255, 0.9);
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar-actions .btn-secondary:hover,
.topbar-actions #btnOpenImportModal:hover,
.topbar-actions #btnLogout:hover {
  border-color: rgba(215, 202, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .page-color-bends::before {
    background-size: 18px 18px;
    opacity: 0.22;
  }

  .page-color-bend {
    width: 150vw;
    min-height: 340px;
  }

  .topbar {
    min-height: 76px;
    padding: 14px 0;
  }

  .topbar-actions {
    gap: 7px;
  }

  .topbar-actions .btn-secondary,
  .topbar-actions #btnOpenImportModal,
  .topbar-actions #btnLogout,
  .topbar-actions :is(#btnContact, #btnMiniAssistant) {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
  }
}

.report-summary-grid {
  margin-top: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.92fr);
}

.metric-card-total {
  gap: 0;
}

.metric-card-total .metric-value {
  font-size: 78px;
}

.metric-card-rating .metric-value {
  font-size: 74px;
}

.metric-card-keywords {
  justify-content: flex-start;
  min-width: 0;
}

.metric-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.metric-breakdown-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(63, 90, 117, 0.78);
  background: rgba(18, 28, 40, 0.78);
  color: #cfe1f1;
  font-size: 13px;
  line-height: 1;
}

.metric-breakdown-label {
  color: #8ba8c2;
}

.metric-breakdown-pill strong {
  color: #eff8ff;
  font-size: 14px;
  font-weight: 700;
}

.metric-reference {
  margin: 12px 0 0;
  color: #7d8ea8;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.12px;
}

.metric-description {
  margin: 12px 0 0;
  color: #c7d9e8;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.keyword-cloud-report {
  align-content: flex-start;
}

.keyword-cloud-report .tag {
  color: #b7f1ff;
  background: linear-gradient(180deg, rgba(32, 50, 58, 0.92), rgba(25, 39, 48, 0.92));
  border-color: rgba(63, 96, 110, 0.92);
  max-width: 100%;
  word-break: break-word;
}

.coach-comment-body {
  width: min(100%, 1280px);
  max-width: none;
  margin-inline: auto;
}

.coach-comment-structured {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.coach-comment-summary {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 194, 0.18);
  background:
    radial-gradient(circle at top left, rgba(0, 255, 194, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(18, 28, 40, 0.92), rgba(13, 20, 30, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 14px 32px rgba(4, 10, 18, 0.22);
}

.coach-comment-top-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #dfeefa;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.03px;
}

.coach-comment-top-inline {
  display: block;
}

.coach-comment-top-label {
  display: inline;
  margin: 0 8px 0 0;
  color: #00ffc2;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 194, 0.78);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  vertical-align: baseline;
}

.coach-comment-top-copy {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.coach-comment-venn {
  position: relative;
  --coach-circle-size: clamp(220px, 27vw, 290px);
  min-height: calc(var(--coach-circle-size) + 36px);
  padding: 12px 0 10px;
}

.coach-comment-circle {
  position: absolute;
  width: var(--coach-circle-size);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  isolation: isolate;
  mix-blend-mode: screen;
}

.coach-comment-circle.is-strengths {
  top: 18px;
  left: calc(50% - var(--coach-circle-size) * 1.32);
}

.coach-comment-circle.is-weaknesses {
  top: 18px;
  left: calc(50% - var(--coach-circle-size) * 0.5);
}

.coach-comment-circle.is-next_steps {
  top: 18px;
  left: calc(50% + var(--coach-circle-size) * 0.32);
  transform: none;
}

.coach-comment-circle-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.coach-comment-circle.is-strengths .coach-comment-circle-glow {
  background: radial-gradient(circle at 50% 46%, rgba(0, 255, 194, 0.14), rgba(20, 84, 69, 0.06) 58%, rgba(9, 15, 22, 0.12) 100%);
  box-shadow: 0 0 30px rgba(0, 255, 194, 0.07), inset 0 0 24px rgba(0, 255, 194, 0.05);
}

.coach-comment-circle.is-weaknesses .coach-comment-circle-glow {
  background: radial-gradient(circle at 50% 46%, rgba(0, 255, 194, 0.14), rgba(20, 84, 69, 0.06) 58%, rgba(9, 15, 22, 0.12) 100%);
  box-shadow: 0 0 30px rgba(0, 255, 194, 0.07), inset 0 0 24px rgba(0, 255, 194, 0.05);
}

.coach-comment-circle.is-next_steps .coach-comment-circle-glow {
  background: radial-gradient(circle at 50% 46%, rgba(0, 255, 194, 0.14), rgba(20, 84, 69, 0.06) 58%, rgba(9, 15, 22, 0.12) 100%);
  box-shadow: 0 0 30px rgba(0, 255, 194, 0.07), inset 0 0 24px rgba(0, 255, 194, 0.05);
}

.coach-comment-circle-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 42px 28px 30px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.coach-comment-circle-title {
  margin: 0;
  color: #edf5ff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.coach-comment-tag-cloud {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  max-width: 82%;
  margin: 0 auto;
  align-self: center;
}

.coach-comment-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  max-width: min(100%, 240px);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(10, 18, 28, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f8fd;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  backdrop-filter: blur(8px);
}

.coach-comment-tag-pill:nth-child(3n + 1) {
  transform: translateX(-10px);
}

.coach-comment-tag-pill:nth-child(3n + 2) {
  transform: translateX(8px);
}

.coach-comment-tag-pill:nth-child(3n) {
  transform: translateX(-2px);
}

.coach-comment-circle.is-strengths .coach-comment-tag-pill {
  border-color: rgba(0, 255, 194, 0.14);
  color: #d4ece7;
}

.coach-comment-circle.is-weaknesses .coach-comment-tag-pill {
  border-color: rgba(0, 255, 194, 0.14);
  color: #d4ece7;
}

.coach-comment-circle.is-next_steps .coach-comment-tag-pill {
  border-color: rgba(0, 255, 194, 0.14);
  color: #d4ece7;
}

.coach-comment-tag-pill.is-fallback {
  opacity: 0.72;
}

.coach-comment-meta {
  display: none;
}

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

.advanced-plan-card,
.advanced-racket-card {
  grid-column: 1 / -1;
}

.advanced-plan-card {
  background: radial-gradient(circle at 90% 0%, rgba(0, 255, 194, 0.1), transparent 35%), linear-gradient(150deg, #152329, #111b25 70%);
}

.racket-intro {
  margin: 0;
  color: #c4d7df;
  line-height: 1.65;
  font-size: 14px;
}

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

.racket-preview-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(122, 160, 168, 0.22);
  background: linear-gradient(155deg, rgba(32, 52, 60, 0.7), rgba(14, 25, 33, 0.9));
}

.racket-preview-card strong { color: #f0f8f5; font-size: 18px; }
.racket-preview-card small { color: #9cb5bd; }
.racket-preview-card p { margin: 3px 0 0; color: #9cb5bd; font-size: 12px; }

.racket-preview-art {
  position: relative;
  height: 130px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(31, 206, 165, 0.12), transparent 68%);
}

.racket-preview-art span {
  width: 60px;
  height: 82px;
  border: 2px dashed rgba(91, 207, 180, 0.48);
  border-radius: 32px 32px 23px 23px;
  transform: rotate(-16deg) translateY(-10px);
}

.racket-preview-art span::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 37px;
  left: 21px;
  top: 78px;
  border: 2px dashed rgba(91, 207, 180, 0.48);
  border-radius: 6px;
}

.racket-preview-radar {
  width: 74px;
  height: 74px;
  margin-top: 4px;
  background: repeating-radial-gradient(circle, transparent 0 12px, rgba(91, 207, 180, 0.24) 13px 14px), linear-gradient(90deg, transparent 49%, rgba(91, 207, 180, 0.2) 50%, transparent 51%);
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
  opacity: 0.65;
}

.mirror-teaser {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 234px;
  padding: 18px;
  border: 1px solid rgba(195, 167, 103, 0.24);
  border-radius: 18px;
  background: radial-gradient(circle at 18% 50%, rgba(209, 169, 88, 0.13), transparent 45%), #101d26;
}

.mirror-teaser-portrait {
  position: relative;
  overflow: hidden;
  width: 150px;
  height: 190px;
  border-radius: 14px;
  background: linear-gradient(145deg, #415566, #101820);
  filter: blur(3px);
}

.mirror-teaser-head,
.mirror-teaser-shoulders { position: absolute; display: block; background: #7e929d; opacity: 0.55; }
.mirror-teaser-head { width: 58px; height: 68px; border-radius: 50%; top: 34px; left: 46px; }
.mirror-teaser-shoulders { width: 128px; height: 105px; border-radius: 56% 56% 0 0; bottom: -34px; left: 11px; }
.mirror-teaser-kicker { color: #00ffc2; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; }
.mirror-teaser-copy h4 { margin: 10px 0; color: #f4f7f5; font-size: 21px; }
.mirror-teaser-copy p { margin: 0; color: #b5c6cf; font-size: 13px; line-height: 1.75; }

.advanced-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.advanced-vip-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(188, 155, 88, 0.28);
  background:
    radial-gradient(circle at top right, rgba(205, 169, 92, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(25, 31, 42, 0.98), rgba(18, 24, 34, 0.98));
}

.advanced-vip-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(207, 174, 109, 0.6), rgba(0, 0, 0, 0));
  pointer-events: none;
}

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

.advanced-card-head h3 {
  margin: 0;
}

.advanced-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(208, 178, 114, 0.26);
  background: rgba(196, 160, 88, 0.1);
  color: #f1d79b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.advanced-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.advanced-card-empty {
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(196, 163, 98, 0.32);
  background: linear-gradient(180deg, rgba(22, 27, 38, 0.82), rgba(15, 20, 29, 0.78));
  color: var(--muted-strong);
  font-size: 14px;
  text-align: center;
  line-height: 1.7;
}

.player-mirror-hero {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: start;
}

.player-mirror-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 28% 25%, rgba(255,255,255,0.12), transparent 50%),
    linear-gradient(180deg, rgba(72, 65, 53, 0.92), rgba(22, 28, 38, 0.98));
  border: 1px solid rgba(211, 180, 117, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.player-mirror-avatar-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.player-mirror-avatar-initials {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 248, 234, 0.96);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 10px 28px rgba(255, 248, 234, 0.08);
}

.player-mirror-name-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.player-mirror-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 4px 0 2px;
}

.player-mirror-name {
  margin: 0;
  color: var(--txt-strong);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.08;
}

.player-mirror-flag {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-2px);
}

.player-mirror-name-en {
  color: #d5e5f4;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.2;
}

.player-mirror-achievement {
  margin-top: 2px;
  color: #f0dbab;
  font-size: 13px;
  line-height: 1.45;
  max-width: 32ch;
}

.player-mirror-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.player-mirror-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(181, 145, 78, 0.12);
  border: 1px solid rgba(196, 163, 98, 0.22);
  color: #ecd7a9;
  font-size: 12px;
  font-weight: 700;
}

.advanced-copy-block {
  padding: 12px 0 10px;
  background: transparent;
}

.advanced-copy-block.is-summary {
  padding-top: 4px;
  border-top: 0;
}

.advanced-copy-block + .advanced-copy-block {
  margin-top: 6px;
}

.advanced-copy-title {
  margin: 0 0 8px;
  color: #f0d79c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.advanced-copy-text {
  margin: 0;
  color: #dde8f6;
  font-size: 15px;
  line-height: 1.8;
}

.advanced-copy-block.is-summary .advanced-copy-text {
  color: #eef4fb;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.82;
}

.player-mirror-scene {
  margin: 6px 0 0;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(63, 93, 119, 0.42);
  background:
    linear-gradient(180deg, rgba(16, 24, 34, 0.94), rgba(11, 18, 28, 0.98)),
    radial-gradient(circle at top, rgba(0, 255, 194, 0.05), transparent 50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.player-mirror-scene-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.player-mirror-scene.is-missing {
  display: none;
}

#trainingPlanCardBody { container-type: inline-size; }

/* Fixed-library plans; legacy report snapshots keep their original rendering. */
.advanced-plan-card { --plan-white:#eef4f7; --plan-gray:#a9b9c5; --plan-line:rgba(159,182,197,.17); }
.plan-refined { display:block; }
.plan-refined .plan-direction { margin:0 0 30px; padding:0; }
.plan-refined .plan-kicker { font-size:12px; line-height:1.5; color:var(--plan-gray); margin:0 0 8px; }
.plan-refined .plan-direction h4 { font-size:23px; font-weight:650; line-height:1.5; color:#00FFC2; margin:0; }
.plan-refined .plan-band { padding-top:0; margin-top:28px; }
.plan-refined .plan-band-title { font-size:17px; font-weight:700; line-height:1.5; color:var(--plan-white); margin:0 0 22px; }
.plan-refined .plan-columns { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:0; }
.plan-refined .plan-cell { min-width:0; padding:0 23px; border-left:1px solid var(--plan-line); }
.plan-refined .plan-cell:first-child { border-left:0; padding-left:0; }
.plan-refined .plan-cell:last-child { padding-right:0; }
.plan-refined .plan-week-number { font-size:14px; line-height:1.5; color:#00FFC2; font-weight:700; margin:0 0 12px; }
.plan-refined .plan-theme { font-size:20px; line-height:1.5; font-weight:700; color:var(--plan-white); margin:0 0 16px; }
.plan-refined .plan-cell p:not(.plan-week-number) { font-size:13px; line-height:1.9; font-weight:400; color:var(--plan-gray); margin:0; }
.plan-refined .plan-themes .plan-cell { display:grid; grid-template-rows:subgrid; grid-row:span 3; row-gap:0; }
.plan-refined .plan-inline-label { white-space:nowrap; color:#00FFC2; font-size:inherit; font-weight:600; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; }
@container (max-width:680px) {
  .plan-refined .plan-columns { grid-template-columns:repeat(4,220px); }
  .plan-refined .plan-band { min-width:880px; }
  .plan-refined .plan-cell { padding:0 18px; }
  .plan-refined .plan-cell:first-child { padding-left:0; }
}
#trainingPlanCardBody.plan-refined { overflow-x:auto; }

.training-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 0;
  margin: 12px 0;
}

.training-week-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  min-width: 0;
  padding: 0 22px;
  border: 0;
  border-left: 1px solid rgba(159, 182, 197, 0.22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.training-week-card:first-child { border-left: 0; padding-left: 0; }
.training-week-card:last-child { padding-right: 0; }

.training-week-index {
  margin: 0;
  color: #00ffc2;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.training-week-goal {
  margin: 0;
  color: var(--txt-strong);
  font-size: 16px;
  line-height: 1.6;
}

.training-week-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #d7e7f8;
  font-size: 13px;
  line-height: 1.75;
}

.training-week-line strong {
  color: #00ffc2;
  font-size: 12px;
  font-weight: 700;
}

.training-week-review {
  margin: 0;
  color: #acc4c2;
  font-size: 13px;
  line-height: 1.75;
}

.training-week-review strong {
  display: block;
  margin-bottom: 6px;
  color: #e1d1a7;
  font-size: 12px;
}

@container (max-width: 760px) {
  .training-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .training-week-card { padding: 0 18px 20px; }
  .training-week-card:nth-child(odd) { border-left: 0; padding-left: 0; }
  .training-week-card:nth-child(even) { padding-right: 0; }
}

@container (max-width: 420px) {
  .training-plan-grid { grid-template-columns: 1fr; row-gap: 12px; }
  .training-week-card { padding: 20px 0; border-left: 0; border-top: 1px solid rgba(159, 182, 197, 0.22); }
  .training-week-card:first-child { padding-top: 0; border-top: 0; }
}

@media (max-width: 700px) {
  .racket-preview-grid { grid-template-columns: 1fr; }
  .mirror-teaser { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .mirror-teaser-portrait { width: 105px; height: 150px; }
  .mirror-teaser-head { left: 29px; top: 24px; }
  .mirror-teaser-shoulders { left: -10px; }
  .mirror-teaser-copy h4 { font-size: 17px; }
}

.training-plan-note {
  margin: 4px 0 0;
  padding-top: 12px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.75;
}

.locked-card {
  position: relative;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(188, 155, 88, 0.28);
  background:
    radial-gradient(circle at top right, rgba(205, 169, 92, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(25, 31, 42, 0.98), rgba(18, 24, 34, 0.98));
}

.locked-card-surface {
  position: relative;
  min-height: 220px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(205, 169, 92, 0.08), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(0, 255, 194, 0.04), transparent 30%),
    linear-gradient(180deg, rgba(24, 31, 42, 0.9), rgba(17, 24, 34, 0.92));
}

.locked-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: linear-gradient(180deg, rgba(11, 18, 25, 0.54), rgba(11, 18, 25, 0.72));
  backdrop-filter: blur(3px);
}

.locked-card-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  max-width: 270px;
}

.locked-card-copy h3 {
  margin: 0;
  color: var(--txt-strong);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.locked-card-subtitle {
  margin: 0;
  color: #b8cbe0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.07em;
}

.locked-card-unlock {
  margin-top: 10px;
  color: #f1d79b;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: 0 0 18px rgba(208, 178, 114, 0.2);
}

.locked-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.locked-avatar-skeleton {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(69, 89, 112, 0.38), rgba(31, 42, 56, 0.2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.locked-card-surface-player {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 18px;
}

.locked-lines,
.locked-gear-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.locked-line {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(89, 106, 128, 0.36), rgba(44, 57, 74, 0.14));
}

.locked-line-lg {
  width: 84%;
}

.locked-line-md {
  width: 66%;
}

.locked-line-sm {
  width: 48%;
}

.locked-card-surface-plan {
  display: flex;
  align-items: center;
  justify-content: center;
}

.locked-plan-grid {
  width: 100%;
  max-width: 250px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.locked-plan-cell {
  display: block;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, rgba(82, 101, 125, 0.4), rgba(39, 53, 69, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.locked-plan-cell-1 {
  height: 56px;
}

.locked-plan-cell-2 {
  height: 92px;
}

.locked-plan-cell-3 {
  height: 68px;
}

.locked-plan-cell-4 {
  height: 104px;
}

.locked-card-surface-partner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.locked-partner-visual {
  position: relative;
  width: 210px;
  height: 120px;
}

.locked-partner-circle {
  position: absolute;
  top: 16px;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 40% 32%, rgba(255, 255, 255, 0.08), transparent 54%),
    linear-gradient(180deg, rgba(70, 89, 112, 0.32), rgba(29, 41, 56, 0.18));
}

.locked-partner-circle-left {
  left: 28px;
}

.locked-partner-circle-right {
  left: 100px;
}

.locked-partner-link {
  position: absolute;
  left: 72px;
  right: 72px;
  top: 58px;
  height: 2px;
  background: linear-gradient(90deg, rgba(95, 118, 145, 0.18), rgba(123, 150, 181, 0.4), rgba(95, 118, 145, 0.18));
}

.locked-card-surface-gear {
  display: flex;
  align-items: center;
}

.locked-gear-visual {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.locked-racket-outline {
  position: relative;
  width: 104px;
  height: 124px;
}

.locked-racket-head {
  position: absolute;
  top: 8px;
  left: 14px;
  width: 76px;
  height: 84px;
  border: 2px dashed rgba(114, 137, 163, 0.46);
  border-radius: 44px;
}

.locked-racket-handle {
  position: absolute;
  left: 44px;
  top: 86px;
  width: 18px;
  height: 34px;
  border: 2px dashed rgba(114, 137, 163, 0.42);
  border-radius: 8px;
}

.comment,
.legacy,
.guide {
  margin: 0;
  line-height: 1.7;
}

.comment {
  color: #dde8f6;
  font-size: 15px;
  white-space: pre-line;
  letter-spacing: 0.05px;
}

.comment.is-placeholder {
  padding: 14px 16px;
  border: 1px dashed rgba(96, 125, 152, 0.62);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 31, 44, 0.74), rgba(15, 24, 34, 0.82));
  color: #9fb7cf;
  font-size: 14px;
}

.coach-comment-card .legacy {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(57, 76, 96, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.coach-comment-card .guide {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
}

.legacy {
  color: #ffd17f;
}

.guide {
  color: #8ec0ff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 12, 0.78);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid #2c4154;
  border-radius: 20px;
  background: linear-gradient(180deg, #101924, #0d151f);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h3 {
  margin: 0;
  color: #e8f4ff;
  font-size: 20px;
}

.modal-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.modal-frame {
  width: 100%;
  min-height: 68vh;
  border: 1px solid #253749;
  border-radius: 12px;
  background: #0b1118;
}

.modal-link {
  color: #8ec0ff;
  font-size: 13px;
}

.rating-preview-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rating-preview { overflow: auto; min-height: 0; max-height: 65vh; background: white; border-radius: 8px; }
.rating-preview img { display: block; width: 100%; height: auto; max-width: none; }
.rating-preview.is-zoomed img { width: 1800px; }
.rating-preview:focus-visible { outline: 2px solid #00ffc2; outline-offset: 2px; }

.share-qr-card {
  width: min(680px, 100%);
}

.share-qr-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.share-qr-code-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border: 1px solid rgba(0, 255, 194, 0.18);
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(0, 255, 194, 0.08), transparent 58%), #0b131c;
}

.share-qr-code {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 180px;
}

.share-qr-code img,
.share-qr-code canvas {
  display: block;
  width: 180px;
  height: 180px;
  background: #fff;
  padding: 12px;
  border-radius: 16px;
}

.share-qr-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.student-qr-name {
  color: var(--text-strong);
  font-size: 1.45rem;
  font-weight: 800;
}

.share-qr-link-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-strong);
}

.share-qr-link-input {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #2b4458;
  background: #0f1822;
  color: var(--txt);
  font-size: 14px;
}

.share-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-qr-actions .student-qr-download-button {
  flex: 1 1 0;
  min-width: 210px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 20px;
  border: 1px solid #405161;
  border-radius: 12px;
  background: #202b36;
  color: #dce8f2;
  box-shadow: none;
  font-family: inherit;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.share-qr-actions .student-qr-download-button:hover {
  transform: translateY(-2px);
  border-color: #00ffc2;
  background: linear-gradient(180deg, var(--brand-gradient-highlight), var(--brand));
  color: var(--brand-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 14px 30px rgba(0, 255, 194, 0.24);
}

.import-modal-card {
  width: min(760px, 100%);
}

.import-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.import-resource-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(48, 70, 94, 0.92);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 28, 40, 0.95), rgba(12, 20, 30, 0.95));
}

.import-resource-card h4,
.import-resource-card p {
  margin: 0;
}

.import-resource-card h4 { color: var(--txt-strong); font-size: 16px; }
.import-resource-card p { color: var(--muted-strong); font-size: 13px; line-height: 1.5; }
.import-resource-card .action-link { margin-top: auto; justify-content: center; }

.import-modal-note {
  text-align: left;
  line-height: 1.6;
}

.import-file-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--txt-strong);
}

.import-file-field input[type="file"] {
  width: 100%;
}

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

.import-template-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(48, 70, 94, 0.92);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 28, 40, 0.95), rgba(12, 20, 30, 0.95));
}

.import-template-section h4 {
  margin: 0;
  color: var(--brand-strong);
  font-size: 14px;
}

.import-template-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.6;
}

.import-template-list li + li {
  margin-top: 6px;
}

.import-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.import-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(48, 70, 94, 0.92);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 25, 36, 0.98), rgba(11, 18, 27, 0.98));
}

.import-result.is-error {
  border-color: rgba(244, 106, 106, 0.5);
  background: linear-gradient(180deg, rgba(42, 21, 24, 0.9), rgba(25, 14, 18, 0.92));
}

.import-result-summary {
  color: var(--txt-strong);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
}

.import-result-meta {
  color: var(--muted);
  font-size: 12px;
}

.import-result-errors {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.import-result-errors h4 {
  margin: 0;
  color: #ffd7a0;
  font-size: 13px;
}

.import-error-list {
  margin: 0;
  padding-left: 18px;
  color: #ffd7d7;
  font-size: 12px;
  line-height: 1.6;
  max-height: 220px;
  overflow: auto;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #151f2c;
  border: 1px solid #34517a;
  color: #d8eaff;
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 200;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

button[title]:disabled {
  cursor: not-allowed;
}

@media (max-width: 1320px) {
  .coach-comment-venn {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
  }

  .coach-comment-circle {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: auto;
    min-height: 210px;
    transform: none;
  }

  .coach-comment-circle.is-strengths,
  .coach-comment-circle.is-weaknesses,
  .coach-comment-circle.is-next_steps {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .coach-comment-circle-inner {
    padding: 30px 20px 24px;
    grid-template-rows: auto 1fr;
  }
}

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

  .controls.panel {
    border-right: 0;
    border-bottom: 1px solid rgba(113, 146, 161, 0.16);
  }

  .panel {
    min-height: 0;
  }

  .controls {
    height: auto;
    max-height: none;
  }

  .report-wrap {
    height: auto;
    max-height: none;
  }

  .report-scroll-body > .empty {
    min-height: 360px;
  }

  .report-context-bar,
  .workflow-guide-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-context-meta {
    text-align: left;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .controls-collapse-toggle {
    display: none;
  }

  .hero-right {
    width: 42%;
  }

  .hero-name {
    font-size: 56px;
  }

  .report-summary-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .metric-card-keywords {
    grid-column: 1 / -1;
  }

}

@media (min-width: 1081px) {
  .shell {
    padding-bottom: 0;
  }

  .layout.is-controls-collapsed {
    --controls-track-size: 56px;
    --controls-layout-gap: 0px;
  }

  .layout.is-controls-collapsed .controls {
    padding: 22px 8px 24px;
    overflow: hidden;
    min-width: 0;
  }

  .layout.is-controls-collapsed .controls > :not(.controls-panel-heading) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-16px, 0, 0) scale(0.985);
    transition-delay: 0s, 0s, 300ms;
  }

  .layout.is-controls-collapsed .controls-panel-heading {
    margin: 0;
    gap: 0;
  }

  .layout.is-controls-collapsed .controls-panel-heading h2 {
    opacity: 0;
    transform: translate3d(-12px, 0, 0) scale(0.98);
    pointer-events: none;
    transition-delay: 0s, 0s;
  }

  .layout.is-controls-collapsed .controls-collapse-toggle {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    flex-basis: 40px;
    border-color: rgba(0, 255, 194, 0.36);
    background: rgba(16, 42, 47, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 22px rgba(0, 0, 0, 0.22), 0 0 18px rgba(0, 255, 194, 0.12);
  }

  .layout.is-controls-collapsed .controls-collapse-chevron {
    opacity: 0;
    transform: translateX(-2px) scale(0.76);
  }

  .layout.is-controls-collapsed .controls-collapse-dashboard {
    opacity: 1;
    transform: scale(1);
  }

  .layout.is-controls-transitioning .controls,
  .layout.is-controls-transitioning .controls-collapse-toggle,
  .layout.is-controls-transitioning .controls-panel-heading h2,
  .layout.is-controls-transitioning .controls > :not(.controls-panel-heading) {
    will-change: width, padding, transform, opacity;
  }

}

@media (prefers-reduced-motion: reduce) {
  .layout.is-controls-motion-ready,
  .controls,
  .controls-panel-heading,
  .controls-panel-heading h2,
  .controls > :not(.controls-panel-heading),
  .controls-collapse-toggle,
  .controls-collapse-icon,
  .controls-collapse-chevron,
  .controls-collapse-dashboard {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

@media (max-width: 860px) {
  .shell {
    padding: 0 14px 14px;
  }

  .assessment-step-head-top {
    align-items: flex-start;
  }

  .assessment-step-head-body {
    max-width: none;
  }

  .assessment-step {
    padding: 26px 0;
  }

  .assessment-final-section {
    gap: 16px;
    padding-top: 24px;
  }

  .score-field-standalone .score-field-top {
    flex-direction: column;
    gap: 8px;
  }

  .score-field-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .physical-pool-actions,
  .assessment-step-actions {
    flex-direction: column;
  }

  .physical-pool-add-button {
    width: 100%;
  }

  .comprehensive-restore-button {
    width: 100%;
  }

  .grid2,
  #assessmentMetaFields,
  .physical-help-grid {
    grid-template-columns: 1fr;
  }

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

  .physical-method-block .physical-help-list {
    columns: 1;
  }

  .score-group-grid {
    grid-template-columns: 1fr;
  }

  .cards3,
  .row2,
  .report-locked-grid {
    grid-template-columns: 1fr;
  }

  .report {
    gap: 16px;
  }

  .metric-card,
  .chart-card {
    padding: 20px;
  }


  .fitness-empty-state {
    min-height: 220px;
  }

  .fitness-empty-row {
    grid-template-columns: 108px 1fr 38px;
  }

  .fitness-empty-message span {
    padding: 12px 14px;
    font-size: 14px;
  }

  .student-admin-list {
    max-height: 42vh;
  }

  .topbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .topbar-actions button,
  .topbar-actions .action-link {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 248px;
    grid-template-columns: 1fr;
  }

  .hero-signature { top: 22px; right: 18px; max-width: calc(100% - 36px); gap: 9px; }
  .hero-corner-logo { width: clamp(104px, 33.2vw, 148px); }
  .hero-signature-divider { height: 19px; }
  .hero-watermark { max-width: min(48vw, 190px); font-size: 14px; }

  .hero-right {
    width: auto;
    min-width: 0;
    max-width: none;
    padding-top: 0;
    align-items: flex-start;
    text-align: left;
  }

  .hero-brand {
    font-size: 30px;
  }

  .hero-camp {
    font-size: 21px;
  }

  .hero-meta {
    align-items: flex-start;
    font-size: 14px;
  }

  .hero-meta > div {
    white-space: normal;
  }

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

  .metric-card-keywords {
    grid-column: auto;
  }

  .player-mirror-hero {
    grid-template-columns: 1fr;
  }

  .player-mirror-avatar {
    width: 72px;
    height: 72px;
  }

  .coach-comment-venn {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
  }

  .coach-comment-circle {
    position: relative;
    inset: auto;
    width: 100%;
    min-width: 0;
    aspect-ratio: auto;
    min-height: 220px;
    transform: none;
  }

  .coach-comment-circle-inner {
    padding: 30px 20px 24px;
    grid-template-rows: auto 1fr;
  }

  .modal {
    padding: 12px;
  }

  .modal-card {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 14px;
  }

  .modal-frame {
    min-height: 56vh;
  }

  .import-template-grid,
  .import-resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .metric-card,
  .chart-card {
    padding: 18px;
  }

  .chart-card h3 {
    font-size: 18px;
  }

  .report-section-head {
    margin-bottom: 20px;
  }

  .bar-row,
  #fitnessBars .bar-row {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px 12px;
    min-height: 0;
    padding: 5px 0;
  }

  .bar-label {
    grid-column: 1 / -1;
  }

  .bar-track {
    grid-column: 1;
  }

  .bar-row > :last-child {
    grid-column: 2;
  }

  #techBars .bar-label-line {
    flex-wrap: wrap;
  }
}

.auth-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px 24px max(48px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 50% 18%, rgba(150, 76, 255, 0.12), transparent 36%),
    rgba(4, 7, 13, 0.58);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  z-index: 40;
}

.auth-bootstrap {
  padding: 24px;
  color: var(--txt);
  background:
    radial-gradient(circle at 28% 12%, rgba(0, 255, 194, 0.12), transparent 34%),
    radial-gradient(circle at 72% 42%, rgba(126, 92, 255, 0.1), transparent 32%),
    #07111a;
}

.auth-bootstrap-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 30px;
  border: 1px solid rgba(0, 255, 194, 0.16);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 28, 39, 0.94), rgba(8, 15, 23, 0.95));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38), 0 0 54px rgba(0, 255, 194, 0.08);
  text-align: center;
}

.auth-bootstrap-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.auth-bootstrap-mark::before,
.auth-bootstrap-mark span {
  grid-area: 1 / 1;
  content: "";
  display: block;
  border-radius: 50%;
}

.auth-bootstrap-mark::before {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(0, 255, 194, 0.16);
  border-top-color: var(--brand);
  animation: auth-bootstrap-spin 0.9s linear infinite;
}

.auth-bootstrap-mark span {
  width: 10px;
  height: 10px;
  background: var(--brand);
  box-shadow: 0 0 18px rgba(0, 255, 194, 0.76);
}

.auth-bootstrap-brand {
  color: var(--brand);
  font-family: var(--font-display-title);
  font-size: 20px;
  letter-spacing: 0.12em;
}

.auth-bootstrap h1 {
  margin: 8px 0 0;
  color: var(--txt-strong);
  font-size: 22px;
}

.auth-bootstrap p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
}

@keyframes auth-bootstrap-spin {
  to { transform: rotate(360deg); }
}

.auth-card {
  width: min(420px, 100%);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(207, 191, 255, 0.16);
  background: linear-gradient(145deg, rgba(16, 19, 29, 0.94), rgba(9, 15, 23, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 0 52px rgba(130, 67, 214, 0.12),
    0 28px 70px rgba(0, 0, 0, 0.42);
}

.auth-card h1 {
  margin: 0 0 8px;
  color: #effffb;
}

.auth-card .hint {
  color: var(--text-muted);
}

.auth-card label {
  color: var(--text);
}

.auth-card input {
  border-color: rgba(190, 174, 240, 0.18);
  background: rgba(5, 11, 18, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.auth-card input:focus {
  border-color: rgba(55, 226, 186, 0.68);
  box-shadow: 0 0 0 3px rgba(0, 255, 194, 0.1);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-error {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 14px;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f7fb;
  font-size: 14px;
}

body.auth-required {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Unified typography system

   The application uses one compact type scale and four intentional weights:
   400 body copy, 500 secondary emphasis, 600 controls, 700 headings.
   Bebas is reserved for Latin display headings and report numbers.
   -------------------------------------------------------------------------- */

body {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
}

p,
li,
dd,
dt {
  line-height: var(--line-height-body);
}

button,
.action-link,
.ghost-button,
.assessment-step-button,
.physical-help-toggle {
  font-family: inherit;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-meta);
}

.student-card-button,
.student-panel-toggle,
.history-record-item,
.rating-tips-trigger,
.modal-close {
  font-family: inherit;
  font-weight: var(--font-weight-semibold);
}

button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

label,
.number-field,
.coach-comment-field,
.student-search-label,
.history-search-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-meta);
}

.controls h2,
.report-panel-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  letter-spacing: 0;
}

.block h3,
.student-panel-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
  letter-spacing: 0;
}

#assessmentBlockTitle,
.assessment-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
}

.assessment-step-head h4 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

.assessment-final-head h4,
.assessment-subtitle {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
}

.workflow-guide-list,
.workflow-guide-hint,
.block-note,
.guide,
.context-card-text,
.assessment-step-copy,
.assessment-step-summary p,
.step-overview,
.inline-status {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  letter-spacing: 0;
}

.hint,
.score-group-description,
.score-field-range,
.score-field-help,
.score-field-derived,
.physical-item-meta,
.inline-note,
.history-record-meta,
.history-record-copy {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-meta);
  letter-spacing: 0;
}

.score-field-name,
.physical-item-title,
.slider-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
}

.technical-score-row .score-field-name {
  font-size: var(--font-size-md);
}

.score-field-status,
.number-stepper-unit,
.physical-item-category,
.assessment-step-chip,
.assessment-step-badge,
.assessment-step-score,
.count-pill,
.history-record-badge {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.number-stepper-button,
.slider-value,
.physical-summary-chip strong {
  font-weight: var(--font-weight-semibold);
}

.physical-help-title,
.physical-standard-table th {
  font-weight: var(--font-weight-semibold);
}

.physical-help-copy,
.physical-help-list,
.physical-standard-table {
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-meta);
}

.history-record-date,
.history-record-score {
  font-weight: var(--font-weight-semibold);
}

.metric-card h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
  letter-spacing: 0;
}

.metric-sub,
.metric-reference,
.report-section-note {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-meta);
  letter-spacing: 0;
}

.metric-note,
.metric-description {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

.progress-text,
.progress-text-compact {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-meta);
}

.chart-card h3,
.advanced-card-head h3,
.locked-card-copy h3,
.coach-comment-card h3,
.report-comparison-card h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
  letter-spacing: 0;
}

.report-section-subtitle,
.locked-card-subtitle,
.player-mirror-name-en {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: 1.35;
}

.report-section-kicker {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.bar-row {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-meta);
}

.bar-label-primary {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-title);
}

.bar-label-secondary {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-meta);
  letter-spacing: 0;
}

.bar-note {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-meta);
}

.tag,
.metric-breakdown-pill {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
}

.coach-comment-top-flow {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: 1.72;
  letter-spacing: 0;
}

.coach-comment-top-label {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0;
}

.coach-comment-circle-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
}

.player-mirror-name {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
}

.player-mirror-achievement {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-meta);
}

.player-mirror-tag {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.hero-name {
  font-weight: var(--font-weight-bold);
}

.advanced-pill,
.locked-card-badge,
.locked-card-unlock {
  font-weight: var(--font-weight-semibold);
}

.advanced-copy-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title);
  letter-spacing: 0;
}

.advanced-copy-text {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: 1.72;
}

.advanced-copy-block.is-summary .advanced-copy-text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: 1.72;
}

.history-compare-summary-label,
.history-compare-current-tag,
.history-compare-date {
  font-weight: var(--font-weight-semibold);
}

.history-compare-summary-value,
.history-compare-total-value {
  font-weight: var(--font-weight-bold);
}

@media (max-width: 640px) {
  .controls h2,
  .report-panel-title,
  #assessmentBlockTitle,
  .assessment-title,
  .assessment-step-head h4 {
    font-size: 20px;
  }

  .block h3,
  .student-panel-title,
  .assessment-final-head h4,
  .assessment-subtitle,
  .chart-card h3,
  .advanced-card-head h3,
  .locked-card-copy h3,
  .coach-comment-card h3,
  .report-comparison-card h3 {
    font-size: 17px;
  }
}

/* ICP 备案页脚（合规悬挂） */
.icp-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  text-align: center;
  padding: 4px 0 5px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.92);
  pointer-events: auto;
}
.icp-footer a {
  color: #8a8f99;
  text-decoration: none;
}
.icp-footer a:hover {
  color: #5a5f68;
  text-decoration: underline;
}
/* The footer is outside the shell stacking context; keep it below open documents. */
body.document-modal-open .icp-footer { visibility: hidden; }

/* Fixed desktop composition for the downloadable report, independent of viewport. */
.report-download {
  box-sizing: border-box;
  padding: 16px;
  background: #080d15;
  color: var(--text);
  --report-card-padding: 24px;
}
.report-download *, .report-download *::before, .report-download *::after {
  animation: none !important;
  transition: none !important;
}
.report-download .report { gap: 20px; }
.report-download .hero {
  min-height: 228px;
  grid-template-columns: minmax(0, 1fr) auto;
}
.report-download .hero-name { font-size: 60px; line-height: 1.15; }
.report-download .hero-left { padding: 24px; }
.report-download .hero-right { min-width: 310px; max-width: none; padding: 24px; }
.report-download .hero-corner-logo { width: 178px; }
.report-download .hero-watermark { font-size: 17px; }
.report-download .report-summary-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 14px;
  margin-top: 14px;
}
.report-download .row2, .report-download .report-locked-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.report-download .bar-row {
  grid-template-columns: 210px minmax(0, 1fr) 54px;
  gap: 16px;
}
.report-download [data-report-id="techBars"] .bar-row { min-height: 50px; }
.report-download [data-report-id="techBars"] .bar-label-line { flex-wrap: nowrap; }
.report-download [data-report-id="fitnessBars"] {
  flex: 1 1 auto;
  justify-content: center;
  gap: 10px;
}
.report-download [data-report-id="fitnessBars"] .bar-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 54px;
  min-height: 54px;
}
.report-download [data-report-id="radarChart"] {
  width: 100%; height: 280px; min-height: 280px; flex: 1 1 auto;
}
.report-download [data-report-id="radarChart"] text {
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 14px; font-weight: 600;
}
.report-download [data-report-id="progressFill"] {
  height: 100%; background: #00ffc2;
}
.report-download .coach-comment-venn {
  --coach-circle-size: 290px;
  display: block;
  min-height: 326px;
  padding: 12px 0 10px;
}
.report-download .coach-comment-circle {
  position: absolute;
  width: 290px; height: 290px; min-height: 0;
  top: 18px; right: auto; bottom: auto; transform: none;
}
.report-download .coach-comment-circle.is-strengths { left: calc(50% - 382.8px); }
.report-download .coach-comment-circle.is-weaknesses { left: calc(50% - 145px); }
.report-download .coach-comment-circle.is-next_steps { left: calc(50% + 92.8px); }
.report-download .coach-comment-circle-inner { padding: 42px 28px 30px; }
.report-download .advanced-card-head { flex-direction: row; }
.report-download .locked-card { min-height: 220px; }
.report-download-footer {
  width: 100%;
  box-sizing: border-box;
  padding: 40px 16px 24px;
  background: transparent;
  color: var(--brand);
  font-family: var(--font-display-title);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-align: center;
}


/* Submission readiness is visible without hovering; disabled remains neutral. */
#btnCreateAssessment:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand);
  color: #062019;
}
.scoring-preview-status {
  line-height: 1.6;
  margin: 0 0 12px;
}
.scoring-preview-status[hidden] { display: none; }
[data-preview-display] { min-height: 1.5em; }

/* Editing a score should keep both the card and the clicked control still. */
#scoreFields :is(.score-field, .physical-item-card, .slider-card,
  .technical-score-input-group, .number-stepper-button):is(:hover, :focus-within) {
  transform: none;
}

:is(.btn-primary, #btnShareImageTop, #btnCreateStudent, #btnCreateAssessment,
  #btnLoadReport, #btnStartExcelImport, .assessment-step-button):disabled,
:is(.btn-primary, #btnShareImageTop, #btnCreateStudent, #btnCreateAssessment,
  #btnLoadReport, #btnStartExcelImport, .assessment-step-button):disabled:hover {
  transform: none;
  border-color: rgba(77, 91, 106, 0.54);
  background: #222b34;
  color: #728293;
  box-shadow: none;
}

/* A visible route through the assessment; no movement on individual inputs. */
.assessment-progress { position: sticky; top: 0; z-index: 4; padding: 12px 0;
  background: #14212c; border-bottom: 1px solid var(--line); }
.assessment-progress-caption { margin: 0 0 10px; font-size: 13px; color: var(--txt); }
.assessment-progress ol { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.assessment-progress button { width: 100%; min-height: 50px; padding: 6px 4px;
  justify-content: flex-start; gap: 7px; border: 0; background: transparent; box-shadow: none;
  font-size: 12px; color: var(--muted); text-align: left; transform: none; }
.assessment-progress button[aria-current="step"] { color: var(--brand); }
.assessment-progress small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; }
.assessment-progress-number { display: grid; place-items: center; width: 24px; height: 24px;
  flex-shrink: 0; border: 1px solid currentColor; border-radius: 50%; }
#scoreFields > .assessment-step { position: relative; scroll-margin-top: 120px; }
#scoreFields > .assessment-step:first-of-type { border-top: 0; }
.assessment-motion-ghost { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 2; }
.is-entry-transitioning { overflow-anchor: none; scroll-behavior: auto; }
.assessment-step-head h4:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .assessment-progress * { transition: none; } }

/* Confirmation is distinct from merely filling in a score. */
.assessment-step.is-confirmed { border-color: #00FFC2; }
.assessment-step.is-confirmed .assessment-step-summary { border-color: #00FFC2; }
.assessment-step.is-confirmed .step-overview-pill { border-color: rgba(0, 255, 194, .6); }
.assessment-step.is-pending { border-color: #465260; }
#scoreFields .assessment-step.is-pending :is(.score-field, .physical-item-card, .slider-card) {
  border-color: #465260;
  box-shadow: none;
}
.assessment-step.is-pending .assessment-step-score { color: var(--muted); }
.assessment-progress button.is-confirmed { color: #00FFC2; }
.assessment-progress button.is-confirmed .assessment-progress-number {
  color: #00FFC2; border-color: #00FFC2; background: rgba(0, 255, 194, .08);
}
.assessment-progress button.is-pending { color: var(--muted); }
.assessment-progress button.is-pending[aria-current="step"] { color: var(--txt); }
.assessment-progress button.is-pending .assessment-progress-number { color: var(--muted); }

/* Cover the scroll container's top padding and the sides of the sticky strip. */
.assessment-progress { top: -22px; isolation: isolate; }
.assessment-progress::before {
  content: ""; position: absolute; inset: 0 -22px; background: #14212c; z-index: -1;
  pointer-events: none;
}
.assessment-confirmed-icon {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid #00FFC2; border-radius: 50%; color: #00FFC2;
  font-size: 16px; line-height: 1; font-weight: 650;
}
.assessment-unconfirmed-label { color: var(--muted); font-size: 13px; }
#btnOpenRatingTips, #btnOpenRatingTips:hover, #btnOpenRatingTips:active {
  display: inline; align-self: flex-start; width: auto; min-height: 0;
  padding: 0; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; transform: none; color: var(--muted);
  text-align: left; text-decoration: underline; text-underline-offset: 4px;
  font-size: 13px; font-weight: 400; line-height: 1.6;
}
#btnOpenRatingTips:hover, #btnOpenRatingTips:focus-visible { color: #00FFC2; }

/* Programmatic completion focus must not flash a frame around the final form. */
.assessment-final-section:focus { outline: none; }

/* Persistent completion cue: only the outer card changes, without flashing. */
#scoreFields .assessment-step :is(.technical-score-row, .physical-item-card, .slider-card).is-filled {
  border-color: #00FFC2;
  box-shadow: none;
}

.comprehensive-confirm-actions { flex-direction: column; gap: 12px; }
#scoreFields .assessment-text-action,
#scoreFields .assessment-text-action:hover,
#scoreFields .assessment-text-action:active {
  display: inline; width: auto; min-width: 0; min-height: 0;
  padding: 0; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; transform: none; color: var(--muted);
  font-size: 13px; font-weight: 400; line-height: 1.6;
  text-decoration: underline; text-underline-offset: 4px;
}
#scoreFields .assessment-text-action:hover,
#scoreFields .assessment-text-action:focus-visible { color: #00FFC2; }

/* Birthday uses the same year / month / day pattern as registration. */
.student-birth-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.student-birth-field legend { padding: 0; margin-bottom: 8px; color: var(--txt);
  font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.student-birth-selects { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.student-birth-selects select { min-width: 0; width: 100%; margin: 0;
  padding-left: 10px; padding-right: 34px; background-position: right 12px center; }
.student-birth-selects select:disabled { opacity: .5; }
#studentGender { padding-right: 40px; background-position: right 16px center; }
.student-birth-selects select, #studentGender {
  background-color: var(--form-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.5L6 6L10.5 1.5' stroke='%23AFC2D2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px 8px; background-repeat: no-repeat;
}


.report-context-select{display:block;width:100%;max-width:390px;min-height:44px;margin:0;padding:10px 42px 10px 14px;border:1px solid #405161;border-radius:10px;background-color:rgba(255,255,255,.045);color:#dce8f2;font-size:14px;line-height:1.5;box-sizing:border-box}
.report-context-select:focus-visible{outline:2px solid #00FFC2;outline-offset:3px}
.report-context-select:not([size]){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.5L6 6L10.5 1.5' stroke='%23AFC2D2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 16px center;background-size:12px 8px;background-repeat:no-repeat}
.report-context-bar{display:grid;grid-template-columns:minmax(0,390px) auto;align-items:center}
.report-context-identity{width:100%;min-width:0}
@media(max-width:600px){.report-context-bar{grid-template-columns:minmax(0,1fr);gap:12px}.report-context-select{max-width:none}}

/* Keep each pane's actions visible above its independently clipped content. */
.controls-scroll-body,.report-scroll-body{display:contents}
.report-wrap{container-type:inline-size;container-name:report-pane}
.report-panel-heading{display:flex;align-items:center;gap:20px;min-width:0;margin-bottom:20px}
.report-panel-heading .report-panel-title{flex:none;min-height:44px;margin:0;white-space:nowrap}
.report-panel-heading .report-context-bar{flex:1;min-width:0;padding:0;grid-template-columns:minmax(120px,390px) auto;gap:16px}
@media(min-width:1081px){
  .controls,.report-wrap{
    display:flex;flex-direction:column;box-sizing:border-box;
    height:calc(100dvh - 84px);max-height:calc(100dvh - 84px);
    padding:0;overflow:hidden;scrollbar-gutter:auto;
  }
  .controls-panel-heading,.report-panel-heading{
    position:relative;z-index:10;flex:0 0 68px;min-height:68px;box-sizing:border-box;
    margin:0;padding:12px 22px;
    border-bottom:1px solid rgba(113,146,161,.28);
  }
  .controls-panel-heading{justify-content:flex-start;gap:10px;padding-left:12px;padding-right:14px}
  .report-panel-heading{padding-left:14px}
  .controls-panel-heading .controls-collapse-toggle{
    width:32px;min-width:32px;height:32px;min-height:32px;flex-basis:32px;
    border:0;border-radius:8px;background:transparent;box-shadow:none;
    backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--muted);transform:none;
  }
  .controls-panel-heading .controls-collapse-toggle:hover,
  .controls-panel-heading .controls-collapse-toggle:focus-visible{
    background:rgba(0,255,194,.1);color:var(--brand);box-shadow:none;
  }
  .controls-panel-heading::before,.report-panel-heading::before{
    content:none;
  }
  .controls > .controls-scroll-body,.report-scroll-body{
    display:block;flex:1 1 auto;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;
    padding:18px 22px 64px;scrollbar-width:thin;
    scrollbar-color:transparent transparent;scrollbar-gutter:stable;
  }
  .controls-scroll-body{padding-bottom:24px}
  .controls > .controls-scroll-body{
    padding-right:14px;scrollbar-width:none;scrollbar-gutter:auto;
  }
  .report-scroll-body{padding-left:14px}
  .controls-scroll-body::-webkit-scrollbar{display:none}
  .controls-scroll-body.is-scrolling{scrollbar-width:none}
  .report-scroll-body.is-scrolling{scrollbar-color:rgba(83,225,192,.3) transparent}
  .controls-scroll-body::-webkit-scrollbar,.report-scroll-body::-webkit-scrollbar{width:8px;height:8px}
  .controls-scroll-body::-webkit-scrollbar-track,.report-scroll-body::-webkit-scrollbar-track{background:transparent}
  .controls-scroll-body::-webkit-scrollbar-thumb,.report-scroll-body::-webkit-scrollbar-thumb{
    border:2px solid transparent;border-radius:999px;background-color:transparent;background-clip:padding-box;
  }
  .controls-scroll-body.is-scrolling::-webkit-scrollbar-thumb,.report-scroll-body.is-scrolling::-webkit-scrollbar-thumb{background-color:rgba(83,225,192,.3)}
  .controls .assessment-progress{top:0}
  #scoreFields > .assessment-step{scroll-margin-top:118px}
  .layout.is-controls-collapsed .controls{padding:0}
  .layout.is-controls-collapsed .controls-panel-heading{justify-content:flex-start;margin:0;padding:12px}
  .layout.is-controls-collapsed .controls-panel-heading h2{position:absolute;width:0}
  .layout.is-controls-collapsed .controls-panel-heading .controls-collapse-toggle{
    width:32px;min-width:32px;height:32px;min-height:32px;flex-basis:32px;
    border:0;background:transparent;box-shadow:none;
  }
  .layout.is-controls-collapsed .controls-scroll-body{overflow:hidden;padding:0}
  .report-panel-heading .report-context-select{font-size:13px}
  .report-panel-heading .beta-report-toolbar{flex-wrap:nowrap;gap:14px}
  .report-panel-heading .beta-watermark-settings>summary{white-space:nowrap}
}
@media(max-width:760px){
  .report-panel-heading{flex-wrap:wrap;gap:12px}
  .report-panel-heading .report-context-bar{flex-basis:100%}
}
@media(max-width:600px){.report-panel-heading .report-context-bar{grid-template-columns:minmax(0,1fr)}}
@container report-pane (max-width:640px){
  .report-panel-heading{flex-wrap:wrap;gap:10px}
  .report-panel-heading .report-context-bar{flex-basis:100%}
}
