/*!
 * Unhas Porto Marcações: front-end styles (v2 visual system, DESIGN.md 9).
 * Everything is scoped under .upm (class prefix upm-). The panel adds upm-painel.css on top.
 *
 * Robustness notes:
 * - Theme rules for button/input/a (Astra, block themes) have low specificity; ours use at least
 *   two classes and always set background, colour and border, also on :hover and :focus.
 * - Spacing uses gap instead of paragraph margins, so host rules like `p{margin:…}` do not matter.
 * - The only selectors outside .upm are the ones DESIGN 9.8 allows.
 */

/* ------------------------------------------------------------------ */
/* Tokens and base                                                    */
/* ------------------------------------------------------------------ */

.upm {
	/* 2.1 final palette (Daniel, 25 Nov 2026): the beige of the logo (#FAF3EE) as the page, white cards,
	   warm brown-plum text and a lighter, livelier pink (--upm-accent #C54777) for filled buttons and
	   selected states. White on the accent is 4.62:1, so text on an accent fill is always full white.
	   design/PALETTE-2.1.md has every contrast ratio. */
	--upm-bg: #FAF3EE;
	--upm-surface: #FFFFFF;
	--upm-surface-2: #F4E9E1;
	--upm-ink: #3A2A23;
	--upm-ink-hover: #4A3830;
	--upm-ink-2: #5A4840;
	--upm-muted: #6E5B51;
	--upm-line: #EFE3DA;
	--upm-line-strong: #927B6C;
	--upm-rose: #E3A0B6;
	--upm-rose-deep: #9A3159;
	--upm-rose-soft: #F8E1E6;
	--upm-rose-line: #EBBDCB;
	--upm-accent: #C54777;
	--upm-accent-hover: #B83A6A;
	--upm-accent-active: #9E3059;
	--upm-on-accent: #FFFFFF;
	--upm-focus: #9A3159;
	--upm-free: #3A6546;
	--upm-free-soft: #E5F0E8;
	--upm-err: #9A2D1B;
	--upm-err-soft: #FCE8E4;
	--upm-warn-soft: #FFF3D6;
	--upm-warn-ink: #6B4A00;
	--upm-skel: #F1E6DD;
	--upm-on-ink: #FFFFFF;
	--upm-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
	--upm-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--upm-r: 14px;
	--upm-r-sm: 8px;
	--upm-r-md: 12px;
	--upm-r-lg: 16px;
	--upm-r-xl: 20px;
	--upm-shadow-1: 0 1px 2px rgba(58, 42, 35, .05), 0 4px 14px rgba(154, 49, 89, .07);
	--upm-shadow-2: 0 -6px 24px rgba(58, 42, 35, .08);
	--upm-shadow-3: 0 16px 40px rgba(58, 42, 35, .18);
	--upm-ease: cubic-bezier(.2, .8, .2, 1);
	--upm-s1: 4px;
	--upm-s2: 8px;
	--upm-s3: 12px;
	--upm-s4: 16px;
	--upm-s5: 24px;
	--upm-s6: 32px;
	--upm-s7: 48px;
	--upm-s8: 64px;
	color: var(--upm-ink);
	font-family: var(--upm-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	overflow-wrap: break-word;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}
.upm, .upm *, .upm *::before, .upm *::after { box-sizing: border-box; }
.upm [hidden], .upm[hidden] { display: none !important; }
.upm img { max-width: 100%; height: auto; }
.upm p, .upm dl, .upm dd, .upm ol, .upm ul, .upm figure, .upm fieldset { margin: 0; }
.upm ul[role="list"], .upm ol[role="list"] { list-style: none; padding: 0; }
.upm fieldset { padding: 0; border: 0; min-width: 0; }
.upm legend { padding: 0; }
.upm h2, .upm h3 { margin: 0; padding: 0; color: inherit; font-family: var(--upm-display); font-weight: 700; line-height: 1.15; letter-spacing: normal; text-transform: none; text-wrap: balance; }
.upm a { color: inherit; text-underline-offset: 3px; }
.upm :focus-visible { outline: 3px solid var(--upm-focus); outline-offset: 2px; }
.upm .upm-icon { flex: none; width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.upm .upm-sr, .upm-sr, .upm .upm-hp, .upm .upm-sr-input {
	position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
	overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important;
}
.upm .upm-sr-input { opacity: 0; }
.upm .upm-nowrap { white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Text and cards                                                     */
/* ------------------------------------------------------------------ */

.upm .upm-eyebrow { font: 600 13px/18px var(--upm-body); letter-spacing: .12em; text-transform: uppercase; color: var(--upm-rose-deep); }
.upm .upm-title { font-size: clamp(24px, 4.5vw, 32px); line-height: 1.15; letter-spacing: -.01em; }
.upm .upm-h3 { font: 700 19px/24px var(--upm-display); }
.upm .upm-text { color: var(--upm-ink); }
.upm .upm-small { font-size: 14px; line-height: 20px; color: var(--upm-muted); }
.upm .upm-small a { color: var(--upm-ink) !important; text-decoration: underline; }
.upm .upm-hint { display: block; font-size: 14px; line-height: 20px; color: var(--upm-muted); font-weight: 400; }
.upm .upm-text-err { color: var(--upm-err); font-weight: 600; }
.upm .upm-text-warn { background: var(--upm-warn-soft); border-radius: var(--upm-r-md); padding: 12px 14px; }
.upm .upm-loading { color: var(--upm-muted); padding: 24px 0; }
.upm .upm-loading::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--upm-rose-line); border-top-color: var(--upm-rose-deep); animation: upm-spin .8s linear infinite; }
@keyframes upm-spin { to { transform: rotate(360deg); } }
.upm .upm-card, .upm.upm-card {
	background: var(--upm-surface); border: 1px solid var(--upm-line); border-radius: var(--upm-r-xl); padding: 16px;
	display: grid; gap: 14px; min-width: 0;
}
.upm .upm-msg-card { text-align: left; }
.upm .upm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.upm .upm-chips li { margin: 0; padding: 4px 10px; font-size: 13px; font-weight: 600; line-height: 18px; color: var(--upm-rose-deep); background: var(--upm-rose-soft); border-radius: 999px; }
.upm .upm-pro-initial { display: inline-grid; place-items: center; font: 700 24px/1 var(--upm-display); color: var(--upm-rose-deep); background: var(--upm-rose-soft); }
.upm .upm-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--upm-free); }
.upm .upm-tcard-next .upm-dot, .upm .upm-opt-next .upm-dot { margin-top: 6px; }
@media (min-width: 720px) {
	.upm .upm-card, .upm.upm-card { padding: 24px; }
}

/* ------------------------------------------------------------------ */
/* Buttons and links                                                  */
/* ------------------------------------------------------------------ */

