:root {
  color-scheme: light;
  --ink: #13201a;
  --muted: #65746c;
  --line: #dce5df;
  --panel: #ffffff;
  --soft: #f2f6f3;
  --green: #1e6f4f;
  --green-dark: #10251d;
  --mint: #dff3e9;
  --blue: #2d6cdf;
  --sand: #d8b66d;
  --coral: #d9634f;
  --shadow: 0 18px 45px rgba(22, 45, 35, 0.14);
  font-family: Inter, "Pretendard", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #e8f0eb 0%, #f9fbf8 38%, #eef3f0 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

body:not(.portal-app-open) .app-shell {
  display: none;
}

body.portal-app-open .portal-view {
  display: none;
}

.portal-view {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 28px;
  background: #fff;
}

.portal-card,
.portal-menu {
  width: min(520px, 100%);
  margin: 0 auto;
}

.portal-card {
  display: grid;
  gap: 26px;
  justify-items: center;
}

.portal-logo {
  width: min(420px, 82vw);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.portal-form {
  width: min(360px, 100%);
  display: grid;
  gap: 12px;
}

.portal-password-label {
  color: #1c1c1c;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 0 14px;
  color: #111;
  background: #fff;
  font-size: 1.1rem;
}

.portal-button,
.portal-small-button,
.portal-list-item {
  border-radius: 8px;
  font-weight: 900;
}

.portal-button {
  min-height: 50px;
  border: none;
  color: #fff;
  background: #ed174f;
}

.portal-message {
  min-height: 20px;
  margin: 0;
  color: #b30f38;
  font-size: 0.86rem;
  font-weight: 800;
}

.portal-menu {
  display: grid;
  gap: 22px;
}

.portal-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-menu-logo {
  width: 156px;
  height: 82px;
  object-fit: contain;
  object-position: left center;
}

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

.portal-small-button {
  min-height: 38px;
  border: 1px solid #e2e2e2;
  padding: 0 14px;
  color: #111;
  background: #fff;
}

.portal-reset-chip {
  position: fixed;
  z-index: 30;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  background: rgba(16, 37, 29, 0.82);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  font-size: 0.72rem;
  font-weight: 900;
}

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

.portal-list-item {
  width: 100%;
  min-height: 86px;
  display: grid;
  gap: 4px;
  border: 1px solid #e5e5e5;
  padding: 18px;
  text-align: left;
  color: #111;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 15, 15, 0.08);
}

.portal-list-item span {
  color: #ed174f;
  font-size: 0.82rem;
  text-transform: lowercase;
}

.portal-list-item strong {
  font-size: 1.08rem;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.app-shell.is-setup-open .app-content {
  display: none;
}

.app-shell:not(.is-setup-open) .setup-view {
  display: none;
}

.setup-view {
  min-height: calc(100vh - 62px);
  display: grid;
  align-items: center;
}

.setup-card {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.setup-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.setup-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.setup-name {
  max-width: 360px;
}

.setup-clubs {
  display: grid;
  gap: 12px;
}

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

.club-check-grid label {
  position: relative;
  display: block;
}

.club-check-grid input {
  position: absolute;
  opacity: 0;
}

.club-check-grid span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #425249;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 900;
}

.club-check-grid input:checked + span {
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.topbar,
.brand,
.round-actions,
.tabs,
.panel-title,
.stat-tile,
.round-item,
.range-row {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green-dark);
  font-weight: 800;
}

.brand-logo {
  width: 58px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 37, 29, 0.12);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.round-actions {
  position: relative;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon-button,
.danger-button,
.primary-button,
.round-menu-button,
.tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.icon-button {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  font-weight: 800;
}

.danger-button {
  min-height: 40px;
  padding: 0 14px;
}

.round-menu-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.round-action-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 172px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.round-action-menu[hidden] {
  display: none;
}

.round-action-menu .danger-button {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 900;
}

.hole-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  margin-top: 18px;
}

.primary-button {
  width: 100%;
  min-height: 48px;
  border: none;
  color: #fff;
  background: var(--green-dark);
  font-weight: 800;
}

.secondary-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.hero-panel {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 22px;
  overflow: hidden;
  border-radius: 10px;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(11, 26, 20, 0.78), rgba(11, 26, 20, 0.48), rgba(11, 26, 20, 0.12)),
    url("assets/course-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.hero-copy {
  align-self: end;
  max-width: 760px;
  color: #fff;
}

.hero-copy .eyebrow {
  color: #bfe8d4;
}

.hero-copy h2 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.player-name-field {
  width: min(340px, 100%);
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.player-name-field input {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.player-name-field input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.hero-stats {
  align-self: end;
  display: grid;
  gap: 10px;
}

.hero-stat {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
}

.hero-stat span,
.metric-card span,
.round-meta,
.panel-title span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.72);
}

.hero-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.5rem;
}

.tabs {
  gap: 8px;
  margin: 18px 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.tab {
  flex: 1;
  min-height: 42px;
  border-color: transparent;
  background: transparent;
  font-weight: 800;
}

.tab.is-active {
  color: #fff;
  background: var(--green-dark);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.entry-grid,
.dashboard-grid,
.strategy-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.entry-grid,
.form-panel,
.field-grid,
.custom-select {
  overflow-anchor: none;
}

.dashboard-grid,
.strategy-layout {
  grid-template-columns: 1fr 1fr;
}

.form-panel,
.chart-panel,
.recommendation,
.metric-card,
.round-item,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(36, 57, 46, 0.07);
}

.form-panel,
.chart-panel,
.recommendation {
  padding: 18px;
}

.panel-title {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

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

.conditional-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.conditional-fields.is-hidden,
.is-hidden {
  display: none;
}

label,
.field-block {
  display: grid;
  gap: 6px;
  align-content: start;
  color: #314039;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
}

input,
select {
  width: 100%;
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  font-weight: 500;
}

select.native-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(45, 108, 223, 0.22);
  border-color: var(--blue);
}

.custom-select {
  position: relative;
}

.custom-select-button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 34px 0 11px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font-weight: 500;
}

.custom-select-button::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 16px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
}

.custom-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  display: none;
  max-height: 132px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.custom-select.is-open .custom-select-menu {
  display: grid;
}

.custom-select-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font-weight: 500;
}

