@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  font-family: "DM Sans", sans-serif;
  color: #18352e;
  background: #f5f7f3;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --forest: #123b32;
  --forest-light: #1b5548;
  --mint: #dceee4;
  --ink: #18352e;
  --muted: #788782;
  --paper: #fff;
  --line: #e8eeea;
  --gold: #e8cb83;
  --club-primary: #123b32;
  --club-accent: #1b5548;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6eee9;
  --muted: #aab9b1;
  --paper: #202b26;
  --line: #39463f;
  color: var(--ink);
  background: #141b17;
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .app-shell {
  color: var(--ink);
  background: #141b17;
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .bottom-nav,
:root[data-theme="dark"] .empty-card,
:root[data-theme="dark"] .event-card,
:root[data-theme="dark"] .score-card,
:root[data-theme="dark"] .profile-panel,
:root[data-theme="dark"] .more-menu,
:root[data-theme="dark"] .ngf-modal,
:root[data-theme="dark"] .login-card,
:root[data-theme="dark"] .settings-section {
  color: var(--ink);
  background: #202b26;
  border-color: var(--line);
}

:root[data-theme="dark"] .login-shell {
  background:
    radial-gradient(ellipse at 85% 15%, #263a31 0, transparent 40%),
    linear-gradient(145deg, #141b17, #1b2520);
}

:root[data-theme="dark"] .login-card h1 {
  color: #f0f5f2;
}

:root[data-theme="dark"] .login-card .eyebrow,
:root[data-theme="dark"] .login-form > label:not(.remember),
:root[data-theme="dark"] .remember,
:root[data-theme="dark"] .login-help {
  color: #bdcbc3;
}

:root[data-theme="dark"] .login-local-hint {
  background: #293b31;
  color: #d6e3db;
  border-left-color: #7caa8c;
}

:root[data-theme="dark"] .login-form > input,
:root[data-theme="dark"] .settings-form > input {
  color: var(--ink);
  background: #18211c;
  border-color: var(--line);
}

:root[data-theme="dark"] .profile-panel dt,
:root[data-theme="dark"] .event-copy p,
:root[data-theme="dark"] .score-copy p {
  color: var(--muted);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

[v-cloak] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

.topbar {
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1080px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.layout-topbar {
  width: 100%;
}

.layout-topbar .club-logo {
  max-height: 54px;
}

.layout-top-navigation {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 30px);
  margin-left: auto;
  margin-right: 20px;
}

.layout-top-navigation a {
  color: #466259;
  font-size: 14px;
  font-weight: 700;
}

.layout-top-navigation a:hover {
  color: var(--club-primary);
}

.layout-logout {
  margin: 0;
}

.page-back-link {
  margin: 0 0 12px;
}

.club-brand,
.page-brand,
.top-actions {
  display: flex;
  align-items: center;
}

.club-brand {
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--club-primary);
  color: #f4e6b8;
  display: grid;
  place-items: center;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -1px;
  box-shadow: 0 6px 14px #123b3221;
}

.brand-mark-large {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 18px;
}

.club-logo {
  width: 130px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 14px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small,
.card-label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: #85928b;
}

.top-actions {
  gap: 8px;
}

.icon-button,
.back-link {
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #466259;
  cursor: pointer;
  position: relative;
}

.icon-button:hover,
.back-link:hover {
  background: #edf3ef;
}

.icon-button svg,
.nav-item svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-dot {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #da805e;
  border: 1px solid white;
}

.dashboard-content,
.profile-content {
  width: min(100% - 40px, 780px);
  margin: 0 auto;
}

.welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 24px;
}

.welcome-row .eyebrow {
  margin: 0 0 6px;
}

.welcome-row h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
  letter-spacing: -1px;
}

.welcome-row h1 span {
  color: #57816f;
}

.membership-heading {
  margin: 26px 0 12px;
  font-family: Manrope, sans-serif;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

.avatar,
.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5eee8;
  color: var(--forest);
  font-weight: 700;
  font-size: 17px;
}

.membership-card {
  display: block;
  width: 100%;
  height: 208px;
  overflow: hidden;
  position: relative;
  text-align: left;
  padding: 24px 26px 20px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(
    117deg,
    var(--club-primary) 0%,
    var(--club-accent) 100%
  );
  color: white;
  box-shadow: 0 16px 30px #123b3220;
  cursor: pointer;
}

.membership-top,
.membership-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.membership-card .card-label {
  color: #b9d4c7;
}

.card-chip {
  border: 1px solid #ffffff50;
  border-radius: 9px;
  padding: 6px 10px;
  color: #efdaa3;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.membership-name {
  position: relative;
  z-index: 1;
  display: block;
  margin: 24px 0 17px;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.membership-bottom {
  font-size: 12px;
  color: #dfede5;
}

.handicap {
  display: grid;
  gap: 2px;
  text-align: right;
}

.handicap small {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #b9d4c7;
}

.handicap strong {
  font-family: Manrope, sans-serif;
  font-size: 23px;
  line-height: 1;
}

.card-hint {
  position: absolute;
  left: 26px;
  bottom: 17px;
  color: #ffffffa8;
  font-size: 10px;
}

.card-hint span {
  padding-left: 3px;
}

.card-decoration {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid #ffffff13;
  border-radius: 50%;
  right: -35px;
  top: -108px;
}

.card-decoration:before,
.card-decoration:after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid #ffffff13;
  border-radius: 50%;
}

.card-decoration:after {
  inset: 47px;
}

.content-section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading .eyebrow {
  margin: 0 0 5px;
}

.section-heading h2,
.profile-panel h2 {
  font-family: Manrope, sans-serif;
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 0;
}

.text-link {
  font-size: 12px;
  font-weight: 700;
  color: #4f7967;
  white-space: nowrap;
  padding-bottom: 2px;
}

.text-link span {
  font-size: 16px;
  margin-left: 3px;
}

.empty-card {
  min-height: 86px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 5px 18px #234b3810;
}

.empty-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eff5f0;
  display: grid;
  place-items: center;
  color: #54816a;
  font-size: 21px;
}