.upm .upm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
	margin: 0; padding: 10px 22px; border-radius: 999px; border: 1px solid transparent;
	font: 600 16px/20px var(--upm-body); letter-spacing: normal; text-transform: none; text-align: center; text-decoration: none !important;
	cursor: pointer; box-shadow: none; transition: transform .12s var(--upm-ease), background-color .15s ease, border-color .15s ease, color .15s ease;
	white-space: normal; -webkit-appearance: none; appearance: none; width: auto; max-width: 100%;
	text-wrap: balance; /* a 2-line label never leaves one word alone ("… de / pagar") */
}
.upm .upm-btn:active { transform: translateY(1px); }
.upm .upm-btn .upm-icon { width: 20px; height: 20px; }
.upm .upm-btn[disabled], .upm .upm-btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; }
.upm .upm-btn-main { min-height: 52px; background: var(--upm-accent); border-color: var(--upm-accent); color: var(--upm-on-accent) !important; }
.upm .upm-btn-main:hover, .upm .upm-btn-main:focus { background: var(--upm-accent-hover); border-color: var(--upm-accent-hover); color: var(--upm-on-accent) !important; }
.upm .upm-btn-main:active { background: var(--upm-accent-active); border-color: var(--upm-accent-active); }
.upm .upm-btn-ghost { background: var(--upm-surface); border-color: var(--upm-line-strong); color: var(--upm-ink) !important; }
.upm .upm-btn-ghost:hover, .upm .upm-btn-ghost:focus { background: var(--upm-surface); border-color: var(--upm-rose-deep); color: var(--upm-ink) !important; }
.upm .upm-btn-danger, .upm .upm-btn-ghost.upm-btn-danger { background: var(--upm-err); border-color: var(--upm-err); color: #fff !important; }
.upm .upm-btn-danger:hover, .upm .upm-btn-danger:focus { background: #7f2414; border-color: #7f2414; color: #fff !important; }
.upm .upm-btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.upm .upm-btn-xs { min-height: 36px; padding: 6px 13px; font-size: 14px; }
/* The pill stays 36-40 px; the tap target is 44 px (DESIGN 10.7). */
.upm .upm-btn-sm, .upm .upm-btn-xs { position: relative; }
.upm .upm-btn-sm::after, .upm .upm-btn-xs::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
.upm .upm-btn-lg { min-height: 56px; font-size: 17px; }
.upm .upm-btn-block { width: 100%; }
.upm .upm-icon-btn {
	display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0; padding: 0;
	border-radius: 50%; border: 1px solid var(--upm-line); background: var(--upm-surface); color: var(--upm-ink); cursor: pointer; box-shadow: none;
}
.upm .upm-icon-btn:hover, .upm .upm-icon-btn:focus { background: var(--upm-surface); border-color: var(--upm-rose-deep); color: var(--upm-ink); }
.upm .upm-icon-btn[disabled] { opacity: .35; cursor: default; background: var(--upm-surface); border-color: var(--upm-line); }
.upm .upm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.upm .upm-actions-stack { flex-direction: column; align-items: stretch; }
.upm a.upm-link, .upm .upm-link {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; min-height: 44px;
	color: var(--upm-rose-deep) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.upm .upm-link .upm-icon { width: 16px; height: 16px; }
.upm .upm-link:hover { text-decoration-thickness: 2px; }
.upm a.upm-link.upm-link-quiet, .upm .upm-link.upm-link-quiet { color: var(--upm-ink-2) !important; font-weight: 500; }
.upm button.upm-linkbtn {
	display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0; padding: 10px 0;
	background: transparent; border: 0; border-radius: 4px; box-shadow: none; cursor: pointer;
	font: 600 15px/20px var(--upm-body); color: var(--upm-rose-deep); text-align: left; text-transform: none; letter-spacing: normal;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.upm button.upm-linkbtn:hover, .upm button.upm-linkbtn:focus { background: transparent; color: var(--upm-rose-deep); text-decoration-thickness: 2px; }
.upm button.upm-linkbtn .upm-icon { width: 18px; height: 18px; }
@media (max-width: 719.98px) {
	.upm .upm-btn-block-m { width: 100%; }
	.upm .upm-actions-stack-m { flex-direction: column; align-items: stretch; }
}

/* ------------------------------------------------------------------ */
/* Forms                                                              */
/* ------------------------------------------------------------------ */

.upm .upm-form { display: grid; gap: 18px; margin: 0; }
.upm .upm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.upm .upm-row > * { min-width: 0; }
.upm .upm-field { display: grid; gap: 6px; min-width: 0; }
.upm .upm-label { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--upm-ink); margin: 0; display: block; }
.upm .upm-label-opt, .upm span.upm-opt { font-weight: 400; color: var(--upm-muted); }
.upm input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.upm select,
.upm textarea {
	display: block; width: 100%; min-width: 0; min-height: 52px; height: auto; margin: 0; padding: 13px 14px;
	font: 400 16px/1.5 var(--upm-body); color: var(--upm-ink); letter-spacing: normal;
	background: var(--upm-surface); border: 1px solid var(--upm-line-strong); border-radius: var(--upm-r-md); box-shadow: none;
	-webkit-appearance: none; appearance: none; transition: border-color .12s ease;
}
.upm select {
	padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233A2A23' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.upm textarea { min-height: 96px; resize: vertical; }
.upm input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.upm select:focus, .upm textarea:focus { border-color: var(--upm-rose-deep); background-color: var(--upm-surface); }
.upm input::placeholder, .upm textarea::placeholder { color: var(--upm-muted); opacity: 1; }
.upm input[readonly] { color: var(--upm-muted); }
.upm input[type="time"], .upm input[type="date"] { padding-left: 10px; padding-right: 8px; }
.upm [aria-invalid="true"] { border-color: var(--upm-err) !important; background-color: #FFFBFA !important; }
.upm .upm-field-err { display: flex; gap: 6px; align-items: flex-start; color: var(--upm-err); font-size: 14px; font-weight: 600; line-height: 20px; }
.upm .upm-field-err .upm-icon { width: 16px; height: 16px; margin-top: 2px; }
.upm .upm-field-err > span { min-width: 0; overflow-wrap: anywhere; }
.upm .upm-check {
	display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 44px; margin: 0; padding: 10px 0;
	cursor: pointer; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--upm-ink); background: transparent; border: 0;
}
.upm .upm-check input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; accent-color: var(--upm-accent); cursor: pointer; }
.upm .upm-check input[aria-invalid="true"] { outline: 2px solid var(--upm-err); outline-offset: 1px; }
.upm .upm-check input:focus-visible { outline: 3px solid var(--upm-rose-deep); outline-offset: 2px; }
.upm .upm-check-plain { background: transparent; border: 0; padding: 4px 0; }
.upm .upm-check-wrap { display: grid; gap: 2px; }
.upm .upm-check-wrap > .upm-hint, .upm .upm-check-wrap > .upm-field-err { padding-left: 36px; }
.upm .upm-alert {
	display: flex; gap: 10px; align-items: flex-start; background: var(--upm-err-soft); color: var(--upm-err);
	border-radius: var(--upm-r-md); padding: 12px 14px; font-weight: 600; font-size: 15px; line-height: 22px;
}
.upm .upm-alert > .upm-icon { margin-top: 1px; }
.upm .upm-alert a { color: inherit !important; text-decoration: underline; }
.upm .upm-alert:focus { outline: none; }
.upm .upm-alert:focus-visible { outline: 3px solid var(--upm-rose-deep); outline-offset: 2px; }
.upm .upm-alert-warn { background: var(--upm-warn-soft); color: var(--upm-warn-ink); }
.upm .upm-msg { font-size: 15px; font-weight: 600; border-radius: var(--upm-r-md); padding: 10px 14px; background: var(--upm-bg); }
.upm .upm-msg-ok { background: var(--upm-free-soft); color: var(--upm-free); }
.upm .upm-msg-err { background: var(--upm-err-soft); color: var(--upm-err); }
.upm .upm-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.upm .upm-file-input:focus-visible + label { outline: 3px solid var(--upm-rose-deep); outline-offset: 2px; }

/* Description lists (cancel page, panel) */
.upm .upm-dl { display: grid; gap: 0; border-top: 1px solid var(--upm-line); }
.upm .upm-dl-row { display: grid; grid-template-columns: minmax(96px, 32%) minmax(0, 1fr); gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--upm-line); }
.upm .upm-dl dt { color: var(--upm-muted); font-size: 14px; }
.upm .upm-dl dd { margin: 0; font-weight: 600; min-width: 0; }
.upm .upm-dl-compact .upm-dl-row { padding: 8px 0; }
@media (max-width: 560px) {
	.upm .upm-row { grid-template-columns: minmax(0, 1fr); }
	.upm .upm-row.upm-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.upm .upm-dl-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.upm .upm-dl dt { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
}

/* ------------------------------------------------------------------ */
/* Skeletons (DESIGN 6.14)                                            */
/* ------------------------------------------------------------------ */

.upm .upm-skel { position: relative; display: block; overflow: hidden; background: var(--upm-skel); border-radius: var(--upm-r-md); }
.upm .upm-skel::after {
	content: ""; position: absolute; inset: 0; transform: translateX(-100%);
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
	animation: upm-shimmer 1.2s linear infinite;
}
@keyframes upm-shimmer { to { transform: translateX(100%); } }
.upm .upm-skel-list { display: grid; gap: 8px; }
.upm .upm-skel-h { height: 28px; width: 62%; border-radius: var(--upm-r-sm); margin-bottom: 8px; }
.upm .upm-skel-row { height: 76px; border-radius: var(--upm-r-lg); }
.upm .upm-skel-line { display: inline-block; width: 120px; height: 14px; border-radius: 7px; vertical-align: middle; }
.upm .upm-skel-day { min-height: 60px; }
.upm .upm-skel-slot { height: 48px; }
.upm .upm-skel-chip { height: 56px; }
.upm .upm-skel-chips { display: flex; gap: 8px; }
.upm .upm-skel-chips .upm-skel-chip { height: 40px; width: 96px; border-radius: 999px; }
.upm .upm-tcard-next[hidden]::before { content: ""; visibility: visible; display: block; width: 120px; height: 16px; margin-top: 2px; border-radius: 8px; background: var(--upm-skel); }
.upm.upm-next-failed .upm-tcard-next[hidden]::before { display: none; }

/* ------------------------------------------------------------------ */
/* [upm_profissionais]: team cards (DESIGN 5.1, 7, 9.3)               */
/* ------------------------------------------------------------------ */

.upm.upm-team { display: grid; gap: 16px; min-width: 0; }
.upm ul.upm-team-list, .upm .upm-team-list {
	display: flex; gap: 12px; margin: 0 -16px; padding: 6px 16px 14px; list-style: none;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.upm .upm-team-list::-webkit-scrollbar { display: none; }
.upm .upm-team-item { flex: 0 0 clamp(140px, calc((100vw - 40px) / 2.3), 200px); margin: 0; padding: 0; scroll-snap-align: start; min-width: 0; }
.upm .upm-team-item::before, .upm .upm-team-item::marker { content: none; }
.upm a.upm-tcard {
	position: relative; display: flex; flex-direction: column; height: 100%; min-width: 0;
	background: var(--upm-surface); border: 1px solid var(--upm-line); border-radius: var(--upm-r-xl); overflow: hidden;
	color: var(--upm-ink) !important; text-decoration: none !important; transition: box-shadow .2s var(--upm-ease), border-color .2s ease;
}
.upm a.upm-tcard:hover { box-shadow: var(--upm-shadow-1); border-color: var(--upm-rose-line); }
.upm .upm-tcard-cover { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--upm-rose-soft); }
.upm .upm-tcard-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--upm-ease); }
.upm a.upm-tcard:hover .upm-tcard-cover img { transform: scale(1.02); }
.upm .upm-tcard-cover-initial { display: grid; place-items: center; font: 700 56px/1 var(--upm-display); color: var(--upm-rose-deep); }
.upm .upm-tcard-avatar {
	position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -22px 0 0 12px;
	border-radius: 50%; overflow: hidden; background: var(--upm-rose-soft); box-shadow: 0 0 0 3px var(--upm-surface);
	font: 700 18px/1 var(--upm-display); color: var(--upm-rose-deep);
}
.upm .upm-tcard-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.upm .upm-tcard-body { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 14px; min-width: 0; flex: 1; }
.upm .upm-tcard-name { font: 700 19px/24px var(--upm-display); color: var(--upm-ink); }
.upm .upm-tcard-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 40px; font-size: 14px; line-height: 20px; color: var(--upm-muted); overflow: hidden; overflow-wrap: anywhere; }
.upm .upm-tcard-next { display: flex; align-items: flex-start; gap: 6px; min-height: 40px; margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--upm-ink); }
.upm .upm-tcard-when { display: block; white-space: nowrap; }
@media (min-width: 720px) {
	.upm .upm-tcard-when { display: inline; }
	.upm .upm-tcard-title { min-height: 0; }
	.upm .upm-tcard-next { min-height: 20px; }
}
/* The line keeps its room (2 lines) while /next loads, so the cards do not jump. */
.upm .upm-tcard-next[hidden] { display: flex !important; visibility: hidden; }
.upm .upm-tcard-next.upm-is-none { color: var(--upm-muted); }
.upm .upm-tcard-next.upm-is-none .upm-dot { display: none; }
.upm .upm-tcard-from { margin-top: auto; padding-top: 2px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--upm-rose-deep); font-variant-numeric: tabular-nums; }
/* Language flag badges ("idiomas", Nov 2026): round, inline SVG, no image request. Base size
   doubles as the ~18-20px team-card size; upm-flag-lg scales it up for the profile page. */
