.pyscript {
  flex: 1;
}

.auth-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-nav-btn {
  min-width: 86px;
}

.auth-status-badge {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(186, 148, 94, 0.16);
  border: 1px solid rgba(186, 148, 94, 0.35);
  color: #f2d2a0;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.site-nav-tagline {
  display: none;
}

.site-nav-search-inline {
  display: flex;
  justify-content: center;
}

.site-nav-search {
  width: 100%;
  max-width: 480px;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  text-align: center;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: flex-end;
}

.auth-nav {
  min-width: 200px;
  display: flex;
  justify-content: flex-end;
}

.auth-nav-group {
  min-width: 200px;
  display: flex;
  justify-content: flex-end;
}

.auth-nav-group button {
  min-width: 200px;
}

.lang-select-wrap-right {
  margin-left: auto;
}

.lang-select-wrap-right .lang-select {
  min-width: 56px;
}
.auth-user-menu {
  position: relative;
  min-width: 200px;
}

.auth-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(186, 148, 94, 0.45);
  background: rgba(186, 148, 94, 0.12);
  padding: 0.4rem 0.8rem;
  color: #f5f5f5;
  font-size: 0.85rem;
  min-width: 140px;
  max-width: 240px;
  transition: background 0.2s ease, border 0.2s ease;
}

.auth-status-pill.is-open .bi-chevron-down {
  transform: rotate(180deg);
}

.auth-status-pill:hover,
.auth-status-pill:focus-visible {
  border-color: #f7e4c6;
  background: rgba(186, 148, 94, 0.25);
}

.auth-status-pill-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.auth-user-dropdown {
  position: absolute;
  left: 0;
  top: 120%;
  background: #1c1c1c;
  border: 1px solid rgba(186, 148, 94, 0.35);
  border-radius: 10px;
  padding: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 190px;
  z-index: 2000;
}

.auth-dropdown-btn {
  justify-content: flex-start;
  font-size: 0.85rem;
  color: #fff;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-align: left;
  border-radius: 8px;
  min-width: 200px;
  padding: 0.35rem 0.6rem;
  min-width: 170px;
}

.auth-dropdown-btn:hover,
.auth-dropdown-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff3d8;
  outline: none;
}

.nav-help {
  display: flex;
  gap: 0.4rem;
}

.nav-help #nav-whatsapp {
  margin-right: 0.8rem;
}
.auth-status-badge--muted {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
}

