/* ==========================================================================
   Atmosphere and motion layer (docs/DESIGN_SYSTEM.md, "Atmosphere and motion"). Backgrounds with depth instead of flat colour, built from the tokens in css/tokens.css,
   with CSS and inline SVG only (no image files). One attribute on <html> picks the intensity (templates/base_root.html, `{% block atmosphere %}`):

     rich        home, Why Ur Abode, Services, Pricing, About, sign-in pages: drifting light, grain, dot grids, spotlights, glass, scenes
     balanced    dashboards, search, property pages, most content pages: the same field, slower and quieter
     calm        legal and policy pages, help articles, forms, checkout and payments: a still, soft field (readability and trust first)
     restrained  Platform admin and Eazydev: a subtle header gradient and soft panel depth, hover and focus motion only
     off         nothing (a page may be listed as off on purpose)

   The site-wide cap staff choose (Platform admin, Appearance) lowers the tier. The device's own reduced-motion, reduced-data and forced-colors settings are honoured by media queries at the end.
   Rules: animate transform and opacity only; ambient layers pause when the tab is hidden or the scene is off-screen; text keeps AA contrast on the worst frame.
   ========================================================================== */

/* ---------- The backdrop: html::before is the light field, body::before the dot grid, body::after the grain ---------- */
html[data-atmosphere="rich"]::before, html[data-atmosphere="balanced"]::before, html[data-atmosphere="calm"]::before, html[data-atmosphere="restrained"]::before { content: ""; position: fixed; inset: -22%; z-index: -1; pointer-events: none; contain: strict;
  background: radial-gradient(42% 40% at 18% 16%, var(--atmo-a), transparent 72%), radial-gradient(34% 36% at 84% 12%, var(--atmo-b), transparent 72%),
    radial-gradient(40% 42% at 72% 86%, var(--atmo-c), transparent 74%), radial-gradient(30% 32% at 6% 78%, var(--atmo-a), transparent 72%); }
html[data-atmosphere="rich"]::before { animation: ua-atmo-drift var(--dur-atmo) var(--ease-drift) infinite alternate; }
html[data-atmosphere="balanced"]::before { opacity: .72; animation: ua-atmo-drift calc(var(--dur-atmo) * 1.6) var(--ease-drift) infinite alternate; }
html[data-atmosphere="calm"]::before { opacity: .5; }
html[data-atmosphere="restrained"]::before { opacity: .34; }
html[data-atmosphere="rich"] body::before, html[data-atmosphere="balanced"] body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(var(--atmo-dot) 1px, transparent 1.3px) 0 0 / 24px 24px; -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 78%); mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 78%); opacity: .8; }
html[data-atmosphere="balanced"] body::before { opacity: .45; }
html[data-atmosphere="rich"] body::after, html[data-atmosphere="balanced"] body::after, html[data-atmosphere="calm"] body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--atmo-grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes ua-atmo-drift { from { transform: translate3d(-2%, -1.5%, 0) scale(1); } to { transform: translate3d(2.5%, 2%, 0) scale(1.06); } }
html.ua-hidden::before { animation-play-state: paused; }

/* ---------- Sections: neighbours alternate (a spotlight, a dot field, a soft wash), joined by a fade, never a line ---------- */
html[data-atmosphere="rich"] .mk-section, html[data-atmosphere="balanced"] .mk-section, html[data-atmosphere="rich"] .ct-section, html[data-atmosphere="balanced"] .ct-section { position: relative; isolation: isolate; }
html[data-atmosphere="rich"] .mk-section + .mk-section::before, html[data-atmosphere="balanced"] .mk-section + .mk-section::before, html[data-atmosphere="rich"] .ct-section + .ct-section::before,
html[data-atmosphere="balanced"] .ct-section + .ct-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 9rem; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, var(--atmo-wash) 45%, transparent); }
html[data-atmosphere="rich"] .ct-section.is-tinted, html[data-atmosphere="balanced"] .ct-section.is-tinted { background: linear-gradient(180deg, transparent, var(--atmo-wash) 22%, var(--atmo-wash) 78%, transparent); }
html[data-atmosphere="rich"] .mk-section:nth-of-type(3n+2)::after, html[data-atmosphere="rich"] .ct-section:nth-of-type(3n+2)::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(var(--atmo-dot) 1px, transparent 1.3px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(60% 70% at 85% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 85% 30%, #000, transparent 75%); opacity: .7; }
html[data-atmosphere="rich"] .mk-section:nth-of-type(3n)::after, html[data-atmosphere="rich"] .ct-section:nth-of-type(3n)::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 60% at 12% 40%, var(--atmo-spot), transparent 70%); }