.upm .upm-flag { display: inline-flex; flex: none; width: 19px; height: 19px; border-radius: 50%; overflow: hidden; vertical-align: middle; }
.upm .upm-flag-sm { width: 18px; height: 18px; }
.upm .upm-flag-lg { width: 24px; height: 24px; }
.upm .upm-flag-svg { display: block; width: 100%; height: 100%; }
.upm .upm-flag-ring { stroke: var(--upm-rose-deep); stroke-opacity: .4; stroke-width: .9px; }
.upm .upm-flag-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.upm .upm-tcard-body .upm-flag-row { margin-top: 1px; }
.upm .upm-pf-ident .upm-flag-row { margin-top: -2px; }

/* Language dropdown above the team grid (2.3): a visible label and a native select, with the
   chosen language's round flag inside the field. Hidden without JavaScript (it could not filter;
   every card shows): html.upm-rot-js is set by the inline script before the list and by upm-public.js. */
.upm .upm-langfilter { display: none; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; min-width: 0; }
.upm-rot-js .upm .upm-langfilter { display: flex; }
.upm .upm-langfilter-label { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--upm-ink); }
.upm .upm-langfilter-field { position: relative; display: block; flex: 0 1 260px; min-width: 0; max-width: 100%; }
.upm select.upm-langfilter-select { min-height: 44px; padding-top: 9px; padding-bottom: 9px; font-weight: 600; }
.upm .upm-has-flag select.upm-langfilter-select { padding-left: 42px; }
.upm .upm-langfilter-flag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; pointer-events: none; }
.upm .upm-langfilter-flag:empty { display: none; }
.upm select.upm-langfilter-select:focus-visible { outline: 3px solid var(--upm-focus); outline-offset: 2px; }

