[hidden] {
  display: none !important;
}
#sheet-gps-status {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--brass);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.gps-indicator {
  position: fixed;
  z-index: 65;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(86px + var(--safe-b));
  width: min(calc(100% - 32px), 528px);
  min-height: 50px;
  border: 1px solid var(--green-deep);
  border-radius: 14px;
  background: var(--brass);
  color: var(--ink);
  font-weight: 700;
  padding: 12px;
}
.gps-recording .primary-action {
  bottom: calc(145px + var(--safe-b));
}
.sheet-open .gps-indicator {
  display: none;
}
.bottom-nav {
  grid-template-columns: repeat(5, 1fr);
}
.next-outing {
  margin: 18px 20px 0;
  padding: 14px 0;
  width: calc(100% - 40px);
  border: 0;
  border-top: 1px solid #8cbe87;
  border-bottom: 1px solid #8cbe87;
  background: none;
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  min-height: 64px;
  font-size: 14px;
}
.next-outing span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.next-outing b {
  font-size: 18px;
}
.next-outing > span:last-child {
  max-width: 140px;
  flex-shrink: 0;
}
.next-outing svg {
  flex-shrink: 0;
}
#plan .section-head h1 {
  font-size: clamp(42px, 12vw, 64px);
  letter-spacing: -0.04em;
}
.plan-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 24px;
}
.plan-tools .save-button {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
}
.secondary-button {
  min-height: 48px;
  border: 1px solid #99aa99;
  border-radius: 12px;
  padding: 10px 14px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.secondary-button:hover {
  background: var(--paper-2);
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.calendar {
  margin: 24px -20px 0;
  padding: 16px 16px 22px;
  background: var(--green);
  color: var(--paper);
}
.calendar-head {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  margin-bottom: 12px;
}
.calendar-head h2 {
  text-align: center;
  font-size: 23px;
  letter-spacing: -0.025em;
  margin: 0;
}
.calendar-head button {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid #a6c69c;
  border-radius: 50%;
  color: inherit;
  font-size: 30px;
}
.calendar-week,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.calendar-week span {
  text-align: center;
  font-size: 13px;
  color: #e0ebdc;
  padding: 8px 0;
}
.calendar-days button {
  position: relative;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 18px;
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.calendar-days button:hover {
  background: #286a36;
}
.calendar-days .selected {
  background: var(--paper) !important;
  color: var(--ink);
}
.calendar-days .has-outing:after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
}
.calendar-days .selected.has-outing:after {
  background: var(--green);
}
#plan .form-heading h2 {
  font-size: 24px;
  margin: 12px 0 4px;
  letter-spacing: -0.025em;
}
.outing-list {
  border-top: 2px solid var(--ink);
}
.outing-row {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  padding: 20px 0;
  gap: 5px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #bec8b8;
  color: var(--ink);
}
.outing-row time {
  font-size: 14px;
  color: var(--muted);
}
.outing-row > b {
  font-size: 22px;
  letter-spacing: -0.025em;
}
.outing-row > span,
.player-names {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.player-names {
  color: var(--ink);
  margin-top: 6px;
}
#plan input,
.action-sheet input {
  min-width: 0;
}
input,
textarea {
  caret-color: var(--green-deep);
}
.action-sheet {
  scrollbar-color: var(--green) var(--paper-2);
}
.action-sheet h3 {
  font-size: 23px;
  margin: 30px 0 12px;
  letter-spacing: -0.025em;
}
.outing-status {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid #bac5b4;
  padding: 15px 0;
  font-size: 15px;
}
.group-note {
  font-size: 17px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.forecast-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  min-height: 74px;
  font-size: 15px;
  line-height: 1.5;
}
.forecast-strip > span {
  display: flex;
  flex-direction: column;
}
.forecast-strip small {
  color: var(--muted);
  font-size: 14px;
}
.forecast-strip svg {
  color: #276ba3;
  flex-shrink: 0;
}
.outing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.outing-actions > * {
  flex: 1 1 auto;
}
.outing-actions .save-button {
  flex-basis: 100%;
}
.participants {
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
  border-top: 1px solid #bac5b4;
}
.participants li {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #bac5b4;
  padding: 14px 0;
  min-height: 78px;
}
.participants li > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.participants b {
  display: block;
  overflow-wrap: anywhere;
}
.participants small {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 3px;
}
.participants .secondary-button {
  margin-left: auto;
}
.player-initial {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
}
.scoreboard {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid #bac5b4;
  margin-top: 14px;
  scrollbar-color: var(--green) var(--paper-2);
}
.scoreboard table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.scoreboard th,
.scoreboard td {
  text-align: center;
  padding: 12px 10px;
  min-width: 42px;
  border-bottom: 1px solid #d0d6c7;
}
.scoreboard th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--paper);
  text-align: left;
  min-width: 105px;
  max-width: 150px;
  overflow-wrap: anywhere;
  box-shadow: 3px 0 8px #0001;
}
.scoreboard thead th {
  font-size: 13px;
}
.shared-hole-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.shared-hole-grid label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper-2);
  border-radius: 14px;
  padding: 12px;
}
.shared-hole-grid label span {
  font-size: 15px;
  font-weight: 700;
}
.shared-hole-grid label small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.shared-hole-grid input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #9ead96;
  border-radius: 9px;
  background: #fffef6;
  color: var(--ink);
  text-align: center;
  font-size: 26px;
  font-weight: 700;
}
.location-fields {
  border: 0;
  padding: 0;
  margin: 14px 0 20px;
  min-width: 0;
}
.location-fields legend {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}
.search-place {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.search-place input {
  width: 100%;
  border: 1px solid #9ead96;
  background: #fffef6;
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}
.search-place button {
  flex-shrink: 0;
}
.place-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 62px;
  padding: 12px;
  background: var(--paper-2);
  border: 0;
  border-bottom: 1px solid #bac5b4;
  margin: 3px 0;
}
.place-result small {
  color: var(--muted);
}
.calendar-options,
.friend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  padding: 14px;
}
.track-section {
  margin-top: 30px;
  border-top: 2px solid var(--ink);
}
#track-live > strong {
  display: block;
  font-size: 42px;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
