:root {
  --paper: #ffffff;
  --background: #f7f1ee;
  --ink: #142033;
  --muted: #7a706d;
  --line: #e8ddd7;
  --soft: #f5eeea;
  --accent: #ef5368;
  --accent-dark: #d84b61;
  --accent-light: #ffa4a1;
  --warm-neutral: #efe7e0;
  --brand-gradient: linear-gradient(135deg, #ef5368 0%, #f57a64 100%);
  --danger: #cf3f4b;
  --sage: #7c9b7a;
  --sage-soft: #edf4ec;
  --gold: #c79a4b;
  --navy-soft: #eef2f6;
  --action-height: 46px;
  --action-small-height: 42px;
  --action-radius: 16px;
  --bs-body-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--background);
  --bs-primary: var(--accent-dark);
  --bs-primary-rgb: 216, 75, 97;
  --bs-border-radius: 8px;
  --bs-border-radius-lg: 16px;
  --bs-border-color: var(--line);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.quick-add-menu {
  position: relative;
}

.quick-add-trigger {
  gap: 8px;
  box-shadow: 0 14px 30px rgb(216 75 97 / 22%);
}

.topbar-icon-link.mobile-topbar-shortcut,
.user-profile-icon {
  display: none;
}

.quick-add-trigger svg,
.quick-add-panel svg,
.icon-action svg {
  width: 16px;
  height: 16px;
}

.quick-add-panel {
  min-width: 268px;
  padding: 10px;
  border: 1px solid rgb(241 207 216 / 86%);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgb(255 253 253 / 98%), rgb(253 243 246 / 96%)),
    #fff;
  box-shadow: 0 24px 60px rgb(20 32 51 / 14%);
}

.quick-add-panel a {
  min-height: 52px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.quick-add-panel a svg {
  width: 38px;
  height: 38px;
  padding: 10px;
  border-radius: 14px;
  background: var(--soft);
  color: #FFFFFF;
}

.quick-add-panel a:hover {
  background: rgb(255 255 255 / 82%);
  box-shadow: inset 0 0 0 1px rgb(241 207 216 / 70%);
}

.dashboard-hero-actions,
.dashboard-reminder-actions,
.entry-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.horse-order-card {
  overflow: hidden;
}

.horse-card-media {
  min-height: 220px;
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.horse-card-media > img,
.horse-card-media > .profile-empty {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.horse-order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.horse-order-actions form,
.dashboard-reminder-actions form,
.managed-media-actions form,
.media-visibility-mini {
  margin: 0;
}

.horse-order-actions form:nth-of-type(1) svg {
  transform: rotate(-90deg);
}

.horse-order-actions form:nth-of-type(2) svg {
  transform: rotate(90deg);
}

.horse-order-form {
  display: grid;
  gap: 10px;
}

.horse-order-card {
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.horse-order-card.is-dragging {
  opacity: .56;
  transform: scale(.985);
  box-shadow: 0 18px 42px rgb(20 32 51 / 12%);
}

.horse-order-card.is-drop-before {
  box-shadow:
    inset 0 4px 0 rgb(239 83 104 / 70%),
    0 12px 32px rgb(20 32 51 / 6%);
}

.horse-order-card.is-drop-after {
  box-shadow:
    inset 0 -4px 0 rgb(239 83 104 / 70%),
    0 12px 32px rgb(20 32 51 / 6%);
}

.horse-order-card.is-drop-inline.is-drop-before {
  box-shadow:
    inset 4px 0 0 rgb(239 83 104 / 70%),
    0 12px 32px rgb(20 32 51 / 6%);
}

.horse-order-card.is-drop-inline.is-drop-after {
  box-shadow:
    inset -4px 0 0 rgb(239 83 104 / 70%),
    0 12px 32px rgb(20 32 51 / 6%);
}

.drag-handle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(241 207 216 / 88%);
  border-radius: 16px;
  background: rgb(255 253 253 / 92%);
  color: var(--accent-dark);
  cursor: grab;
  box-shadow: 0 10px 24px rgb(20 32 51 / 5%);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  touch-action: none;
}

.drag-handle:hover {
  border-color: rgb(239 83 104 / 42%);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgb(190 79 97 / 12%);
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle span,
.drag-handle span::before,
.drag-handle span::after {
  width: 4px;
  height: 4px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 9px 0 0 currentColor;
}

.drag-handle span {
  position: relative;
  transform: translateX(-4px);
}

.drag-handle span::before,
.drag-handle span::after {
  position: absolute;
  content: "";
  left: 0;
}

.drag-handle span::before {
  top: -8px;
}

.drag-handle span::after {
  top: 8px;
}

.horse-order-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.icon-action {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(241 207 216 / 86%);
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.icon-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgb(216 75 97 / 14%);
}

.icon-action:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.inline-visibility-form {
  margin: 0;
}

.session-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.privacy-select,
.compact-privacy-select,
.managed-media-actions select,
.media-visibility-mini select {
  appearance: none;
  min-height: 36px;
  border: 1px solid rgb(241 207 216 / 86%);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(250 232 237 / 78%));
  color: var(--accent-dark);
  padding: 0 34px 0 13px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgb(20 32 51 / 5%);
  cursor: pointer;
}

.privacy-select {
  min-width: 128px;
  padding-right: 13px;
  text-align: center;
  text-align-last: center;
}

.privacy-select.privacy-private {
  color: #6f6570;
}

.privacy-select.privacy-community {
  border-color: rgb(124 155 122 / 34%);
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(237 244 236 / 96%));
  color: var(--sage);
}

.privacy-select.privacy-public {
  border-color: rgb(199 154 75 / 34%);
  background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(255 247 232 / 96%));
  color: var(--gold);
}

.inline-media-manager,
.session-media-admin {
  margin-top: 16px;
}

.inline-media-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.inline-media-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.managed-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 142px));
  gap: 10px;
}

.managed-media-card {
  min-width: 0;
  border: 1px solid rgb(241 207 216 / 72%);
  border-radius: 16px;
  background: rgb(255 255 255 / 82%);
  overflow: hidden;
  box-shadow: 0 12px 26px rgb(20 32 51 / 5%);
}

.managed-media-card .mini-media-thumb {
  width: 100%;
  height: 84px;
  border: 0;
  border-radius: 0;
}

.managed-media-card .mini-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.managed-media-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  padding: 7px;
}

.managed-media-actions button {
  width: 100%;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(241 207 216 / 82%);
  border-radius: 10px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 950;
}

.managed-media-actions button svg {
  width: 14px;
  height: 14px;
}

.managed-media-actions .is-favorite {
  border-color: rgb(199 154 75 / 40%);
  background: rgb(255 247 232 / 96%);
  color: var(--gold);
}

.managed-media-actions select {
  width: 100%;
  padding-right: 13px;
  text-align: center;
  text-align-last: center;
}

.media-privacy-row {
  grid-column: 1 / -1;
}

.session-media-strip {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

.session-media-strip .managed-media-card {
  width: 176px;
}

.session-media-strip .mini-media-thumb {
  height: 112px;
}

.session-media-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgb(241 207 216 / 70%);
  border-radius: 18px;
  background: rgb(255 255 255 / 72%);
}

.session-media-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.session-media-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.session-media-preview-strip {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.session-media-preview-strip .mini-media-thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.session-gallery-workspace {
  display: grid;
  gap: 18px;
}

.session-gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(184px, 220px));
}

.session-gallery-grid .managed-media-card {
  width: auto;
}

.session-gallery-grid .mini-media-thumb {
  height: 124px;
}

.session-upload-card {
  min-height: 0;
}

.session-form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.session-form-actions .small-action,
.session-form-actions .primary-action {
  width: 100%;
}

.session-form-actions .primary-action:only-child {
  grid-column: 1 / -1;
}

.auto-upload-card.is-uploading {
  opacity: .82;
  pointer-events: none;
}

.auto-upload-card.is-uploading .profile-file-drop {
  border-style: solid;
  background: var(--soft);
  color: var(--accent-dark);
}

.passage-managed-media-card {
  width: 132px;
}

.passage-managed-media-grid {
  grid-template-columns: repeat(auto-fit, minmax(124px, 132px));
  margin-top: 12px;
}

.compact-media-upload-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.founder-offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgb(241 207 216 / 76%);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgb(255 253 253 / 96%), rgb(255 247 232 / 46%)),
    #fff;
  margin-bottom: 18px;
}

.founder-offer-card h3,
.founder-offer-card p {
  margin: 0;
}

.founder-offer-card h3 {
  color: var(--ink);
  font-size: 22px;
}

.founder-offer-card p {
  color: var(--muted);
  font-weight: 800;
}

.founder-plan-actions {
  display: grid;
  gap: 8px;
}

.founder-plan-card button {
  min-width: 170px;
  display: grid;
  gap: 3px;
  border: 1px solid rgb(241 207 216 / 86%);
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 26px rgb(20 32 51 / 5%);
}

.founder-plan-card button strong {
  color: var(--accent-dark);
}

.founder-plan-card button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.notification-filter-tabs {
  margin-bottom: 18px;
}

@media (max-width: 760px) {
  .quick-add-trigger {
    padding-inline: 12px;
  }

  .dashboard-hero-actions,
  .founder-offer-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

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

  .session-media-summary {
    grid-template-columns: 1fr;
  }

  .session-media-preview-strip {
    justify-content: flex-start;
  }

  .session-media-strip .managed-media-card,
  .passage-managed-media-card {
    width: auto;
  }

  .session-form-actions {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgb(255 250 250 / 96%) 0%, rgb(248 243 244 / 92%) 44%, rgb(237 244 236 / 78%) 100%),
    var(--background);
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  align-items: center;
  gap: 48px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 48px 24px;
}

.auth-showcase {
  max-width: 560px;
}

.auth-showcase h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .95;
  letter-spacing: 0;
}

.auth-showcase p:not(.eyebrow) {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.showcase-panel {
  display: grid;
  gap: 12px;
  max-width: 440px;
  margin-top: 34px;
}

.showcase-panel div {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 18px;
  background: rgb(255 253 253 / 72%);
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 14px 36px rgb(20 32 51 / 7%);
  backdrop-filter: blur(12px);
}

.showcase-panel .icon {
  color: var(--accent-dark);
}

.auth-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 22px;
  background: rgb(255 253 253 / 88%);
  padding: 36px;
  box-shadow: 0 26px 80px rgb(20 32 51 / 14%);
  backdrop-filter: blur(18px);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 18% 16%, rgb(250 232 237 / 84%), transparent 30%),
    radial-gradient(circle at 86% 78%, rgb(237 244 236 / 76%), transparent 32%),
    var(--background);
}

.error-card {
  width: min(620px, 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 28px;
  background: rgb(255 253 253 / 90%);
  padding: 36px;
  box-shadow: 0 26px 80px rgb(20 32 51 / 14%);
  backdrop-filter: blur(18px);
}

.error-card::after {
  content: "";
  position: absolute;
  inset: auto -42px -58px auto;
  width: 220px;
  height: 220px;
  border-radius: 46px;
  background: linear-gradient(135deg, rgb(239 83 104 / 18%), rgb(124 155 122 / 10%));
  transform: rotate(18deg);
  pointer-events: none;
}

.error-card .auth-brand,
.error-card .eyebrow,
.error-card h2,
.error-card p,
.error-card .primary-action,
.error-status {
  position: relative;
  z-index: 1;
}

.error-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 56px;
  margin: 34px 0 18px;
  border: 1px solid rgb(241 207 216 / 88%);
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 28px;
  font-weight: 950;
}

.error-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: .98;
}

.error-card p:not(.eyebrow) {
  max-width: 460px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.public-language-switcher {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgb(241 207 216 / 82%);
  border-radius: 999px;
  background: rgb(255 253 253 / 82%);
  padding: 5px;
  color: var(--muted);
  box-shadow: 0 10px 24px rgb(20 32 51 / 6%);
}

.public-language-switcher label {
  padding-left: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.public-language-switcher select {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 0 28px 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  outline: none;
  cursor: pointer;
}

.auth-language-switcher {
  float: right;
  margin: -12px -12px 16px 16px;
}

.auth-sheen {
  position: absolute;
  inset: 0 0 auto auto;
  width: 210px;
  height: 210px;
  background: linear-gradient(135deg, rgb(239 83 104 / 18%), rgb(124 155 122 / 10%));
  transform: translate(56px, -72px) rotate(18deg);
  border-radius: 40px;
  pointer-events: none;
}

.auth-brand,
.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand h1,
.topbar h1,
.welcome-card h2,
.section-heading h2 {
  margin: 0;
}

.auth-brand p,
.brand small,
.empty-state,
.list-card span,
.horse-card span {
  color: var(--muted);
}

.logo-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
  color: #FFFFFF;
  box-shadow: 0 14px 30px rgb(239 83 104 / 24%);
}

.logo-mark svg {
  width: 74%;
  height: 74%;
  fill: #fff;
}

.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.auth-logo .logo-mark {
  width: 72px;
  height: 72px;
  border-radius: 24px;
}

.auth-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.auth-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-form input {
  min-height: 50px;
  border: 1px solid rgb(241 207 216 / 90%);
  border-radius: 12px;
  background: #fff;
  padding: 0 15px;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(239 83 104 / 12%);
}

.auth-form button,
.primary-action {
  min-height: var(--action-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--action-radius);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 32px rgb(190 79 97 / 24%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.auth-form button:hover,
.primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgb(190 79 97 / 28%);
}

.auth-form button {
  margin-top: 10px;
}

.auth-hint {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-link-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 900;
}

.auth-link-row a,
.auth-secondary-link {
  color: var(--accent);
  text-decoration: none;
}

.auth-secondary-link {
  justify-self: center;
  margin-top: 6px;
  font-weight: 900;
}

.auth-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.auth-legal-links a,
.auth-terms-note a {
  color: var(--accent-dark);
  text-decoration: none;
}

.auth-terms-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.alert {
  margin-top: 18px;
  border: 1px solid #f0a8b2;
  border-radius: 8px;
  background: #fff0f2;
  color: var(--danger);
  padding: 11px 12px;
  font-weight: 800;
}

.web-flash-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 2200;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.web-premium-toast {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 95%), rgb(253 243 246 / 91%)),
    #fff;
  color: var(--ink);
  padding: 12px 12px 12px 14px;
  box-shadow: 0 24px 70px rgb(20 32 51 / 18%);
  pointer-events: auto;
  animation: web-toast-in 260ms ease both;
}