.auth-modal {
  width: min(460px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid rgba(186, 148, 94, 0.3);
  border-radius: 18px;
  background: #171717;
  color: #f5f5f5;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.auth-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-modal-title {
  color: #f2d2a0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-modal-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  width: 32px;
  height: 32px;
}

.auth-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-modal-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-modal-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  font-size: 0.92rem;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-input-row .auth-input {
  flex: 1;
  min-width: 0;
}

.auth-field-group label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.auth-input {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.auth-input:focus {
  border-color: rgba(186, 148, 94, 0.8);
  box-shadow: 0 0 0 3px rgba(186, 148, 94, 0.16);
}

.auth-feedback {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.auth-feedback--info {
  background: rgba(59, 130, 246, 0.14);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.auth-feedback--success {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.auth-feedback--warning {
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.auth-feedback--error {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.auth-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 14px;
}

.auth-secondary-btn {
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.86);
}

.auth-modal-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.auth-switch-btn {
  border: none;
  background: transparent;
  color: #f2d2a0;
  font-weight: 700;
  padding: 0;
}

.account-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.account-card-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-card-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.workout-sidebar {
  position: fixed;
  top: var(--navbar-height, 68px);
  left: 0;
  right: auto;
  width: 360px;
  height: calc(100vh - var(--navbar-height, 68px));
  background-color: #1a1a1a;
  border-right: 1px solid #333;
  border-left: none;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.5);
  z-index: 1050;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0 12px 12px 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #e0e0e0;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a #1a1a1a;
  display: flex;
  flex-direction: column;
}

.workout-sidebar::-webkit-scrollbar {
  width: 4px;
}

.workout-sidebar::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.workout-sidebar::-webkit-scrollbar-thumb {
  background-color: #3a3a3a;
  border-radius: 4px;
}

.workout-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #ba945e;
}

.workout {
  background-color: #252525 !important;
  border-color: #3a3a3a !important;
  color: #e0e0e0;
}

.workout label {
  color: #aaa;
}

.workout input[type="date"] {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e0e0e0;
  border-radius: 6px;
  color-scheme: dark;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.workout input[type="date"]:focus {
  border-color: #ba945e;
  box-shadow: 0 0 0 2px rgba(186, 148, 94, 0.2);
  outline: none;
}

.workout .list-group-item {
  background-color: #2d2d2d;
  border-color: #3a3a3a;
  color: #e0e0e0;
  margin-bottom: 4px;
  border-radius: 4px !important;
}

.btn-outline-gold {
  --bs-btn-disabled-color: #ba945e;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #ba945e;
  --bs-btn-disabled-opacity: 1;
  color: #ba945e;
  border: 1px solid #ba945e;
  background-color: transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.nav-help-btn {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.btn-outline-gold:hover {
  background-color: #ba945e;
  color: #fff;
}

.btn-outline-gold:active {
  background-color: #a07840;
  border-color: #a07840;
  color: #fff;
}

.btn-outline-gold:focus-visible {
  outline: 2px solid #ba945e;
  outline-offset: 2px;
}

.add-ex-hover:hover {
  color: #ba945e !important;
}

#fab-buttons .btn {
  transition: filter 0.15s;
}

#fab-buttons .btn:hover {
  filter: none;
}

#fab-buttons .btn:active {
  filter: none;
}

#scroll-top-btn,
#scroll-top-btn:hover,
#scroll-top-btn:active,
#scroll-top-btn:focus,
#scroll-top-btn:focus-visible {
  background-color: #ba945e;
  color: #fff;
  border-color: transparent;
  filter: none;
  box-shadow: none;
  transform: none;
}

.side-actions {
  position: fixed;
  right: 0;
  top: var(--edge-actions-midpoint, 50%);
  transform: translateY(-50%) translateX(calc(100% - 26px));
  z-index: 2000;
  display: flex;
  align-items: stretch;
  transition: transform 0.3s ease;
  background: transparent;
  border: none;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
  box-shadow: none;
  backdrop-filter: none;
}

.side-actions.is-open {
  transform: translateY(-50%) translateX(0);
}

.side-actions-handle {
  background-color: #ba945e;
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  user-select: none;
  border: none;
  padding: 0;
  transition: filter 0.15s ease;
}

.side-actions-handle:hover {
  filter: none;
}

.side-actions-handle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: -2px;
}

.side-actions-chevron {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.side-actions.is-open .side-actions-chevron {
  transform: rotate(180deg);
}

.side-actions-panel {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  background: transparent;
}

.side-fab-btn {
  background-color: #ba945e;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: box-shadow 0.18s ease;
  border: none;
  cursor: pointer;
  box-shadow: none;
}

.side-fab-btn:hover {
  background-color: #ba945e;
  color: #fff;
  box-shadow: none;
}

.side-fab-btn:active {
  background-color: #ba945e;
  color: #fff;
}

.side-fab-btn:focus-visible {
  outline: 2px solid rgba(186, 148, 94, 0.5);
  outline-offset: 3px;
}

.workout-layover {
  position: absolute !important;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: inherit;
  z-index: 10;
  cursor: pointer;
}

.workout:has(.workout-layover.d-none) {
  border-left: 3px solid #ba945e !important;
}

.workout-item-move {
  color: #888;
  cursor: pointer;
}

.workout-item-move:hover {
  color: #ba945e;
  transform: scale(1.2);
  transition: color 0.2s, transform 0.2s;
}

.workout-item-move.disabled {
  color: #444;
  cursor: default;
  pointer-events: none;
}

.workout-item-edit {
  color: #ba945e;
  cursor: pointer;
}

.workout-item-edit:hover {
  transform: scale(1.2);
  transition: color 0.2s, transform 0.2s;
}

.workout-item-remove {
  color: red;
  cursor: pointer;
}

.workout-item-remove:hover {
  transform: scale(1.2);
  transition: color 0.2s, transform 0.2s;
}

.workout-item-link {
  color: #555;
  cursor: pointer;
}

.workout-item-link:hover {
  color: #ba945e;
  transform: scale(1.2);
  transition: color 0.2s, transform 0.2s;
}

.workout-item-link.active {
  color: #ba945e;
}

.superset-group {
  border: 1px solid #ba945e;
  border-radius: 6px;
  margin-bottom: 4px;
  overflow: hidden;
}

.superset-group .list-group-item {
  margin-bottom: 0;
  border-radius: 0 !important;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid #3a3a3a;
}

.superset-group .list-group-item:last-child {
  border-bottom: none;
}

.superset-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background-color: rgba(186, 148, 94, 0.12);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ba945e;
}


.superset-group-header .connector-break-row {
  margin-left: auto;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  height: auto;
  padding: 0 2px;
  gap: 3px;
}

.superset-group-header .connector-break-row:hover {
  color: #d4aa6e;
  background-color: rgba(186, 148, 94, 0.15);
}

.superset-group-header .connector-break-row--set {
  color: #ba945e;
}

.superset-rounds-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.superset-rounds-display {
  min-width: 24px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ba945e;
  user-select: none;
}

.superset-rounds-btn {
  width: 18px;
  height: 18px;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #ba945e;
  color: #ba945e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, color 0.15s;
}

.superset-rounds-btn:hover {
  background: #ba945e;
  color: #fff;
}

.superset-rounds-btn:active {
  background: #a07840;
  border-color: #a07840;
  color: #fff;
}

.superset-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 3px 10px;
  height: auto;
  border-radius: 3px;
  font-size: 0.62rem;
  transition: background-color 0.15s, color 0.15s;
  user-select: none;
  gap: 4px;
}