/* ---------- Heroes: a spotlight behind the heading and a scene of original inline SVG art (templates/partials/_scene_*.html) ---------- */
html[data-atmosphere="rich"] .mk-hero, html[data-atmosphere="rich"] .mk-pricing-hero, html[data-atmosphere="rich"] .ct-hero, html[data-atmosphere="balanced"] .ct-hero, html[data-atmosphere="balanced"] .mk-pricing-hero,
html[data-atmosphere="calm"] .ct-doc-head { position: relative; isolation: isolate; }
html[data-atmosphere="rich"] .mk-pricing-hero::before, html[data-atmosphere="rich"] .ct-hero::before, html[data-atmosphere="balanced"] .ct-hero::before, html[data-atmosphere="balanced"] .mk-pricing-hero::before,
html[data-atmosphere="calm"] .ct-doc-head::before { content: ""; position: absolute; inset: -20% 0 0; z-index: -1; pointer-events: none; background: radial-gradient(46% 62% at 50% 28%, var(--atmo-spot), transparent 72%); }
.ua-scene { position: absolute; inset: auto 0 0; z-index: -1; height: min(46%, 20rem); min-height: 9rem; pointer-events: none; overflow: hidden; color: var(--p-500); -webkit-mask-image: linear-gradient(180deg, transparent, #000 38%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 38%, #000 70%, transparent); }
.ua-scene svg { position: absolute; left: 50%; bottom: 0; width: max(100%, 62rem); height: 100%; transform: translateX(-50%); }
.ua-scene [data-ua-depth] { transition: transform var(--dur-4) var(--ease-out); }
.ua-scene .sc-line { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .55; }
.ua-scene .sc-fill { fill: currentColor; opacity: .09; }
.ua-scene .sc-glow { fill: var(--money-solid); opacity: .22; }
.ua-scene .sc-key { fill: none; stroke: var(--money-solid); stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: .8; }
[data-bs-theme="dark"] .ua-scene { color: var(--p-300); }
[data-bs-theme="dark"] .ua-scene .sc-line { opacity: .4; } [data-bs-theme="dark"] .ua-scene .sc-fill { opacity: .12; } [data-bs-theme="dark"] .ua-scene .sc-glow { opacity: .3; }
.ua-scene .sc-float { animation: ua-float 9s var(--ease-drift) infinite; } .ua-scene .sc-float-2 { animation: ua-float 12s var(--ease-drift) infinite reverse; }
.ua-scene.is-offscreen .sc-float, .ua-scene.is-offscreen .sc-float-2, html.ua-hidden .ua-scene .sc-float, html.ua-hidden .ua-scene .sc-float-2 { animation-play-state: paused; }
.mk-hero > .container { z-index: 1; }

/* ---------- Depth: an elevation scale, a lifted surface tone, inner highlights and (on the rich and balanced tiers) glass: never an outline ---------- */
.ua-elev-1 { box-shadow: var(--elev-1); } .ua-elev-2 { box-shadow: var(--elev-2); } .ua-elev-3 { box-shadow: var(--elev-3); } .ua-elev-4 { box-shadow: var(--elev-4); }
html[data-atmosphere="rich"] .ua-card, html[data-atmosphere="balanced"] .ua-card, html[data-atmosphere="calm"] .ua-card, html[data-atmosphere="restrained"] .ua-card,
html[data-atmosphere="rich"] .mk-tile, html[data-atmosphere="balanced"] .mk-tile, html[data-atmosphere="calm"] .mk-tile {
  background: var(--surface); box-shadow: var(--elev-2), inset 0 1px 0 var(--hl); }
html[data-atmosphere="rich"] .mk-tile, html[data-atmosphere="balanced"] .mk-tile { background: color-mix(in srgb, var(--surface) 84%, transparent); }
@supports (backdrop-filter: blur(1px)) { @media (min-width: 768px) { html[data-atmosphere="rich"] .mk-tile, html[data-atmosphere="balanced"] .mk-tile { -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15); } } }
html[data-atmosphere="rich"] .ua-card--interactive:hover, html[data-atmosphere="rich"] .mk-tile:hover, html[data-atmosphere="balanced"] .ua-card--interactive:hover { box-shadow: var(--elev-3), inset 0 1px 0 var(--hl); }
html[data-atmosphere="restrained"] .ua-card { box-shadow: var(--elev-1), inset 0 1px 0 var(--hl); }
html:is([data-atmosphere="restrained"], [data-atmosphere="calm"], [data-atmosphere="balanced"]) .ua-topbar::before { background-image: linear-gradient(180deg, color-mix(in srgb, var(--p-500) 7%, transparent), transparent); }
html:is([data-atmosphere="restrained"], [data-atmosphere="calm"], [data-atmosphere="balanced"]) .ua-page-head { position: relative; }
html:is([data-atmosphere="restrained"], [data-atmosphere="calm"], [data-atmosphere="balanced"]) .ua-page-head::before { content: ""; position: absolute; inset: -1rem -1.5rem auto; height: 9rem; z-index: -1; pointer-events: none; background: radial-gradient(60% 100% at 20% 0%, var(--atmo-spot), transparent 70%); opacity: .6; }

/* ---------- The sign-in pages: the same field with a lit door and a skyline behind the card ---------- */
html[data-atmosphere="rich"] .ua-authpage { background: none; }
html[data-atmosphere="rich"] .ua-auth-card { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--elev-3), inset 0 1px 0 var(--hl); }
.ua-authpage { position: relative; isolation: isolate; }
.ua-authpage .ua-scene { height: min(48%, 24rem); }