.web-premium-toast.success {
  border-color: rgb(124 155 122 / 28%);
}

.web-premium-toast.danger {
  border-color: rgb(207 63 75 / 28%);
}

.web-premium-toast.toast-leaving {
  animation: web-toast-out 180ms ease both;
}

.web-toast-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sage-soft);
  color: var(--sage);
}

.web-premium-toast.danger .web-toast-icon {
  background: var(--soft);
  color: var(--danger);
}

.web-premium-toast p {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.web-premium-toast button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(241 207 216 / 86%);
  border-radius: 50%;
  background: rgb(255 255 255 / 80%);
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.web-premium-toast button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

@keyframes web-toast-in {
  from {
    opacity: 0;
    transform: translate3d(18px, -8px, 0) scale(.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes web-toast-out {
  to {
    opacity: 0;
    transform: translate3d(18px, -8px, 0) scale(.98);
  }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
}

.legal-site-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 22px 42px;
}

.legal-site-topbar,
.legal-site-footer,
.legal-site-nav {
  display: flex;
  align-items: center;
}

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

.legal-site-brand {
  color: var(--ink);
  text-decoration: none;
}

.legal-site-brand .auth-logo .logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.legal-site-brand h1 {
  margin: 0;
  font-size: 22px;
}

.legal-site-brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.legal-site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.legal-site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(241 207 216 / 78%);
  border-radius: 999px;
  background: rgb(255 253 253 / 78%);
  color: var(--muted);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 26px rgb(20 32 51 / 5%);
}

.legal-site-nav a.active,
.legal-site-nav a:hover {
  border-color: rgb(239 83 104 / 42%);
  background: var(--soft);
  color: var(--accent-dark);
}

.legal-site-nav .legal-site-login {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.legal-language-switcher {
  min-height: 42px;
  box-shadow: 0 10px 26px rgb(20 32 51 / 5%);
}

.legal-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgb(255 253 253 / 96%) 0%, rgb(250 232 237 / 48%) 72%, rgb(238 242 246 / 56%) 100%);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 18px 54px rgb(20 32 51 / 8%);
}

.legal-page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.legal-page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}

.legal-page-hero > span {
  flex: 0 0 auto;
  border: 1px solid rgb(241 207 216 / 86%);
  border-radius: 999px;
  background: rgb(255 255 255 / 78%);
  color: var(--accent-dark);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 950;
}

.legal-work-note {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  border: 1px solid rgb(239 83 104 / 18%);
  border-radius: 18px;
  background: rgb(255 245 248 / 78%);
  color: var(--accent-dark);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.legal-document {
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 22px;
  background: rgb(255 253 253 / 88%);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 20px 60px rgb(20 32 51 / 8%);
}

.legal-document h2 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: 22px;
}

.legal-document h2:first-child,
.legal-document p:first-child {
  margin-top: 0;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.72;
}

.legal-document strong {
  color: var(--ink);
}

.legal-document a {
  color: var(--accent-dark);
  font-weight: 900;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.legal-document table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.legal-document th,
.legal-document td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  vertical-align: top;
}

.legal-document th {
  color: var(--accent-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.legal-document tr:last-child td {
  border-bottom: 0;
}

.legal-site-footer {
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.legal-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-site-footer a {
  color: var(--accent-dark);
  text-decoration: none;
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgb(255 253 253 / 82%);
  border-right: 1px solid rgb(241 207 216 / 66%);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(18px);
}

.brand {
  margin-bottom: 34px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 21px;
  font-weight: 900;
}

.nav-list {
  display: grid;
  gap: 9px;
}

.nav-item,
.logout-link {
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--muted);
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.nav-item.active,
.nav-item:hover {
  background: linear-gradient(135deg, var(--soft) 0%, #fff 100%);
  color: var(--accent-dark);
  transform: translateX(2px);
}

.nav-item.active span,
.nav-item:hover span {
  background: #fff;
  color: var(--accent-dark);
}

.side-nav > form {
  margin-top: auto;
}

.logout-link {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.side-note {
  margin-top: auto;
  border: 1px solid rgb(241 207 216 / 78%);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgb(255 253 253 / 78%), rgb(250 232 237 / 76%));
  padding: 16px;
  box-shadow: 0 14px 34px rgb(20 32 51 / 6%);
}

.side-note strong,
.side-note small {
  display: block;
}

.side-note strong {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
}

.side-note small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.main-panel {
  width: min(1220px, 100%);
  padding: 32px;
}

.topbar,
.section-heading,
.welcome-card,
.row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  position: relative;
  z-index: 120;
  margin-bottom: 24px;
}

.topbar-compact {
  justify-content: space-between;
  min-height: var(--action-height);
  margin-bottom: 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.global-search-form {
  position: relative;
  width: min(430px, 100%);
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: var(--action-height);
  border: 1px solid rgb(241 207 216 / 78%);
  border-radius: var(--action-radius);
  background: rgb(255 253 253 / 84%);
  padding: 0 13px;
  box-shadow: 0 10px 30px rgb(20 32 51 / 6%);
  z-index: 130;
}

.global-search-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  color: var(--accent-dark);
  flex: 0 0 auto;
}

.global-search-icon svg {
  width: 17px;
  height: 17px;
}

.global-search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  outline: none;
}

.global-search-form input::placeholder {
  color: rgb(126 113 123 / 78%);
}

.global-search-dropdown {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  z-index: 2400;
  display: grid;
  gap: 6px;
  border: 1px solid rgb(241 207 216 / 86%);
  border-radius: 18px;
  background: rgb(255 253 253 / 96%);
  padding: 8px;
  box-shadow: 0 22px 60px rgb(20 32 51 / 14%);
  backdrop-filter: blur(16px);
}

.global-search-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 8px;
  color: var(--ink);
  text-decoration: none;
}

.global-search-result:hover {
  background: var(--soft);
}

.global-search-result img,
.global-search-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.global-search-result img {
  object-fit: cover;
}

.global-search-avatar,
.global-result-avatar {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 950;
}

.global-search-result-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.global-search-result-text strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result-text small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-badges {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.global-search-kind {
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 950;
}

.global-search-kind.horse {
  background: rgb(238 246 236 / 96%);
  color: #66835f;
}

.global-search-community-badge,
.global-result-community-badge {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  border: 1px solid rgb(241 207 216 / 88%);
}

.global-search-community-badge {
  width: 32px;
  height: 32px;
}

.global-search-community-badge .icon {
  width: 17px;
  height: 17px;
}

.global-search-empty {
  padding: 16px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.topbar-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--action-height);
  border: 1px solid rgb(241 207 216 / 78%);
  border-radius: var(--action-radius);
  background: rgb(255 253 253 / 72%);
  padding: 0 16px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgb(20 32 51 / 6%);
}

.topbar-icon-link {
  min-width: var(--action-height);
  min-height: var(--action-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(241 207 216 / 78%);
  border-radius: var(--action-radius);
  background: rgb(255 253 253 / 82%);
  color: var(--accent-dark);
  text-decoration: none;
  box-shadow: 0 10px 30px rgb(20 32 51 / 6%);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.topbar-icon-link:hover,
.topbar-icon-link.active {
  border-color: rgb(239 83 104 / 36%);
  background: var(--soft);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgb(190 79 97 / 12%);
}

.topbar-icon-link svg {
  width: 18px;
  height: 18px;
}

.notification-topbar-link span {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-pill {
  min-height: var(--action-height);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgb(241 207 216 / 78%);
  border-radius: var(--action-radius);
  background: rgb(255 253 253 / 86%);
  padding: 7px 12px 7px 7px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 30px rgb(20 32 51 / 7%);
}

.user-pill span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.user-pill span b {
  font: inherit;
}

.user-profile-icon {
  line-height: 0;
}

.user-profile-icon svg {
  width: 18px;
  height: 18px;
}

.welcome-card,
.panel {
  border: 1px solid rgb(255 255 255 / 74%);
  border-radius: 20px;
  background: rgb(255 253 253 / 88%);
  box-shadow: 0 18px 50px rgb(20 32 51 / 9%);
  backdrop-filter: blur(14px);
}

.page-hero {
  position: relative;
  margin-bottom: 22px;
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgb(255 253 253 / 92%) 0%, rgb(250 232 237 / 70%) 100%);
  padding: 28px;
  box-shadow: 0 18px 50px rgb(20 32 51 / 8%);
  overflow: hidden;
}

.compact-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-hero h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.page-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.page-hero > strong {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border: 1px solid rgb(241 207 216 / 80%);
  border-radius: 999px;
  background: #fff;
  padding: 12px 16px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgb(20 32 51 / 7%);
}

.welcome-card {
  position: relative;
  min-height: 168px;
  margin-bottom: 18px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgb(255 253 253 / 95%) 0%, rgb(250 232 237 / 88%) 58%, rgb(237 244 236 / 78%) 100%);
  overflow: hidden;
}

.welcome-card > div:first-child,
.welcome-card .primary-action {
  position: relative;
  z-index: 1;
}

.welcome-watermark {
  position: absolute;
  right: -18px;
  bottom: -34px;
  opacity: .12;
  transform: rotate(-8deg);
}

.welcome-watermark .logo-mark {
  width: 188px;
  height: 188px;
  border-radius: 50px;
  box-shadow: none;
}

.welcome-card p:not(.eyebrow) {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 18px;
  background: rgb(255 253 253 / 78%);
  padding: 18px;
  box-shadow: 0 14px 34px rgb(20 32 51 / 7%);
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 16px auto;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.stat-card.tone-sage::after {
  background: var(--sage);
}

.stat-card.tone-gold::after {
  background: var(--gold);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
}

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

.panel {
  padding: 20px;
}

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

.section-heading {
  margin-bottom: 14px;
}

.section-heading a {
  color: var(--muted);
  font-weight: 900;
}

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

.web-list-grid {
  display: grid;
  gap: 18px;
}

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

.profile-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 24px;
  background: rgb(255 253 253 / 88%);
  box-shadow: 0 18px 48px rgb(20 32 51 / 8%);
  overflow: hidden;
}

.interactive-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.interactive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgb(20 32 51 / 12%);
}

.profile-card > img,
.profile-empty {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.profile-empty {
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
}

.profile-empty .logo-mark {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: none;
}

.profile-empty .logo-mark svg {
  width: 78%;
  height: auto;
  display: block;
}

.profile-body {
  padding: 22px;
}

.profile-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-title h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.08;
}

.profile-title p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.privacy-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.privacy-community {
  background: var(--sage-soft);
  color: var(--sage);
}

.privacy-public {
  background: #fff6e5;
  color: var(--gold);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.info-grid div {
  border-top: 1px solid rgb(241 207 216 / 74%);
  padding-top: 12px;
}

.info-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.info-grid dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.horse-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 0;
  margin-bottom: 22px;
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 30px;
  background: rgb(255 253 253 / 88%);
  overflow: hidden;
  box-shadow: 0 24px 70px rgb(20 32 51 / 12%);
}

.horse-detail-photo {
  min-height: 430px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
}

.horse-detail-photo img,
.horse-detail-photo .profile-empty {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.horse-detail-summary {
  padding: 28px;
}

.horse-premium-summary {
  display: grid;
  align-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgb(250 232 237 / 78%), transparent 38%),
    linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(255 250 251 / 88%));
}

.horse-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.back-link .icon {
  width: 16px;
  height: 16px;
}

.detail-info-grid {
  margin-top: 26px;
}

.horse-fact-grid div {
  border-top-color: rgb(239 83 104 / 20%);
}

.horse-profile-tabs {
  display: grid !important;
  flex-wrap: nowrap;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin-bottom: 18px;
}

.horse-profile-tabs.tabs-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.horse-profile-tabs.tabs-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.horse-profile-tabs a {
  width: 100%;
  min-height: 56px;
  min-width: 0;
  white-space: nowrap;
}

.horse-tab-panel {
  margin-bottom: 22px;
}

.horse-tab-panel .detail-panel {
  min-height: 0;
}

.horse-tab-list-panel {
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgb(250 232 237 / 58%), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(255 249 250 / 88%));
}

.owner-profile-link {
  color: var(--accent-dark);
  font-weight: 950;
  text-decoration: none;
}

.owner-profile-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.history-entry-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.history-entry-metrics div {
  min-width: 96px;
  border: 1px solid rgb(241 207 216 / 78%);
  border-radius: 14px;
  background: rgb(255 253 253 / 76%);
  padding: 8px 10px;
}

.history-entry-metrics dt {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.history-entry-metrics dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

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

.detail-panel {
  min-height: 220px;
}

.horse-health-panel,
.horse-media-panel {
  padding: 22px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(255 249 250 / 88%)),
    #fff;
}

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

.muted-count {
  min-width: 34px;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--muted);
  padding: 7px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.media-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.media-thumb,
.video-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
}

.media-thumb {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.media-thumb img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--navy-soft);
  color: var(--accent-dark);
  padding: 0;
  cursor: pointer;
}