.connector-break-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 14px;
  cursor: pointer;
  font-size: 0.62rem;
  color: #888;
  border-radius: 3px;
  transition: color 0.15s, background-color 0.15s;
  user-select: none;
}

.connector-break-row:hover {
  color: #ba945e;
  background: rgba(186, 148, 94, 0.08);
}

.connector-break-row--set {
  color: #ba945e;
}

.connector-break-row--set:hover {
  color: #d4aa6e;
}

.connector-between-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0;
}


.superset-connector--unlinked {
  color: #888;
}

.superset-connector--unlinked:hover {
  color: #ba945e;
  background-color: rgba(186, 148, 94, 0.08);
}

.superset-connector--linked {
  color: #ba945e;
  width: fit-content;
  margin: 0 auto;
}

.superset-connector--linked:hover {
  color: #e05555;
  background-color: rgba(224, 85, 85, 0.08);
}

.list-group-item.superset-hover-stay {
  border-left: 3px solid #ba945e !important;
  transition: border-left 0.1s;
}

#toggle-workout-sidebar {
  transition:
    left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s ease,
    filter 0.15s ease;
  z-index: 1100;
}

.workout-sidebar-toggle {
  position: fixed;
  top: var(--edge-actions-midpoint, 50%);
  left: 0;
  width: 30px;
  height: 60px;
  border-radius: 0 12px 12px 0;
  background-color: #ba945e;
  border: 1px solid #ba945e;
  border-left: none;
  color: #fff;
  transform: translateY(-50%);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
}

.workout-sidebar-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.workout-sidebar-toggle:hover {
  transform: translateY(-50%);
  filter: none;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
}

.workout-sidebar-toggle .workout-count-badge {
  top: -4px;
  right: -4px;
  left: auto;
}

body:has(#workout-sidebar):not(:has(#workout-sidebar.d-none)) #toggle-workout-sidebar {
  left: 360px;
}