.upm .upm-team-any { display: grid; gap: 8px; justify-items: stretch; margin: 0; }
.upm .upm-team-any-q { font-size: 15px; line-height: 22px; color: var(--upm-muted); text-align: center; }
@media (min-width: 720px) {
	.upm .upm-team-any { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: 24px; }
}
@media (min-width: 720px) {
	/* auto-fit with 1fr: 3 per row at 768; at 1280 three cards share the full width (no empty
	   track on the right) and four line up with the studio gallery. */
	.upm ul.upm-team-list, .upm .upm-team-list {
		display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
		margin: 0; padding: 0; overflow: visible; scroll-snap-type: none;
	}
	/* Filtered by language (2.3): empty tracks are kept, so one or two cards keep a card's width
	   instead of stretching across the page. */
	.upm ul.upm-team-list.upm-is-filtered, .upm .upm-team-list.upm-is-filtered { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
	.upm .upm-tcard-body { padding: 10px 16px 18px; }
	.upm .upm-tcard-avatar { margin-left: 16px; }
}
@media (min-width: 900px) {
	.upm .upm-tcard-cover { aspect-ratio: 1 / 1; max-height: 260px; }
}
@media (max-width: 330px) {
	.upm ul.upm-team-list, .upm .upm-team-list { flex-direction: column; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
	.upm .upm-team-item { flex: none; }
}

/* ------------------------------------------------------------------ */
/* Lightbox (<dialog>)                                                */
/* ------------------------------------------------------------------ */

html.upm-lb-open { overflow: hidden; }
.upm.upm-lightbox {
	width: min(960px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 14px;
	border: 0; border-radius: var(--upm-r-xl); background: var(--upm-surface); color: var(--upm-ink); box-shadow: var(--upm-shadow-3);
	overflow: auto;
}
.upm.upm-lightbox[open] { display: grid; gap: 12px; grid-template-rows: auto minmax(0, 1fr) auto; }
.upm.upm-lightbox::backdrop { background: rgba(87, 44, 51, .42); }
.upm .upm-lb-bar { display: flex; align-items: center; gap: 12px; }
.upm .upm-lb-head { flex: 1; min-width: 0; display: grid; gap: 2px; }
.upm .upm-lb-title { font: 700 19px/24px var(--upm-display); color: var(--upm-ink); }
.upm .upm-lb-count { color: var(--upm-muted); font-size: 14px; line-height: 20px; }
.upm.upm-lightbox .upm-icon-btn { background: var(--upm-surface-2); border-color: var(--upm-line); color: var(--upm-ink); }
.upm.upm-lightbox .upm-icon-btn:hover, .upm.upm-lightbox .upm-icon-btn:focus { background: var(--upm-rose-soft); border-color: var(--upm-rose-line); color: var(--upm-ink); }
.upm.upm-lightbox :focus-visible { outline-color: var(--upm-focus); }
.upm.upm-lightbox .upm-btn-main.upm-lb-book { min-height: 44px; }
.upm .upm-lb-stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 0; }
.upm .upm-lb-fig { margin: 0; display: grid; place-items: center; min-height: 0; border-radius: var(--upm-r-md); overflow: hidden; }
.upm .upm-lb-img { display: block; width: auto; max-width: 100%; max-height: min(70dvh, 760px); object-fit: contain; border-radius: var(--upm-r-md); }
.upm .upm-lb-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.upm .upm-lb-thumbs > :first-child { margin-left: auto; }
.upm .upm-lb-thumbs > :last-child { margin-right: auto; }
.upm .upm-lb-thumb { flex: none; width: 56px; height: 56px; padding: 0; margin: 0; border: 2px solid transparent; border-radius: var(--upm-r-sm); overflow: hidden; background: var(--upm-surface-2); cursor: pointer; box-shadow: none; opacity: .72; }
.upm .upm-lb-thumb:hover, .upm .upm-lb-thumb:focus { background: var(--upm-surface-2); border-color: var(--upm-rose-line); opacity: 1; }
.upm .upm-lb-thumb[aria-current="true"] { border-color: var(--upm-accent); opacity: 1; }
.upm .upm-lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px) {
	.upm.upm-lightbox { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
	/* Full-screen box: the photo fits the space left between the bar and the thumbnails (a tall
	   portrait photo used to run under the thumbnails on a short screen). */
	.upm .upm-lb-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
	.upm .upm-lb-fig { align-self: stretch; grid-template-rows: minmax(0, 1fr); }
	.upm .upm-lb-img { max-height: 100%; }
	.upm .upm-lb-prev, .upm .upm-lb-next { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); }
	.upm.upm-lightbox .upm-lb-prev, .upm.upm-lightbox .upm-lb-next { background: rgba(255, 255, 255, .92); border-color: var(--upm-line); box-shadow: var(--upm-shadow-1); }
	.upm .upm-lb-prev { left: 6px; }
	.upm .upm-lb-next { right: 6px; }
	.upm .upm-lb-book { padding: 8px 14px; font-size: 14px; }
	/* A long name ("Marcar com a Ana Margarida") left the title a column too narrow for one word:
	   when the title would get under 140 px, the book button takes a row of its own under it, and
	   ✕ stays top right. */
	.upm .upm-lb-bar { flex-wrap: wrap; row-gap: 10px; }
	.upm .upm-lb-head { flex: 1 1 140px; }
	.upm .upm-lb-close { order: 1; }
	.upm .upm-lb-book { order: 2; }
}

/* ------------------------------------------------------------------ */
/* [upm_precos]: services and prices (DESIGN 5.2)                     */
/* ------------------------------------------------------------------ */

.upm.upm-svcs { display: grid; gap: 20px; min-width: 0; }
.upm .upm-feeline {
	position: relative; display: block; padding: 0 0 0 28px; font-size: 14px; line-height: 20px; color: var(--upm-ink-2);
}
.upm .upm-feeline > .upm-icon { position: absolute; left: 0; top: 0; color: var(--upm-rose-deep); }
.upm .upm-feeline a { color: var(--upm-rose-deep) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 12px 0; }
.upm.upm-svcs > .upm-feeline { background: var(--upm-surface); border: 1px solid var(--upm-line); border-radius: var(--upm-r-lg); padding: 12px 14px 12px 42px; }
.upm.upm-svcs > .upm-feeline > .upm-icon { left: 14px; top: 12px; }
.upm .upm-svc-groups { display: grid; gap: 24px; min-width: 0; }
.upm .upm-svc-group { display: grid; gap: 4px; min-width: 0; }
.upm .upm-svc-group-h { font: 600 13px/18px var(--upm-body); letter-spacing: .12em; text-transform: uppercase; color: var(--upm-muted); padding-bottom: 8px; border-bottom: 1px solid var(--upm-line-strong); }
.upm .upm-svc-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.upm .upm-svc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--upm-line); }
.upm .upm-svc-row::before, .upm .upm-svc-row::marker { content: none; }
.upm .upm-svc-main { display: grid; gap: 1px; min-width: 0; }
.upm .upm-svc-name { font: 700 17px/22px var(--upm-display); color: var(--upm-ink); }
.upm .upm-svc-desc { font-size: 14px; line-height: 20px; color: var(--upm-muted); }
.upm .upm-svc-meta { font-size: 14px; line-height: 20px; color: var(--upm-muted); }
.upm .upm-svc-side { display: grid; justify-items: end; gap: 8px; }
.upm .upm-svc-price { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--upm-rose-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.upm .upm-svc-note { font-size: 14px; line-height: 20px; color: var(--upm-muted); }
@media (min-width: 720px) {
	/* Columns instead of a row-span grid: REMOÇÃO sits right under PÉS, no hole. */
	.upm .upm-svc-groups { display: block; columns: 2 300px; column-gap: 40px; }
	.upm .upm-svc-group { break-inside: avoid; margin-bottom: 28px; }
	.upm .upm-svc-group:last-child { margin-bottom: 0; }
}

/* ------------------------------------------------------------------ */
/* [upm_taxa view="bloco"] (v1, kept) and the receipt                 */
/* ------------------------------------------------------------------ */

.upm.upm-first { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--upm-rose-soft); border-radius: 28px; padding: clamp(24px, 5vw, 52px); }
.upm .upm-first-text { display: grid; gap: 14px; min-width: 0; }
.upm .upm-first-title { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.01em; }
.upm .upm-first-sub { color: var(--upm-ink); opacity: .85; max-width: 56ch; }
.upm.upm-first .upm-receipt { background: var(--upm-surface); }
.upm .upm-receipt { background: var(--upm-surface-2); border-radius: var(--upm-r-lg); padding: 6px 16px 16px; font-variant-numeric: tabular-nums; min-width: 0; }
.upm .upm-receipt-title { font: 600 13px/18px var(--upm-body); letter-spacing: .12em; text-transform: uppercase; color: var(--upm-muted); padding-top: 10px; }
.upm .upm-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--upm-line); }
.upm .upm-line-label { font-weight: 600; min-width: 0; font-size: 16px; line-height: 22px; }
.upm .upm-line-who { grid-column: 1 / 2; color: var(--upm-muted); font-size: 13px; line-height: 18px; }
.upm .upm-line-amount { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 600 16px/22px var(--upm-body); white-space: nowrap; }
.upm .upm-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: -1px; padding-top: 14px; border-top: 1px solid var(--upm-line-strong); font: 700 20px/26px var(--upm-body); }
.upm .upm-total b { font: inherit; color: var(--upm-ink); white-space: nowrap; }
.upm .upm-receipt-note { font-size: 14px; line-height: 20px; color: var(--upm-muted); margin-top: 8px; }
@media (max-width: 820px) { .upm.upm-first { grid-template-columns: minmax(0, 1fr); } }

/* FAQ items ([upm_taxa view="faq"], [upm_info view="faq"]) when the page has no FAQ styles of its own */
details.upm.upm-faq { border-bottom: 1px solid var(--upm-line); margin: 0; padding: 0; }
details.upm.upm-faq > summary { list-style: none; cursor: pointer; text-decoration: none; display: flex; align-items: center; min-height: 56px; padding: 14px 40px 14px 0; font: 700 17px/24px var(--upm-display); position: relative; color: var(--upm-ink); background: none; }
details.upm.upm-faq > summary::-webkit-details-marker { display: none; }
details.upm.upm-faq > summary::after { content: "+"; position: absolute; right: 6px; top: 50%; margin-top: -13px; font: 400 26px/26px var(--upm-body); color: var(--upm-rose-deep); transition: transform .2s var(--upm-ease); }
details.upm.upm-faq[open] > summary::after { transform: rotate(45deg); }
details.upm.upm-faq > p { padding: 0 0 18px; margin: 0; color: var(--upm-ink-2); max-width: 68ch; }

/* [upm_legal] (rendered by the backend) */
.upm.upm-legal { display: grid; gap: 6px; font-size: 13px; line-height: 1.55; color: var(--upm-muted); max-width: 80ch; }
.upm.upm-legal a { text-decoration: underline; }
.upm .upm-legal-complaints { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--upm-ink) !important; }
.upm .upm-legal-icon { flex: none; width: 20px; height: 20px; }
p.upm.upm-info { color: var(--upm-muted); font-size: 14px; }
/* The same legal footer under every booking view (the page footer is hidden then). */
.upm .upm-app-legal { display: block; background: var(--upm-surface); border-top: 1px solid var(--upm-line); }
.upm .upm-app-legal-in { display: grid; gap: 6px; max-width: 640px; margin: 0 auto; padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 13px; line-height: 1.55; color: var(--upm-muted); }
.upm .upm-app-legal a { color: var(--upm-ink) !important; text-decoration: underline; }
.upm .upm-app-legal .upm-legal-complaints { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: underline; }
.upm .upm-app-legal .upm-legal-icon { width: 20px; height: 20px; }
.upm.upm-app[data-view="perfil"] .upm-app-legal-in { max-width: 1040px; }
@media (min-width: 720px) {
	/* Same left edge as the view column (24 px gutter), round 2. */
	.upm .upm-app-legal-in { max-width: 640px; padding-inline: 24px; }
	.upm.upm-app:not([data-view="perfil"]) .upm-app-legal-in { max-width: 640px; }
	.upm.upm-app[data-view="perfil"] .upm-app-legal-in { max-width: 1040px; }
}
@media (min-width: 720px) and (max-width: 959.98px) {
	.upm.upm-app[data-view="perfil"] .upm-topbar-in, .upm.upm-app[data-view="perfil"] .upm-app-legal-in { max-width: 664px; }
}

/* ------------------------------------------------------------------ */
/* The booking app: views that take over the page (DESIGN 3, 6.1)    */
/* ------------------------------------------------------------------ */