.video-thumb > img {
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

.video-thumb > span {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(20 32 51 / 62%);
  color: #fff;
}

.horse-card {
  border: 1px solid rgb(241 207 216 / 84%);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 6px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.horse-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgb(20 32 51 / 10%);
}

.horse-card img,
.horse-empty {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 13px;
  object-fit: cover;
}

.horse-empty {
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.horse-empty .logo-mark {
  width: 62%;
  height: 62%;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 18%);
  color: #fff;
  box-shadow: none;
}

.horse-empty .logo-mark svg {
  width: 78%;
  height: auto;
  display: block;
}

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

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

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 22px;
  background: rgb(255 253 253 / 88%);
  padding: 16px;
  box-shadow: 0 16px 44px rgb(20 32 51 / 7%);
}

.timeline-date {
  min-height: 82px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  align-content: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgb(190 79 97 / 22%);
}

.timeline-date strong,
.timeline-date span {
  display: block;
}

.timeline-date strong {
  font-size: 28px;
  line-height: 1;
}

.timeline-date span {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-content {
  padding: 4px 2px;
}

.session-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, .9fr) minmax(280px, 1.15fr);
}

.session-day-list .timeline-card {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 14px;
}

.session-day-list .timeline-content {
  padding: 0;
}

.session-day-list .profile-title {
  align-items: center;
  margin-bottom: 12px;
}

.session-day-list .profile-title h2 {
  font-size: 25px;
}

.session-day-list .mini-label {
  margin-bottom: 0;
}

.session-title-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.session-date-badge {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  border: 1px solid rgb(239 83 104 / 22%);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, rgb(250 232 237 / 84%));
  color: var(--accent-dark);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgb(20 32 51 / 5%);
}

.session-rating-chip {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  border-radius: 999px;
  border: 1px solid rgb(199 154 75 / 28%);
  background: #fff6e5;
  color: var(--gold);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 950;
}

.session-rating-chip.note-score-5 {
  background: #b7e4c7;
  color: #2f6f4f;
  opacity: 1;
}

.session-rating-chip.note-score-4 {
  background: #d9ed92;
  color: #5c6f18;
  opacity: 1;
}

.session-rating-chip.note-score-3 {
  background: #ffe69a;
  color: #7a5a00;
  opacity: 1;
}

.session-rating-chip.note-score-2 {
  background: #ffd6a5;
  color: #8a4d00;
  opacity: 1;
}

.session-rating-chip.note-score-1 {
  background: #ffcad4;
  color: #9b3650;
  opacity: 1;
}

.session-rider-line {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.session-day-list .info-grid {
  gap: 10px;
}

.session-day-list .info-grid div {
  padding-top: 9px;
}

.session-day-list .info-grid dd {
  margin-top: 3px;
}

.session-media-inline dd {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.session-media-inline dd > strong {
  flex: 0 0 auto;
}

.session-media-inline .small-action {
  height: 38px;
  min-height: 38px;
  margin-left: auto;
  padding-inline: 15px;
}

.session-media-inline .session-media-preview-strip {
  flex: 0 0 auto;
}

.session-media-inline .session-media-preview-strip .mini-media-thumb {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.session-notes-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 10px;
  border-top: 1px solid rgb(241 207 216 / 58%);
  padding-top: 10px;
}

.session-notes-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.session-notes-line p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.session-day-list .session-media-summary {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
}

.session-day-list .session-media-summary strong {
  margin-top: 3px;
}

.session-day-list .session-media-preview-strip .mini-media-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.competition-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.premium-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 22px;
  background: rgb(250 232 237 / 72%);
  padding: 6px;
  box-shadow: 0 14px 38px rgb(20 32 51 / 6%);
}

.premium-tabs a {
  --bs-nav-link-color: var(--muted);
  --bs-nav-link-hover-color: var(--accent-dark);
  --bs-nav-pills-link-active-bg: #fff;
  --bs-nav-pills-link-active-color: var(--accent-dark);
  min-height: 58px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.premium-tabs a:hover,
.premium-tabs a:focus-visible {
  color: var(--accent-dark);
}

.premium-tabs a.active,
.premium-tabs .nav-link.active,
.premium-tabs .show > .nav-link {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 12px 28px rgb(20 32 51 / 7%);
}

.premium-tabs strong {
  min-width: 30px;
  border-radius: 999px;
  background: var(--soft);
  padding: 5px 9px;
  color: var(--accent-dark);
  font-size: 12px;
  text-align: center;
}

.competition-detail-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.competition-tab-panel {
  margin-bottom: 22px;
}

.calendar-panel {
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 24px;
  background: rgb(255 253 253 / 82%);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 16px 42px rgb(20 32 51 / 7%);
  backdrop-filter: blur(12px);
}

.month-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.month-bar strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.month-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgb(241 207 216 / 80%);
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 10px 22px rgb(20 32 51 / 6%);
}

.calendar-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.calendar-strip::-webkit-scrollbar {
  height: 6px;
}

.calendar-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(239 83 104 / 28%);
}

.day-button {
  width: 54px;
  height: 84px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid rgb(241 207 216 / 76%);
  border-radius: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: rgb(255 255 255 / 78%);
  color: var(--ink);
}

.day-button.selected {
  border-color: var(--accent-dark);
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgb(190 79 97 / 24%);
}

.day-button span {
  color: currentColor;
  opacity: .72;
  font-size: 10px;
  font-weight: 900;
}

.day-button strong {
  font-size: 20px;
  line-height: 1;
}

.day-button em {
  min-height: 18px;
  color: currentColor;
  font-size: 13px;
  font-style: normal;
  line-height: 18px;
}

.day-button .day-rating-logo {
  width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
}

.day-button .day-rating-logo .logo-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgb(20 32 51 / 7%);
  border-radius: 10px;
  background: #ffe69a;
  box-shadow: 0 8px 18px rgb(20 32 51 / 8%);
}

.day-button .day-rating-logo .logo-mark svg {
  width: 72%;
  height: 72%;
  fill: currentColor;
  opacity: .82;
}

.day-button .day-rating-logo.note-score-5 .logo-mark {
  background: #b7e4c7;
  color: #2f6f4f;
  opacity: 1;
}

.day-button .day-rating-logo.note-score-4 .logo-mark {
  background: #d9ed92;
  color: #5c6f18;
  opacity: 1;
}

.day-button .day-rating-logo.note-score-3 .logo-mark {
  background: #ffe69a;
  color: #7a5a00;
  opacity: 1;
}

.day-button .day-rating-logo.note-score-2 .logo-mark {
  background: #ffd6a5;
  color: #8a4d00;
  opacity: 1;
}

.day-button .day-rating-logo.note-score-1 .logo-mark {
  background: #ffcad4;
  color: #9b3650;
  opacity: 1;
}

.inline-rating-badge {
  min-width: 42px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(199 154 75 / 28%);
  border-radius: 999px;
  background: #fff6e5;
  color: var(--gold);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 950;
  line-height: 30px;
  vertical-align: middle;
}

.session-day-list {
  margin-top: 0;
}

.community-hero {
  background:
    linear-gradient(135deg, rgb(255 253 253 / 94%) 0%, rgb(250 232 237 / 72%) 56%, rgb(237 244 236 / 72%) 100%);
  z-index: 40;
  overflow: visible;
}

.community-hero .dropdown-menu.action-menu-panel {
  z-index: 2100;
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 0%, rgb(250 232 237 / 82%), transparent 32%),
    linear-gradient(135deg, #fffafb 0%, #f5f2f3 60%, #eef5ee 100%);
  color: var(--ink);
}

.admin-shell {
  max-width: 1560px;
}

.admin-topbar {
  min-height: 74px;
  border-bottom: 1px solid rgb(241 207 216 / 76%);
  background:
    linear-gradient(135deg, rgb(255 253 253 / 94%) 0%, rgb(250 232 237 / 84%) 100%);
  box-shadow: 0 14px 38px rgb(20 32 51 / 7%);
  backdrop-filter: blur(18px);
}

.admin-navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.admin-navbar-brand strong,
.admin-navbar-brand small {
  display: block;
  line-height: 1.1;
}

.admin-navbar-brand strong {
  font-size: 20px;
  font-weight: 950;
}

.admin-navbar-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 14px 28px rgb(239 83 104 / 24%);
}

.admin-brand-mark svg {
  width: 30px;
  height: 30px;
}

.admin-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  padding: 0 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: var(--soft);
  color: var(--accent-dark);
}

.admin-role-chip,
.admin-return-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 950;
}

.admin-role-chip {
  border: 1px solid rgb(127 180 141 / 34%);
  background: rgb(237 244 236 / 86%);
  color: #5f8f6b;
}

.admin-return-link {
  border: 1px solid rgb(241 207 216 / 92%);
  background: #fff;
  color: var(--accent-dark);
  text-decoration: none;
  box-shadow: 0 12px 30px rgb(20 32 51 / 6%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.admin-return-link:hover {
  transform: translateY(-1px);
  color: var(--accent-dark);
  box-shadow: 0 16px 34px rgb(20 32 51 / 10%);
}

.admin-hero,
.admin-panel,
.admin-stat-card {
  border: 1px solid rgb(241 207 216 / 72%);
  border-radius: 18px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 18px 48px rgb(20 32 51 / 8%);
}

.admin-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
}

.admin-stat-card {
  min-height: 116px;
  padding: 18px;
}

.admin-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-stat-card strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 950;
}

.admin-panel {
  height: 100%;
  padding: 22px;
}

.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-panel-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
}

.admin-panel-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-report-table td:first-child strong,
.admin-report-table td:first-child small,
.admin-report-table td:first-child em {
  display: block;
}

.admin-report-table td:first-child small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.admin-muted-line {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-report-table td:first-child em {
  max-width: 460px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.admin-filter-card {
  height: 100%;
  display: block;
  border: 1px solid rgb(241 207 216 / 72%);
  border-radius: 18px;
  background: rgb(255 255 255 / 88%);
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 48px rgb(20 32 51 / 8%);
}

.admin-filter-card.active {
  border-color: var(--accent);
  background: var(--soft);
}

.admin-filter-card span,
.admin-filter-card strong {
  display: block;
}

.admin-filter-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-filter-card strong {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 950;
}

.admin-user-filter {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px auto;
  gap: 12px;
  align-items: center;
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-cell strong,
.admin-user-cell small {
  display: block;
}

.admin-user-cell small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-user-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 280px;
}

.admin-user-metrics span {
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.admin-user-actions {
  position: relative;
}

.admin-user-menu {
  width: 250px;
  border: 1px solid rgb(241 207 216 / 82%);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 18px 44px rgb(20 32 51 / 14%);
}

.admin-user-menu form + form {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgb(241 207 216 / 72%);
}

.admin-user-menu .form-control {
  margin-bottom: 6px;
  border-color: rgb(241 207 216 / 92%);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.admin-user-menu .dropdown-item {
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
}

.admin-reason-badge {
  background: var(--soft);
  color: var(--accent-dark);
}

.admin-report-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-empty-state {
  border: 1px dashed rgb(241 207 216 / 88%);
  border-radius: 16px;
  padding: 24px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

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

.community-member-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feed-grid {
  display: grid;
  gap: 18px;
}

.feed-card {
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 24px;
  background: rgb(255 253 253 / 90%);
  padding: 22px;
  box-shadow: 0 18px 48px rgb(20 32 51 / 8%);
}

.feed-card-head,
.feed-actor,
.feed-actions,
.like-action {
  display: flex;
  align-items: center;
}

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

.feed-actor {
  min-width: 0;
  gap: 12px;
}

.feed-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feed-avatar:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgb(190 79 97 / 16%);
}

.feed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-actor p,
.feed-actor small,
.community-horse-card h3,
.community-horse-card p {
  margin: 0;
}

.feed-actor p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
}

.feed-actor strong,
.feed-actor-link {
  color: var(--ink);
}

.feed-actor-link {
  font-weight: 950;
  text-decoration: none;
}

.feed-actor-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.feed-actor small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.horse-feed-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 900;
}

.community-horse-card {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 18px;
  border-radius: 20px;
  background: var(--soft);
  padding: 16px;
}

.community-horse-photo {
  min-height: 136px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
}

.community-horse-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-horse-photo .logo-mark {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  box-shadow: none;
}

.community-horse-card h3 {
  font-size: 28px;
  line-height: 1.05;
}

.community-horse-card p {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 900;
}

.feed-info-panel {
  border-radius: 20px;
  background: var(--soft);
  padding: 14px;
}

.mini-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.mini-feed-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mini-feed-grid dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.feed-media-carousel {
  position: relative;
  margin-top: 14px;
}

.feed-media-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.feed-media-track::-webkit-scrollbar {
  height: 6px;
}

.feed-media-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(239 83 104 / 26%);
}

.feed-media-tile {
  position: relative;
  width: min(100%, 360px);
  flex: 0 0 min(100%, 360px);
  min-height: 170px;
  display: grid;
  place-items: center;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 18px;
  border: 0;
  background: var(--navy-soft);
  color: #fff;
  padding: 0;
  cursor: pointer;
}

.feed-media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-media-tile span {
  position: absolute;
  inset: auto 12px 12px auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(20 32 51 / 64%);
}

.feed-carousel-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 84%);
  border-radius: 50%;
  background: rgb(255 253 253 / 88%);
  color: var(--accent-dark);
  box-shadow: 0 10px 26px rgb(20 32 51 / 14%);
  transform: translateY(-50%);
  cursor: pointer;
}

.feed-carousel-prev {
  left: 10px;
}

.feed-carousel-next {
  right: 10px;
}