.score-icon {
  font-size: 20px;
}

.empty-card strong {
  font-size: 13px;
}

.empty-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.scores-section {
  margin-top: 30px;
}

.install-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #edf3ed;
  border-radius: 14px;
  padding: 13px 15px;
  margin: 28px 0 6px;
  color: #62756a;
}

.install-tip > span {
  font-size: 25px;
  color: #537965;
}

.install-tip p {
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}

.install-tip strong {
  color: #345b49;
}

.bottom-nav {
  position: fixed;
  z-index: 12;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 70px;
  padding: 8px max(8px, calc((100vw - 780px) / 2));
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  background: #ffffffed;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(18px);
}

.nav-item {
  border: 0;
  background: none;
  display: flex;
  min-width: 57px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #8b9992;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  padding: 4px 2px;
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

.nav-item.active {
  color: #246149;
}

.more-button {
  font-size: 9px;
}

.more-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #11231f7a;
  z-index: 20;
  backdrop-filter: blur(2px);
}

.more-menu {
  position: fixed;
  z-index: 21;
  right: max(12px, calc((100vw - 780px) / 2));
  bottom: calc(80px + env(safe-area-inset-bottom));
  width: min(320px, calc(100vw - 24px));
  padding: 12px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 55px #18352e35;
}

.message-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: transparent;
}

.message-popover {
  position: fixed;
  z-index: 19;
  top: 68px;
  right: max(14px, calc((100vw - 1080px) / 2 + 58px));
  width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 16px 45px #18352e24;
}

.message-popover-heading,
.message-popover-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message-popover-heading {
  padding: 4px 4px 10px;
  border-bottom: 1px solid var(--line);
}