html.upm-view-open [data-upm-page] { display: none !important; }
html.upm-view-open { scroll-padding-top: 72px; scroll-padding-bottom: 120px; }
html.upm-view-open.upm-fixed body { overflow: hidden; }
body.upm-blank { margin: 0; background: #FAF3EE; }

.upm.upm-app { display: block; min-height: 100vh; min-height: 100dvh; background: var(--upm-bg); margin: 0; }
.upm.upm-app-fixed { position: fixed; inset: 0; z-index: 100000; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* Top bar */
.upm .upm-topbar { position: sticky; top: 0; z-index: 20; background: var(--upm-surface); border-bottom: 1px solid var(--upm-line); }
.admin-bar .upm .upm-topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .upm .upm-topbar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .upm .upm-topbar { top: 0; } }
.upm.upm-app-fixed .upm-topbar { top: 0; }
.upm .upm-topbar-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; max-width: 1040px; height: 56px; margin: 0 auto; padding: 0 6px; }
.upm button.upm-tb-btn {
	display: inline-flex; align-items: center; gap: 4px; height: 44px; min-width: 44px; margin: 0; padding: 0 12px 0 6px;
	background: transparent; border: 0; border-radius: 999px; box-shadow: none; cursor: pointer;
	font: 600 15px/20px var(--upm-body); color: var(--upm-ink); text-transform: none; letter-spacing: normal;
}
.upm button.upm-tb-btn:hover, .upm button.upm-tb-btn:focus { background: var(--upm-surface-2); color: var(--upm-ink); }
.upm .upm-tb-back { grid-column: 1; justify-self: start; }
.upm .upm-tb-cap { grid-column: 2; min-width: 0; text-align: center; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--upm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upm button.upm-tb-close { grid-column: 3; justify-self: end; justify-content: center; width: 44px; padding: 0; }
/* PT · EN · ES in the profile's top bar (2.3 review): the page's own switcher is covered there. */
.upm .upm-tb-cap { grid-row: 1; }
.upm .upm-tb-lang { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: center; gap: 2px; min-width: 0; font: 600 13px/18px var(--upm-body); letter-spacing: .08em; color: var(--upm-muted); }
.upm.upm-app:not([data-view="perfil"]) .upm-topbar-in { max-width: 664px; }
.upm .upm-leave { position: absolute; left: 0; right: 0; top: 100%; border-top: 1px solid var(--upm-line); border-bottom: 1px solid var(--upm-line); background: var(--upm-warn-soft); box-shadow: var(--upm-shadow-2); }
.upm .upm-leave-in { display: grid; gap: 10px; max-width: 640px; margin: 0 auto; padding: 12px 16px; }
.upm .upm-leave-q { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--upm-ink); }
.upm .upm-leave-act { display: flex; flex-wrap: wrap; gap: 8px; }
.upm .upm-progress { height: 3px; background: var(--upm-surface-2); }
.upm .upm-progress > span { display: block; height: 100%; width: 0; background: var(--upm-accent); border-radius: 0 3px 3px 0; transition: width .25s var(--upm-ease); }
.upm .upm-topbar .upm-progress { position: absolute; left: 0; right: 0; top: 54px; }

/* View container */
.upm .upm-view { display: grid; gap: 16px; align-content: start; max-width: 640px; margin: 0 auto; padding: 16px 16px 40px; min-width: 0; }
.upm .upm-view > * { min-width: 0; }
.upm .upm-view.upm-view-wide { max-width: 1040px; }
/* A short view (loading, feito on a desktop): the legal footer sits at the bottom of the screen,
   never in the middle of it (round 2). */
.upm.upm-app:not([hidden]) { display: flex; flex-direction: column; }
.upm.upm-app:not([hidden]) > .upm-view { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
.upm .upm-view.upm-view-hora, .upm .upm-view.upm-view-perfil { padding-bottom: 0; }
.upm .upm-view-in { animation: upm-in .18s var(--upm-ease) backwards; }
@keyframes upm-in { from { opacity: 0; transform: translateY(8px); } }
.upm .upm-view-h { font: 700 24px/28px var(--upm-display); letter-spacing: -.005em; color: var(--upm-ink); scroll-margin-top: 72px; }
/* The view H2 takes focus on every view change (DESIGN 10.2) for screen readers. It is not a
   control, so no ring: on a deep link (Instagram ?marcar=1) Chrome would otherwise draw one. */
.upm .upm-view-h:focus, .upm .upm-view-h:focus-visible { outline: none; }
.upm .upm-view-h-sm { font-size: 21px; line-height: 26px; }
.upm .upm-group-h { font: 600 13px/18px var(--upm-body); letter-spacing: .12em; text-transform: uppercase; color: var(--upm-muted); }
.upm .upm-legend { display: block; margin-bottom: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--upm-ink); }
@media (min-width: 720px) {
	.upm .upm-view { padding: 24px 24px 48px; gap: 18px; }
	.upm .upm-topbar-in { padding: 0 12px; }
}

/* Context strip (6.1.1) */
.upm .upm-ctx { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; border-bottom: 1px solid var(--upm-line); min-width: 0; }
.upm .upm-ctx-t { display: grid; min-width: 0; }
.upm .upm-ctx-l1 { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--upm-ink); }
.upm .upm-ctx-l2 { font-size: 14px; line-height: 20px; color: var(--upm-muted); font-variant-numeric: tabular-nums; }

.upm .upm-view-hgroup { display: grid; gap: 4px; min-width: 0; }
.upm .upm-ctx.upm-ctx-mini { display: block; padding: 0; border: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--upm-ink-2); }
.upm .upm-view.upm-view-hora { gap: 12px; }

/* Avatars */
.upm .upm-av { flex: none; display: inline-block; border-radius: 50%; object-fit: cover; background: var(--upm-rose-soft); max-width: none; }
.upm .upm-av-initial, .upm .upm-av-icon { display: inline-grid; place-items: center; color: var(--upm-rose-deep); font-family: var(--upm-display); font-weight: 700; line-height: 1; }
.upm .upm-av-28 { width: 28px; height: 28px; font-size: 13px; }
.upm .upm-av-36 { width: 36px; height: 36px; font-size: 15px; }
.upm .upm-av-44 { width: 44px; height: 44px; font-size: 18px; }
.upm .upm-av-52 { width: 52px; height: 52px; font-size: 21px; }
.upm .upm-av-72 { width: 72px; height: 72px; font-size: 28px; }
.upm .upm-av-28 .upm-icon { width: 16px; height: 16px; }
.upm .upm-av-36 .upm-icon { width: 22px; height: 22px; }
.upm .upm-av-44 .upm-icon { width: 22px; height: 22px; }
.upm .upm-avstack { display: inline-flex; align-items: center; flex: none; width: 52px; justify-content: center; }
.upm .upm-avstack .upm-av { box-shadow: 0 0 0 2px var(--upm-surface); }
.upm .upm-avstack .upm-av + .upm-av { margin-left: -10px; }

/* Notes and fee line inside the app */
.upm .upm-note { background: var(--upm-rose-soft); color: var(--upm-ink); border-radius: var(--upm-r-md); padding: 12px 14px; font-size: 15px; line-height: 22px; }
.upm .upm-view .upm-feeline { padding: 12px 14px 12px 42px; background: var(--upm-surface); border: 1px solid var(--upm-line); border-radius: var(--upm-r-lg); }
.upm .upm-view .upm-feeline > .upm-icon { left: 14px; top: 12px; }
.upm .upm-req .upm-feeline, .upm .upm-pf-sec .upm-feeline { padding: 0 0 0 28px; background: none; border: 0; border-radius: 0; }
.upm .upm-req .upm-feeline > .upm-icon, .upm .upm-pf-sec .upm-feeline > .upm-icon { left: 0; top: 0; }
.upm .upm-nailnote { padding-top: 4px; }
.upm .upm-chipline { display: flex; }
.upm button.upm-pill {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 12px 0 6px;
	background: var(--upm-rose-soft); border: 1px solid var(--upm-rose-line); border-radius: 999px; box-shadow: none; cursor: pointer;
	font: 600 15px/20px var(--upm-body); color: var(--upm-ink); text-transform: none; letter-spacing: normal;
}
.upm button.upm-pill:hover, .upm button.upm-pill:focus { background: var(--upm-rose-soft); border-color: var(--upm-rose-deep); color: var(--upm-ink); }
.upm button.upm-pill .upm-icon { width: 16px; height: 16px; color: var(--upm-rose-deep); }

