:root {
  --bg: #e9f0e7;
  --panel: #fbfff9;
  --ink: #1b1f23;
  --muted: #5f6f66;
  --line: #cfdccb;
  --accent: #2f6f53;
  --accent-2: #b34d3e;
  --accent-3: #2f6fa3;
  --soft: #e0ecdf;
  --shadow: 0 18px 45px rgba(37, 69, 52, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(167, 196, 151, 0.28), transparent 34vw),
    linear-gradient(180deg, #eef5eb 0%, var(--bg) 46%, #dfeadd 100%);
  color: var(--ink);
  font-family: "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

.kana-input {
  ime-mode: active;
}

.save-error-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #c0392b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: none;
}
.save-error-banner:not([hidden]) {
  display: flex;
}
.save-error-banner span { flex: 1; }
.save-error-banner button {
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.save-error-banner button:hover { background: rgba(255,255,255,0.15); }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px clamp(14px, 3vw, 28px);
  border-bottom: 1px solid rgba(89, 122, 95, 0.28);
  background: rgba(251, 255, 249, 0.58);
  backdrop-filter: blur(10px);
}

.header-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.user-menu a {
  color: var(--accent);
  text-decoration: none;
}

.user-menu a:hover {
  text-decoration: underline;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 20px;
  font-weight: 760;
  white-space: nowrap;
}

h2 {
  font-size: 14px;
  white-space: nowrap;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.meta,
.panel-header p {
  color: var(--muted);
  font-size: 12px;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 10px clamp(14px, 3vw, 28px) 28px;
}

main {
  min-width: 0;
  padding: 0;
}

.club-view-active .app-shell {
  width: min(1600px, 100%);
  padding-right: clamp(8px, 1vw, 14px);
  padding-left: clamp(8px, 1vw, 14px);
}

.master-view-active {
  overflow: hidden;
}

.master-view-active .app-shell {
  height: calc(100vh - 54px);
  padding-bottom: 0;
}

.master-view-active main,
.master-view-active #courseMasterView,
.master-view-active .master-panel {
  min-height: 0;
}

.master-view-active #courseMasterView,
.master-view-active .master-panel {
  height: 100%;
}

.side-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-self: start;
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
}

.side-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(251, 255, 249, 0.94);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.side-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.side-tab.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.app-view[hidden] {
  display: none;
}

.master-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.master-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

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

.master-actions button,
.master-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.master-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

#updateCourseMaster,
#editCourseMaster {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.master-table {
  width: 100%;
  table-layout: fixed;
  font-size: 12px;
}

.master-table th,
.master-table td {
  height: 22px;
  padding: 1px 10px;
  line-height: 1.05;
  text-align: left;
  vertical-align: middle;
}

.master-table .sort-button {
  width: 100%;
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 760;
  text-align: inherit;
}

.master-table .sort-button:hover {
  color: var(--accent);
}

.master-table .master-select-col {
  width: 34px;
  text-align: center;
}

.master-table .master-no-col {
  width: 54px;
  text-align: center;
}

.master-table .master-jga-col {
  width: 70px;
  text-align: center;
}

.master-table .master-par-col {
  width: 70px;
  text-align: center;
}

.master-table .master-round-count-col {
  width: 92px;
  text-align: center;
}

.master-jga-badge,
.master-par-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dff0dc;
  color: var(--accent);
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.master-par-badge {
  background: #e7f4d6;
  color: #55751f;
}

.master-edit-input {
  width: 100%;
  height: 20px;
  min-height: 20px;
  padding: 0 8px;
  font-size: 12px;
}

.master-table {
  height: auto !important;
}

.master-table thead,
.master-table tbody,
.master-table tr {
  height: auto !important;
}

.master-table thead tr,
.master-table tbody tr {
  height: 22px !important;
}

.master-table th,
.master-table td {
  height: 22px !important;
  padding-top: 1px !important;
  padding-bottom: 1px !important;
}

.master-table input[type="checkbox"] {
  width: 13px;
  height: 13px;
  min-height: 0;
  padding: 0;
}

.master-table .master-edit-input {
  height: 20px !important;
  min-height: 20px !important;
}

.course-alias-panel,
.course-side-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

.course-alias-actions,
.course-side-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-alias-actions button,
.course-side-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

#updateCourseAlias,
#editCourseAlias,
#updateCourseSide,
#editCourseSide {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.course-alias-actions button:disabled,
.course-side-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.course-alias-wrap,
.course-side-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
}

.course-alias-table,
.course-side-table {
  width: 100%;
  table-layout: fixed;
  font-size: 12px;
  height: auto !important;
}

.course-alias-table th,
.course-alias-table td,
.course-side-table th,
.course-side-table td {
  height: 22px !important;
  padding: 1px 10px !important;
  line-height: 1.05 !important;
  text-align: left;
  vertical-align: middle;
}

.course-alias-table thead,
.course-alias-table tbody,
.course-side-table thead,
.course-side-table tbody {
  height: auto !important;
}

.course-alias-table thead tr,
.course-alias-table tbody tr,
.course-side-table thead tr,
.course-side-table tbody tr {
  height: 22px !important;
}

.course-alias-table thead th,
.course-side-table thead th {
  background: var(--accent);
  color: #fff;
  text-align: center;
}

.course-alias-table tbody tr:nth-child(odd),
.course-side-table tbody tr:nth-child(odd) {
  background: #eef7ea;
}

.course-alias-table tbody tr:nth-child(even),
.course-side-table tbody tr:nth-child(even) {
  background: #fbfff8;
}

.course-alias-table .course-alias-select-col,
.course-side-table .course-side-select-col {
  width: 46px;
  text-align: center;
}

.course-alias-table .course-alias-id-col,
.course-side-table .course-side-id-col {
  width: 90px;
}

.course-alias-table .course-alias-course-id-col,
.course-side-table .course-side-course-id-col,
.course-side-table .course-side-order-col {
  width: 90px;
}

.course-side-table .course-side-course-name-col {
  width: 220px;
}

.course-alias-table .course-alias-type-col,
.course-side-table .course-side-source-col {
  width: 140px;
}

.course-admin-loading-row {
  height: 44px !important;
  text-align: center !important;
  color: var(--muted);
  font-weight: 700;
}