/* ---------- Dashboards ---------- */
html[data-atmosphere="balanced"] .ua-stat { background: var(--surface); box-shadow: var(--elev-2), inset 0 1px 0 var(--hl); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out); }
html[data-atmosphere="balanced"] .ua-stat:hover { transform: translateY(-2px); box-shadow: var(--elev-3), inset 0 1px 0 var(--hl); }
.ua-greeting { position: relative; isolation: isolate; }
.ua-greeting .ua-scene { inset: -1rem -1.5rem -.5rem; height: auto; min-height: 0; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); opacity: .8; }
.ua-greeting .ua-scene svg { width: 100%; min-width: 30rem; left: auto; right: 0; transform: none; }

/* ---------- Motion: words, tilt, a soft hover light, pressed buttons, reading progress ---------- */
.ua-js [data-ua-words].ua-words-on .w { display: inline-block; opacity: 0; transform: translate3d(0, .45em, 0); animation: ua-rise var(--dur-5) var(--ease-out) forwards; animation-delay: calc(var(--wi, 0) * 55ms + 80ms); }
[data-ua-tilt] { rotate: var(--ax, 1) var(--ay, 0) 0 var(--ang, 0deg); transition: rotate var(--dur-3) var(--ease-out); }  /* the standalone `rotate` property, so it never fights the reveal animation's transform */
.mk-tile.ua-spot::after, .ua-spot.ua-glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--dur-3) var(--ease-out);
  background: radial-gradient(14rem circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--glow) 35%, transparent), transparent 65%); }