/* Option rows: services and pros (9.3) */
.upm .upm-optgroup { display: grid; gap: 8px; min-width: 0; }
.upm .upm-optgroup + .upm-optgroup { margin-top: 8px; }
.upm .upm-optlist { display: grid; gap: 8px; min-width: 0; }
.upm button.upm-opt {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; width: 100%; min-height: 72px; margin: 0; padding: 14px 12px 14px 16px;
	background: var(--upm-surface); border: 1px solid var(--upm-line); border-radius: var(--upm-r-lg); box-shadow: none; cursor: pointer;
	font: 400 16px/22px var(--upm-body); color: var(--upm-ink); text-align: left; text-transform: none; letter-spacing: normal; white-space: normal;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.upm button.upm-opt:hover, .upm button.upm-opt:focus { background: var(--upm-surface); color: var(--upm-ink); border-color: var(--upm-rose-line); box-shadow: var(--upm-shadow-1); }
.upm button.upm-opt:active { background: var(--upm-surface-2); }
.upm .upm-opt-main { display: grid; gap: 2px; min-width: 0; }
.upm .upm-opt-name { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--upm-ink); }
.upm .upm-opt-desc { font-size: 14px; line-height: 20px; color: var(--upm-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.upm .upm-opt-meta { font-size: 14px; line-height: 20px; color: var(--upm-muted); font-variant-numeric: tabular-nums; }
.upm .upm-opt-side { display: inline-flex; align-items: center; gap: 2px; align-self: center; }
.upm .upm-opt-side > .upm-icon { color: var(--upm-muted); }
.upm .upm-opt-price { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--upm-rose-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.upm button.upm-opt-pro { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; min-height: 88px; }
.upm .upm-opt-pro-wrap { display: grid; gap: 0; }
.upm .upm-opt-pro-wrap > .upm-opt-profile { justify-self: start; margin: -2px 0 -6px 16px; font-size: 14px; }
.upm .upm-opt-title { -webkit-line-clamp: 1; }
.upm .upm-opt-next { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--upm-ink); }
.upm .upm-opt-next.upm-is-none { color: var(--upm-muted); }
.upm .upm-optlist-pro { gap: 12px; }

/* Radio chips (9.3) */
.upm .upm-chiprow {
	display: flex; gap: 8px; margin: -4px -16px; padding: 4px 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.upm .upm-chiprow::-webkit-scrollbar { display: none; }
.upm .upm-chiprow-wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.upm label.upm-chip { position: relative; display: inline-flex; flex: none; margin: 0; padding: 0; cursor: pointer; min-width: 0; }
.upm label.upm-chip::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
.upm .upm-chip-in {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
	background: var(--upm-surface); border: 1px solid var(--upm-line-strong); color: var(--upm-ink);
	font: 600 15px/20px var(--upm-body); white-space: nowrap; transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.upm .upm-chip-av .upm-chip-in { padding-left: 6px; }
.upm .upm-chip-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; border-radius: 50%; background: var(--upm-rose-soft); color: var(--upm-rose-deep); }
.upm .upm-chip-ico .upm-icon { width: 18px; height: 18px; }
.upm label.upm-chip:hover .upm-chip-in { border-color: var(--upm-rose-deep); }
.upm .upm-sr-input:checked + .upm-chip-in { background: var(--upm-accent); border-color: var(--upm-accent); color: var(--upm-on-accent); }
.upm .upm-sr-input:checked + .upm-chip-in .upm-av { box-shadow: 0 0 0 2px var(--upm-on-accent); }
.upm .upm-sr-input:checked + .upm-chip-in .upm-chip-ico { background: transparent; box-shadow: inset 0 0 0 2px var(--upm-on-accent); color: var(--upm-on-accent); }
.upm .upm-sr-input:focus-visible + .upm-chip-in,
.upm .upm-sr-input:focus-visible + .upm-day-in,
.upm .upm-sr-input:focus-visible + .upm-slot-in { outline: 3px solid var(--upm-focus); outline-offset: 2px; }
.upm .upm-fs-pro .upm-chiprow { padding-bottom: 6px; }

/* Days (9.3) */
.upm .upm-fs-days { display: grid; gap: 10px; }
.upm .upm-dayhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.upm .upm-month { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--upm-ink); }
.upm .upm-month::first-letter { text-transform: uppercase; }
.upm .upm-daynav { display: flex; gap: 8px; }
.upm .upm-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 4px; }
.upm label.upm-day { position: relative; display: block; margin: 0; padding: 0; min-width: 0; cursor: pointer; }
.upm .upm-day-in {
	display: grid; justify-items: center; align-content: center; min-height: 60px; padding: 6px 0 8px; border-radius: var(--upm-r-md);
	background: var(--upm-surface); border: 1px solid var(--upm-line); color: var(--upm-ink); text-align: center;
	transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.upm .upm-day-wd { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--upm-muted); }
.upm .upm-day-today .upm-day-wd { color: var(--upm-rose-deep); }
.upm .upm-day-n { font: 700 18px/22px var(--upm-display); font-variant-numeric: tabular-nums; }
.upm .upm-day-m { font-size: 11px; line-height: 14px; color: var(--upm-muted); }
.upm .upm-day-dot { width: 6px; height: 6px; margin-top: 4px; border-radius: 50%; background: var(--upm-free); }
@media (max-width: 719.98px) {
	.upm .upm-day-in { min-height: 56px; padding: 6px 0; }
	.upm .upm-day-m { display: none; }
}
.upm label.upm-day:not(.upm-day-off):hover .upm-day-in { border-color: var(--upm-rose-deep); }
.upm .upm-sr-input:checked + .upm-day-in { background: var(--upm-accent); border-color: var(--upm-accent); color: var(--upm-on-accent); }
.upm .upm-sr-input:checked + .upm-day-in .upm-day-wd,
.upm .upm-sr-input:checked + .upm-day-in .upm-day-m { color: var(--upm-on-accent); }
.upm .upm-sr-input:checked + .upm-day-in .upm-day-dot { background: var(--upm-on-accent); }
.upm label.upm-day-off { cursor: default; }
.upm .upm-day-off .upm-day-in { background: transparent; border-color: transparent; opacity: .55; }
.upm .upm-day-off .upm-day-dot { visibility: hidden; }

/* Slots (9.3) */
.upm .upm-slotwrap { display: grid; gap: 14px; min-width: 0; }
.upm .upm-date-h { font: 700 19px/24px var(--upm-display); padding-top: 4px; scroll-margin-top: 72px; }
.upm .upm-moved { display: grid; gap: 8px; }
.upm .upm-moved .upm-actions { gap: 8px; }
.upm .upm-alert-slot:empty { display: none; }
.upm .upm-slotparts { display: grid; gap: 18px; }
.upm .upm-slotpart { display: grid; gap: 8px; }
.upm .upm-slotgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.upm label.upm-slot { position: relative; display: block; margin: 0; padding: 0; cursor: pointer; min-width: 0; }
.upm .upm-slot-in {
	display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border-radius: var(--upm-r-md);
	background: var(--upm-surface); border: 1px solid var(--upm-line-strong); color: var(--upm-ink);
	font-size: 17px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums;
	transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.upm .upm-slot-in .upm-icon { display: none; width: 16px; height: 16px; margin-left: -4px; }
.upm label.upm-slot:hover .upm-slot-in { border-color: var(--upm-rose-deep); }
.upm .upm-sr-input:checked + .upm-slot-in { background: var(--upm-accent); border-color: var(--upm-accent); color: var(--upm-on-accent); }
.upm .upm-sr-input:checked + .upm-slot-in .upm-icon { display: inline-block; }
@media (min-width: 480px) {
	.upm .upm-slotgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Qualquer assignment (6.5.3) */
.upm .upm-assign { display: grid; gap: 10px; padding: 12px 14px; background: var(--upm-surface); border: 1px solid var(--upm-rose-line); border-radius: var(--upm-r-lg); animation: upm-fade .12s ease backwards; }
@keyframes upm-fade { from { opacity: 0; } }
.upm .upm-assign-t { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 22px; font-weight: 600; }
.upm .upm-assign-opts { display: grid; gap: 8px; }
.upm .upm-assign-l { font-size: 14px; line-height: 20px; color: var(--upm-muted); }
.upm .upm-assign-miss { font-size: 14px; line-height: 20px; color: var(--upm-ink-2); background: var(--upm-warn-soft); border-radius: var(--upm-r-sm); padding: 6px 10px; }
.upm .upm-assign { scroll-margin-bottom: 120px; }

/* States (loading, empty, error) */
.upm .upm-state { display: grid; gap: 12px; justify-items: start; padding: 16px; background: var(--upm-surface-2); border-radius: var(--upm-r-lg); }
.upm .upm-state > .upm-alert { justify-self: stretch; }
.upm .upm-state-t { font-size: 16px; line-height: 24px; color: var(--upm-ink); }

/* Request panel (6.6) */
.upm .upm-req-wrap { display: grid; gap: 4px; }
.upm button.upm-req-toggle { justify-self: start; }
.upm button.upm-req-toggle[aria-expanded="true"] .upm-icon { transform: rotate(90deg); }
.upm button.upm-req-toggle .upm-icon { transition: transform .12s ease; }
.upm .upm-card.upm-req { background: var(--upm-surface-2); border-color: transparent; border-radius: var(--upm-r-lg); gap: 16px; animation: upm-fade .12s ease backwards; }
.upm .upm-req .upm-fs { display: grid; gap: 8px; }
.upm .upm-req .upm-fs > legend { margin-bottom: 8px; }

/* Sticky bottom bar (6.5.4, 9.6) */
.upm .upm-bar {
	position: sticky; bottom: 0; z-index: 15; margin: 8px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	background: var(--upm-surface); border-top: 1px solid var(--upm-line); box-shadow: var(--upm-shadow-2);
}
.upm .upm-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 640px; margin: 0 auto; }
.upm .upm-bar-sum { flex: 1; min-width: 0; display: grid; }
.upm .upm-bar-l1 { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--upm-ink); font-variant-numeric: tabular-nums; }
.upm .upm-bar-l2 { font-size: 14px; line-height: 20px; color: var(--upm-muted); font-variant-numeric: tabular-nums; text-wrap: balance; }
.upm .upm-btn.upm-bar-btn { flex: none; min-height: 48px; min-width: 132px; }
.upm .upm-bar-sm { display: none; }
@media (max-width: 379px) {
	.upm .upm-bar-lg { display: none; }
	.upm .upm-bar-sm { display: inline; }
	.upm .upm-btn.upm-bar-btn { min-width: 112px; padding-inline: 18px; }
}
@media (min-width: 720px) {
	.upm .upm-bar { bottom: 16px; margin: 8px 0 16px; border: 1px solid var(--upm-line); border-radius: var(--upm-r-lg); padding: 12px 16px; }
}
@media (max-height: 500px) {
	.upm .upm-topbar { position: relative; }
	.upm .upm-bar { position: static; }
	.upm .upm-bar { box-shadow: none; }
	.upm .upm-pf-card { position: static !important; }
}

/* Step 4: dados (6.7) */
.upm .upm-req-note { margin-top: -6px; }
.upm .upm-hello { display: grid; gap: 0; justify-items: start; background: var(--upm-rose-soft); color: var(--upm-ink); border-radius: var(--upm-r-md); padding: 12px 14px 2px; font-size: 15px; line-height: 22px; }
.upm .upm-errsum { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--upm-err); border-radius: var(--upm-r-md); background: var(--upm-err-soft); color: var(--upm-err); }
.upm .upm-errsum:focus { outline: none; }
.upm .upm-errsum:focus-visible { outline: 3px solid var(--upm-rose-deep); outline-offset: 2px; }
.upm .upm-errsum-h { display: flex; align-items: center; gap: 8px; font: 700 16px/22px var(--upm-body); color: var(--upm-err); }
.upm .upm-errsum ul { margin: 0; padding: 0 0 0 28px; list-style: disc; }
.upm .upm-errsum li { margin: 2px 0; }
.upm .upm-errsum a { color: var(--upm-err) !important; font-weight: 500; text-decoration: underline; }
.upm .upm-privacy { padding-top: 2px; }
.upm .upm-phone-sugg { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 14px; line-height: 20px; color: var(--upm-ink); }
.upm .upm-form .upm-check-wrap { margin-top: -6px; }