.web-media-viewer {
  position: fixed;
  z-index: 1105;
  inset: 0;
  display: none;
  place-items: center;
  background: rgb(20 32 51 / 92%);
}

.web-media-viewer.show {
  display: grid;
}

.web-media-viewer[hidden] {
  display: none;
}

.web-media-viewer .modal-dialog,
.web-media-viewer .modal-content {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
}

.web-media-viewer .modal-content {
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.image-cropper-open {
  overflow: hidden;
}

.image-cropper-modal {
  position: fixed;
  z-index: 1800;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgb(20 32 51 / 58%);
  backdrop-filter: blur(10px);
}

.image-cropper-modal[hidden] {
  display: none;
}

.image-cropper-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(calc(100dvh - 44px), 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 26px;
  background:
    radial-gradient(circle at 96% 12%, rgb(250 232 237 / 72%), transparent 34%),
    rgb(255 253 253 / 98%);
  padding: 28px;
  box-shadow: 0 28px 90px rgb(20 32 51 / 26%);
}

.image-cropper-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.04;
}

.image-cropper-frame {
  position: relative;
  width: min(100%, 560px);
  max-width: 100%;
  margin: 18px auto 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(45deg, rgb(250 232 237 / 42%) 25%, transparent 25%),
    linear-gradient(-45deg, rgb(250 232 237 / 42%) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgb(250 232 237 / 42%) 75%),
    linear-gradient(-45deg, transparent 75%, rgb(250 232 237 / 42%) 75%),
    #fff;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  cursor: grab;
  touch-action: none;
}

.image-cropper-frame:active {
  cursor: grabbing;
}

.image-cropper-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgb(255 255 255 / 88%);
  border-radius: 14px;
  box-shadow: 0 0 0 999px rgb(20 32 51 / 18%);
  pointer-events: none;
}

.image-cropper-frame img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.image-cropper-zoom {
  display: grid;
  grid-template-columns: auto 1fr;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 900;
}

.image-cropper-zoom input {
  width: 100%;
  accent-color: var(--accent);
}

.viewer-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 74px 74px 48px;
}

.viewer-stage img,
.viewer-stage video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 22px 70px rgb(0 0 0 / 32%);
}

.viewer-close,
.viewer-nav,
.viewer-counter {
  position: fixed;
  z-index: 1110;
}

.viewer-close,
.viewer-nav {
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.viewer-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 34px;
  line-height: 1;
}

.viewer-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
}

.viewer-prev {
  left: 24px;
}

.viewer-next {
  right: 24px;
}

.viewer-counter {
  top: 26px;
  left: 50%;
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  padding: 10px 16px;
  font-weight: 900;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.dashboard-premium-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 16px;
  margin: 18px 0;
}

.dashboard-premium-strip-single {
  grid-template-columns: 1fr;
}

.dashboard-summary-panel,
.horse-competition-entry-panel {
  background:
    radial-gradient(circle at 8% 10%, rgb(201 74 106 / 7%), transparent 28%),
    linear-gradient(135deg, #fff 0%, #fffafb 55%, #f8fbf7 100%);
}

.horse-entry-list {
  gap: 12px;
}

.horse-history-entry-card {
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  padding: 14px 16px;
}

.horse-history-entry-card .passage-card-head {
  align-items: center;
  min-height: 96px;
}

.horse-history-entry-card .privacy-chip {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 7px 13px;
}

.horse-history-entry-card .passage-start-number {
  min-width: 48px;
  min-height: 48px;
  border-radius: 15px;
  font-size: 18px;
}

.horse-history-entry-card .passage-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.horse-history-entry-card .passage-summary-grid div {
  min-height: 70px;
  padding: 12px 14px;
}

.horse-entry-date {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  border: 1px solid rgb(241 207 216 / 78%);
  border-radius: 999px;
  background: rgb(255 255 255 / 78%);
  padding: 6px 12px;
  color: var(--accent-dark);
}

.horse-share-stack {
  display: grid;
  gap: 22px;
}

.summary-score {
  min-width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 16px 34px rgb(196 72 105 / 24%);
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.dashboard-summary-grid > div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(255 255 255 / 74%);
  padding: 14px;
}

.dashboard-summary-grid span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: .78rem;
}

.dashboard-summary-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.45rem;
}

.compact-stack-list {
  gap: 10px;
}

.horse-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.session-create-media-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff 0%, #fff9f3 100%);
  padding: 18px;
}

.compact-section-heading {
  margin-bottom: 12px;
}

.file-inline-action {
  position: relative;
  overflow: hidden;
}

.file-inline-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

[data-auto-upload-form].is-uploading .profile-file-drop,
[data-auto-upload-form].is-uploading .horse-photo-drop,
[data-auto-upload-form].is-uploading .file-picker-action {
  opacity: .72;
  pointer-events: none;
}

.billing-inline-action {
  margin: 0 0 0 auto;
  flex: 0 0 auto;
}

@media (max-width: 860px) {
  .dashboard-premium-strip,
  .horse-history-grid {
    grid-template-columns: 1fr;
  }

  .billing-action-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .billing-inline-action {
    width: 100%;
    margin-left: 0;
  }

  .billing-inline-action .small-action {
    width: 100%;
  }

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

.feed-actions {
  justify-content: flex-start;
  margin-top: 16px;
}

.like-action {
  min-height: 40px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  padding: 0 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.like-action:hover {
  transform: translateY(-1px);
}

.like-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.like-action.liked {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.like-action.liked .icon {
  fill: currentColor;
}

.feed-empty {
  min-height: 220px;
}

.feed-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.feed-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.feed-more-wrap .feed-more {
  margin-top: 0;
}

.feed-more.is-loading {
  cursor: wait;
  opacity: 0.72;
}

/* Premium app pass: denser surfaces, clearer actions, less marketing weight. */
.main-panel {
  padding-top: 28px;
}

.topbar {
  margin-bottom: 18px;
}

.topbar h1 {
  font-size: 40px;
  line-height: 1;
}

.page-hero,
.welcome-card {
  margin-bottom: 18px;
  border-radius: 20px;
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgb(255 253 253 / 96%) 0%, rgb(250 232 237 / 48%) 72%, rgb(238 242 246 / 56%) 100%);
  box-shadow: 0 14px 34px rgb(20 32 51 / 7%);
}

.welcome-card {
  min-height: 136px;
}

.page-hero h2 {
  max-width: 680px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
}

.page-hero p:not(.eyebrow),
.welcome-card p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.45;
}

.hero-actions {
  align-items: center;
  gap: 10px;
}

.hero-actions .primary-action,
.hero-actions .small-action,
.dashboard-hero-actions .primary-action,
.dashboard-hero-actions .small-action,
.checklist-toolbar .primary-action {
  min-width: 156px;
}

.page-hero .primary-action,
.welcome-card .primary-action,
.topbar .primary-action {
  min-height: var(--action-height);
}

.panel,
.timeline-card,
.feed-card,
.notification-web-card,
.checklist-summary-card {
  border-color: rgb(255 255 255 / 82%);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgb(20 32 51 / 6%);
}

.panel {
  padding: 18px;
}

.section-heading {
  margin-bottom: 12px;
}

.search-results-panel {
  display: grid;
  gap: 16px;
}

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

.global-result-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgb(241 207 216 / 78%);
  border-radius: 18px;
  background: rgb(255 253 253 / 82%);
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.global-result-card:hover {
  border-color: rgb(239 83 104 / 36%);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgb(20 32 51 / 8%);
}

.global-result-card img,
.global-result-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.global-result-card img {
  object-fit: cover;
}

.global-result-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.global-result-main strong {
  overflow: hidden;
  font-size: 20px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-result-main small {
  color: var(--muted);
  font-weight: 850;
}

.global-result-community-badge {
  width: 42px;
  height: 42px;
  justify-self: end;
}

.global-result-community-badge .icon {
  width: 20px;
  height: 20px;
}

.search-load-more {
  justify-self: center;
  margin-top: 4px;
}

.section-heading h2 {
  font-size: 27px;
}

.premium-tabs {
  margin-bottom: 16px;
  border-radius: 18px;
  padding: 5px;
  box-shadow: 0 10px 26px rgb(20 32 51 / 5%);
}

.premium-tabs a {
  min-height: 48px;
  border-radius: 14px;
}

.premium-tabs strong {
  min-width: 26px;
  padding: 4px 8px;
}

.calendar-panel {
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 30px rgb(20 32 51 / 6%);
}

.calendar-strip {
  padding: 0 2px 8px;
  scrollbar-width: thin;
}

.calendar-strip::-webkit-scrollbar {
  height: 4px;
}

.day-button {
  width: 50px;
  height: 76px;
  border-radius: 14px;
}

.timeline-list,
.feed-grid,
.notification-list {
  gap: 12px;
}

.timeline-card {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.timeline-date {
  min-height: 76px;
  border-radius: 18px;
}

.timeline-date strong {
  font-size: 26px;
}

.profile-title {
  margin-bottom: 14px;
}

.profile-title h2,
.reminder-head h2 {
  font-size: 24px;
  line-height: 1.12;
}

.info-grid {
  gap: 10px 14px;
}

.info-grid div {
  padding-top: 10px;
}

.info-grid dd {
  font-size: 15px;
}

.empty-panel {
  min-height: 170px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 28px;
}

.empty-panel h2,
.empty-panel p {
  margin: 0;
}

.empty-panel p {
  max-width: 620px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.empty-panel .primary-action {
  margin-top: 6px;
}

.horses-page-grid {
  gap: 16px;
}

.horse-order-card {
  grid-template-columns: minmax(180px, .78fr) minmax(0, 1fr);
  background: rgb(255 253 253 / 90%);
}

.horse-order-card .profile-title {
  display: block;
}

.horse-order-card .profile-title > div {
  min-width: 0;
}

.horse-order-card .profile-title h2 {
  min-width: 0;
}

.horse-order-card .profile-title p {
  margin-top: 0;
}

.horse-identity-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.horse-identity-line > span:first-child {
  min-width: 0;
}

.horse-identity-line .privacy-chip {
  padding: 7px 11px;
}

.horse-card-media,
.horse-card-media > img,
.horse-card-media > .profile-empty {
  min-height: 280px;
}

.horse-order-actions {
  gap: 10px;
}

.horse-order-actions .small-action {
  min-width: 104px;
}

.reminder-actions {
  grid-template-columns: minmax(0, auto) minmax(0, auto) minmax(0, auto) 38px;
  gap: 8px;
}

.reminder-actions .action-menu {
  grid-column: auto;
}

.reminder-chip {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-web-card {
  grid-template-columns: 58px minmax(0, 1fr) minmax(150px, auto);
  align-items: start;
  padding: 16px;
}

.notification-visual {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.notification-title-line h2 {
  font-size: 20px;
}

.notification-actions {
  max-width: 180px;
  justify-content: flex-end;
}

.notification-delete-action {
  width: 44px;
  height: 38px;
}

.feed-card {
  padding: 18px;
}

.community-horse-card {
  border-radius: 18px;
}

.profile-web-card {
  gap: 16px;
}

.profile-web-grid {
  gap: 16px;
}

.checklist-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.checklist-accordion {
  padding: 18px;
}

.checklist-detail-head h2 {
  font-size: 28px;
}

.checklist-actions {
  gap: 10px;
}

.checklist-hero {
  background:
    linear-gradient(135deg, rgb(255 253 253 / 94%) 0%, rgb(250 232 237 / 76%) 52%, rgb(238 242 246 / 82%) 100%);
}

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

.checklist-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  gap: 20px;
}

.checklist-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin: -6px 0 18px;
}

.checklist-toolbar .primary-action {
  flex: 0 0 auto;
}

.checklist-select-form {
  margin-right: auto;
}

.checklist-select-form select {
  min-height: 46px;
  border: 1px solid rgb(241 207 216 / 88%);
  border-radius: 999px;
  background: rgb(255 253 253 / 88%);
  color: var(--ink);
  padding: 0 42px 0 16px;
  font: inherit;
  font-weight: 900;
  outline: none;
}

.checklist-workspace-full {
  grid-template-columns: 1fr;
}

.checklist-sidebar,
.checklist-categories,
.checklist-items,
.web-form,
.checklist-actions {
  display: grid;
  gap: 12px;
}

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

.checklist-form-panel {
  align-self: start;
}

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

.web-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.web-form input,
.web-form textarea,
.web-form select {
  width: 100%;
  border: 1px solid rgb(241 207 216 / 88%);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
  font-weight: 800;
  outline: none;
  resize: vertical;
}

.web-form input:focus,
.web-form textarea:focus,
.web-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(239 83 104 / 12%);
}

.checklist-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 22px;
  background: rgb(255 253 253 / 88%);
  padding: 18px;
  box-shadow: 0 15px 38px rgb(20 32 51 / 7%);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.checklist-summary-card:hover,
.checklist-summary-card.active {
  transform: translateY(-2px);
  border-color: rgb(239 83 104 / 36%);
  box-shadow: 0 20px 48px rgb(20 32 51 / 10%);
}

.checklist-summary-card h2 {
  margin: 4px 0 6px;
  font-size: 22px;
  line-height: 1.08;
}

.checklist-summary-card p,
.checklist-detail-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.progress-ring {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--accent-dark) var(--progress), var(--soft) 0);
}

.progress-ring strong,
.progress-ring span {
  grid-area: 1 / 1;
}

.progress-ring strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  transform: translateX(-4px);
}

.progress-ring span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  transform: translate(14px, 3px);
}

.checklist-detail-panel {
  min-height: 560px;
}

.checklist-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.checklist-detail-head h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.02;
}

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