.message-popover-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}

.message-popover-row {
  align-items: flex-start;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.message-popover-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-popover-row time {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}

.message-popover-empty,
.message-popover-error {
  margin: 12px 4px;
  color: var(--muted);
  font-size: 14px;
}

.message-popover-error {
  color: #a74d3d;
}

.message-popover-all {
  display: flex;
  justify-content: space-between;
  padding: 12px 4px 2px;
  color: var(--club-primary);
  font-weight: 700;
}

.messages-content {
  padding-top: 22px;
  padding-bottom: 30px;
}

.messages-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.messages-heading h1,
.message-detail h1 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 27px;
}

.messages-heading .eyebrow {
  margin: 0 0 5px;
}

.message-list {
  background: var(--paper);
  border: 1px solid var(--line);
}

.message-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.message-row:last-child {
  border-bottom: 0;
}

.message-row:hover {
  background: color-mix(in srgb, var(--club-primary) 5%, var(--paper));
}

.message-row-content {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.message-row-content strong,
.message-row-content span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-row-content small {
  color: var(--muted);
}

.message-unread .message-row-content strong {
  font-weight: 800;
}

.message-unread-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #d7653f;
}

.message-chevron {
  color: var(--muted);
  font-size: 24px;
}

.message-detail h1 {
  margin: 0 0 18px;
}

.message-body {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.menu-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 6px 10px;
  font-family: Manrope, sans-serif;
}

.menu-heading .icon-button {
  font-size: 22px;
}

.more-menu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 10px;
  border-top: 1px solid #edf1ee;
  font-size: 13px;
}

.more-menu > a span {
  color: #729080;
}

.modal-backdrop {
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
}

.ngf-modal {
  width: min(100%, 410px);
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 34px 28px 25px;
  text-align: center;
  box-shadow: 0 24px 70px #0c201b50;
}

.membership-card-viewer {
  width: min(100%, 430px);
  max-height: 90vh;
  overflow: auto;
  position: relative;
  padding: 44px 18px 18px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: center;
}

.membership-card-viewer img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 70px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.membership-card-viewer .modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 13px;
  border: 0;
  background: #f1f5f2;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 22px;
  cursor: pointer;
}

.ngf-modal .eyebrow {
  margin: 10px 0 19px;
}

.ngf-badge {
  width: 70px;
  height: 70px;
  margin: auto;
  border-radius: 22px;
  background: var(--forest);
  color: #f1dda5;
  display: grid;
  place-items: center;
  font-family: Manrope, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
}

.ngf-modal h2 {
  font-family: Manrope, sans-serif;
  margin: 18px 0 4px;
  font-size: 22px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.ngf-details {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 26px 0 20px;
  padding: 17px;
  border-radius: 14px;
  background: #f4f7f4;
}

.ngf-details div {
  display: grid;
  gap: 5px;
}

.ngf-details small {
  font-size: 9px;
  letter-spacing: 1px;
  color: #829089;
}

.ngf-details strong {
  font-family: Manrope, sans-serif;
  font-size: 21px;
}

.card-disclaimer {
  font-size: 10px;
  line-height: 1.6;
  color: #8b9690;
}

.profile-content {
  padding-bottom: 22px;
}

.page-brand {
  gap: 10px;
}

.page-brand strong {
  font-family: Manrope, sans-serif;
  font-size: 14px;
}

.back-link {
  font-size: 27px;
}

.profile-hero {
  text-align: center;
  padding: 34px 0 28px;
}

.profile-avatar {
  width: 78px;
  height: 78px;
  margin: 0 auto 17px;
  border-radius: 26px;
  font-size: 24px;
}

.profile-hero .eyebrow {
  margin-bottom: 7px;
}

.profile-hero h1 {
  font-family: Manrope, sans-serif;
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.8px;
}

.profile-hero .muted {
  margin: 6px 0 0;
}

.profile-panel {
  padding: 20px 20px 7px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  margin: 14px 0;
  box-shadow: 0 5px 16px #234b3808;
}

.profile-panel h2 {
  font-size: 15px;
  margin-bottom: 12px;
}

.profile-panel dl {
  margin: 0;
}

.profile-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid #eff2ef;
  font-size: 12px;
}