.mk-tile.ua-spot:hover::after, .ua-spot.ua-glow:hover::after { opacity: 1; }
.btn:not(:disabled):not(.disabled) { transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-2); }
.btn:not(:disabled):not(.disabled):active { transform: scale(.975); transition-duration: var(--dur-1); }
.btn-primary:focus-visible { box-shadow: var(--focus-ring), 0 0 18px -2px var(--glow); }
.ua-readbar { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1100; transform-origin: 0 50%; transform: scaleX(var(--read, 0)); background: linear-gradient(90deg, var(--p-500), var(--money-solid)); pointer-events: none; }
@supports (animation-timeline: scroll()) { .ua-readbar { transform: scaleX(0); animation: ua-grow-x linear both; animation-timeline: scroll(root); } }
.ct-toc a[aria-current="true"] { background: var(--action-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--action); }
.ua-live-pulse { animation: ua-pulse 2.4s var(--ease-in-out) 2; }

/* ---------- Emotional moments: a tick that draws itself with a soft glow (templates/partials/_tick.html) ---------- */
.ua-tick { position: relative; display: inline-grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; color: var(--success); background: var(--success-bg); }
.ua-tick::before { content: ""; position: absolute; inset: -.5rem; border-radius: 50%; background: radial-gradient(closest-side, transparent 58%, var(--glow) 76%, transparent); opacity: 0; animation: ua-fade var(--dur-5) var(--ease-out) .5s forwards; }
.ua-tick svg { width: 2.25rem; height: 2.25rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ua-js .ua-tick svg path { animation: ua-draw var(--dur-5) var(--ease-out) .25s forwards; }
html:not(.ua-js) .ua-tick svg { stroke-dashoffset: 0; }

/* ---------- The device's own settings: reduced motion keeps the depth and stops the movement; forced colours and reduced data drop the layers ---------- */
@media (max-width: 767.98px) { html[data-atmosphere] .ua-scene { height: 9rem; } html[data-atmosphere="rich"] .mk-section:nth-of-type(3n+2)::after { opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  html::before, .ua-scene .sc-float, .ua-scene .sc-float-2 { animation: none !important; }
  [data-ua-tilt] { rotate: none !important; }
  .ua-js [data-ua-words].ua-words-on .w { opacity: 1; transform: none; animation: none; }
  .ua-tick svg { stroke-dashoffset: 0 !important; } .ua-tick svg path { animation: none !important; } .ua-tick::before { opacity: 1; animation: none; }
  .ua-readbar { animation: none; transform: scaleX(var(--read, 0)); }
}
@media (forced-colors: active) {
  html::before, body::before, body::after, .ua-scene, .ua-aurora, .ua-readbar { display: none !important; }
  .ua-card, .mk-tile, .ua-stat { background: Canvas !important; box-shadow: none !important; }
  /* Borderless by default (DESIGN_SYSTEM 3a): high-contrast mode hides shadows and tone, so surfaces get their edges back here */
  .ua-card, .ua-stat, .ua-listing-card, .ua-callout, .ua-banner, .ua-table-wrap, .ua-palette, .ua-glass, .ua-next-rent, .ua-status-icon, .ua-empty-icon, .ua-empty-art,
  .ua-photo-grid li, .ua-files li, .ua-upload-status, .ua-drop-item, .ua-pop, .ua-listing-type, .ua-badge, .ua-chip-tag, .ua-kbd, .ua-avatar,
  .mk-tile, .mk-shot, .mk-panel, .mk-plan, .mk-flow, .mk-mini, .mk-side, .mk-glass, .mk-tile-icon, .mk-slots span, .mk-band,
  .ct-link-card, .ct-faq, .ct-faq-like, .ct-helpful, .ct-callout, .ct-changes, .ct-accept, .ct-consent, .ct-fb-form,
  .pa-banner, .pa-action-form, .alert, .modal-content, .dropdown-menu, .ua-toast, .ua-modal, .ua-search-map, .ua-gallery--empty, .ua-time-col,
  .ua-sidebar, .ua-drawer, .module, #changelist-filter, .submit-row, .messagelist li, .login #container { border: 1px solid CanvasText; }
  .ua-topbar, .ua-nav, .ua-card-header, .ua-card-footer, .ua-footer, .ua-app-foot, .ua-detail-section, .ua-palette-search, .ua-palette-foot, .ua-pop-search, .ua-pop-foot,
  .ua-form-section, .ua-menu-head, .ua-side-foot, .ua-drawer-foot, #header, div.breadcrumbs { border-bottom: 1px solid CanvasText; }
  .ua-tabs { border-bottom: 1px solid CanvasText; }
  .dropdown-divider, hr { border-top: 1px solid CanvasText; opacity: 1; }
}
@media (prefers-reduced-data: reduce) { body::after, .ua-scene { display: none !important; } html::before { animation: none; } }
@media print { html::before, body::before, body::after, .ua-scene, .ua-readbar, .ua-aurora { display: none !important; } }

/* The header washes extend past the page padding: clip them so they never add sideways scroll. */
.ua-greeting, html:is([data-atmosphere="restrained"], [data-atmosphere="calm"], [data-atmosphere="balanced"]) .ua-page-head { overflow-x: clip; }

/* The sign-in footer stays readable over the lit door: it sits on a fade of the page colour. */
.ua-authpage .ua-scene { height: min(36%, 17rem); }
.ua-authfoot { position: relative; z-index: 1; padding-top: var(--s-10); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 86%, transparent) 55%); }

