/* Post actions reflect the signed-in viewer. The counters keep their usual ink. */
#app .pr-post-actions .pr-reaction[aria-pressed="true"] .pr-heart-svg path {
  fill: currentColor;
  stroke: currentColor;
}
#app .pr-post-actions .pr-post-gift[data-gifted="true"] .pr-post-star-svg path {
  fill: currentColor;
  stroke: currentColor;
}
#app .pr-post-actions :is(.pr-post-star-svg,.pr-heart-svg) {color: var(--vxp-text-accent,var(--vxp-accent,#7953a3))}

/* Use both lines of a profile fact without wide tracking or a fixed row height. */
html[data-app-theme] dialog.ah-profile-about .cp-detail-row {
  gap: 3px;
  padding: 9px 14px;
  min-height: 0;
  text-align: start;
}
html[data-app-theme] dialog.ah-profile-about .cp-detail-row small {
  font-size: calc(13px * var(--pr-font-factor,1)) !important;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
}
html[data-app-theme] dialog.ah-profile-about .cp-detail-row strong {
  font-size: calc(15px * var(--pr-font-factor,1)) !important;
  line-height: 1.45;
}
html[data-app-theme] dialog.ah-profile-about .bm-body {gap: 9px}
html[data-app-theme] dialog.ah-profile-about .bm-body>.cp-button {margin: 4px 0 0}

/* Keep the whole localised time visible, including the system time indicator. */
html[data-app-theme] dialog.su-editor .su-week-times,
html[data-app-theme] dialog.su-editor .su-date-times {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: end;
  gap: 10px;
}
dialog.su-editor .su-week-times>span {display: none}
html[data-app-theme] dialog.su-editor .su-week-times label,
html[data-app-theme] dialog.su-editor .su-date-times label {
  font-size: calc(13px * var(--pr-font-factor,1)) !important;
  line-height: 1.4;
}
html[data-app-theme] dialog.su-editor input[type=time] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: auto;
  padding: 8px;
  margin: 4px 0 0;
  font: inherit;
  font-size: max(16px,calc(15px * var(--pr-font-factor,1))) !important;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
html[data-app-theme] dialog.su-editor .su-save-bar {
  position: static;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 12px;
  box-shadow: none;
}
.su-editor .su-week-form {padding-bottom: max(4px,env(safe-area-inset-bottom,0px))}
.su-editor .su-save-bar>span {line-height: 1.45}
dialog.su-discard-dialog .bm-body {display: grid; gap: 10px}
dialog.su-discard-dialog .bm-body>p {margin: 0 0 4px; line-height: 1.5}
dialog.su-discard-dialog .bm-body>.btn {margin: 0; min-height: 44px; line-height: 1.35}
html[data-app-theme] #app .su-calendar .su-month-stats {
  gap: 8px;
  padding: 12px 10px;
  margin: 16px 0 0;
  align-items: start;
  border: 1px solid var(--ap-outline,var(--vxp-edge));
}
html[data-app-theme] #app .su-month-stats>span {
  font-size: calc(12px * var(--pr-font-factor,1)) !important;
  line-height: 1.45;
  overflow-wrap: normal;
}
html[data-app-theme] #app .su-month-stats b {line-height: 1.25; margin-bottom: 3px}
@media (max-width: 600px) {
  html[data-app-theme] dialog.su-editor .su-week-row {
    grid-template-columns: minmax(0,1fr);
    gap: 7px;
    padding: 11px 0;
  }
  html[data-app-theme] dialog.su-editor .su-week-switch {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  dialog.su-editor .su-week-row.is-off {min-height: 0}
  dialog.su-editor .su-day-off-label {text-align: start}
}
@media (max-width: 370px) {
  html[data-app-theme] dialog.su-editor .su-save-bar {grid-template-columns: 1fr}
  html[data-app-theme] #app .su-calendar .su-month-stats {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 14px;
  }
  html[data-app-theme] #app .su-month-stats>span {display: flex; align-items: baseline; gap: 8px}
  html[data-app-theme] #app .su-month-stats b {min-width: 2ch; margin: 0; text-align: end}
}