/* Step 5: confirmar (6.8) */
.upm .upm-review-list { display: grid; background: var(--upm-surface); border: 1px solid var(--upm-line); border-radius: var(--upm-r-xl); padding: 4px 16px; }
.upm .upm-rv-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--upm-line); }
.upm .upm-rv-row:last-child { border-bottom: 0; }
.upm .upm-nw { white-space: nowrap; }
.upm .upm-rv-row dt { font-size: 14px; line-height: 20px; color: var(--upm-muted); padding-top: 12px; align-self: start; }
.upm .upm-rv-val { display: grid; font-size: 16px; line-height: 22px; color: var(--upm-ink); padding-top: 11px; align-self: start; min-width: 0; }
.upm .upm-rv-name { font-weight: 600; }
.upm .upm-rv-sub { font-size: 14px; line-height: 20px; color: var(--upm-muted); overflow-wrap: anywhere; }
.upm .upm-rv-act { align-self: start; }
.upm .upm-rv-badge { justify-self: start; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: var(--upm-warn-soft); color: var(--upm-warn-ink); font-size: 13px; line-height: 20px; font-weight: 600; }
.upm .upm-opt-name .upm-rv-badge { margin-left: 8px; vertical-align: 2px; }
.upm .upm-rv-act .upm-linkbtn { font-size: 15px; }
.upm .upm-view-confirmar .upm-h3 { margin-top: 6px; }
.upm .upm-legal-lines { display: grid; gap: 8px; }
.upm .upm-app .upm-legal-line, .upm.upm-app .upm-legal-line { font-size: 14px; line-height: 20px; color: var(--upm-ink-2); }
.upm .upm-checks { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--upm-line); }
.upm .upm-review-total { font-size: 16px; line-height: 24px; color: var(--upm-ink); }
.upm .upm-review-total b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 479.98px) {
	.upm .upm-rv-row { grid-template-columns: minmax(0, 1fr) auto; }
	.upm .upm-rv-row dt { grid-column: 1; grid-row: 1; }
	.upm .upm-rv-val { grid-column: 1; grid-row: 2; padding-top: 0; padding-bottom: 6px; }
	.upm .upm-rv-act { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}

/* Feito (6.9) */
.upm .upm-done-head { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 12px 0 4px; }
.upm .upm-done-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--upm-free); color: #fff; animation: upm-pop .3s var(--upm-ease) backwards; }
.upm .upm-done-icon .upm-icon { width: 30px; height: 30px; }
@keyframes upm-pop { from { opacity: 0; transform: scale(.6); } }
.upm .upm-done-email { font-size: 15px; line-height: 22px; color: var(--upm-ink-2); max-width: 46ch; overflow-wrap: anywhere; }
.upm .upm-card.upm-done-card { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; }
.upm .upm-done-txt { display: grid; gap: 2px; min-width: 0; }
.upm .upm-done-what { font-size: 16px; line-height: 22px; font-weight: 600; }
.upm .upm-done-when { font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; }
.upm .upm-done-when::first-letter { text-transform: uppercase; }
.upm .upm-done-total { font-size: 15px; line-height: 22px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.upm .upm-done-total b { font-weight: 700; }
.upm .upm-done-split { color: var(--upm-ink-2); }
.upm .upm-done-cal { display: grid; justify-items: start; gap: 0; }
.upm .upm-done-cal .upm-link { color: var(--upm-ink) !important; }
.upm .upm-done-where { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 4px 0; }
.upm .upm-done-where .upm-small { flex: 1 1 180px; color: var(--upm-ink-2); }
.upm .upm-done-remind { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 22px; color: var(--upm-ink-2); }
.upm .upm-done-remind .upm-icon { color: var(--upm-rose-deep); }
/* inline-block, not the links' inline-flex: the label wraps as one line of text, with its
   "(retratar-me do contrato)" kept whole, instead of two side-by-side pieces on a phone. */
.upm .upm-done-cancel a.upm-link { display: inline-block; color: var(--upm-ink) !important; font-weight: 500; }
.upm .upm-done-again { gap: 4px 16px; padding-top: 16px; border-top: 1px solid var(--upm-line); }
@media (max-width: 719.98px) {
	.upm .upm-done-again { flex-direction: column; align-items: stretch; }
	.upm .upm-done-again .upm-linkbtn { justify-content: flex-start; }
	.upm .upm-done-where .upm-btn { width: 100%; }
}
.upm .upm-done-again .upm-linkbtn { color: var(--upm-ink); }

/* Profile view (6.11) */
.upm .upm-pf { display: grid; gap: 20px; min-width: 0; }
.upm .upm-pf > * { min-width: 0; }
.upm .upm-pf-cover { aspect-ratio: 16 / 10; border-radius: var(--upm-r-lg); overflow: hidden; background: var(--upm-rose-soft); }
.upm .upm-pf-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.upm .upm-pf-ident { display: grid; gap: 8px; justify-items: start; margin-top: -56px; }
.upm .upm-pf-ident > .upm-av { position: relative; margin-left: 16px; box-shadow: 0 0 0 3px var(--upm-surface); }
.upm .upm-pf-ident-nocover { margin-top: 0; }
.upm .upm-pf-ident-nocover > .upm-av { margin-left: 0; }
.upm .upm-view-h.upm-pf-name { font-size: 28px; line-height: 32px; margin-top: 4px; }
.upm .upm-pf-title { font-size: 16px; line-height: 24px; color: var(--upm-muted); margin-top: -6px; }
.upm .upm-pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.upm .upm-pf-tags li { display: inline-flex; align-items: center; height: 32px; margin: 0; padding: 0 12px; border-radius: 999px; background: var(--upm-rose-soft); color: var(--upm-ink); font-size: 14px; font-weight: 600; }
.upm .upm-pf-langs { font-size: 15px; line-height: 22px; color: var(--upm-ink-2); }
/* 2.3.1: payment methods she accepts (names only). */
.upm .upm-pay-line { font-size: 15px; line-height: 22px; color: var(--upm-ink-2); overflow-wrap: anywhere; }
.upm .upm-receipt-pay { font-size: 14px; line-height: 20px; margin-top: 4px; }
.upm .upm-pf-bio { font-size: 16px; line-height: 24px; color: var(--upm-ink); max-width: 62ch; white-space: pre-line; }
.upm .upm-pf-side { min-width: 0; }
.upm .upm-pf-card { display: grid; gap: 24px; min-width: 0; }
.upm .upm-pf-sec { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 1px solid var(--upm-line); min-width: 0; }
.upm .upm-fs-inline { display: block; }
/* "Para" sits above the chips. Phones: a full-bleed scrolling row, so a chip is only ever cut by the screen edge. */
.upm .upm-legend-inline { float: none; display: block; margin: 0 0 8px; padding: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--upm-ink); }
.upm .upm-fs-inline .upm-chiprow { margin: -4px -16px; padding: 4px 16px; }
.upm .upm-pf-svcline { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--upm-ink); }
.upm .upm-pf-slots { display: grid; gap: 12px; }
.upm .upm-slotchips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.upm button.upm-slotchip {
	display: grid; place-content: center; gap: 0; min-height: 56px; margin: 0; padding: 6px 4px;
	background: var(--upm-surface); border: 1px solid var(--upm-line-strong); border-radius: var(--upm-r-md); box-shadow: none; cursor: pointer;
	color: var(--upm-ink); text-align: center; text-transform: none; letter-spacing: normal; font-family: var(--upm-body);
	transition: border-color .12s ease, background-color .12s ease;
}
.upm button.upm-slotchip:hover, .upm button.upm-slotchip:focus { background: var(--upm-surface); border-color: var(--upm-rose-deep); color: var(--upm-ink); }
.upm button.upm-slotchip:active { background: var(--upm-accent); border-color: var(--upm-accent); color: var(--upm-on-accent); }
.upm .upm-slotchip-d { font-size: 13px; line-height: 16px; font-weight: 500; color: var(--upm-muted); white-space: nowrap; }
.upm .upm-slotchip-t { font-size: 17px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.upm .upm-btn.upm-pf-more { margin-top: -2px; }
.upm .upm-pf-svclist { display: grid; margin: 0; padding: 0; list-style: none; }
.upm .upm-pf-svc { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--upm-line); }
.upm .upm-pf-svc:last-child { border-bottom: 0; }
.upm .upm-pf-svc::before, .upm .upm-pf-svc::marker { content: none; }
.upm .upm-pf-svc-t { display: grid; min-width: 0; }
.upm .upm-pf-svc-n { font-size: 15px; line-height: 20px; font-weight: 600; }
.upm .upm-pf-svc-d { font-size: 14px; line-height: 20px; color: var(--upm-muted); }
.upm .upm-pf-svc-p { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--upm-rose-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.upm .upm-pf-book-inline { display: none; }
.upm .upm-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.upm a.upm-work { position: relative; display: block; border-radius: var(--upm-r-md); overflow: hidden; background: var(--upm-rose-soft); aspect-ratio: 1 / 1; text-decoration: none; }
.upm .upm-work img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--upm-ease); }
.upm a.upm-work:hover img { transform: scale(1.04); }
.upm .upm-pf-bar .upm-bar-in { max-width: 640px; }
@media (min-width: 720px) {
	.upm .upm-works { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
}
@media (min-width: 720px) and (max-width: 959.98px) {
	.upm .upm-view.upm-view-perfil { max-width: 664px; }
	.upm .upm-fs-inline .upm-chiprow { margin-inline: 0; padding-inline: 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
}
@media (min-width: 960px) {
	.upm .upm-pf { grid-template-columns: minmax(0, 1fr) 380px; gap: 20px 40px; align-items: start; padding-bottom: 48px; }
	.upm .upm-pf-cover { grid-column: 1; grid-row: 1; }
	.upm .upm-pf-ident { grid-column: 1; grid-row: 2; }
	.upm .upm-pf-works { grid-column: 1; grid-row: 3; }
	.upm .upm-pf-side { grid-column: 2; grid-row: 1 / span 3; align-self: stretch; }
	.upm .upm-pf-nocover .upm-pf-ident { grid-row: 1; }
	.upm .upm-pf-nocover .upm-pf-works { grid-row: 2; }
	.upm .upm-pf-nocover .upm-pf-side { grid-row: 1 / span 2; }
	.upm .upm-pf-card { position: sticky; top: 72px; padding: 20px; background: var(--upm-surface); border: 1px solid var(--upm-line); border-radius: var(--upm-r-xl); gap: 20px; }
	.admin-bar .upm .upm-pf-card { top: 104px; }
	.upm .upm-pf-card > .upm-pf-sec:first-child { padding-top: 0; border-top: 0; }
	.upm .upm-fs-inline .upm-chiprow { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
	.upm .upm-pf-book-inline { display: inline-flex; }
	.upm .upm-pf-bar { display: none; }
}

/* ------------------------------------------------------------------ */
/* [upm_cancelar]                                                     */
/* ------------------------------------------------------------------ */

.upm.upm-cancel { max-width: 640px; }
.upm.upm-cancel > .upm-langswitch { margin: 0 0 8px; }
/* An EN/ES cancel page on the plugin's blank template (2.3): centred, with the 16 px gutter. */
body.upm-blank .upm.upm-cancel { box-sizing: border-box; margin: 0 auto; padding: 24px 16px 40px; }
@media (max-width: 419px) {
	/* "Falar connosco no WhatsApp" on one line next to its icon when it fits (round 2). */
	.upm.upm-cancel .upm-actions .upm-btn { padding-inline: 16px; }
}
/* The cancel page sits in the site's own theme, whose margins can leave the card narrower than
   on the booking page: "(retratar-me do contrato)" and the WhatsApp button stay on one line when
   they fit and wrap rather than stick out of the card when they do not (2.1 repair). */
.upm.upm-cancel .upm-title .upm-nw { display: inline-block; white-space: normal; }
.upm.upm-cancel .upm-actions .upm-btn { max-width: 100%; }
.upm.upm-cancel .upm-actions .upm-btn > span { min-width: 0; }
.upm .upm-cancel-step { display: grid; gap: 12px; }
.upm .upm-cancel-step:focus { outline: none; }
.upm .upm-confirm-box { background: var(--upm-err-soft); border-radius: var(--upm-r-lg); padding: 16px; }
.upm .upm-receipt-box { background: var(--upm-free-soft); border-radius: var(--upm-r-lg); padding: 16px; }
.upm .upm-done-title { display: flex; align-items: center; gap: 10px; font: 700 18px/1.3 var(--upm-display); color: var(--upm-free); }

/* ------------------------------------------------------------------ */
/* Shared small parts (the panel rules live in upm-painel.css)        */
/* ------------------------------------------------------------------ */

.upm .upm-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--upm-accent); color: var(--upm-on-accent); font: 600 .72rem/1.4 var(--upm-body); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.upm .upm-badge-rose { background: var(--upm-rose-soft); color: var(--upm-rose-deep); }
.upm .upm-badge-muted { background: var(--upm-surface-2); color: var(--upm-ink-2); }
.upm .upm-switch { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; font-size: .92rem; font-weight: 500; }
.upm .upm-switch input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--upm-accent); cursor: pointer; }
.upm .upm-counter { justify-self: end; }

/* ------------------------------------------------------------------ */
/* [upm_idiomas]: "PT · EN · ES" (2.3)                                */
/* ------------------------------------------------------------------ */

.upm.upm-langswitch { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px; margin: 0; font: 600 13px/18px var(--upm-body); letter-spacing: .08em; color: var(--upm-muted); }
.upm .upm-langswitch-link { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 4px 6px; border-radius: var(--upm-r-sm); color: var(--upm-muted); text-decoration: none; }
.upm .upm-langswitch-link:hover { color: var(--upm-rose-deep); text-decoration: underline; text-underline-offset: 3px; }
.upm .upm-langswitch-link:focus-visible { outline: 2px solid var(--upm-focus); outline-offset: 2px; }
.upm .upm-langswitch-link.is-current { color: var(--upm-rose-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.upm .upm-langswitch-sep { color: var(--upm-line-strong); }

/* ------------------------------------------------------------------ */
/* Reduced motion (DESIGN 6.14, 10.12)                                */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.upm *, .upm *::before, .upm *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.upm .upm-btn:active, .upm a.upm-tcard:hover .upm-tcard-cover img, .upm a.upm-work:hover img { transform: none; }
	.upm .upm-skel::after { display: none; }
}