.course-alias-edit-input,
.course-side-edit-input {
  width: 100%;
  height: 20px;
  min-height: 20px;
  padding: 0 8px;
  font-size: 12px;
}

.course-alias-table input[type="checkbox"],
.course-side-table input[type="checkbox"] {
  width: 13px;
  height: 13px;
  min-height: 0;
  padding: 0;
  margin: 0;
}

button,
select,
input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

button {
  padding: 0 14px;
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 4px 8px;
  margin-bottom: 3px;
}

.search-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  min-width: 0;
}

.search-filter-row button {
  min-width: 64px;
  padding: 0 10px;
  text-align: center;
  white-space: nowrap;
}

.input-panel {
  margin-bottom: 10px;
}

.round-form {
  display: grid;
  grid-template-columns: repeat(28, minmax(24px, 1fr));
  gap: 6px 8px;
  padding: 8px 12px 10px;
}

.round-form label {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.round-form .field-small {
  text-align: center;
}

.round-form .percent-field::after {
  content: "%";
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  z-index: 20;
  padding: 5px 8px;
  border-radius: 4px;
  background: #1b1f23;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.12s ease;
}

.round-form .percent-field:focus-within::after,
.round-form .percent-field:hover::after {
  opacity: 1;
}

.round-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

.field-small input {
  padding: 0 6px;
}

.round-form input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.round-form input[type="number"]::-webkit-inner-spin-button,
.round-form input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.round-form.view-mode input {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.round-form.view-mode .field-small input {
  text-align: center;
}

.round-form.view-mode input[readonly] {
  background: transparent;
  color: var(--ink);
}

.round-form.view-mode input:focus {
  outline: none;
}

.field-date,
.field-normal {
  grid-column: span 4;
}

.field-date {
  grid-column: span 3;
}

.field-course {
  grid-column: span 6;
}

.field-sub-course,
.field-tee-input,
.field-color-input,
.field-green-input {
  grid-column: span 3;
}

.field-jga-actions {
  display: flex;
  align-items: end;
  gap: 6px;
  grid-column: span 4;
}

.field-jga-actions button,
.field-jga-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.field-jga-actions button:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.field-color-input {
  grid-column: span 2;
}

.field-tee-input {
  grid-column: span 3;
}

.field-sub-course,
.field-green-input {
  grid-column: span 4;
}

.field-small {
  grid-column: span 2;
}

.field-score,
.field-yards,
.field-cr,
.field-sr,
.field-shots,
.field-putts,
.field-ob,
.field-fw,
.field-par-on,
.field-bogey-on,
.field-adjustment,
.field-adjusted-score,
.field-diff,
.field-hdcp {
  grid-column: span 2;
}

.field-yards {
  grid-column: 1 / span 2;
}

.round-form input[readonly] {
  background: var(--soft);
  color: var(--muted);
}

.round-form.view-mode input,
.round-form.view-mode input[readonly] {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}

.round-form.view-mode .percent-field::after {
  opacity: 0;
}

.round-form.view-mode .percent-field.has-percent-value::after {
  content: "%";
  top: 50%;
  right: 7px;
  left: auto;
  z-index: 1;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  opacity: 1;
  transform: translateY(4px);
}

.round-form.view-mode .field-small {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  min-height: 58px;
  height: 58px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  text-align: center;
}

.round-form.view-mode .field-small input,
.round-form.view-mode .field-small input[readonly] {
  min-height: 22px;
  padding: 0;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.round-form.view-mode .field-small.percent-field.has-percent-value::after {
  top: 50%;
  right: 7px;
  left: auto;
}

.form-actions {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  margin-top: 6px;
}

.form-actions button {
  min-height: 28px;
  padding: 0 10px;
}

.form-actions button:first-child,
.form-actions button[type="submit"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.confirm-dialog {
  width: min(360px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.confirm-dialog::backdrop {
  background: rgba(27, 31, 35, 0.22);
}

.confirm-dialog form {
  display: grid;
  gap: 16px;
  padding: 4px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.confirm-actions button:last-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.error {
  color: var(--accent-2) !important;
}

.round-load-error-row td {
  padding: 18px 12px;
  color: var(--accent-2);
  font-weight: 700;
  text-align: center;
  white-space: normal;
  background: #fff7f5;
}

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

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
}

.login-panel {
  display: grid;
  gap: 12px;
  width: min(360px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 255, 249, 0.96);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin-bottom: 4px;
}

.login-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.login-panel input {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
}

.login-panel .password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.login-panel .password-field input {
  padding-right: 42px;
}

.login-panel button {
  min-height: 34px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.login-panel button.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-height: 26px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
}

.login-panel button.password-toggle:hover,
.login-panel button.password-toggle:focus-visible {
  border-color: var(--accent);
  background: #fff;
  color: var(--accent);
}

.login-error {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}

.login-success {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.login-link {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

.filters label {
  position: relative;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.filters select,
.filters input {
  width: 100%;
  min-height: 30px;
  padding: 0 10px;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.search-suggestions button {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.search-suggestions button:last-child {
  border-bottom: 0;
}

.input-course-suggestions {
  top: calc(100% + 2px);
  font-size: 12px;
  white-space: normal;
}

.round-field-suggestions {
  top: calc(100% + 2px);
  font-size: 12px;
  white-space: normal;
}

.latest-round-meta {
  align-self: end;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.stats-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 15px;
  line-height: 1.1;
}

.stat {
  min-width: 0;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.stat .label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.stat .value {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 255, 249, 0.94);
  box-shadow: var(--shadow);
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
}

.round-detail-link {
  display: inline;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.round-detail-link:hover {
  color: var(--accent);
  background: transparent;
}

.score-detail-panel {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  font-size: 14px;
}

.round-work-view-active .input-panel,
.round-work-view-active .score-detail-panel,
.round-work-view-active .round-form,
.round-work-view-active .score-detail-section,
.round-work-view-active .score-detail-meta,
.round-work-view-active .score-detail-meta dl,
.round-work-view-active .score-detail-meta div,
.round-work-view-active .score-detail-meta dt,
.round-work-view-active .score-detail-meta dd,
.round-work-view-active .score-detail-memo,
.round-work-view-active .score-detail-memo textarea,
.round-work-view-active .score-detail-tables,
.round-work-view-active .score-table-wrap,
.round-work-view-active .score-detail-table,
.round-work-view-active .score-detail-table th,
.round-work-view-active .score-detail-table td {
  background: #fff;
}

.round-work-view-active .input-panel > .panel-header,
.round-work-view-active .score-detail-panel > .panel-header {
  border-bottom-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.round-work-view-active .input-panel > .panel-header h2,
.round-work-view-active .score-detail-panel > .panel-header h2 {
  color: inherit;
}

.round-work-view-active .input-panel > .panel-header p,
.round-work-view-active .score-detail-panel > .panel-header p {
  color: rgba(255, 255, 255, 0.9);
}

.score-detail-panel-header {
  align-items: flex-start;
}

.score-detail-panel-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.score-detail-actions button {
  min-width: 62px;
  min-height: 30px;
  padding: 0 14px;
  text-align: center;
}

#saveScoreDetail {
  border-color: #2e7d32;
  background: #2e7d32;
  color: #fff;
}

.score-detail-section {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.score-detail-section:last-child {
  border-bottom: 0;
}

.score-detail-section h3,
.score-side h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.score-detail-meta dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0 0 10px;
  border-top: 1px solid var(--line);
}

.score-detail-meta:empty {
  display: none;
}

.score-detail-meta div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.score-detail-meta dt,
.score-detail-meta dd {
  margin: 0;
  padding: 9px 10px;
}

.score-detail-meta dt {
  background: transparent;
  font-weight: 700;
}

.score-course-row dd {
  display: grid;
  gap: 10px;
}

.score-inline-select {
  display: grid;
  gap: 4px;
  font-weight: 700;
}

.score-inline-select select {
  width: 100%;
  height: 36px;
}

.score-detail-value {
  display: inline-block;
  min-height: 22px;
}

.score-detail-memo {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.score-detail-memo textarea {
  width: 100%;
  box-sizing: border-box;
  max-height: 220px;
  font-size: 14px;
  background: transparent;
  resize: vertical;
  overflow: auto;
}

.score-detail-memo textarea:disabled {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
  opacity: 1;
}

.score-detail-meta dt,
.score-detail-table th,
.score-detail-table td {
  background: transparent;
}

.score-detail-tables {
  display: grid;
  gap: 16px;
}

.score-side-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-course-name {
  min-width: 80px;
  max-width: 100%;
  color: var(--muted);
  font-weight: 700;
}

.score-course-select {
  width: min(220px, 100%);
  min-height: 30px;
  padding: 3px 8px;
  font-weight: 700;
}

.score-table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.score-detail-table {
  min-width: 720px;
  table-layout: fixed;
  font-size: 13px;
}

.score-detail-table th {
  font-weight: 800;
}

.score-detail-table thead th {
  border-top: 2px solid var(--line);
  background: #eaf5e8;
}

.score-detail-table thead th:first-child {
  background: #dcebd8;
}

.score-detail-table th,
.score-detail-table td {
  width: 58px;
  padding: 4px;
  text-align: center;
}

.score-detail-table th:first-child {
  width: 96px;
  text-align: left;
}

.score-detail-score-row th,
.score-detail-score-row td,
.score-detail-score-row .score-detail-total,
.score-detail-score-row .score-detail-cell-value,
.score-detail-score-row .score-detail-input {
  font-weight: 800;
}

.score-detail-input {
  width: 44px;
  height: 28px;
  box-sizing: border-box;
  padding: 3px;
  font-size: 13px;
  text-align: center;
}

.score-detail-cell-value {
  display: inline-block;
  box-sizing: border-box;
  min-width: 20px;
  min-height: 18px;
  line-height: 18px;
}

.score-result {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  line-height: 1;
  font-weight: 800;
  isolation: isolate;
}

.score-result-birdie,
.score-result-eagle {
  border: 2px solid #d23b36;
  border-radius: 999px;
}

.score-result-eagle {
  box-shadow: 0 0 0 2px #d23b36 inset;
}

.score-result-bogey {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  overflow: visible;
}

.score-result-bogey::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -2;
  width: 25px;
  height: 23px;
  background: #208c3f;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
  transform: translate(-50%, -52%);
}

.score-result-bogey::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 21px;
  height: 19px;
  background: #fbfff8;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  pointer-events: none;
  transform: translate(-50%, -47%);
}

.score-result-double {
  border: 2px solid #7db9de;
}

.score-result-triple {
  border: 3px double #315da8;
}

.tee-shot-input {
  width: 48px;
}

.tee-club-input {
  font-size: 11px;
}

.score-detail-total {
  font-weight: 800;
}

.settings-panel {
  max-width: 920px;
}

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

.settings-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 255, 249, 0.88);
}

.settings-card h3 {
  margin: 0;
  font-size: 13px;
}

.settings-info {
  display: grid;
  gap: 8px;
  margin: 0;
}

.settings-info div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
}

.settings-info dt,
.settings-form label,
.settings-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.settings-info dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}

.settings-form label {
  display: grid;
  gap: 4px;
}

.settings-form input {
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 0 10px;
}

.settings-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  height: 34px;
  min-height: 34px;
  min-width: 92px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  text-align: center;
  line-height: 1;
}

.mfa-setup-panel,
.mfa-disable-form {
  display: grid;
  gap: 8px;
}

.mfa-setup-panel[hidden],
.mfa-disable-form[hidden] {
  display: none;
}

.mfa-qr-code {
  display: grid;
  place-items: center;
  width: 196px;
  min-height: 196px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mfa-qr-code[hidden] {
  display: none;
}

.mfa-qr-code img,
.mfa-qr-code canvas,
.mfa-qr-code svg {
  width: 180px;
  height: 180px;
}

.table-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.table-check {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.table-check input {
  min-height: 0;
}

.summary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.summary-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-actions input {
  min-height: 0;
}

.summary-collapse-toggle {
  display: none;
}

.table-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 28px;
  padding: 0 8px;
  text-align: center;
  white-space: nowrap;
}

.table-tools input {
  width: 180px;
  min-height: 28px;
  padding: 0 8px;
}

.table-tools .table-check input[type="checkbox"] {
  width: 13px;
  height: 13px;
  min-height: 0;
  padding: 0;
}

.table-tools button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

canvas {
  display: block;
  width: 100%;
  height: 320px;
}

.ranking {
  display: grid;
  gap: 10px;
  padding: 14px 16px 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 52px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  font-weight: 760;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rank-count {
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bar {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.table-panel {
  margin-top: 8px;
}

.summary-panel {
  margin-bottom: 8px;
}

.club-compare-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
}

.cc-period-group,
.cc-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.cc-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.cc-sep {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.cc-sel {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  height: 32px;
  width: 115px;
  background: #fff;
}
.club-compare-inline button {
  font-size: 13px;
  padding: 0 14px;
  height: 32px;
  min-width: 62px;
  border-radius: 4px;
}
.cc-btn-compare {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cc-btn-compare:hover { opacity: 0.85; }

.club-compare-table td.num {
  font-weight: 700;
}

/* デスクトップ: テーブル表示 */
.club-compare-desktop { display: block; }
.club-compare-mobile.cc-palette-grid { display: none; }

/* スマホ: パレット表示 */
.cc-palette-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 12px;
}
.cc-palette-title {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 4px;
}
.cc-palette-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  min-width: 0;
}
.cc-palette-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
  text-align: center;
}
.cc-palette-value {
  font-size: 16px;
  font-weight: 700;
}
.cc-palette-diff {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 10px;
  font-weight: 700;
}
.club-compare-actions {
  display: flex;
  gap: 8px;
  padding: 8px 12px 12px;
}
.club-compare-actions button { min-width: 64px; }
.club-compare-warning {
  padding: 8px 12px;
  color: #c0392b;
  font-weight: 600;
  font-size: 13px;
}
.club-view-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}
.club-compare-panel {
  width: 100%;
}
.club-compare-table-wrap {
  padding: 0 12px 12px;
  overflow-x: auto;
}
.club-compare-table.summary-table td,
.club-compare-table.summary-table th { white-space: nowrap; }
.club-compare-period-label { font-size: 12px; min-width: 72px; }
.club-compare-row-diff td,
.club-compare-row-diff .club-compare-period-label { font-weight: 700; background: var(--soft); }
.club-compare-good { color: #2e7d32; }
.club-compare-bad  { color: #c0392b; }

.club-panel {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  min-height: calc(100vh - 150px);
}

.club-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.club-year-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.club-year-tab {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.club-year-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.club-actions,
.club-setting-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 6px;
}

.club-actions button,
.club-setting-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  text-align: center;
  white-space: nowrap;
}

.club-settings {
  display: grid;
  gap: 8px;
  align-items: start;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px;
  overflow-x: auto;
  overflow-y: visible;
}

.club-setting {
  overflow: hidden;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 255, 249, 0.9);
}

.club-setting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
}

.club-date-input {
  width: 150px;
  min-height: 28px;
  font-weight: 700;
}

.club-setting-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 5px 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.club-setting-stats-empty {
  color: var(--muted);
  font-size: 11px;
}
.club-stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.club-stat-label {
  color: var(--muted);
  font-size: 11px;
}
.club-stat-item strong {
  font-weight: 700;
  font-size: 12px;
}

.club-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: none;
  overflow: auto;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
}

.club-table {
  width: max-content;
  min-width: 100%;
  font-size: 11px;
  line-height: 1.15;
  table-layout: fixed;
}

.club-table .club-field-label {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  background: var(--accent);
  color: #fff;
  text-align: left;
}

.club-table th,
.club-table td {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  padding: 1px 3px;
  white-space: nowrap;
}

.club-table td {
  background: #fff;
}

.club-table tr:first-child .club-field-label,
.club-table tr:first-child td {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.club-input {
  width: 100%;
  min-height: 23px;
  padding: 1px 3px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.club-value {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 23px;
  padding: 1px 3px;
  overflow: hidden;
  background: transparent;
  color: inherit;
  font-size: 11px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

select.club-input {
  text-align: center;
  text-align-last: center;
}

.club-table tr:nth-child(n + 8):nth-child(-n + 13) .club-value {
  justify-content: flex-end;
  text-align: right;
}

.club-table tr:nth-child(14) .club-value {
  justify-content: center;
}

.club-table tr:nth-child(-n + 7) .club-input {
  text-align: center;
}

.club-table tr:nth-child(n + 8):nth-child(-n + 13) .club-input {
  text-align: right;
}

.club-table tr:nth-child(14) .club-input {
  text-align: center;
}

.club-table tr:first-child .club-input {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-weight: 800;
}

.club-calculated {
  background: var(--soft);
  color: var(--muted);
}

.club-calculated-value {
  color: var(--muted);
}

.club-view-input {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.club-table tr:first-child .club-view-input {
  border-color: transparent;
  background: transparent;
  color: #fff;
}

.club-changed-value,
.club-changed-input {
  font-weight: 700;
}

.club-mobile-summary {
  display: none;
}

.empty-club-year {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-weight: 700;
}

.table-wrap {
  max-height: 560px;
  overflow: auto;
  touch-action: pan-x pan-y;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.table-panel .table-wrap {
  max-height: none;
}

.summary-wrap {
  max-height: none;
  overflow: visible;
}

.summary-total-palette {
  display: none;
}

.round-table {
  width: 100%;
  min-width: 1260px;
  font-size: 12px;
  table-layout: fixed;
}

.round-table th {
  background: var(--accent);
  color: #fff;
}

.round-table thead th {
  background: var(--accent);
  color: #fff;
}

.round-table thead th:nth-child(6),
.round-table thead th:nth-child(9) {
  border-right: 0 !important;
  border-left: 0 !important;
  box-shadow: none !important;
}

.summary-table {
  font-size: 12px;
  table-layout: fixed;
}

.summary-table .summary-hdcp-col {
  min-width: 62px;
  white-space: nowrap;
}

.summary-table th,
.summary-table td {
  min-width: 54px;
  white-space: nowrap;
}

.summary-table th:nth-child(2),
.summary-table td:nth-child(2),
.summary-table th:nth-child(6),
.summary-table td:nth-child(6),
.summary-table th:nth-child(7),
.summary-table td:nth-child(7),
.summary-table th:nth-child(8),
.summary-table td:nth-child(8) {
  min-width: 68px;
}

.round-table th,
.round-table td {
  padding-left: 3px;
  padding-right: 3px;
  text-align: center;
}

.round-table .course-col {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.round-table .sub-course-col {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.round-table .tee-col {
  width: 96px;
  text-align: left;
  white-space: nowrap;
}

.round-table .green-col {
  width: 64px;
  text-align: left;
  white-space: nowrap;
}

.round-table .ob-col {
  width: 32px;
}

.round-table .metric-col {
  width: 52px;
  white-space: normal;
}

.round-table .adjusted-score-col {
  width: 48px;
  max-width: 48px;
  white-space: normal;
}

.round-table td.num {
  text-align: center;
}

.mobile-round-info {
  display: none;
}

.round-table th:nth-child(1),
.round-table td:nth-child(1) {
  width: 74px;
}

.round-table th:nth-child(6),
.round-table td:nth-child(6) {
  width: 46px;
}

.round-table th:nth-child(7),
.round-table td:nth-child(7) {
  width: 54px;
}

.round-table th:nth-child(8),
.round-table td:nth-child(8) {
  width: 46px;
}

.round-table th:nth-child(13),
.round-table td:nth-child(13) {
  width: 54px;
}

.round-table th:nth-child(14),
.round-table td:nth-child(14) {
  width: 40px;
}

.round-table th:nth-child(15),
.round-table td:nth-child(15),
.round-table th:nth-child(16),
.round-table td:nth-child(16) {
  width: 38px;
}

.round-table th:nth-child(18),
.round-table td:nth-child(18),
.round-table th:nth-child(19),
.round-table td:nth-child(19) {
  width: 46px;
}

.summary-table th,
.summary-table td {
  text-align: center;
}

.summary-table td.num {
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.summary-table th,
.summary-table td,
.round-table th,
.round-table td {
  height: 20px;
  padding-top: 2px;
  padding-bottom: 2px;
  line-height: 1.05;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e4efe0;
  color: #33433b;
  font-size: 12px;
}

.summary-table thead th,
.round-table thead th,
.master-table thead th {
  background: var(--accent);
  color: #fff;
}

.master-table thead th,
.master-table thead .sort-button {
  text-align: center;
}

.has-tooltip {
  position: relative;
  cursor: help;
}

.summary-table th.has-tooltip {
  position: sticky;
}

.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  z-index: 10;
  min-width: max-content;
  padding: 5px 8px;
  border-radius: 4px;
  background: #1b1f23;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.12s ease;
}

.has-tooltip:hover::after {
  opacity: 1;
}

.sort-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
}

.sort-button:hover {
  color: var(--accent);
}

td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.summary-table tbody tr:nth-child(odd),
.round-table tbody tr:nth-child(odd),
.master-table tbody tr:nth-child(odd) {
  background: #eef7ea;
}

.summary-table tbody tr:nth-child(even),
.round-table tbody tr:nth-child(even),
.master-table tbody tr:nth-child(even) {
  background: #fbfff8;
}

.summary-table tbody tr.summary-muted-row {
  background: #eeeeee;
}

.summary-table tbody tr.summary-total-row {
  background: #dfeedd;
  font-weight: 800;
}

.summary-table tbody tr.summary-recent-row {
  background: #edf6f0;
  font-weight: 800;
}

.manual-row {
  background: inherit;
}

.source-badge {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .app-header {
    align-items: center;
    flex-direction: row;
    padding: 6px 14px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    padding-top: 8px;
  }

  .side-menu {
    position: static;
    flex-wrap: nowrap;
    flex-direction: row;
    overflow-x: auto;
  }

  .side-tab {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 9px;
  }

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

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

  .filter-year {
    grid-column: span 1;
  }

  .filter-course {
    grid-column: span 3;
  }

  .filter-search,
  .latest-round-meta {
    grid-column: 1 / -1;
  }

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

  .summary-wrap {
    max-width: 100%;
    max-height: none;
    overflow: visible;
    touch-action: pan-x pan-y;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .summary-total-palette {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    min-width: 0;
    margin-bottom: 6px;
  }

  .summary-actions {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
  }

  .summary-actions label {
    display: none;
  }

  .summary-collapse-toggle {
    display: inline-grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    min-height: 30px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--accent);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
  }

  .summary-collapse-toggle:hover,
  .summary-collapse-toggle:focus-visible {
    border-color: var(--accent);
    background: #fff;
    color: var(--accent);
  }

  .summary-panel.summary-collapsed .summary-wrap {
    display: none;
  }

  .summary-palette-item {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 5px 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: center;
  }

  .summary-palette-item span {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .summary-palette-item strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .summary-table {
    display: none;
  }

  .summary-table th:first-child,
  .summary-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    background: inherit;
    box-shadow: 1px 0 0 var(--line);
  }

  .summary-table th:first-child {
    z-index: 4;
    background: var(--accent);
    color: #fff;
  }

  .summary-table th,
  .summary-table td {
    min-width: 64px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .club-panel {
    align-self: stretch;
    width: 100%;
    min-height: auto;
  }

  .club-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .club-year-tabs {
    gap: 3px;
  }

  .club-year-tab {
    min-height: 24px;
    padding: 0 7px;
  }

  .club-settings {
    width: 100%;
    padding: 6px;
    overflow: visible;
  }

  .club-setting {
    justify-self: stretch;
    width: 100%;
  }

  .club-setting-header {
    align-items: center;
    flex-direction: row;
    gap: 4px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .club-date-input {
    width: 132px;
  }

  .club-setting-actions {
    justify-content: flex-end;
    gap: 4px;
  }

  .club-setting-actions button {
    min-height: 28px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .club-table {
    display: none;
  }

  .club-table-wrap {
    width: 100%;
    display: none;
  }

  .club-compare-desktop { display: none; }
  .club-compare-mobile.cc-palette-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
  }
  .cc-palette-item {
    min-height: 54px;
    padding: 5px 6px 14px;
    border-radius: 8px;
  }
  .cc-palette-label {
    overflow: hidden;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cc-palette-value {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cc-palette-diff {
    bottom: 3px;
    right: 6px;
    font-size: 9px;
  }
  .club-compare-inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
  }
  .cc-period-group {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto minmax(0, 1fr);
    grid-column: 1 / -1;
    width: 100%;
  }
  .cc-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .cc-sel { width: 100%; font-size: 12px; }

  .club-mobile-summary {
    display: grid;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .club-mobile-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 34px;
    border-bottom: 1px solid var(--line);
    background: #fbfff8;
  }

  .club-mobile-row:nth-child(odd) {
    background: #eef7ea;
  }

  .club-mobile-row:last-child {
    border-bottom: 0;
  }

  .club-mobile-row.club-mobile-changed {
    background: #fde8ef;
  }

  .club-mobile-detail,
  .club-mobile-type {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 6px 8px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .club-mobile-detail {
    justify-content: flex-start;
  }

  .club-mobile-type {
    justify-content: center;
    border-right: 1px solid var(--line);
    background: var(--accent);
    color: #fff;
  }

  .club-table th,
  .club-table td {
    width: 76px;
    min-width: 76px;
    max-width: 76px;
    padding: 1px 2px;
  }

  .club-table .club-field-label {
    width: 104px;
    min-width: 104px;
    max-width: 104px;
  }

  .field-date,
  .field-normal,
  .field-course,
  .field-small,
  .score-start {
    grid-column: auto;
  }

  .field-date,
  .field-normal,
  .field-course {
    grid-column: 1 / -1;
  }

  .field-date {
    grid-column: 1 / 3;
  }

  .field-course {
    grid-column: 3 / -1;
  }

  .field-jga-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .field-sub-course {
    grid-column: 1;
  }

  .field-tee-input {
    grid-column: 2;
  }

  .field-color-input {
    grid-column: 3;
  }

  .field-green-input {
    grid-column: 4;
  }

  .score-start {
    grid-column-start: 1;
  }

  .field-yards {
    grid-column: 1;
  }

  .field-cr {
    grid-column: 2;
  }

  .field-sr {
    grid-column: 3;
  }

  .field-score {
    grid-column: 1;
  }

  .field-shots {
    grid-column: 2;
  }

  .field-putts {
    grid-column: 3;
  }

  .field-ob {
    grid-column: 4;
  }

  .field-fw {
    grid-column: 1;
  }

  .field-par-on {
    grid-column: 2;
  }

  .field-bogey-on {
    grid-column: 3;
  }

  .field-adjustment {
    grid-column: 4;
  }

  .field-adjusted-score {
    grid-column: 1;
  }

  .field-diff {
    grid-column: 2;
  }

  .field-hdcp {
    grid-column: 3;
  }

  .round-form.view-mode .field-small {
    height: 58px;
    min-height: 58px;
    padding: 6px 7px;
  }

  .round-form.view-mode .field-small input,
  .round-form.view-mode .field-small input[readonly] {
    min-height: 20px;
    font-size: 13px;
    line-height: 1.1;
  }

  .round-form.view-mode .field-small.percent-field.has-percent-value::after {
    top: 50%;
    right: 6px;
    left: auto;
    font-size: 13px;
  }

  .score-detail-actions {
    gap: 6px;
  }

  .score-detail-actions button {
    min-width: 58px;
    min-height: 30px;
    padding: 0 12px;
  }

  .score-detail-section {
    padding: 8px 6px;
  }

  .score-detail-tables {
    gap: 10px;
  }

  .score-side-title {
    gap: 6px;
  }

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

  .score-detail-table {
    width: 100%;
    min-width: 0;
    font-size: 11px;
  }

  .score-detail-table th,
  .score-detail-table td {
    width: auto;
    padding: 2px 1px;
  }

  .score-detail-table th:first-child {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    font-size: 11px;
    white-space: nowrap;
  }

  .score-detail-input {
    width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 1px;
    font-size: 12px;
  }

  .tee-shot-input {
    width: 30px;
    font-size: 11px;
  }

  .tee-club-input {
    width: 30px;
    font-size: 10px;
  }

  .score-detail-total {
    width: 28px;
    min-width: 28px;
  }

  canvas {
    height: 280px;
  }
}

@media (max-width: 900px) {
  .round-table th:nth-child(1),
  .round-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 2;
    background: inherit;
  }

  .round-table th:nth-child(1) {
    z-index: 4;
    background: var(--accent);
    color: #fff;
  }

  .round-table .course-col {
    position: sticky;
    left: 74px;
    z-index: 2;
    background: inherit;
  }

  .round-table th.course-col {
    z-index: 4;
    background: var(--accent);
    color: #fff;
  }
}

@media (max-width: 640px) {
  h2 {
    font-size: 13px;
  }

  .master-panel .panel-header {
    align-items: start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .master-panel .panel-header h2 {
    flex: 1 1 auto;
    min-width: 150px;
  }

  .master-actions {
    display: grid;
    grid-template-columns: auto repeat(4, minmax(56px, 1fr));
    gap: 6px;
    width: 100%;
  }

  .master-actions p {
    align-self: center;
    margin: 0;
    white-space: nowrap;
  }

  .master-actions button,
  .master-actions a {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 6px;
    font-size: 13px;
    line-height: 1.1;
    text-align: center;
  }

  .settings-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .settings-info div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .filters {
    align-items: end;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
    gap: 2px 8px;
    margin-bottom: 1px;
  }

  .filter-year,
  .filter-course,
  .filter-search {
    grid-column: auto;
    grid-template-rows: 16px 40px;
    gap: 1px;
    line-height: 1.1;
  }

  .filter-search {
    grid-column: 1 / -1;
  }

  .filters select,
  .filters input {
    height: 40px;
    min-height: 40px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 700;
  }

  .search-filter-row {
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 6px;
  }

  .search-filter-row button {
    height: 40px;
    min-height: 40px;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 700;
  }

  .search-suggestions {
    top: calc(100% + 6px);
    max-height: 220px;
  }

  .input-course-suggestions,
  .round-field-suggestions {
    max-height: min(52vh, 320px);
    z-index: 80;
  }

  .search-suggestions button {
    min-height: 44px;
    font-size: 15px;
    font-weight: 700;
  }

  .round-form {
    grid-template-columns: minmax(118px, 0.8fr) repeat(3, minmax(0, 1fr));
    gap: 5px 8px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .round-form.view-mode {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .field-date {
    grid-column: 1 / span 2;
    max-width: 180px;
  }

  .field-course {
    grid-column: 1 / -1;
  }

  .field-date input {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 14px;
    text-align: center;
  }

  .round-form.view-mode .field-small {
    height: 64px;
    min-height: 64px;
    padding: 7px 5px;
    border-radius: 8px;
    line-height: 1.1;
  }

  .round-form.view-mode .field-small input,
  .round-form.view-mode .field-small input[readonly] {
    min-height: 22px;
    font-size: 14px;
  }

  .round-form.view-mode .field-small.percent-field.has-percent-value::after {
    top: 50%;
    right: 6px;
    left: auto;
    font-size: 14px;
  }

  .table-panel .panel-header {
    align-items: center;
    gap: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .table-tools {
    align-items: stretch;
    width: 100%;
  }

  .table-panel .table-wrap {
    overflow: auto;
    touch-action: pan-x pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .round-table {
    width: max-content;
    min-width: 1324px;
    table-layout: fixed;
  }

  .round-table th:nth-child(1),
  .round-table td:nth-child(1) {
    width: 154px;
    min-width: 154px;
    max-width: 154px;
    left: 0;
    text-align: left;
  }

  .round-table th:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 7;
    background: var(--accent) !important;
    color: #fff;
  }

  .round-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fbfff8;
    box-shadow: 1px 0 0 var(--line);
  }

  .round-table tbody tr:nth-child(odd) td:nth-child(1) {
    background: #eef7ea;
  }

  .round-table tbody tr:nth-child(even) td:nth-child(1) {
    background: #fbfff8;
  }

  .round-table th:nth-child(1) .sort-button {
    font-size: 0;
  }

  .round-table th:nth-child(1) .sort-button::before {
    content: "日付/ゴルフ場";
    font-size: 13px;
  }

  .round-table .course-col,
  .round-table .sub-course-col,
  .round-table .tee-col,
  .round-table .green-col {
    display: none;
  }

  .round-table .desktop-date {
    display: none;
  }

  .round-table .mobile-round-info {
    display: grid;
    gap: 5px;
    min-height: 70px;
    align-content: center;
    padding-right: 0;
    position: relative;
  }

  .round-table .mobile-round-info::after {
    content: none;
    display: none !important;
    border: 0 !important;
  }

  .round-table .mobile-round-date,
  .round-table .mobile-round-meta {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .round-table .mobile-round-course {
    display: block;
    max-width: 10em;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .round-table th,
  .round-table td {
    box-sizing: border-box;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 6px;
    padding-right: 6px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .round-table td.num {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: clip;
  }

  .round-table th:nth-child(6),
  .round-table td:nth-child(6),
  .round-table th:nth-child(7),
  .round-table td:nth-child(7),
  .round-table th:nth-child(8),
  .round-table td:nth-child(8) {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
  }

  .round-table th:nth-child(9),
  .round-table td:nth-child(9) {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
  }

  .round-table th:nth-child(10),
  .round-table td:nth-child(10),
  .round-table th:nth-child(11),
  .round-table td:nth-child(11),
  .round-table th:nth-child(12),
  .round-table td:nth-child(12) {
    width: 88px;
    min-width: 88px;
    max-width: 88px;
    white-space: normal;
  }

  .round-table th:nth-child(13),
  .round-table td:nth-child(13) {
    width: 88px;
    min-width: 88px;
    max-width: 88px;
  }

  .round-table th:nth-child(14),
  .round-table td:nth-child(14),
  .round-table th:nth-child(15),
  .round-table td:nth-child(15),
  .round-table th:nth-child(16),
  .round-table td:nth-child(16),
  .round-table th:nth-child(18),
  .round-table td:nth-child(18),
  .round-table th:nth-child(19),
  .round-table td:nth-child(19) {
    width: 64px;
    min-width: 64px;
    max-width: 64px;
  }

  .round-table th:nth-child(17),
  .round-table td:nth-child(17) {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
  }

  .round-table th,
  .round-table thead th {
    background: var(--accent) !important;
    color: #fff;
    font-size: 13px;
  }

  .round-table th:nth-child(1),
  .round-table th.course-col {
    background: var(--accent) !important;
    color: #fff;
  }
}

/* Master view: make only the table body area consume the remaining viewport height. */
body.master-view-active {
  height: 100vh;
  overflow: hidden;
}

.master-view-active .app-shell {
  height: calc(100vh - 74px);
  box-sizing: border-box;
  overflow: hidden;
  padding-bottom: 20px;
}

.master-view-active main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.master-view-active #courseMasterView {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.master-view-active .master-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.master-view-active .master-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
  box-sizing: border-box;
  padding-bottom: 20px;
  overflow-x: auto;
  overflow-y: auto;
}

.master-view-active .master-table {
  height: auto !important;
  table-layout: fixed;
}

.master-view-active .master-table thead,
.master-view-active .master-table tbody,
.master-view-active .master-table tr {
  height: auto !important;
}

.master-view-active .master-table th,
.master-view-active .master-table td {
  height: 22px !important;
  padding-top: 1px !important;
  padding-bottom: 1px !important;
  line-height: 1.05 !important;
  vertical-align: middle;
}

.master-view-active .master-edit-input {
  height: 20px !important;
  min-height: 20px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Course alias view: match the master screen's dense table viewport behavior. */
body.course-alias-view-active,
body.course-side-view-active {
  height: 100vh;
  overflow: hidden;
}

.course-alias-view-active .app-shell,
.course-side-view-active .app-shell {
  height: calc(100vh - 74px);
  box-sizing: border-box;
  overflow: hidden;
  padding-bottom: 20px;
}

.course-alias-view-active main,
.course-side-view-active main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.course-alias-view-active #courseAliasesView,
.course-side-view-active #courseSidesView {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.course-alias-view-active .course-alias-panel,
.course-side-view-active .course-side-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.course-alias-view-active .course-alias-wrap,
.course-side-view-active .course-side-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
  box-sizing: border-box;
  padding-bottom: 20px;
  overflow-x: auto;
  overflow-y: auto;
}

.course-alias-view-active .course-alias-table,
.course-side-view-active .course-side-table {
  height: auto !important;
  table-layout: fixed;
}

.course-alias-view-active .course-alias-table thead,
.course-alias-view-active .course-alias-table tbody,
.course-side-view-active .course-side-table thead,
.course-side-view-active .course-side-table tbody {
  height: auto !important;
}

.course-alias-view-active .course-alias-table thead tr,
.course-alias-view-active .course-alias-table tbody tr,
.course-side-view-active .course-side-table thead tr,
.course-side-view-active .course-side-table tbody tr {
  height: 22px !important;
}

.course-alias-view-active .course-alias-table th,
.course-alias-view-active .course-alias-table td,
.course-side-view-active .course-side-table th,
.course-side-view-active .course-side-table td {
  height: 22px !important;
  padding: 1px 10px !important;
  line-height: 1.05 !important;
  vertical-align: middle;
}

.course-alias-view-active .course-alias-edit-input,
.course-side-view-active .course-side-edit-input {
  height: 20px !important;
  min-height: 20px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 640px) {
  .course-alias-panel .panel-header,
  .course-side-panel .panel-header {
    align-items: start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .course-alias-panel .panel-header h2,
  .course-side-panel .panel-header h2 {
    flex: 1 1 auto;
    min-width: 150px;
  }

  .course-alias-actions,
  .course-side-actions {
    display: grid;
    grid-template-columns: auto repeat(4, minmax(48px, 1fr));
    gap: 6px;
    width: 100%;
  }

  .course-alias-actions p,
  .course-side-actions p {
    align-self: center;
    margin: 0;
    white-space: nowrap;
  }

  .course-alias-actions button,
  .course-side-actions button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 6px;
    font-size: 12px;
    line-height: 1.1;
  }

  .course-alias-table,
  .course-side-table {
    min-width: 860px;
  }

  .master-view-active .master-table {
    min-width: 0;
    table-layout: auto;
  }

  .master-view-active .master-table thead,
  .master-view-active .master-table tbody {
    display: block;
  }

  .master-view-active .master-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
  }

  .master-view-active .master-table thead tr,
  .master-view-active .master-table tbody tr {
    display: grid;
    grid-template-columns: 26px 34px 50px 50px minmax(0, 1fr) 58px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    height: auto !important;
  }

  .master-view-active .master-table tbody tr {
    border-bottom: 1px solid var(--line);
  }

  .master-view-active .master-table th,
  .master-view-active .master-table td {
    display: block;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-width: 0;
    padding: 5px 6px !important;
    overflow: hidden;
    line-height: 1.25 !important;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .master-view-active .master-table .master-select-col,
  .master-view-active .master-table .master-no-col,
  .master-view-active .master-table .master-jga-col,
  .master-view-active .master-table .master-par-col,
  .master-view-active .master-table .master-round-count-col {
    width: auto !important;
    max-width: none !important;
  }

  .master-view-active .master-table tbody td {
    border-bottom: 0 !important;
  }

  .master-view-active .master-table thead tr {
    background: var(--accent);
  }

  .master-view-active .master-table thead th {
    position: static;
    border-bottom: 0 !important;
    background: var(--accent) !important;
    color: #fff !important;
  }

  .master-view-active .master-table thead .sort-button {
    border: 0 !important;
    box-shadow: none !important;
  }

  .master-view-active .master-table th:nth-child(6) {
    display: none;
  }

  .master-view-active .master-table td:nth-child(1),
  .master-view-active .master-table td:nth-child(2),
  .master-view-active .master-table td:nth-child(3),
  .master-view-active .master-table td:nth-child(4),
  .master-view-active .master-table td:nth-child(7) {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .master-view-active .master-table td:nth-child(1),
  .master-view-active .master-table td:nth-child(2),
  .master-view-active .master-table td:nth-child(3),
  .master-view-active .master-table td:nth-child(4) {
    grid-row: span 2;
  }

  .master-view-active .master-table th:nth-child(1),
  .master-view-active .master-table td:nth-child(1) {
    grid-column: 1;
  }

  .master-view-active .master-table th:nth-child(2),
  .master-view-active .master-table td:nth-child(2) {
    grid-column: 2;
  }

  .master-view-active .master-table th:nth-child(3),
  .master-view-active .master-table td:nth-child(3) {
    grid-column: 3;
  }

  .master-view-active .master-table th:nth-child(4),
  .master-view-active .master-table td:nth-child(4) {
    grid-column: 4;
  }

  .master-view-active .master-table th:nth-child(5),
  .master-view-active .master-table td:nth-child(5) {
    grid-column: 5;
  }

  .master-view-active .master-table th:nth-child(6),
  .master-view-active .master-table td:nth-child(6) {
    grid-column: 5;
  }

  .master-view-active .master-table th:nth-child(7),
  .master-view-active .master-table td:nth-child(7) {
    grid-column: 6;
  }

  .master-view-active .master-table th:nth-child(7) {
    white-space: normal;
    line-height: 1.15 !important;
    word-break: keep-all;
  }

  .master-view-active .master-table th:nth-child(7) .sort-button {
    font-size: 0;
    line-height: 1.05;
  }

  .master-view-active .master-table th:nth-child(7) .sort-button::before {
    content: "ラウンド\A回数";
    white-space: pre;
    font-size: 11px;
    line-height: 1.05;
  }

  .master-view-active .master-table td:nth-child(6) {
    border-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 3px !important;
  }

  .master-view-active .master-table td:nth-child(5) {
    border-bottom: 0 !important;
    padding-bottom: 2px !important;
  }

  .master-view-active .master-table td:nth-child(5),
  .master-view-active .master-table td:nth-child(7) {
    font-size: 13px;
    font-weight: 760;
  }

  .master-view-active .master-table td:nth-child(7) {
    align-self: stretch;
    grid-row: span 2;
  }

  .master-view-active .master-table .master-jga-badge,
  .master-view-active .master-table .master-par-badge {
    min-width: 0;
    width: 100%;
    padding: 0 3px;
    font-size: 9px;
  }

  .master-view-active .master-table .master-edit-input {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 8px !important;
    font-size: 12px;
  }
}

.summary-table th:first-child,
.summary-table td:first-child,
.round-table th:nth-child(1),
.round-table td:nth-child(1),
.round-table .course-col,
.round-table th.course-col {
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}