main {
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body:has(#workout-sidebar):not(:has(#workout-sidebar.d-none)) main {
  margin-left: 360px;
}

@media (min-width: 1400px) {
  .workout-sidebar {
    width: 440px;
  }

  body:has(#workout-sidebar):not(:has(#workout-sidebar.d-none)) #toggle-workout-sidebar {
    left: 440px;
  }

  body:has(#workout-sidebar):not(:has(#workout-sidebar.d-none)) main {
    margin-left: 440px;
  }
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1040;
}

@media (max-width: 991px) {
  .workout-sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 41dvh;
    border-radius: 20px 20px 0 0;
    border-right: none;
    border-top: 1px solid #3a3a3a;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  }

  body:has(#workout-sidebar):not(:has(#workout-sidebar.d-none)) main {
    margin-left: 0;
  }

  body:has(#workout-sidebar):not(:has(#workout-sidebar.d-none)) #toggle-workout-sidebar {
    left: 0 !important;
  }
}

.sidebar-sheet-handle {
  width: 40px;
  height: 4px;
  background: #444;
  border-radius: 2px;
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.workout-exercise-count {
  display: inline-block;
  background-color: #ba945e;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.3em 0.65em;
  border-radius: 10px;
  white-space: nowrap;
}

.workout-exercise-count:empty {
  display: none;
}

.exercise-item-name {
  font-size: 0.875rem;
  color: #e0e0e0;
  line-height: 1.3;
}

.exercise-item-details {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}

.superset-reps-warning {
  font-size: 0.65rem;
  color: #f87171;
  font-weight: 600;
  margin-top: 3px;
}

.exercise-item-notes {
  font-size: 0.75rem;
  color: #aaa;
  font-style: italic;
  margin-top: 2px;
}

.exercise-item-video-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  color: #ba945e;
  text-decoration: none;
  margin-top: 2px;
}

.exercise-item-video-link:hover {
  color: #d4b07e;
  text-decoration: underline;
}

.sidebar-text-input {
  background-color: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #e0e0e0 !important;
  outline: none !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

.sidebar-text-input::placeholder {
  color: #999 !important;
  opacity: 1;
}

.sidebar-text-input:focus {
  border-color: #ba945e !important;
  box-shadow: 0 0 0 2px rgba(186, 148, 94, 0.2) !important;
}

.workout-sidebar-footer {
  display: flex;
  gap: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid #333;
  margin-top: auto;
}

.sidebar-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.25rem 0.2rem;
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #ba945e;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.sidebar-action-btn i {
  font-size: 0.85rem;
}

.sidebar-action-btn:hover {
  background-color: rgba(186, 148, 94, 0.12);
  border-color: #ba945e;
}

.sidebar-action-btn:active {
  background-color: rgba(186, 148, 94, 0.25);
  border-color: #a07840;
}

.sidebar-action-btn:focus-visible {
  outline: 2px solid #ba945e;
  outline-offset: 2px;
}

.sidebar-action-btn:disabled {
  color: #444;
  border-color: #2a2a2a;
  cursor: not-allowed;
  opacity: 0.5;
}

.sidebar-action-btn:disabled:hover {
  background-color: transparent;
  border-color: #2a2a2a;
}

.sidebar-action-btn--danger {
  color: #e05252;
  border-color: #3a3a3a;
}

.sidebar-action-btn--danger:hover {
  background-color: rgba(224, 82, 82, 0.12);
  border-color: #e05252;
}

.sidebar-action-btn--danger:active {
  background-color: rgba(224, 82, 82, 0.25);
  border-color: #c03030;
}

.confirm-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.confirm-popup {
  position: fixed;
  background-color: #1e1e1e;
  border: 1px solid #ba945e;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
  z-index: 2001;
  animation: confirm-popup-in 0.15s ease;
}

.confirm-popup::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  margin-left: -4px;
  width: 8px;
  height: 8px;
  background-color: #1e1e1e;
  border-right: 1px solid #ba945e;
  border-bottom: 1px solid #ba945e;
  transform: rotate(45deg);
}

@keyframes confirm-popup-in {
  from { opacity: 0; transform: translateY(-96%); }
  to   { opacity: 1; transform: translateY(-100%); }
}

.confirm-popup-message {
  font-size: 0.8rem;
  color: #e0e0e0;
  margin: 0 0 10px;
  line-height: 1.4;
}