.small-action {
  min-height: var(--action-small-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--action-radius);
  background: #fff;
  color: var(--accent-dark);
  padding: 0 16px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 24px rgb(20 32 51 / 5%);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.small-action:hover {
  border-color: rgb(239 83 104 / 42%);
  background: rgb(255 253 253 / 96%);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgb(190 79 97 / 12%);
}

.muted-action {
  color: var(--muted);
}

.action-menu {
  position: relative;
  z-index: 30;
}

.action-menu-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
  padding: 0;
}

.action-menu-toggle:hover,
.action-menu-toggle:focus-visible,
.action-menu-toggle[aria-expanded="true"] {
  background: var(--soft);
  border-color: rgb(216 75 97 / 34%);
  outline: none;
}

.action-menu-toggle.add-member-action .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}

.action-menu-toggle span,
.action-menu-toggle span::before,
.action-menu-toggle span::after {
  width: 4px;
  height: 4px;
  display: block;
  border-radius: 50%;
  background: currentColor;
}

.action-menu-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.action-menu-toggle span::before,
.action-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.action-menu-toggle span::before {
  top: -8px;
}

.action-menu-toggle span::after {
  top: 8px;
}

.action-menu-panel {
  z-index: 1080;
  min-width: 238px;
  border: 1px solid rgb(241 207 216 / 82%);
  border-radius: 16px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 18px 44px rgb(20 32 51 / 14%);
}

.dropdown-menu.action-menu-panel {
  z-index: 1080;
  --bs-dropdown-min-width: 238px;
  --bs-dropdown-padding-x: 8px;
  --bs-dropdown-padding-y: 8px;
  --bs-dropdown-border-color: rgb(241 207 216 / 82%);
  --bs-dropdown-border-radius: 16px;
  --bs-dropdown-bg: #fff;
  --bs-dropdown-box-shadow: 0 18px 44px rgb(20 32 51 / 14%);
  margin-top: 8px;
}

.action-menu-panel form,
.reminder-actions .action-menu-panel form {
  display: block;
  width: 100%;
  margin: 0;
}

.action-menu-panel button,
.action-menu-panel a {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.action-menu-panel button:hover,
.action-menu-panel a:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

.action-menu-panel .danger-menu-action {
  color: var(--danger);
}

.action-menu-panel .report-menu-action {
  color: var(--accent-dark);
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  background: rgb(20 18 24 / 54%);
  padding: 22px;
}

.report-modal[hidden] {
  display: none;
}

.report-card {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  position: relative;
  border: 1px solid rgb(241 207 216 / 88%);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgb(250 232 237 / 82%), transparent 40%),
    #fff;
  padding: 30px;
  box-shadow: 0 30px 80px rgb(20 32 51 / 24%);
}

.report-form {
  margin-top: 18px;
}

.report-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 0;
}

.report-reasons legend,
.report-details span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 4px;
}

.report-reasons label {
  min-height: 46px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid rgb(241 207 216 / 86%);
  border-radius: 14px;
  background: rgb(255 255 255 / 84%);
  padding: 0 12px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
}

.report-reasons input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin: 0;
  align-self: center;
}

.report-reasons label span {
  min-width: 0;
  align-self: center;
}

.report-details {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.report-details textarea {
  width: 100%;
  border: 1px solid rgb(241 207 216 / 86%);
  border-radius: 16px;
  padding: 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  resize: vertical;
}

.reportable-media-card,
.reportable-media-item {
  position: relative;
}

.managed-media-card.reportable-media-card {
  overflow: visible;
}

.reportable-media-item {
  min-width: 0;
}

.feed-media-track .reportable-media-item {
  width: min(100%, 360px);
  flex: 0 0 min(100%, 360px);
  scroll-snap-align: start;
}

.reportable-media-item .feed-media-tile {
  width: 100%;
  height: 100%;
  flex: none;
}

.media-report-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
}

.media-report-menu .action-menu-toggle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 10px 24px rgb(20 32 51 / 14%);
}

.feed-card-head .action-menu {
  margin-left: auto;
}

@media (max-width: 640px) {
  .report-card {
    padding: 24px;
    border-radius: 22px;
  }

  .report-reasons {
    grid-template-columns: 1fr;
  }
}

.menu-count-badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 0 7px;
  font-size: 11px;
  font-weight: 950;
  margin-left: auto;
}

.checklist-progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
  margin-bottom: 20px;
}

.checklist-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--sage), var(--gold));
}

.checklist-category {
  border: 1px solid rgb(241 207 216 / 72%);
  border-radius: 20px;
  background: #fff;
  padding: 18px;
}

.checklist-category h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

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

.check-item {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgb(241 207 216 / 82%);
  border-radius: 14px;
  background: rgb(255 253 253 / 88%);
  color: var(--muted);
  padding: 0 13px;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.check-item span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #fff;
}

.check-item.checked {
  border-color: rgb(124 155 122 / 50%);
  background: var(--sage-soft);
  color: var(--ink);
}

.check-item.checked span {
  border-color: var(--sage);
  background: var(--sage);
}

.checklist-empty-detail {
  min-height: 460px;
}

.checklist-accordion-list {
  display: grid;
  gap: 14px;
}

.checklist-accordion {
  position: relative;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, padding 180ms ease, border-color 180ms ease;
}

.checklist-accordion:has(.dropdown-menu.show) {
  z-index: 60;
}

.checklist-accordion:not([open]):hover {
  transform: translateY(-2px);
  padding-top: 24px;
  padding-bottom: 24px;
  border-color: rgb(239 83 104 / 30%);
  box-shadow: 0 22px 56px rgb(20 32 51 / 11%);
}

.checklist-accordion summary {
  display: block;
  list-style: none;
  cursor: pointer;
}

.checklist-accordion summary::-webkit-details-marker {
  display: none;
}

.checklist-accordion .checklist-detail-head {
  min-height: 76px;
  padding-right: 310px;
  margin-bottom: 12px;
}

.checklist-accordion .checklist-actions {
  position: absolute;
  top: 22px;
  right: 22px;
}

.checklist-accordion .checklist-progress-bar {
  margin-bottom: 0;
}

.checklist-accordion[open] .checklist-progress-bar {
  margin-bottom: 20px;
}

.eq-modal-open {
  overflow: hidden;
}

.eq-modal-backdrop {
  position: fixed;
  z-index: 1090;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(20 32 51 / 36%);
  backdrop-filter: blur(12px);
}

.eq-modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-height: min(86vh, 860px);
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 24px;
  background: rgb(255 253 253 / 96%);
  padding: 26px;
  box-shadow: 0 28px 90px rgb(20 32 51 / 22%);
}

.eq-bootstrap-modal .modal-dialog {
  width: min(calc(100% - 32px), var(--eq-modal-width, 720px));
  max-width: var(--eq-modal-width, 720px);
  margin-right: auto;
  margin-left: auto;
}

.eq-bootstrap-modal {
  z-index: 1500 !important;
}

.modal-backdrop {
  z-index: 1490 !important;
}

.eq-bootstrap-modal .modal-content {
  position: relative;
  z-index: 1;
  color: var(--ink);
}

.eq-bootstrap-modal.show {
  display: block;
}

.modal-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.05;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--accent-dark);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
}

.checklist-modal-dialog {
  --eq-modal-width: 720px;
  max-height: calc(100dvh - 32px);
}

.eq-bootstrap-modal .checklist-modal-dialog .checklist-modal {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.builder-head,
.builder-category-head,
.builder-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.builder-head {
  justify-content: space-between;
  margin-top: 4px;
}

.builder-head strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.builder-categories {
  display: grid;
  gap: 12px;
}

.builder-category {
  display: grid;
  gap: 10px;
  border: 1px solid rgb(241 207 216 / 82%);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.builder-category-head input {
  flex: 1;
}

.builder-items {
  display: grid;
  gap: 8px;
}

.builder-item input {
  flex: 1;
}

.icon-action {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.reminders-hero,
.notifications-hero {
  background:
    linear-gradient(135deg, rgb(255 253 253 / 94%) 0%, rgb(250 232 237 / 72%) 58%, rgb(238 242 246 / 80%) 100%);
}

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

.reminder-create-panel {
  margin-bottom: 18px;
}

.reminder-modal-dialog {
  --eq-modal-width: 880px;
}

.reminder-modal {
  padding: 30px;
}

.reminder-modal .eyebrow {
  margin-bottom: 6px;
}

.reminder-modal h2 {
  margin-bottom: 22px;
}

.premium-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.premium-form-grid .wide-field,
.premium-form-grid .wide-info,
.premium-form-grid .form-switch {
  grid-column: 1 / -1;
}

.reminder-form {
  padding: 4px 0 0;
}

.reminder-form [hidden] {
  display: none !important;
}

.reminder-form label {
  position: relative;
}

.reminder-form label > span:not(.switch-knob) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.reminder-form input,
.reminder-form textarea,
.reminder-form select {
  min-height: 52px;
  border-radius: 16px;
  border-color: rgb(241 207 216 / 88%);
  background-color: rgb(255 255 255 / 86%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 78%);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.reminder-form textarea {
  min-height: 116px;
  line-height: 1.45;
}

.reminder-form input:hover,
.reminder-form textarea:hover,
.reminder-form select:hover {
  border-color: rgb(239 83 104 / 52%);
  background-color: #fff;
}

.reminder-form select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-dark) 50%),
    linear-gradient(135deg, var(--accent-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 23px) 50%,
    calc(100% - 17px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.reminder-helper {
  padding: 14px 16px;
  border: 1px solid rgb(241 207 216 / 78%);
  border-radius: 16px;
  background: rgb(249 232 237 / 74%);
  color: var(--muted);
  font-weight: 850;
}

.form-switch {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgb(241 207 216 / 76%);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, rgb(250 232 237 / 34%));
  padding: 14px 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.form-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-switch span {
  position: relative;
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  padding-right: 66px;
}

.form-switch span::after {
  content: "";
  position: absolute;
  right: 0;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgb(123 108 114 / 20%);
  box-shadow: inset 0 0 0 1px rgb(123 108 114 / 10%);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.form-switch span::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: 25px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 14px rgb(20 32 51 / 18%);
  transition: transform 160ms ease;
}

.form-switch input:checked + span::after {
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%);
}

.form-switch input:checked + span::before {
  transform: translateX(22px);
}

.reminder-board {
  gap: 14px;
}

.notification-list {
  display: grid;
  gap: 16px;
}

.reminder-card {
  grid-template-columns: 82px minmax(0, 1fr);
  border-color: rgb(255 255 255 / 78%);
  background: rgb(255 253 253 / 88%);
  box-shadow: 0 16px 44px rgb(20 32 51 / 7%);
}

.reminder-card.is-completed {
  opacity: .82;
}

.reminder-date-card {
  min-height: 92px;
}

.reminder-date-card small {
  display: block;
}

.reminder-date-card small {
  margin-top: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 18%);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.reminder-body {
  min-width: 0;
  padding: 4px 2px;
}

.reminder-head {
  margin-bottom: 14px;
}

.reminder-head h2 {
  font-size: 25px;
}

.reminder-head p {
  margin-top: 6px;
}

.reminder-actions {
  display: grid;
  grid-template-columns: max-content max-content 38px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.reminder-actions > form {
  display: inline-flex;
}

.reminder-actions .action-menu {
  flex: 0 0 auto;
  grid-column: 3;
  margin-top: 0;
}

.reminder-actions .action-menu-toggle {
  width: 38px;
  height: 38px;
}

.reminder-chip {
  flex: 0 0 auto;
  background: var(--navy-soft);
  color: var(--muted);
}

.reminder-chip.is-on {
  background: var(--sage-soft);
  color: var(--sage);
}

.reminder-chip.is-off {
  background: var(--soft);
  color: var(--accent-dark);
}

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

.reminder-info-grid .wide-info {
  grid-column: auto;
}

.nested-form-panel {
  margin-top: 14px;
  box-shadow: inset 0 0 0 1px rgb(241 207 216 / 42%);
}

.notification-web-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 24px;
  background: rgb(255 253 253 / 90%);
  padding: 18px;
  box-shadow: 0 18px 48px rgb(20 32 51 / 8%);
}

.notification-web-card.unread {
  border-color: rgb(239 83 104 / 42%);
  box-shadow: 0 22px 58px rgb(190 79 97 / 12%);
}

.notification-visual {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--soft), #fff);
  color: var(--accent-dark);
}

.notification-visual img,
.notification-visual .logo-mark {
  width: 100%;
  height: 100%;
}

.notification-visual img {
  object-fit: cover;
}

.notification-visual .logo-mark {
  border-radius: 20px;
  box-shadow: none;
}

.notification-web-copy {
  min-width: 0;
}

.notification-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.notification-title-line h2 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.1;
}

.notification-web-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.48;
}

.notification-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.notification-meta-row span,
.notification-meta-row a,
.unread-pill {
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.notification-meta-row a,
.unread-pill {
  background: var(--soft);
  color: var(--accent-dark);
}

.notification-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 240px;
}

.notification-delete-action {
  width: 66px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d75c68 0%, var(--danger) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 30px rgb(207 63 75 / 22%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.notification-delete-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgb(207 63 75 / 28%);
}

.notification-delete-action .icon {
  width: 20px;
  height: 20px;
}

.notification-settings-panel {
  margin-bottom: 20px;
}

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

.notification-setting-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgb(241 207 216 / 72%);
  border-radius: 20px;
  background: rgb(255 255 255 / 74%);
}

.notification-setting-card strong {
  color: var(--ink);
  font-size: 16px;
}

.notification-setting-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.notification-setting-card .form-control {
  width: 116px;
}