/* Keep the target large while the visible close control sits above the artwork. */
#beauty-booking-dialog.bm-card-dialog .bm-card-dismiss {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0 0 6px auto;
  padding: 0;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
}
#beauty-booking-dialog .bm-card-dismiss::before,
#beauty-booking-dialog .bm-card-dismiss::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
#beauty-booking-dialog .bm-card-dismiss::before {
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(29,23,39,.84);
}
#beauty-booking-dialog .bm-card-dismiss::after {
  width: 14px;
  height: 14px;
  background: linear-gradient(45deg,transparent 43%,white 44% 56%,transparent 57%),
              linear-gradient(-45deg,transparent 43%,white 44% 56%,transparent 57%);
}
#beauty-booking-dialog .bm-card-dismiss:focus-visible {outline: 2px solid white; outline-offset: 0}

/* The hidden input still owns submission, min/max constraints and change events. */
input.ap-date-source[type=date] {display: none !important}
.ap-date-trigger[hidden] {display: none !important}
html .ap-date-trigger {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  margin: 5px 0;
  border: 1px solid var(--ap-outline,var(--vxp-edge,#b79ad6));
  border-radius: 12px;
  color: var(--vxp-ink,#372444);
  background: var(--vxp-surface,#fff);
  font: inherit;
  line-height: 1.45;
  text-align: start;
  cursor: pointer;
}
.ap-calendar-icon {
  display: inline-block;
  flex: 0 0 18px;
  height: 18px;
  color: var(--vxp-text-accent,var(--vxp-ink,#65488e));
  background: currentColor;
  --calendar-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='16' rx='3'/%3E%3Cpath d='M7.5 3v4m9-4v4M4 10h16'/%3E%3C/svg%3E");
  -webkit-mask: var(--calendar-mark) center / contain no-repeat;
  mask: var(--calendar-mark) center / contain no-repeat;
}
html dialog.ap-date-dialog[open] {
  box-sizing: border-box;
  width: min(380px,calc(100% - 24px));
  max-height: calc(var(--bm-vv-height,100dvh) - 24px);
  inset: var(--bm-vv-top,0px) 0 var(--bm-vv-bottom,0px);
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid var(--ap-outline,var(--vxp-edge,#ccb7df));
  border-radius: 22px;
  background: var(--vxp-surface,#fff) !important;
  color: var(--vxp-ink,#392642);
}
dialog.ap-date-dialog::backdrop {
  background: rgba(30,20,46,.46);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.ap-date-dialog>h2 {margin: 4px 0 14px; padding-inline-end: 40px}
.ap-date-dialog .bm-body {display: grid; gap: 10px; padding: 0}
.ap-date-dialog .ap-date-month {margin: 0; padding: 3px; border-radius: 14px; background: var(--vxp-soft,#f3edf9)}
.ap-date-month strong {text-align: center; line-height: 1.3}
.ap-date-month button {min-width: 40px; min-height: 40px}
.ap-date-dialog .ap-date-grid {gap: 3px}
.ap-date-grid .su-weekday {padding: 4px 0; color: var(--vxp-muted,#74627e)}
.ap-date-grid button.su-day {
  min-width: 0;
  min-height: 34px;
  max-height: 44px;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: max(14px,calc(14px * var(--pr-font-factor,1)));
  line-height: 1.2;
}
html dialog.ap-date-dialog .ap-date-grid button[aria-pressed=true] {
  background: var(--vxp-primary-fill,var(--vxp-accent,#7638cb)) !important;
  color: var(--vxp-contrast,#fff) !important;
  font-weight: 700;
}
.ap-date-grid button[aria-current=date] {box-shadow: inset 0 0 0 2px var(--vxp-text-accent,#8257a6)}
.ap-date-dialog button:disabled {opacity: .4; cursor: default}
.ap-date-actions {display: flex; flex-wrap: wrap; gap: 8px}
.ap-date-actions button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 8px;
  font: inherit;
}