.confirm-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.confirm-popup-confirm,
.confirm-popup-cancel {
  border-radius: 4px;
  font-size: 0.72rem;
  padding: 3px 10px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.confirm-popup-confirm {
  background: transparent;
  border: 1px solid #555;
  color: #aaa;
}

.confirm-popup-confirm:hover {
  background: #333;
  border-color: #777;
  color: #fff;
}

.confirm-popup-confirm:active {
  background: #444;
  border-color: #888;
  color: #fff;
}

.confirm-popup-cancel {
  background: transparent;
  border: 1px solid #ba945e;
  color: #ba945e;
}

.confirm-popup-cancel:hover {
  background: #ba945e;
  color: #fff;
}

.confirm-popup-cancel:active {
  background: #a07840;
  border-color: #a07840;
  color: #fff;
}

.exercise-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.exercise-modal-box {
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: white;
}

.exercise-modal-title {
  font-weight: bold;
  font-size: 0.95rem;
  color: #ba945e;
  margin-bottom: 4px;
}

.exercise-modal-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.exercise-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.add-exes-hint {
  display: block;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.golden-text {
  font-size: 1.1rem;
  color: #ba945e;
  letter-spacing: 0.5px;
}

#sticky-filters {
  position: sticky;
  top: 60px;
  z-index: 900;
  background-color: #fff;
  padding-top: 0.5rem;
  padding-bottom: 1.25rem;
}

.filter-panel {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.clear-filters-btn {
  background: none;
  border: none;
  padding: 0;
  color: #ba945e;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.clear-filters-btn:hover {
  color: #a07840;
}

.clear-filters-btn:active {
  color: #8a6530;
}

.card-action-icon--disabled {
  opacity: 0.25;
  cursor: default !important;
  pointer-events: none;
}

.badge-custom {
  background-color: rgba(186,148,94,0.15);
  color: #ba945e;
  border: 1px solid rgba(186,148,94,0.35);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-panel-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.4rem 0;
  flex-wrap: wrap;
}

.filter-panel-row--collapsible {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.filter-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.filter-collapse-btn:focus-visible {
  outline: 2px solid #ba945e;
  outline-offset: 2px;
  border-radius: 3px;
}

.filter-collapse-chevron {
  font-size: 0.85rem;
  color: #ba945e;
  transition: transform 0.2s ease;
}

#primary-muscle-filter-toggle[aria-expanded="true"] .pm-filter-count {
  display: none !important;
}

.pm-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ba945e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  min-width: 1.2em;
  height: 1.2em;
  padding: 0 0.3em;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.filter-collapse-btn[aria-expanded="true"] .filter-collapse-chevron {
  transform: rotate(180deg);
}

.filter-collapse-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
  overflow: hidden;
}

.filter-collapse-body > div {
  min-height: 0;
  overflow: clip;
}

.filter-collapse-body.is-open {
  grid-template-rows: 1fr;
}

.filter-panel-divider {
  height: 1px;
  background-color: #e9ecef;
  margin: 0 -1.25rem;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8a6530;
  white-space: nowrap;
  min-width: 78px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.55rem 0.9rem;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ba945e;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.filter-toggle-btn:hover {
  background-color: #f0ece6;
  border-color: #ba945e;
}

.filter-toggle-btn:active {
  background-color: #e8e0d5;
  border-color: #a07840;
}

.filter-toggle-btn:focus-visible {
  outline: 2px solid #ba945e;
  outline-offset: 2px;
}

.filter-toggle-chevron {
  transition: transform 0.25s ease;
  font-size: 0.8rem;
  color: #ba945e;
}

.workout-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #ba945e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.filter-active-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ba945e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  line-height: 1;
}

@media (max-width: 991px) {
  #filter-row:not(.filter-panel-open) {
    display: none !important;
  }

  #filter-row.filter-panel-open {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  body:has(#workout-sidebar):not(:has(#workout-sidebar.d-none)) #fab-buttons {
    display: none !important;
  }

  body:has(#workout-sidebar):not(:has(#workout-sidebar.d-none)) #toggle-workout-sidebar {
    left: 0 !important;
    top: var(--edge-actions-midpoint, 50%) !important;
    bottom: auto !important;
    transform: translateY(-50%);
  }
}

@media (max-width: 767px) {
  .filter-panel {
    padding: 0.6rem 0.85rem;
  }

  .filter-panel-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.5rem 0;
  }

  .filter-panel-divider {
    margin: 0 -0.85rem;
  }

  .filter-label {
    min-width: unset;
  }
}

.category-filter-active,
.body-part-filter-active,
.primary-muscle-filter-active {
  background-color: #ba945e !important;
  color: #fff !important;
}

.badge-count {
  margin-left: 0.35em;
  font-size: 0.78em;
  font-weight: 400;
  opacity: 0.7;
}

.badge-count::before {
  content: "(";
}

.badge-count::after {
  content: ")";
}

[data-category]:hover,
[data-body-part]:hover,
[data-primary-muscle]:hover {
  opacity: 0.8;
  transition: opacity 0.15s;
}

#pdf-color-modal {
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #ba945e;
  border-radius: 12px;
  padding: 0;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

#pdf-color-modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-fade-in 0.2s ease;
}

#pdf-color-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.65);
  animation: modal-fade-in 0.2s ease;
}