.profile-panel dt {
  color: #7c8b83;
}

.profile-panel dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-note {
  margin: 20px 2px;
  color: #74847b;
  font-size: 11px;
  line-height: 1.6;
}

.profile-nav {
  justify-content: center;
  gap: 18px;
}

.profile-nav .nav-item {
  max-width: 130px;
}

.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  padding: 30px 20px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 85% 15%, #dcebe1 0, transparent 37%),
    linear-gradient(145deg, #f5f8f4, #edf3ef);
}

.login-card {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid #e8efea;
  border-radius: 26px;
  padding: 34px;
  box-shadow: 0 20px 65px #1b44321a;
}

.login-card .eyebrow {
  margin: 25px 0 8px;
  color: #648472;
}

.login-card h1 {
  font-family: Manrope, sans-serif;
  font-size: 31px;
  letter-spacing: -1.3px;
  line-height: 1.18;
  margin: 0;
  color: #19382f;
}

.login-card > .muted {
  line-height: 1.6;
  margin: 13px 0 25px;
}

.login-form {
  display: grid;
  gap: 9px;
}

.login-form > label:not(.remember) {
  font-size: 11px;
  color: #53665c;
  font-weight: 700;
  margin-top: 7px;
}

.login-form > input {
  width: 100%;
  height: 49px;
  border: 1px solid #e0e8e2;
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  color: var(--ink);
  background: #fbfcfb;
}

.login-form > input:focus {
  border-color: #65937a;
  box-shadow: 0 0 0 3px #dceddf;
}

.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #687970;
  margin: 8px 0;
}

.remember input {
  accent-color: #1c5944;
  width: 15px;
  height: 15px;
}

.button {
  border: 0;
  border-radius: 12px;
  min-height: 50px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}

.button-primary {
  color: white;
  background: var(--club-primary);
  box-shadow: 0 7px 15px #123b3226;
}

.button-primary:hover {
  background: var(--club-accent);
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.button-full {
  width: 100%;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-spinner {
  flex: none;
  margin-right: 0;
}

.error-message {
  padding: 11px 13px;
  background: #fff0ed;
  border-radius: 10px;
  color: #a74d3d;
  font-size: 12px;
}

.spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 7px;
  border: 2px solid #ffffff70;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-help {
  text-align: center;
  color: #87938c;
  font-size: 10px;
  line-height: 1.5;
  margin: 20px 4px 0;
}

.login-local-hint {
  padding: 10px 12px;
  margin: 0 0 8px;
  border-left: 3px solid var(--club-primary);
  background: #edf3ed;
  color: #466259;
  font-size: 13px;
  line-height: 1.45;
}

.settings-content {
  padding-top: 22px;
  padding-bottom: 28px;
}

.settings-content > h1,
.settings-section h1 {
  margin: 0 0 20px;
  font-family: Manrope, sans-serif;
  font-size: 27px;
}

.settings-section {
  margin: 14px 0;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.settings-section h2 {
  margin: 0 0 15px;
  font-family: Manrope, sans-serif;
  font-size: 20px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.settings-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
}

.theme-switch-track {
  display: block;
  width: 48px;
  height: 28px;
  background: #9aa79f;
  position: relative;
  cursor: pointer;
}

.theme-switch-track::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  background: white;
  transition: transform 0.18s ease;
}

.theme-switch input:checked + .theme-switch-track {
  background: var(--club-primary);
}

.theme-switch input:checked + .theme-switch-track::after {
  transform: translateX(20px);
}

.theme-switch input:focus-visible + .theme-switch-track {
  outline: 3px solid #83aa93;
  outline-offset: 2px;
}

.settings-form {
  display: grid;
  gap: 9px;
}

.settings-form label {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
}

.settings-form > input {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fbfcfb;
  font: inherit;
}

.settings-form > input:focus {
  outline: 2px solid #83aa93;
  outline-offset: 1px;
}

.settings-message {
  color: #246149;
  font-size: 14px;
}

.settings-about dl {
  margin: 0;
}

.settings-about dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.settings-about dt {
  color: var(--muted);
}

.settings-about dd {
  margin: 0;
  font-weight: 600;
}

.profile-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.profile-field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.profile-field > label {
  font-size: 14px;
  font-weight: 700;
}

.profile-field input:not([type="checkbox"]),
.profile-field select {
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.profile-field input[readonly],
.profile-field select:disabled {
  background: #eef2ef;
  color: #62756a;
}

.profile-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.profile-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--club-primary);
}