.premium-switch {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(241 207 216 / 86%);
  border-radius: 999px;
  background: #fff;
  padding: 6px 12px 6px 7px;
  cursor: pointer;
  user-select: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.premium-switch:hover {
  border-color: rgb(239 83 104 / 50%);
  box-shadow: 0 10px 26px rgb(20 32 51 / 8%);
}

.premium-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.premium-switch span {
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgb(241 207 216 / 82%);
  box-shadow: inset 0 0 0 1px rgb(239 83 104 / 16%);
  transition: background 180ms ease;
}

.premium-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 14px rgb(20 32 51 / 18%);
  transition: transform 180ms ease;
}

.premium-switch input:checked + span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.premium-switch input:checked + span::after {
  transform: translateX(18px);
}

.premium-switch input:focus-visible + span {
  box-shadow: 0 0 0 4px rgb(239 83 104 / 14%), inset 0 0 0 1px rgb(239 83 104 / 16%);
}

.premium-switch strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.feed-horse-link {
  color: var(--accent-dark);
  font-weight: 950;
  text-decoration: none;
}

.feed-horse-link:hover {
  text-decoration: underline;
}

.competition-card {
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 24px;
  background: rgb(255 253 253 / 88%);
  padding: 22px;
  box-shadow: 0 18px 48px rgb(20 32 51 / 8%);
}

.competition-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 28px;
  align-items: start;
}

.competition-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
}

.competition-head h2 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.08;
}

.competition-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.competition-list-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.date-stack {
  min-width: 74px;
  border-radius: 20px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 13px 12px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgb(241 207 216 / 60%);
}

.date-stack span,
.date-stack small {
  display: block;
}

.date-stack span {
  font-size: 18px;
  font-weight: 900;
}

.date-stack small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 900;
}

.event-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgb(241 207 216 / 62%);
}

.event-strip span {
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--muted);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

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

.list-card {
  border: 1px solid rgb(241 207 216 / 84%);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgb(20 32 51 / 5%);
}

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

.web-toast {
  border: 1px solid rgb(124 155 122 / 35%);
  border-radius: 14px;
  background: var(--sage-soft);
  color: var(--sage);
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgb(20 32 51 / 8%);
}

.profile-web-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
}

.profile-premium-grid {
  grid-template-columns: 1fr;
}

.profile-web-card {
  display: grid;
  gap: 18px;
}

.profile-web-hero {
  margin-bottom: 18px;
  z-index: 40;
  overflow: visible;
}

.profile-web-hero .dropdown-menu.action-menu-panel {
  z-index: 2100;
}

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

.profile-hero-user {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar-xl {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--ink), #253550);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 18px 44px rgb(20 32 51 / 16%);
}

.profile-avatar-xl img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity-card {
  padding: 0;
  overflow: hidden;
}

.profile-identity-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .75fr);
  gap: 0;
}

.profile-identity-main > div {
  padding: 26px;
}

.profile-photo-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  border-left: 1px solid rgb(241 207 216 / 68%);
  background:
    radial-gradient(circle at 50% 0%, rgb(250 232 237 / 92%), transparent 48%),
    linear-gradient(160deg, rgb(255 255 255 / 86%), rgb(250 244 246 / 84%));
  padding: 26px;
}

.profile-photo-preview {
  width: 142px;
  height: 142px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 34px;
  background: linear-gradient(145deg, var(--ink), #253550);
  color: #fff;
  font-size: 52px;
  font-weight: 950;
  box-shadow: 0 26px 60px rgb(20 32 51 / 15%);
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-panel h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 24px;
}

.profile-photo-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.profile-file-drop {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px dashed rgb(239 83 104 / 44%);
  border-radius: 18px;
  background: rgb(255 255 255 / 78%);
  color: var(--accent-dark);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-file-drop:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: #fff;
}

.profile-file-drop > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
}

.profile-file-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-photo-delete-form .danger-action {
  width: 100%;
}

.section-copy {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.web-form {
  display: grid;
  gap: 13px;
}

.web-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.web-form small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.web-form .form-control,
.web-form .form-select,
.checklist-select-form .form-select {
  min-height: 48px;
  border: 1px solid rgb(241 207 216 / 92%);
  border-radius: 13px;
  background-color: #fff;
  color: var(--ink);
  font-weight: 850;
  box-shadow: none;
}

.web-form .form-control:focus,
.web-form .form-select:focus,
.checklist-select-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(239 83 104 / 12%);
}

.switch-line {
  min-height: 48px;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid rgb(241 207 216 / 82%);
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
}

.switch-line input {
  width: 19px;
  height: 19px;
  accent-color: var(--accent-dark);
}

.premium-switch-line {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgb(241 207 216 / 82%);
  border-radius: 16px;
  background: rgb(255 255 255 / 78%);
  padding: 10px 14px;
  cursor: pointer;
}

.premium-switch-line input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.premium-switch-line span {
  position: relative;
  width: 48px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgb(219 208 212 / 72%);
  box-shadow: inset 0 0 0 1px rgb(20 32 51 / 8%);
  transition: background 160ms ease;
}

.premium-switch-line span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgb(20 32 51 / 18%);
  transition: transform 160ms ease;
}

.premium-switch-line input:checked + span {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.premium-switch-line input:checked + span::after {
  transform: translateX(18px);
}

.premium-switch-line strong {
  color: var(--ink);
  font-size: 14px;
}

.storage-progress {
  margin: -4px 0 4px;
}

.profile-storage-card,
.profile-billing-card {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(255 250 251 / 82%)),
    #fff;
}

.storage-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.storage-meter-line {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.storage-meter-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.storage-meter strong {
  min-width: 54px;
  color: var(--accent-dark);
  text-align: right;
  font-weight: 950;
}

.storage-pending-notice {
  margin: 14px 0 0;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: rgb(255 245 248 / 72%);
  color: var(--accent-dark);
  font-weight: 850;
  padding: 12px 14px;
}

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

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

.addon-option {
  position: relative;
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid rgb(241 207 216 / 88%);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.addon-option:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgb(20 32 51 / 9%);
}

.addon-option.selected,
.addon-option:has(input:checked) {
  border-color: var(--accent-dark);
  background: var(--soft);
}

.addon-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.addon-option.selected .addon-check,
.addon-option:has(input:checked) .addon-check {
  display: grid;
}

.addon-option.is-disabled {
  opacity: .48;
  cursor: not-allowed;
}

.addon-option.is-disabled:hover {
  transform: none;
  border-color: rgb(241 207 216 / 88%);
  box-shadow: none;
}

.addon-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.addon-option strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.addon-option span {
  color: var(--muted);
  font-weight: 850;
}

.addon-option .addon-check {
  color: #fff;
}

.addon-grid .primary-action {
  grid-column: 1 / -1;
}

.billing-notice {
  border-radius: 14px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 12px 14px;
  font-weight: 900;
}

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

.billing-columns h3 {
  margin: 0 0 12px;
}

.billing-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.billing-action-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid rgb(241 207 216 / 72%);
  border-radius: 22px;
  background: rgb(255 255 255 / 78%);
  padding: 18px;
}

.billing-action-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.billing-action-head > span {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--soft);
  color: var(--accent-dark);
}

.billing-action-head h3 {
  margin: 0 0 4px;
  color: var(--ink);
}

.billing-action-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.billing-subscription-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgb(241 207 216 / 68%);
  padding-top: 16px;
}

.billing-subscription-row p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.danger-zone {
  border-color: rgb(207 63 75 / 34%);
}

.profile-danger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(255 247 248 / 80%)),
    #fff;
}

.profile-danger-card h2,
.profile-danger-card p {
  margin: 0;
}

.profile-danger-card p {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 750;
}

.profile-delete-modal-dialog {
  --eq-modal-width: 760px;
}

.profile-delete-modal {
  display: grid;
  gap: 16px;
  padding: 34px;
}

.profile-delete-modal h2,
.profile-delete-modal p {
  margin: 0;
}

.profile-delete-modal > p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.danger-modal-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--soft);
  color: var(--danger);
}

.danger-modal-icon .icon {
  width: 30px;
  height: 30px;
}

.modal-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-action-row .primary-action {
  min-width: 148px;
}

.delete-confirm-modal {
  position: fixed;
  z-index: 2200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.delete-confirm-modal[hidden] {
  display: none;
}

.delete-confirm-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgb(255 255 255 / 18%), transparent 32%),
    rgb(20 32 51 / 42%);
  backdrop-filter: blur(14px);
}

.delete-confirm-card {
  position: relative;
  width: min(100%, 480px);
  display: grid;
  gap: 14px;
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 24px;
  background: linear-gradient(145deg, rgb(255 253 253 / 98%) 0%, rgb(255 247 249 / 96%) 100%);
  padding: 30px;
  color: var(--ink);
  box-shadow: 0 34px 100px rgb(20 32 51 / 28%);
}

.delete-confirm-close {
  top: 14px;
  right: 14px;
}

.delete-confirm-card .danger-modal-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: rgb(255 231 237 / 86%);
}

.delete-confirm-card h2,
.delete-confirm-card p {
  margin: 0;
}

.delete-confirm-card h2 {
  max-width: calc(100% - 52px);
  font-size: 30px;
  line-height: 1.04;
}

.delete-confirm-card > p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.delete-confirm-actions {
  margin-top: 8px;
}

.delete-confirm-actions .small-action {
  min-width: 132px;
}

.delete-confirm-primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, #d75c68 0%, var(--danger) 100%) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgb(190 79 97 / 24%) !important;
}

.storage-confirm-modal .danger-modal-icon {
  background: rgb(250 226 233 / 88%);
  color: var(--accent-dark);
}

.action-confirm-modal .danger-modal-icon {
  background: rgb(250 226 233 / 88%);
  color: var(--accent-dark);
}

.action-confirm-modal .delete-confirm-primary {
  background: var(--accent-dark) !important;
  box-shadow: 0 16px 34px rgb(193 75 104 / 22%) !important;
}

.storage-confirm-modal .delete-confirm-primary {
  background: var(--accent-dark) !important;
  box-shadow: 0 16px 34px rgb(193 75 104 / 22%) !important;
}

.storage-confirm-modal .delete-confirm-primary:disabled {
  cursor: wait;
  opacity: .62;
}

.storage-confirm-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  border: 1px solid var(--soft-line);
  border-radius: 16px;
  background: rgb(255 255 255 / 76%);
  padding: 16px;
}

.storage-confirm-summary span {
  color: var(--muted);
  font-weight: 800;
}

.storage-confirm-summary strong {
  color: var(--ink);
  font-size: 1rem;
  text-align: right;
}

.storage-confirm-proration {
  color: var(--accent-dark) !important;
  font-size: .86rem;
}

.modal-secondary-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 12px 28px rgb(20 32 51 / 6%);
}

.danger-zone p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.danger-action {
  color: var(--danger);
}

.small-action.danger-action {
  min-height: var(--action-height);
  border-color: rgb(239 83 104 / 34%);
  border-radius: var(--action-radius);
  background: #fff;
  padding: 0 20px;
  color: var(--danger);
  box-shadow: 0 12px 28px rgb(20 32 51 / 6%);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.small-action.danger-action:hover {
  border-color: rgb(239 83 104 / 52%);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgb(190 79 97 / 14%);
}

.danger-primary {
  background: linear-gradient(135deg, #d75c68 0%, var(--danger) 100%);
}

.delete-inline-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.compact-health-form {
  margin-bottom: 22px;
}

.horse-health-form {
  border: 1px solid rgb(241 207 216 / 72%);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgb(250 232 237 / 52%), rgb(255 255 255 / 82%)),
    #fff;
  padding: 18px;
}

.health-page-form {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.horse-form-layout {
  margin-bottom: 24px;
}

.horse-profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
}

.horse-form-main {
  min-width: 0;
}

.horse-form-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.horse-form-card {
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgb(250 232 237 / 50%), transparent 34%),
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(255 249 250 / 88%));
}

.compact-section-heading {
  margin-bottom: 14px;
}

.compact-section-heading h2 {
  margin: 0;
  font-size: 24px;
}

.horse-photo-drop {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed rgb(239 83 104 / 46%);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgb(250 232 237 / 58%), rgb(255 255 255 / 78%)),
    #fff;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.horse-photo-preview {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--soft);
  box-shadow: 0 18px 42px rgb(20 32 51 / 8%);
}

.horse-photo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.horse-photo-drop:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgb(190 79 97 / 12%);
}

.horse-photo-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.horse-photo-drop-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--soft);
  color: var(--accent-dark);
}

.horse-photo-drop strong,
.horse-photo-drop small {
  display: block;
}