.pdf-modal-body {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pdf-modal-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pdf-modal-option-label {
  font-size: 0.85rem;
  color: #aaa;
  white-space: nowrap;
}

.pdf-toggle-group {
  display: flex;
  gap: 0.4rem;
}

.pdf-toggle-btn {
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid #444;
  background: transparent;
  color: #888;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pdf-toggle-btn:hover {
  border-color: #ba945e;
  color: #ba945e;
}

.pdf-toggle-btn:active {
  background: rgba(186, 148, 94, 0.25);
  border-color: #a07840;
  color: #a07840;
}

.pdf-toggle-btn--active {
  background: rgba(186,148,94,0.15);
  border-color: #ba945e;
  color: #ba945e;
}

.pdf-color-modal-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #333;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.pdf-logo-upload-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.pdf-logo-upload {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pdf-logo-hint {
  font-size: 0.7rem;
  color: #666;
}

.pdf-logo-label {
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid #444;
  background: transparent;
  color: #888;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.pdf-logo-label:hover {
  border-color: #ba945e;
  color: #ba945e;
}

.pdf-logo-filename {
  font-size: 0.75rem;
  color: #ba945e;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-logo-clear {
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  border-radius: 4px;
  border: 1px solid #555;
  background: transparent;
  color: #888;
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
}

.pdf-logo-clear:hover {
  border-color: #e05555;
  color: #e05555;
}

.pdf-link-input {
  background: transparent;
  border: 1px solid #444;
  border-radius: 6px;
  color: #ccc;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  width: 160px;
  outline: none;
  transition: border-color 0.15s, color 0.15s;
}

.pdf-link-input:focus {
  border-color: #ba945e;
  color: #fff;
}

.pdf-link-input::placeholder {
  color: #555;
}

.pdf-border-color-input {
  width: 36px;
  height: 28px;
  padding: 2px 3px;
  border: 1px solid #444;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s;
}

.pdf-border-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.pdf-border-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 3px;
}

.pdf-border-color-input:hover {
  border-color: #ba945e;
}

.pdf-border-color-input:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#info-modal {
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #ba945e;
  border-radius: 12px;
  padding: 0;
  width: 90%;
  max-width: 480px;
  max-height: 70dvh;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
}

#info-modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-slide-up 0.25s ease;
}

#info-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.65);
  animation: modal-fade-in 0.25s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

.info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #ba945e;
  flex-shrink: 0;
}

.info-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ba945e;
}

.info-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.2s, background-color 0.2s;
}

.info-modal-close:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

.info-modal-close:active {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.2);
}

.info-modal-body {
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.info-modal-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-tagline {
  color: #888;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #2a2a2a;
}

.info-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.info-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.info-feature-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(186, 148, 94, 0.1);
  border: 1px solid rgba(186, 148, 94, 0.25);
  border-radius: 8px;
  color: #ba945e;
  font-size: 1rem;
}

.info-feature-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.15rem;
}

.info-feature-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.info-feature-title {
  color: #e0d4c0;
  font-size: 0.875rem;
  font-weight: 600;
}

.info-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ba945e;
  background-color: rgba(186, 148, 94, 0.1);
  border: 1px solid rgba(186, 148, 94, 0.35);
  border-radius: 999px;
  padding: 0.1em 0.5em;
  vertical-align: middle;
  white-space: nowrap;
}