.custom-select-menu button:last-child {
  border-bottom: 0;
}

.custom-select-menu button:disabled {
  color: var(--muted);
  cursor: default;
  background: #f5f7f6;
}

.custom-select-menu button.is-selected,
.custom-select-menu button:not(:disabled):hover {
  color: #fff;
  background: var(--green-dark);
}

.gir-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 6px;
  align-items: start;
}

.miss-pills {
  position: relative;
  display: block;
  width: 108px;
  height: 108px;
  opacity: 0.38;
  pointer-events: none;
}

.miss-pills::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(30, 111, 79, 0.4);
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(30, 111, 79, 0.14) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(30, 111, 79, 0.14) 50%, transparent 50.5%),
    rgba(30, 111, 79, 0.05);
  border-radius: 999px;
}

.miss-pills::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: var(--green-dark);
  box-shadow: 0 0 0 1px rgba(30, 111, 79, 0.35);
  transform: translate(-50%, -50%);
}

.miss-pills.is-active {
  opacity: 1;
  pointer-events: auto;
}

.miss-pills label {
  position: absolute;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.miss-pills .miss-up {
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
}

.miss-pills .miss-left-up {
  left: 24px;
  top: 24px;
}

.miss-pills .miss-right-up {
  right: 24px;
  top: 24px;
}

.miss-pills .miss-left {
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
}

.miss-pills .miss-right {
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
}

.miss-pills .miss-down {
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
}

.miss-pills .miss-left-down {
  left: 24px;
  bottom: 24px;
}

.miss-pills .miss-right-down {
  right: 24px;
  bottom: 24px;
}

.miss-pills input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.miss-pills span {
  display: grid;
  width: 14px;
  min-height: 14px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8faf8;
  box-shadow: 0 4px 10px rgba(36, 57, 46, 0.08);
}

.miss-pills .miss-cardinal span {
  width: 26px;
  min-height: 18px;
  color: #425249;
  font-size: 0.62rem;
  font-weight: 900;
}

.miss-pills span em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.miss-pills .miss-cardinal span em {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font-style: normal;
}

.miss-pills input:checked + span {
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green-dark);
  box-shadow: 0 0 0 4px rgba(30, 111, 79, 0.15);
}

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