/* A hero with a scene keeps the scene below the words: extra space at the bottom, a short scene that never crosses the text. */
html[data-atmosphere] .ua-error { position: relative; isolation: isolate; overflow-x: clip; }
html[data-atmosphere] .has-scene { position: relative; isolation: isolate; padding-bottom: calc(var(--s-8) + 7.5rem); }
.has-scene > .ua-scene { height: 8rem; min-height: 0; }
html[data-atmosphere="calm"] .ua-scene { opacity: .6; }

/* The effects link in the footers: a text button. */

/* ---------- Step 2: emotional moments. Status icons pop in with a soft glow and a success check draws itself; small ticks mark a confirmed viewing, a started tenancy and a protected deposit ---------- */
.ua-tick--sm { width: 1.75rem; height: 1.75rem; flex: 0 0 auto; } .ua-tick--sm svg { width: 1rem; height: 1rem; stroke-width: 3.2; } .ua-tick--sm::before { inset: -.3rem; }
.ua-status-icon { position: relative; isolation: isolate; }
.ua-status-icon::before { content: ""; position: absolute; inset: -.7rem; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, transparent 58%, var(--glow) 76%, transparent); opacity: 0; }
html.ua-js:not([data-atmosphere="off"]) .ua-status-icon { animation: ua-pop var(--dur-4) var(--ease-spring) both; }
html.ua-js:not([data-atmosphere="off"]) .ua-status-icon::before { animation: ua-fade var(--dur-5) var(--ease-out) .35s forwards; }
html.ua-js:not([data-atmosphere="off"]) .ua-status-icon.is-success .ua-i { stroke-dasharray: 30; stroke-dashoffset: 30; animation: ua-draw var(--dur-5) var(--ease-out) .3s forwards; }
@media (prefers-reduced-motion: reduce) { .ua-status-icon, .ua-status-icon .ua-i { animation: none !important; stroke-dashoffset: 0 !important; } .ua-status-icon::before { animation: none !important; opacity: .8; } }
@media (forced-colors: active) { .ua-status-icon::before { display: none; } }