.info-feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.info-feature-bullets > li {
  color: #777;
  font-size: 0.8rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.info-feature-bullets > li:not(.info-feature-bullet--auth)::before {
  content: "–";
  color: #ba945e;
  opacity: 0.7;
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .auth-nav {
    width: 100%;
    justify-content: space-between;
  }

  .auth-status-badge {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .auth-nav-group {
    width: 100%;
    justify-content: stretch;
  }

  .auth-nav-btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .auth-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .auth-secondary-btn,
  .auth-modal-actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .site-nav-inner {
    gap: 0.65rem;
  }

  .auth-nav,
  .auth-nav-group,
  .auth-user-menu {
    min-width: 0;
  }

  .auth-nav-group button {
    min-width: 0;
  }

  .auth-status-pill {
    min-width: 0;
  }
}

@media (max-width: 576px) {
  .site-nav {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  #sticky-filters {
    top: 90px;
  }

  .site-nav-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .site-nav-brand {
    display: none;
  }

  .site-nav-search-inline {
    grid-column: 1;
    grid-row: 1;
  }

  .site-nav-actions {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
  }

  .site-nav-search {
    max-width: 100%;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
  }
}

/* ── Repeat button ─────────────────────────────────────────────────────── */
.workout-repeat-btn {
  font-size: 0.74rem;
  color: #666;
  background: transparent;
  border: none;
  padding: 2px 0;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.workout-repeat-btn:hover {
  color: #aaa;
  background: transparent;
  border: none;
}

.workout-repeat-btn:active {
  color: #ccc;
  background: transparent;
}

/* ── Recurrence info text ──────────────────────────────────────────────── */
.workout-recurrence-info {
  font-size: 0.74rem;
  color: #666;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.workout-recurrence-info::before {
  content: "\F116";
  font-family: "bootstrap-icons";
  font-size: 0.72rem;
}

/* ── Recurrence popup overlay ──────────────────────────────────────────── */
.recurrence-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recurrence-modal {
  background: #1a1a1a;
  border: 1px solid #ba945e;
  border-radius: 12px;
  width: min(360px, calc(100vw - 32px));
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  color: #e0e0e0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  animation: recurrence-modal-in 0.2s ease;
}

@keyframes recurrence-modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ── Header ───────────────────────────────────────────────────────────── */
.recurrence-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #ba945e;
  flex-shrink: 0;
}

.recurrence-modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ba945e;
}

.recurrence-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
  padding: 0;
}

.recurrence-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ── Body ─────────────────────────────────────────────────────────────── */
.recurrence-modal-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.recurrence-modal-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #2a2a2a;
  flex-shrink: 0;
}

/* ── Dividers & labels ────────────────────────────────────────────────── */
.recurrence-divider {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 2px 0;
}

.recurrence-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ── Shared base for all recurrence form elements ─────────────────────── */
.recurrence-input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 5px 9px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.recurrence-input:focus {
  border-color: #ba945e;
  box-shadow: 0 0 0 2px rgba(186, 148, 94, 0.2);
}

.recurrence-input:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* ── Interval row ─────────────────────────────────────────────────────── */
.recurrence-interval-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.recurrence-number-input {
  width: 68px;
  flex-shrink: 0;
  text-align: center;
  -moz-appearance: textfield;
}

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

.recurrence-select {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.recurrence-select option {
  background: #2a2a2a;
  color: #e0e0e0;
}

/* ── Weekly section ───────────────────────────────────────────────────── */
.recurrence-weekly-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recurrence-day-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.recurrence-day-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #444;
  background: transparent;
  color: #aaa;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  padding: 0;
  flex-shrink: 0;
}

.recurrence-day-pill:hover {
  border-color: #ba945e;
  color: #ba945e;
}

.recurrence-day-pill--active {
  background: #ba945e;
  border-color: #ba945e;
  color: #1a1a1a;
  font-weight: 700;
}

.recurrence-day-pill--active:hover {
  background: #a07840;
  border-color: #a07840;
  color: #fff;
}

/* ── Monthly section ──────────────────────────────────────────────────── */
.recurrence-monthly-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Shared: radio rows ───────────────────────────────────────────────── */
.recurrence-radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.recurrence-radio-row input[type="radio"] {
  accent-color: #ba945e;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.recurrence-radio-row label {
  font-size: 0.85rem;
  color: #e0e0e0;
  cursor: pointer;
}

/* ── Starts display ───────────────────────────────────────────────────── */
.recurrence-date-display {
  font-size: 0.85rem;
  color: #aaa;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
}

/* ── Ends ─────────────────────────────────────────────────────────────── */
.recurrence-ends-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recurrence-date-input {
  width: 148px;
  color-scheme: dark;
}

.recurrence-after-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.recurrence-count-input {
  width: 60px;
  text-align: center;
  -moz-appearance: textfield;
}

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

.recurrence-occ-label {
  font-size: 0.8rem;
  color: #888;
}

/* ── Footer buttons ───────────────────────────────────────────────────── */
.recurrence-btn--clear {
  background: transparent;
  border: none;
  color: #666;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.15s;
  white-space: nowrap;
}

.recurrence-btn--clear:hover {
  color: #e05252;
}

.recurrence-btn--cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.recurrence-btn--cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