.metric-card {
  padding: 16px;
}

.score-split-card {
  grid-column: span 2;
}

.driver-tee-card {
  grid-column: 1 / -1;
}

.metric-group-card {
  grid-column: span 2;
}

.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.score-split-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.par-score-card .score-split-grid {
  margin-top: 12px;
}

.metric-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.metric-mini-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-mini-grid div {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.metric-mini-button {
  min-width: 0;
  width: 100%;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: var(--soft);
  text-align: left;
}

.metric-mini-button.is-open {
  border-color: rgba(30, 111, 79, 0.42);
  background: #e8f6ef;
}

.metric-mini-grid span,
.metric-mini-grid b,
.metric-mini-button span,
.metric-mini-button b {
  display: block;
}

.metric-mini-grid span,
.metric-mini-button span {
  font-size: 0.72rem;
  font-weight: 900;
}

.metric-mini-grid b,
.metric-mini-button b {
  margin-top: 3px;
  color: var(--green-dark);
  font-size: 1.05rem;
}

.metric-detail-panel {
  margin-top: 10px;
}

.metric-detail-panel.is-open {
  max-height: 190px;
  padding: 10px;
}

.metric-detail-panel > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.metric-detail-panel .bar-chart {
  gap: 6px;
}

.metric-detail-panel .bar-row {
  grid-template-columns: 62px 1fr 40px;
  gap: 7px;
  min-height: 22px;
}

.metric-detail-panel .bar-row strong,
.metric-detail-panel .bar-row span {
  font-size: 0.72rem;
}

.metric-detail-panel .track {
  height: 7px;
}

.score-split-grid div {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.score-split-grid span,
.score-split-grid b {
  display: block;
}

.score-split-grid span {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-split-grid b {
  margin-top: 3px;
  color: var(--green-dark);
  font-size: 1.05rem;
}

.bar-chart,
.stack-list,
.insight-list,
.round-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 78px 1fr 58px;
  gap: 10px;
  align-items: center;
}

.track {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2ef;
}

.fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.range-row {
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.range-row-button {
  width: 100%;
  color: inherit;
  text-align: left;
}

.range-row-button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.range-row-button.is-open::after {
  transform: rotate(225deg);
}

.range-row:disabled {
  cursor: default;
}

.range-row strong {
  display: block;
}

.range-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.slide-panel {
  max-height: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 220ms ease, padding 220ms ease, opacity 180ms ease, transform 220ms ease, border-color 220ms ease;
}

.slide-panel.is-open {
  max-height: 360px;
  border-color: var(--line);
  padding: 12px;
  opacity: 1;
  transform: translateY(0);
}

.panel-toggle {
  width: 100%;
  color: inherit;
  background: transparent;
  text-align: left;
}

.panel-toggle::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(225deg);
  transition: transform 180ms ease;
}

.collapsible-panel.is-collapsed .panel-toggle::after {
  transform: rotate(45deg);
}

.collapsible-panel #reliabilityList {
  max-height: 980px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 240ms ease, opacity 180ms ease, margin-top 220ms ease;
}

.collapsible-panel.is-collapsed #reliabilityList {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
}