.field-readonly-note {
  color: var(--muted);
  font-size: 12px;
}

.membership-section > h2 {
  margin-bottom: 18px;
}

.membership-plan {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.membership-plan-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.membership-plan-heading h3 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 18px;
}

.membership-plan > p,
.subscription-list article p {
  color: var(--muted);
  line-height: 1.55;
}

.membership-status {
  padding: 4px 8px;
  color: #fff;
  background: var(--club-primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.membership-status-available {
  color: var(--ink);
  background: #e8eeea;
}

.membership-plan dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 15px 0;
}

.membership-plan dl > div {
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.membership-plan dt {
  color: var(--muted);
  font-size: 13px;
}

.membership-plan dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.membership-pending {
  padding: 10px;
  background: #fff4db;
  color: #705218 !important;
}

.subscription-list {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.subscription-list h4 {
  margin: 0 0 8px;
}

.subscription-list article + article {
  margin-top: 10px;
}

.subscription-list article p {
  margin: 4px 0 0;
  font-size: 14px;
}

.scorecards-content,
.scorecard-detail-content {
  padding-top: 22px;
  padding-bottom: 30px;
}

.scorecards-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.scorecards-heading h1,
.scorecard-detail-hero h1 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 27px;
}

.scorecards-heading .eyebrow {
  margin: 0 0 6px;
}

.filter-button {
  min-height: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.filter-active-dot {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #d7653f;
}

.scorecard-count {
  color: var(--muted);
  font-size: 14px;
}

.scorecard-link {
  color: var(--ink);
  text-decoration: none;
}

.scorecard-link:hover {
  border-color: var(--club-accent);
}

.score-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.pagination button,
.date-presets button,
.button-secondary {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}

.filter-dialog {
  width: min(100%, 520px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.filter-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-dialog-heading h2 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 22px;
}

.date-range-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.date-range-fields > div {
  display: grid;
  gap: 8px;
}

.date-range-fields input {
  min-width: 0;
  min-height: 46px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.date-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}

.filter-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.scorecard-detail-hero {
  padding: 22px 0;
}

.scorecard-detail-hero .eyebrow {
  margin: 0 0 8px;
}

.scorecard-summary dl {
  margin: 0;
}

.scorecard-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.scorecard-summary dt {
  color: var(--muted);
}

.scorecard-summary dd {
  margin: 0;
  font-weight: 700;
}

.hole-table-wrap {
  overflow-x: auto;
}

.hole-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 14px;
}

.hole-table th,
.hole-table td {
  min-width: 42px;
  padding: 9px 7px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.hole-table th:first-child {
  text-align: left;
}

.hole-strokes {
  white-space: nowrap;
}

.birdie-icon {
  display: inline-block;
  margin-left: 4px;
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
}

@media (min-width: 760px) {
  .dashboard-content {
    padding-top: 8px;
  }

  .welcome-row {
    margin-top: 44px;
  }

  .membership-card {
    height: 175px;
    padding: 27px 31px;
  }

  .membership-name {
    font-size: 25px;
    margin-top: 0;
  }

  .membership-bottom {
    font-size: 13px;
  }

  .card-hint {
    left: 31px;
    bottom: 18px;
  }

  .content-section {
    margin-top: 39px;
  }

  .empty-card {
    min-height: 94px;
  }

  .app-shell {
    padding-bottom: 100px;
  }

  .bottom-nav {
    min-height: 78px;
  }

  .profile-content {
    padding-top: 10px;
    max-width: 650px;
  }

  .profile-hero {
    padding-top: 30px;
  }
}

@media (max-width: 375px) {
  .dashboard-content,
  .profile-content {
    width: calc(100% - 28px);
  }

  .topbar {
    padding-inline: 14px;
  }

  .membership-card {
    padding-inline: 20px;
  }

  .card-hint {
    left: 20px;
  }

  .nav-item {
    font-size: 8px;
  }

  .welcome-row h1 {
    font-size: 21px;
  }
}

@media (max-width: 640px) {
  .layout-topbar {
    height: 64px;
    padding-inline: 14px;
  }

  .layout-top-navigation {
    display: none;
  }

  .layout-logout {
    margin-left: auto;
  }
}

body {
  font-size: 16px;
}

.brand-copy strong,
.page-brand strong {
  font-size: 16px;
}

.brand-copy small,
.card-label,
.eyebrow {
  font-size: 12px;
}

.text-link,
.membership-bottom,
.more-menu > a,
.muted {
  font-size: 15px;
}

.section-heading h2,
.profile-panel h2 {
  font-size: 21px;
}

.empty-card strong {
  font-size: 16px;
}

.empty-card p,
.install-tip p,
.profile-note,
.profile-panel dl > div,
.login-form > label:not(.remember),
.remember {
  font-size: 14px;
}

.nav-item,
.more-button {
  font-size: 12px;
}

.profile-panel dt {
  color: #687970;
}

.card-hint,
.handicap small,
.ngf-details small,
.card-disclaimer,
.login-help {
  font-size: 12px;
}

.event-card,
.score-card,
.empty-card,
.profile-panel,
.membership-card,
.install-tip,
.more-menu,
.ngf-modal,
.login-card {
  border-radius: 0;
}

.login-form > input,
.button,
.error-message,
.ngf-details {
  border-radius: 0;
}

@media (max-width: 375px) {
  .nav-item,
  .more-button {
    font-size: 11px;
  }
}

.member-dashboard {
  background: initial;
}

.message-body a {
  text-decoration: underline;
}

.events-content {
  padding-top: 22px;
  padding-bottom: 30px;
}

.events-page-heading h1 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 27px;
}

.events-page-heading .eyebrow {
  margin: 0 0 5px;
}

.event-section {
  margin-top: 26px;
}

.event-section > h2,
.event-section-heading h2 {
  margin: 0 0 13px;
  font-family: Manrope, sans-serif;
  font-size: 21px;
}

.event-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.event-year-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.event-year-filter select {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.event-card-clickable {
  cursor: pointer;
}

.event-card-clickable:focus-visible {
  outline: 3px solid #83aa93;
  outline-offset: 2px;
}

.event-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.event-status {
  flex: none;
  padding: 8px 10px;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.event-action-primary {
  background: var(--club-primary);
}

.event-action-info {
  background: #587365;
}

.event-action-warning {
  background: #b66a1b;
}

.events-more {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.event-detail-dialog {
  width: min(100%, 560px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  position: relative;
  padding: 28px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.event-detail-dialog > .eyebrow {
  margin: 0 36px 8px 0;
}

.event-detail-dialog h2 {
  margin: 0 32px 20px 0;
  font-family: Manrope, sans-serif;
  font-size: 24px;
}

.event-detail-dialog dl {
  margin: 0;
}

.event-detail-dialog dl > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.event-detail-dialog dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.event-detail-dialog dd {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