.horse-photo-drop strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.horse-photo-drop small {
  max-width: 260px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.horse-photo-delete-action {
  width: 100%;
  margin-top: 12px;
}

.visibility-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.visibility-choice.choice-pill span {
  min-width: 0;
  width: 100%;
  justify-content: center;
  border-radius: 16px;
  padding-inline: 10px;
  font-size: 13px;
  white-space: nowrap;
}

.horse-switch-line {
  justify-content: space-between;
  margin-top: 12px;
}

.horse-owner-selector {
  display: grid;
  gap: 10px;
}

.horse-owner-name-field {
  display: grid;
  gap: 7px;
}

.horse-switch-line > span:first-child {
  width: auto;
  height: auto;
  flex: 1 1 auto;
  display: grid;
  gap: 3px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.horse-switch-line > span:first-child::after {
  content: none;
}

.horse-switch-line small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.horse-switch-line .premium-toggle {
  width: 48px;
  height: 30px;
  flex: 0 0 auto;
  position: relative;
  border-radius: 999px;
  background: rgb(219 208 212 / 72%);
  box-shadow: inset 0 0 0 1px rgb(20 32 51 / 8%);
}

.horse-switch-line .premium-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgb(20 32 51 / 18%);
  transition: transform 160ms ease;
}

.horse-switch-line .premium-toggle:has(input:checked) {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.horse-switch-line .premium-toggle:has(input:checked)::after {
  transform: translateX(18px);
}

.horse-switch-line .premium-toggle i {
  display: none;
}

.horse-submit-action {
  width: 100%;
}

.horse-health-modal-dialog {
  --eq-modal-width: 880px;
}

.horse-health-modal .horse-health-form {
  margin-top: 16px;
}

.horse-subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 12px;
}

.health-row-card {
  border-color: rgb(241 207 216 / 78%);
  background: rgb(255 255 255 / 84%);
}

.compact-button {
  width: auto;
  padding-inline: 22px;
}

.section-subheading {
  margin: 24px 0 12px;
}

.section-subheading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

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

.horse-upload-grid {
  align-items: stretch;
}

.mini-upload-form {
  display: grid;
  gap: 9px;
  border: 1px solid rgb(241 207 216 / 86%);
  border-radius: 16px;
  background: rgb(250 242 244 / 72%);
  padding: 14px;
}

.mini-upload-form form {
  display: grid;
  gap: 9px;
}

.mini-upload-form.is-locked {
  border-style: dashed;
  background: rgb(246 241 236 / 78%);
}

.mini-upload-form.is-locked .upload-card-head > span,
.media-lock-card > span {
  background: rgb(239 83 104 / 10%);
  color: var(--muted);
}

.media-lock-copy,
.media-lock-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.media-lock-card {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed rgb(191 154 134 / 34%);
  border-radius: 16px;
  background: rgb(246 241 236 / 78%);
  padding: 12px;
}

.media-lock-card > span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.horse-upload-card {
  align-content: start;
  gap: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgb(255 246 229 / 70%), transparent 34%),
    rgb(255 255 255 / 84%);
  padding: 16px;
}

.upload-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-card-head > span {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--soft);
  color: var(--accent-dark);
}

.upload-card-head strong,
.upload-card-head small {
  display: block;
}

.upload-card-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.upload-card-head small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.compact-file-drop {
  min-height: 62px;
  padding: 12px;
}

.compact-file-drop span {
  font-size: 13px;
}

.mini-upload-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.mini-upload-form input {
  max-width: 100%;
  border: 1px solid rgb(241 207 216 / 92%);
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  color: var(--ink);
  font: inherit;
}

.media-manage-item {
  position: relative;
}

.media-manage-item form {
  position: absolute;
  right: 8px;
  bottom: 8px;
}

.media-manage-item form button {
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 999px;
  background: rgb(20 32 51 / 82%);
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
}

.web-subscription-panel {
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at 90% 10%, rgb(201 74 106 / 9%), transparent 28%),
    linear-gradient(135deg, #fff 0%, #fffafb 58%, #f8fbf7 100%);
}

.profile-subscription-section {
  grid-column: 1 / -1;
}

.dashboard-subscription-footer {
  margin-top: 18px;
}

.web-subscription-heading {
  align-items: flex-start;
  margin-bottom: 0;
}

.subscription-current-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgb(202 225 202 / 90%);
  border-radius: 20px;
  background: rgb(248 253 248 / 86%);
}

.subscription-current-card strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.subscription-current-card p {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.subscription-current-card .subscription-pending-copy {
  color: var(--accent);
}

.subscription-current-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.subscription-current-actions form {
  margin: 0;
}

.subscription-current-actions .small-action {
  min-height: 44px;
  cursor: pointer;
}

.subscription-current-actions .small-action.secondary {
  background: #fff;
}

.web-subscription-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.web-plan-family-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgb(241 207 216 / 90%);
  border-radius: 22px;
  background: rgb(255 255 255 / 88%);
  padding: 18px;
  box-shadow: 0 18px 42px rgb(35 28 32 / 7%);
}

.web-plan-family-card.featured {
  border-color: rgb(214 157 50 / 72%);
  background: linear-gradient(150deg, #fff 0%, #fff8e9 100%);
}

.web-plan-family-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.web-plan-family-head > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
}

.web-plan-family-head h3,
.web-plan-family-card p {
  margin: 0;
}

.web-plan-family-head h3 {
  color: var(--ink);
  font-size: 24px;
}

.web-plan-family-card > p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.web-plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.web-plan-card {
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 188px;
  border: 1px solid rgb(241 207 216 / 82%);
  border-radius: 18px;
  background: #fff;
  padding: 15px;
}

.web-plan-card.featured {
  border-color: rgb(214 157 50 / 58%);
  background: rgb(255 250 239 / 74%);
}

.web-plan-card span {
  width: fit-content;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.web-plan-card strong {
  color: var(--ink);
  font-size: 20px;
}

.web-plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.web-plan-card button {
  align-self: end;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.form-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.rating-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.rating-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 50px;
  --rating-bg: #fff;
  --rating-border: rgb(241 207 216 / 86%);
  --rating-text: var(--accent-dark);
  cursor: pointer;
}

.rating-card.note-score-5 {
  --rating-bg: #b7e4c7;
  --rating-border: rgb(47 111 79 / 28%);
  --rating-text: #2f6f4f;
}

.rating-card.note-score-4 {
  --rating-bg: #d9ed92;
  --rating-border: rgb(92 111 24 / 28%);
  --rating-text: #5c6f18;
}

.rating-card.note-score-3 {
  --rating-bg: #ffe69a;
  --rating-border: rgb(122 90 0 / 28%);
  --rating-text: #7a5a00;
}

.rating-card.note-score-2 {
  --rating-bg: #ffd6a5;
  --rating-border: rgb(138 77 0 / 28%);
  --rating-text: #8a4d00;
}

.rating-card.note-score-1 {
  --rating-bg: #ffcad4;
  --rating-border: rgb(155 54 80 / 28%);
  --rating-text: #9b3650;
}

.rating-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-card span {
  position: relative;
  width: 100%;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rating-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--rating-bg) 22%, #fff);
  color: var(--rating-text);
  font-size: 18px;
  font-weight: 950;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rating-card span::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 16%, transparent);
  opacity: 0;
  transform: scale(.7);
  transition: opacity 160ms ease, transform 160ms ease;
}

.rating-card:hover span {
  transform: translateY(-1px);
  border-color: var(--rating-text);
  background: color-mix(in srgb, var(--rating-bg) 42%, #fff);
  color: var(--rating-text);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--rating-text) 10%, transparent);
}

.rating-card input:checked + span {
  transform: translateY(-2px);
  border-color: var(--rating-text);
  background: var(--rating-bg);
  color: var(--rating-text);
  box-shadow: inset 0 0 0 1px currentColor, 0 16px 30px color-mix(in srgb, var(--rating-text) 20%, transparent);
}

.rating-card input:checked + span::after {
  opacity: 1;
  transform: scale(1);
}

.rating-card input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--rating-text) 24%, transparent);
  outline-offset: 3px;
}

.card-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-choice-grid {
  gap: 8px;
}

.month-day-choice-grid {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
}

.month-day-choice-grid .choice-pill span {
  min-width: 46px;
  justify-content: center;
  padding-inline: 12px;
}

.choice-pill {
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgb(241 207 216 / 92%);
  border-radius: 999px;
  background: rgb(255 255 255 / 78%);
  color: var(--ink);
  font-weight: 900;
  box-shadow: inset 0 0 0 rgb(255 255 255 / 80%);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.choice-pill:hover span,
.choice-pill input:checked + span {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.detail-metrics-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.competition-detail-hero {
  z-index: 40;
  overflow: visible;
}

.competition-detail-hero .dropdown-menu.action-menu-panel {
  z-index: 2100;
}

.metric-tile {
  padding: 20px;
  border: 1px solid rgb(241 207 216 / 78%);
  border-radius: 24px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 18px 45px rgb(17 24 39 / 8%);
}

.metric-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.metric-tile strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.premium-section {
  margin-bottom: 22px;
}

.section-headline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-headline h2 {
  margin: 0;
}

.competition-event-stack,
.competition-checklist-stack {
  display: grid;
  gap: 16px;
}

.competition-event-card,
.checklist-card-mini {
  border: 1px solid rgb(241 207 216 / 70%);
  border-radius: 22px;
  background: linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(253 243 246 / 58%));
}

.competition-event-card {
  overflow: hidden;
  padding: 0;
}

.checklist-card-mini {
  padding: 20px;
}

.competition-event-header,
.checklist-mini-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.competition-event-header {
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid rgb(241 207 216 / 66%);
  background:
    radial-gradient(circle at 96% 10%, rgb(201 74 106 / 8%), transparent 25%),
    rgb(255 255 255 / 74%);
}

.competition-event-title-block {
  min-width: 0;
}

.event-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.event-entry-count {
  border-radius: 999px;
  background: rgb(238 242 246 / 86%);
  color: var(--muted);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.event-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgb(239 83 104 / 22%);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, rgb(250 232 237 / 84%));
  color: var(--accent-dark);
  padding: 8px 12px;
  box-shadow: 0 10px 24px rgb(20 32 51 / 5%);
}

.event-date-badge strong,
.event-date-badge small {
  line-height: 1;
  font-weight: 950;
}

.event-date-badge strong {
  font-size: 13px;
}

.event-date-badge small {
  color: var(--ink);
  font-size: 12px;
}

.competition-event-header h3,
.checklist-mini-head h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 31px;
  line-height: 1.05;
}

.event-edit-panel,
.inline-edit-dropdown {
  position: relative;
  min-width: 180px;
}

.event-edit-panel {
  max-width: 100%;
}

.inline-edit-dropdown summary,
.event-edit-panel summary,
.create-panel-details summary {
  list-style: none;
  cursor: pointer;
}

.inline-edit-dropdown summary::-webkit-details-marker,
.event-edit-panel summary::-webkit-details-marker,
.create-panel-details summary::-webkit-details-marker {
  display: none;
}

.event-edit-panel[open] {
  flex-basis: 100%;
}

.event-edit-panel[open] summary {
  width: max-content;
  margin-left: auto;
}

.event-edit-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgb(241 207 216 / 76%);
  border-radius: 18px;
  background: rgb(255 255 255 / 78%);
}

.event-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.event-form-grid .wide-info,
.event-form-actions {
  grid-column: 1 / -1;
}

.event-form-actions {
  display: flex;
  justify-content: flex-end;
}

.inline-edit-dropdown[open] {
  z-index: 10;
}

.inline-edit-dropdown[open] > form,
.inline-edit-dropdown[open] > .web-form {
  margin-top: 12px;
}

.compact-form {
  display: grid;
  gap: 10px;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px;
}

.entry-card {
  padding: 16px;
  border: 1px solid rgb(241 207 216 / 76%);
  border-radius: 18px;
  background: rgb(255 255 255 / 78%);
}

.passage-card {
  display: grid;
  grid-template-columns: minmax(170px, .72fr) minmax(280px, 1.25fr) minmax(220px, .9fr);
  gap: 14px;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 94%), rgb(253 243 246 / 66%)),
    #fff;
}

.entry-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.passage-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding-right: 14px;
  border-right: 1px solid rgb(241 207 216 / 62%);
}

.passage-identity {
  min-width: 0;
}

.entry-card-head h4 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.06;
}

.passage-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.passage-card .inline-visibility-form,
.passage-card .privacy-select {
  max-width: 100%;
}

.passage-card .inline-visibility-form {
  margin-top: 10px;
}

.entry-card-head b {
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 54px;
  border-radius: 16px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 20px;
  line-height: 1;
}

.entry-card-head b span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

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

.passage-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.passage-summary-grid div {
  min-height: 74px;
  border: 1px solid rgb(241 207 216 / 64%);
  border-radius: 16px;
  background: rgb(255 255 255 / 72%);
  padding: 12px;
}

.passage-summary-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.passage-summary-grid dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.passage-edit-action {
  width: 100%;
  height: 46px;
  margin-top: 14px;
  border-radius: 14px;
}

.passage-action-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.passage-action-row .small-action,
.passage-action-row .passage-edit-action {
  width: 100%;
  height: 46px;
  margin-top: 0;
  justify-content: center;
  border-radius: 14px;
}

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

.passage-form .wide-info {
  grid-column: 1 / -1;
}

.passage-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgb(241 207 216 / 70%);
  border-radius: 18px;
  background: rgb(255 255 255 / 76%);
}

.passage-fieldset-title {
  grid-column: 1 / -1;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.passage-switch {
  align-self: end;
  min-width: 190px;
  justify-content: center;
}

.rider-selector-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgb(241 207 216 / 70%);
  border-radius: 20px;
  background: rgb(255 255 255 / 78%);
}

.rider-selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.rider-selector-head strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.rider-selector-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.rider-external-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rider-external-fields[hidden] {
  display: none;
}

.rider-search-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.rider-search-results[hidden] {
  display: none;
}

.rider-search-results button {
  min-height: 56px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  border: 1px solid rgb(241 207 216 / 76%);
  border-radius: 14px;
  background: rgb(255 255 255 / 82%);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.rider-search-results button:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.rider-search-results button span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 950;
}

.rider-search-results button strong,
.rider-search-results button small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rider-search-results button small {
  color: var(--muted);
  font-weight: 800;
}

.entry-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-media-thumb {
  width: 74px;
  height: 74px;
  border-radius: 16px;
}

.passage-media-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgb(241 207 216 / 76%);
  border-radius: 20px;
  background: rgb(255 255 255 / 78%);
}

.passage-media-preview {
  padding: 12px;
  background: rgb(255 253 253 / 72%);
}

.passage-media-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  padding: 12px;
  border: 1px solid rgb(241 207 216 / 70%);
  border-radius: 18px;
  background: rgb(255 255 255 / 72%);
}