/* ---------- Step 2: the rest of the motion library ---------- */
/* The sticky header condenses (its mark shrinks, a soft shadow appears) once the page scrolls; it already blurs. Transform and opacity only. */
/* Table rows and list items rise in one after another; accordions and the Vault history open with a short rise. */
html.ua-js:not([data-atmosphere="off"]) tbody tr { animation: ua-rise var(--dur-4) var(--ease-out) both; }
html.ua-js tbody tr:nth-child(2) { animation-delay: 30ms; } html.ua-js tbody tr:nth-child(3) { animation-delay: 60ms; } html.ua-js tbody tr:nth-child(4) { animation-delay: 90ms; }
html.ua-js tbody tr:nth-child(5) { animation-delay: 120ms; } html.ua-js tbody tr:nth-child(6) { animation-delay: 150ms; } html.ua-js tbody tr:nth-child(n+7) { animation-delay: 180ms; }
html:not([data-atmosphere="off"]) details[open] > :not(summary) { animation: ua-acc-in var(--dur-4) var(--ease-spring) both; }  /* accordions open with a spring (static/js/motion.js adds the closing one and glides the rows below) */
details.is-closing > :not(summary) { animation: ua-acc-out .15s ease-in both; }
@keyframes ua-acc-in { from { opacity: 0; transform: translateY(-.5rem); } to { opacity: 1; transform: none; } }
@keyframes ua-acc-out { to { opacity: 0; transform: translateY(-.35rem); } }
/* A review was just posted: the person's own review lifts a little and its stars pop (motion.js reviewPosted) */
.ua-review-posted { animation: ua-posted-lift .8s var(--ease-spring) both; }
.ua-review-posted .ua-stars { display: inline-block; animation: ua-star-pop .7s var(--ease-spring) both; }
@keyframes ua-posted-lift { 0% { transform: scale(.985); } 50% { transform: scale(1.012); } 100% { transform: none; } }
@keyframes ua-star-pop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.25); } 100% { transform: none; } }
/* New data after a quiet refresh: the changed tiles, rows and items glow once, and the region shows a ring pulse (css/atmosphere.css, ui.js regions). */
.ua-fresh { position: relative; }
.ua-fresh::after, .ua-fresh > td:first-child::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--glow); opacity: 0; animation: ua-flash 2.2s var(--ease-out) both; }
.ua-fresh > td:first-child { position: relative; }
.ua-pulse { position: relative; } .ua-pulse::before { content: ""; position: absolute; inset: -4px; border-radius: var(--r-3); border: 1px solid var(--action); pointer-events: none; opacity: 0; animation: ua-ring 1.4s var(--ease-out) both; }
@keyframes ua-flash { 0% { opacity: 0; } 15% { opacity: .9; } 100% { opacity: 0; } }
@keyframes ua-ring { 0% { opacity: .7; transform: scale(.985); } 100% { opacity: 0; transform: scale(1.012); } }
@media (prefers-reduced-motion: reduce) { tbody tr, details[open] > :not(summary), details.is-closing > :not(summary), .ua-review-posted, .ua-review-posted .ua-stars { animation: none !important; } .ua-fresh::after, .ua-fresh > td:first-child::after, .ua-pulse::before { display: none; } }

/* App page headers: a small line-art scene (rooflines and a key) at the right, drawn as a mask so it takes the action colour in both themes. Decorative; hidden on phones, with reduced data and in forced colours. */
html:is([data-atmosphere="restrained"], [data-atmosphere="calm"], [data-atmosphere="balanced"]) .ua-page-head::after { content: ""; position: absolute; top: -.5rem; right: 0; width: min(22rem, 42%); height: calc(100% + 1rem); z-index: -1; pointer-events: none; opacity: .16; background: var(--action);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 120' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 110V78l36-30 36 30v32M110 110V58l46-38 46 38v52M224 110V84l30-24 30 24v26M300 110V92l26-20 26 20v18M0 110h360'/%3E%3Ccircle cx='170' cy='84' r='7'/%3E%3Cpath d='M177 84h22M190 84v8M197 84v6'/%3E%3C/svg%3E") right center / auto 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 120' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 110V78l36-30 36 30v32M110 110V58l46-38 46 38v52M224 110V84l30-24 30 24v26M300 110V92l26-20 26 20v18M0 110h360'/%3E%3Ccircle cx='170' cy='84' r='7'/%3E%3Cpath d='M177 84h22M190 84v8M197 84v6'/%3E%3C/svg%3E") right center / auto 100% no-repeat; }
@media (max-width: 767.98px) { .ua-page-head::after { display: none !important; } }
@media (prefers-reduced-data: reduce), (forced-colors: active), print { .ua-page-head::after { display: none !important; } }