#track-live > span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.gps-route {
  display: block;
  width: 100%;
  height: 260px;
  background: var(--paper-2);
  margin: 14px 0;
  border-radius: 18px;
}
.gps-route polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gps-route circle {
  fill: var(--brass);
  stroke: var(--ink);
  stroke-width: 2;
}
.gps-route text {
  fill: var(--ink);
  stroke: none;
  font-size: 14px;
}
details {
  border-top: 1px solid #bac5b4;
  padding: 14px 0;
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.5;
}
details summary {
  min-height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
details p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.host-controls {
  margin-top: 30px;
}
.course-editor input {
  width: 68px;
  min-height: 48px;
  border: 1px solid #9ead96;
  border-radius: 8px;
  background: #fffef6;
  color: var(--ink);
  text-align: center;
  padding: 8px;
  font-size: 16px;
}
.course-editor thead input {
  width: 100px;
  font-weight: 600;
}
.course-editor th:first-child {
  min-width: 50px;
  max-width: 60px;
}
.course-editor small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.course-editor th,
.course-editor td {
  padding: 6px;
}
.saved-course {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #bac5b4;
  padding: 14px 0;
}
.saved-course > button:first-child {
  flex: 1;
  text-align: left;
  border: 0;
  background: transparent;
  min-height: 62px;
  padding: 4px;
  min-width: 0;
}
.saved-course b {
  display: block;
  font-size: 20px;
  overflow-wrap: anywhere;
}
.saved-course span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}
.uncertainties {
  padding: 14px 14px 14px 30px;
  background: var(--paper-2);
  font-size: 15px;
  line-height: 1.5;
  border-radius: 12px;
}
.form-error {
  text-align: left;
  align-items: stretch;
}
.form-error[hidden] {
  display: none;
}
.form-error button {
  min-height: 48px;
}
@media (max-width: 360px) {
  .calendar-days button {
    min-height: 44px;
  }
  .next-outing > span:last-child {
    max-width: 120px;
  }
  .shared-hole-grid {
    gap: 6px;
  }
  .shared-hole-grid label {
    padding: 9px;
  }
  .participants {
    font-size: 14px;
  }
  .sheet-title h2 {
    font-size: 30px;
  }
  .field-pair {
    grid-template-columns: 1fr;
  }
  .sheet-title {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .outing-row:hover {
    background: #eeeada66;
  }
  .calendar-days .selected {
    transition: background 0.15s ease-out;
  }
}