.passage-media-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.passage-media-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.passage-media-strip {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.passage-media-strip .mini-media-thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.horse-history-entry-card.passage-card {
  grid-template-columns: minmax(250px, .7fr) minmax(0, 1.35fr);
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
}

.horse-history-entry-card .passage-card-head {
  min-height: 0;
  padding-right: 12px;
}

.horse-history-entry-card .entry-card-head h4 {
  margin-top: 0;
  font-size: 22px;
}

.horse-history-entry-card .passage-card-head p {
  margin-top: 4px;
  line-height: 1.25;
}

.horse-history-entry-card .privacy-chip {
  margin-top: 8px;
}

.horse-history-entry-card .passage-start-number {
  min-width: 48px;
  min-height: 48px;
}

.horse-history-entry-card .passage-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.horse-history-entry-card .passage-summary-grid div {
  min-height: 58px;
  padding: 10px 12px;
}

.horse-history-entry-card .passage-summary-grid dd {
  margin-top: 4px;
  font-size: 17px;
}

@media (max-width: 1120px) {
  .passage-card {
    grid-template-columns: 1fr;
  }

  .passage-card-head {
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid rgb(241 207 216 / 62%);
  }

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

.modal-media-panel {
  margin-top: 16px;
  background: linear-gradient(135deg, rgb(250 232 237 / 54%), rgb(255 255 255 / 82%));
}

.competition-event-modal-dialog {
  --eq-modal-width: 900px;
}

.competition-entry-modal-dialog {
  --eq-modal-width: 980px;
}

.competition-event-modal,
.competition-entry-modal {
  padding: 28px;
}

.passage-media-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.passage-media-head p {
  max-width: 480px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.passage-media-head strong {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 950;
}

.entry-photo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.file-picker-action {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed rgb(239 83 104 / 45%);
  border-radius: 16px;
  background: rgb(250 232 237 / 52%);
  padding: 9px 12px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.file-picker-action:hover {
  border-color: var(--accent);
  background: rgb(250 232 237 / 82%);
  transform: translateY(-1px);
}

.file-picker-action input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-picker-action span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fff;
  color: var(--accent-dark);
}

.file-picker-action strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-panel-details {
  margin-top: 16px;
}

.create-panel-details[open] summary {
  margin-bottom: 14px;
}

.soft-empty {
  background: rgb(255 255 255 / 72%);
}

.competition-empty-state {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 148px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgb(241 207 216 / 76%);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgb(196 74 101 / 13%), transparent 38%),
    linear-gradient(135deg, rgb(253 242 246 / 94%), rgb(255 255 255 / 92%) 58%, rgb(250 248 245 / 88%));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 84%),
    0 20px 54px rgb(20 32 51 / 8%);
}

.competition-empty-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(241 207 216 / 88%);
  border-radius: 24px;
  background: rgb(255 255 255 / 84%);
  color: var(--brand);
  box-shadow: 0 16px 34px rgb(196 74 101 / 12%);
}

.competition-empty-icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.9;
}

.competition-empty-copy h3 {
  margin: 6px 0 6px;
  color: var(--ink);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
}

.competition-empty-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.progress-line {
  height: 10px;
  margin: 14px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.checklist-inline-actions,
.competition-checklist-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.checklist-categories-grid {
  display: grid;
  gap: 12px;
}

.checklist-category-box {
  padding: 16px;
  border: 1px solid rgb(241 207 216 / 70%);
  border-radius: 18px;
  background: rgb(255 255 255 / 72%);
}

.checklist-category-box h4 {
  margin: 0 0 12px;
  color: var(--ink);
}

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

.checklist-toggle {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgb(241 207 216 / 92%);
  border-radius: 16px;
  background: rgb(255 255 255 / 78%);
  color: var(--muted);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.checklist-toggle span {
  width: 22px;
  height: 22px;
  border: 2px solid rgb(241 207 216 / 96%);
  border-radius: 7px;
  background: #fff;
}

.checklist-toggle.checked {
  background: var(--accent);
  color: #fff;
}

.checklist-toggle.checked span {
  border-color: #fff;
  background: #fff;
  box-shadow: inset 0 0 0 5px var(--accent);
}

.checklist-toggle:hover {
  transform: translateY(-1px);
}

.share-link-box {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgb(241 207 216 / 92%);
  border-radius: 18px;
  background: rgb(255 255 255 / 78%);
  color: var(--ink);
  font-weight: 900;
  word-break: break-all;
}

.privacy-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 850;
}

.member-search-form,
.member-filter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

.member-filter-form {
  grid-template-columns: minmax(160px, 1fr) repeat(4, minmax(130px, .6fr)) auto;
}

.member-filter-form .small-action {
  height: 48px;
  align-self: stretch;
  border-radius: 14px;
  padding: 0 18px;
}

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

.member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgb(241 207 216 / 86%);
  border-radius: 18px;
  background: rgb(255 253 253 / 88%);
  padding: 16px;
  box-shadow: 0 16px 40px rgb(20 32 51 / 8%);
}

.member-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.member-card h3,
.member-card p {
  margin: 0;
}

.member-card h3 {
  font-size: 18px;
}

.member-card p {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.community-invitations-modal-dialog {
  --eq-modal-width: 760px;
}

.invitation-modal-list {
  display: grid;
  gap: 12px;
}

.invitation-modal-card {
  box-shadow: none;
}

.member-main-copy {
  min-width: 0;
  flex: 1;
}

.invitation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.split-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mini-label {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.date-chip,
.rating-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.rating-chip {
  background: var(--sage-soft);
  color: var(--sage);
}

.page-placeholder {
  max-width: 680px;
  padding: 28px;
}

.placeholder-mark {
  margin-bottom: 18px;
}

.placeholder-mark .icon {
  width: 34px;
  height: 34px;
  color: var(--accent-dark);
}

.page-placeholder h2 {
  margin: 0 0 8px;
}

.page-placeholder p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

/* Late UX overrides: keep feature pages dense and operational. */
.page-hero,
.welcome-card {
  padding: 22px 24px;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgb(20 32 51 / 7%);
}

.page-hero h2 {
  font-size: clamp(28px, 3.2vw, 42px);
}

.page-hero p:not(.eyebrow),
.welcome-card p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.45;
}

.premium-tabs a {
  min-height: 48px;
  border-radius: 14px;
}

.timeline-card,
.reminder-card {
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 14px;
}

.timeline-date {
  min-height: 76px;
}

.timeline-date strong {
  font-size: 26px;
}

.profile-title h2,
.reminder-head h2 {
  font-size: 24px;
}

.notification-web-card {
  grid-template-columns: 58px minmax(0, 1fr) minmax(150px, auto);
  align-items: start;
  padding: 16px;
}

.notification-visual {
  width: 58px;
  height: 58px;
}

.empty-panel {
  min-height: 170px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 28px;
}

@media (max-width: 860px) {
  .auth-page {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 14px;
  }

  .auth-showcase {
    display: none;
  }

  .auth-language-switcher {
    float: none;
    margin: -8px 0 18px;
  }

  .app-shell {
    display: block;
    padding-bottom: 86px;
  }

  .side-nav {
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    height: auto;
    border-top: 1px solid var(--line);
    border-right: 0;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  .brand,
  .logout-link,
  .side-note {
    display: none;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
  }

  .nav-item {
    min-height: 54px;
    display: grid;
    place-items: center;
    padding: 7px 4px;
    font-size: 11px;
    text-align: center;
  }

  .nav-item.mobile-nav-hidden {
    display: none;
  }

  .topbar-link {
    display: none;
  }

  .topbar-icon-link.mobile-topbar-shortcut {
    display: inline-flex;
  }

  .quick-add-trigger {
    width: var(--action-height);
    min-width: var(--action-height);
    padding: 0;
  }

  .quick-add-label,
  .user-name,
  .user-initial {
    display: none;
  }

  .user-pill {
    width: var(--action-height);
    min-width: var(--action-height);
    justify-content: center;
    padding: 0;
  }

  .user-pill span {
    width: 100%;
    height: 100%;
    background: transparent;
  }

  .user-profile-icon {
    display: inline-flex;
  }

  .nav-item span {
    width: 28px;
    height: 28px;
  }

  .main-panel {
    padding: 22px 14px;
  }

  .dashboard-grid,
  .stat-grid,
  .horse-grid,
  .horses-page-grid,
  .checklist-workspace,
  .template-grid,
  .premium-form-grid,
  .profile-web-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-card,
  .timeline-card,
  .horse-detail-hero,
  .horse-profile-form {
    grid-template-columns: 1fr;
  }

  .profile-card > img,
  .profile-empty {
    min-height: 260px;
  }

  .horse-detail-photo,
  .horse-detail-photo img,
  .horse-detail-photo .profile-empty {
    min-height: 360px;
  }

  .competition-empty-state {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

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

  .competition-card-main {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .event-form-grid,
  .entry-grid,
  .passage-form,
  .passage-summary-grid,
  .profile-identity-main,
  .billing-action-grid,
  .web-subscription-grid,
  .web-plan-options {
    grid-template-columns: 1fr;
  }

  .subscription-current-card {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-photo-panel {
    border-top: 1px solid rgb(241 207 216 / 68%);
    border-left: 0;
  }

}

@media (max-width: 560px) {
  .legal-site-shell {
    padding: 18px 12px 32px;
  }

  .legal-site-topbar,
  .legal-page-hero,
  .legal-work-note,
  .legal-site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-site-nav {
    justify-content: flex-start;
  }

  .legal-site-nav a {
    min-height: 38px;
    padding: 0 12px;
  }

  .legal-language-switcher {
    min-height: 38px;
  }

  .legal-page-hero,
  .legal-document {
    border-radius: 18px;
  }

  .legal-document {
    padding: 22px 18px;
  }

  .legal-document table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .topbar-compact {
    grid-template-columns: 1fr;
  }

  .topbar-compact .topbar-actions {
    justify-self: end;
    order: -1;
  }

  .global-search-dropdown {
    position: fixed;
    inset: 116px 14px auto;
    z-index: 2400;
  }

  .global-result-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .global-result-card .global-result-community-badge {
    justify-self: start;
    grid-column: 2;
  }

  .global-result-card img,
  .global-result-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .topbar:not(.topbar-compact) {
    --mobile-action-size: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
  }

  .topbar:not(.topbar-compact) > div:first-child {
    display: contents;
  }

  .topbar:not(.topbar-compact) .eyebrow {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin: 0;
  }

  .topbar:not(.topbar-compact) h1 {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .topbar-compact {
    --mobile-action-size: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    justify-content: stretch;
  }

  .global-search-form {
    width: 100%;
    min-width: 0;
    min-height: var(--mobile-action-size);
    border-radius: 14px;
    padding: 0 10px;
  }

  .global-search-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    display: grid;
    grid-template-columns: repeat(4, var(--mobile-action-size));
    justify-content: end;
    gap: 7px;
  }

  .quick-add-menu {
    width: var(--mobile-action-size);
    height: var(--mobile-action-size);
    display: flex;
  }

  .topbar .quick-add-trigger,
  .topbar-icon-link,
  .user-pill {
    width: var(--mobile-action-size);
    height: var(--mobile-action-size);
    min-width: var(--mobile-action-size);
    min-height: var(--mobile-action-size);
    max-width: var(--mobile-action-size);
    max-height: var(--mobile-action-size);
    border-radius: 14px;
  }

  .topbar .quick-add-trigger {
    flex: 0 0 var(--mobile-action-size);
    padding: 0;
    line-height: 1;
    box-shadow: 0 10px 30px rgb(216 75 97 / 18%);
  }

  .topbar-icon-link svg,
  .user-profile-icon svg {
    width: 17px;
    height: 17px;
  }

  .quick-add-panel {
    min-width: min(268px, calc(100vw - 28px));
  }

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

  .stat-grid,
  .horse-grid,
  .horses-page-grid,
  .competition-board,
  .premium-form-grid,
  .profile-web-grid,
  .addon-grid,
  .billing-columns,
  .checklist-workspace,
  .template-grid,
  .checklist-actions,
  .checklist-items,
  .detail-grid,
  .media-mosaic,
  .info-grid,
  .session-grid,
  .event-form-grid,
  .entry-grid,
  .passage-form,
  .passage-summary-grid,
  .passage-action-row,
  .passage-media-summary,
  .passage-fieldset,
  .rider-external-fields,
  .entry-photo-form,
  .profile-addon-grid,
  .billing-subscription-row {
    grid-template-columns: 1fr;
  }

  .premium-tabs:not(.horse-profile-tabs) {
    grid-template-columns: 1fr;
  }

  .billing-subscription-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .visibility-choice-grid {
    grid-template-columns: 1fr;
  }

  .profile-danger-card,
  .modal-action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-cropper-modal {
    padding: 12px;
  }

  .image-cropper-card {
    border-radius: 22px;
    padding: 22px;
  }

  .image-cropper-card h2 {
    font-size: 26px;
  }

  .image-cropper-frame {
    border-radius: 18px;
  }

  .image-cropper-zoom {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rider-selector-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-horse-card,
  .mini-feed-grid,
  .reminder-card,
  .notification-web-card,
  .member-grid,
  .member-filter-form,
  .member-search-form {
    grid-template-columns: 1fr;
  }

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

  .community-hero-actions,
  .invitation-actions {
    width: 100%;
  }

  .community-hero-actions .primary-action {
    flex: 1;
  }

  .invitation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-web-card {
    align-items: flex-start;
  }

  .checklist-accordion .checklist-detail-head {
    padding-right: 0;
  }

  .checklist-accordion .checklist-actions {
    position: static;
    justify-content: flex-start;
    margin-bottom: 12px;
  }

  .compact-hero,
  .profile-title,
  .competition-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