.compact-title {
  margin-bottom: 10px;
}

.detail-bar-row {
  grid-template-columns: 96px 1fr 76px;
}

.club-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scroll-snap-type: x mandatory;
}

.club-chip {
  flex: 0 0 auto;
  min-width: 94px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  scroll-snap-align: start;
}

.club-chip.is-active {
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.tendency-custom-select {
  margin-top: 2px;
}

.tendency-custom-select .custom-select-menu {
  max-height: 156px;
}

.single-club-rate {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.single-rate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.single-rate-card strong,
.single-rate-card span {
  display: block;
}

.single-rate-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.single-rate-card b {
  font-size: 1.45rem;
}

.compact-empty {
  padding: 12px;
}

.hex-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hex-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.hex-copy > strong {
  font-size: 1rem;
}

.hex-copy > span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.hex-stats span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #425249;
  background: var(--soft);
  font-size: 0.78rem;
}

.hex-stats strong {
  color: var(--green-dark);
}

.hex-stats .muted-chip {
  grid-column: 1 / -1;
  justify-content: center;
  color: var(--muted);
}

.tendency-card {
  margin-top: 2px;
}

.octagon-chart .hex-axis {
  stroke: rgba(30, 111, 79, 0.12);
}

.hex-chart {
  width: 128px;
  height: 128px;
  overflow: visible;
}

.hex-grid {
  fill: rgba(30, 111, 79, 0.035);
  stroke: rgba(30, 111, 79, 0.18);
  stroke-width: 1;
}

.hex-grid.outer {
  fill: rgba(30, 111, 79, 0.06);
  stroke: rgba(30, 111, 79, 0.35);
  stroke-width: 1.4;
}

.hex-axis {
  stroke: rgba(30, 111, 79, 0.16);
  stroke-width: 1;
}

.hex-value {
  fill: rgba(30, 111, 79, 0.34);
  stroke: var(--green-dark);
  stroke-linejoin: round;
  stroke-width: 2;
}

.hex-center {
  fill: var(--green-dark);
}

.hex-chart text {
  fill: #425249;
  font-size: 8px;
  font-weight: 900;
}

.recommendation {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 37, 29, 0.95), rgba(30, 111, 79, 0.86)),
    radial-gradient(circle at 85% 15%, rgba(216, 182, 109, 0.35), transparent 34%);
}

.recommendation .eyebrow {
  color: #bfe8d4;
}

.recommendation h3 {
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.recommendation p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

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

.insight-list li {
  padding: 13px;
  border-radius: 8px;
  background: var(--soft);
  line-height: 1.55;
}

.round-item {
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.round-score {
  display: grid;
  min-width: 64px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green-dark);
  font-weight: 900;
}

.round-meta {
  display: block;
  margin-top: 5px;
}

.empty-state {
  padding: 28px;
  text-align: center;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state span {
  margin-top: 8px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero-panel,
  .entry-grid,
  .dashboard-grid,
  .strategy-layout {
    grid-template-columns: 1fr;
  }

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

  .score-split-card {
    grid-column: 1 / -1;
  }

  .metric-group-card {
    grid-column: 1 / -1;
  }

  .hero-panel {
    padding: 24px;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

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

  .round-actions,
  .tabs {
    width: 100%;
  }

  .hero-panel {
    min-height: 470px;
    padding: 20px;
  }

  .field-grid,
  .conditional-fields,
  .metric-grid,
  .club-check-grid {
    grid-template-columns: 1fr;
  }

  .hex-card {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hex-copy {
    width: 100%;
  }

  .tabs {
    overflow-x: auto;
  }

  .tab {
    min-width: 94px;
  }

  .bar-row {
    grid-template-columns: 64px 1fr 48px;
  }

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

  .metric-mini-grid,
  .metric-mini-grid.two-up {
    grid-template-columns: 1fr;
  }
}
