.rp-static-preview { margin: 0; min-width: 0; }
.rp-static-preview img { display: block; width: 100%; height: auto; border-radius: 12px; }
.rp-static-preview figcaption { margin-top: .65rem; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* Public responsive preview. Native device geometry is supplied by the widget. */
.rp-widget {
  --rp-welcome-bg: radial-gradient(ellipse at 100% 0%, #ccebef 0, transparent 54%), radial-gradient(ellipse at -20% 65%, #d8d8f4 0, transparent 57%), radial-gradient(ellipse at 100% 100%, #d5e4f5 0, transparent 60%), #edf3f8;
  --rp-welcome-copy: #4a6073;
  --rp-url-error: #a62a41;
  --rp-glyph-start: #a489ff;
  --rp-glyph-mid: #8b92f7;
  --rp-glyph-end: #82dfe9;
  --rp-glyph-weight: 1.6;
  --rp-dust-purple: #8b00ff;
  --rp-dust-pink: #ff009d;
  --rp-dust-cyan: #00b6ed;
  --rp-dust-orange: #ff6a00;
  --rp-dust-green: #00d96a;
  --rp-dust-near-opacity: 1;
  --rp-dust-far-opacity: .95;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
:root[data-theme="dark"] .rp-widget {
  --rp-dust-purple: #dcd2ff;
  --rp-dust-pink: #e0d6ff;
  --rp-dust-cyan: #d2dfff;
  --rp-dust-orange: #eee0ef;
  --rp-dust-green: #d2e8ee;
  --rp-dust-near-opacity: .45;
  --rp-dust-far-opacity: .28;
  --rp-welcome-bg: radial-gradient(ellipse at 115% -10%, #163e48 0, transparent 59%), radial-gradient(ellipse at -20% 65%, #302e50 0, transparent 57%), radial-gradient(ellipse at 100% 100%, #1e3549 0, transparent 60%), #14202d;
  --rp-welcome-copy: #b9d1da;
  --rp-url-error: #ffb4c1;
  --rp-glyph-start: #a489ff;
  --rp-glyph-mid: #8b92f7;
  --rp-glyph-end: #82dfe9;
  --rp-glyph-weight: 1.6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rp-widget {
    --rp-dust-purple: #dcd2ff;
    --rp-dust-pink: #e0d6ff;
    --rp-dust-cyan: #d2dfff;
    --rp-dust-orange: #eee0ef;
    --rp-dust-green: #d2e8ee;
    --rp-dust-near-opacity: .45;
    --rp-dust-far-opacity: .28;
    --rp-welcome-bg: radial-gradient(ellipse at 115% -10%, #163e48 0, transparent 59%), radial-gradient(ellipse at -20% 65%, #302e50 0, transparent 57%), radial-gradient(ellipse at 100% 100%, #1e3549 0, transparent 60%), #14202d;
    --rp-welcome-copy: #b9d1da;
    --rp-url-error: #ffb4c1;
    --rp-glyph-start: #a489ff;
    --rp-glyph-mid: #8b92f7;
    --rp-glyph-end: #82dfe9;
    --rp-glyph-weight: 1.6;
  }
}
.rp-widget[hidden], .rp-widget [hidden] { display: none !important; }
.rp-widget *, .rp-widget *::before, .rp-widget *::after { box-sizing: border-box; }
.rp-widget .rp-workbench {
  display: grid;
  grid-template-areas: "phone" "devices";
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  align-items: center;
  column-gap: 12px;
  row-gap: 12px;
  width: 94%;
  max-width: 480px;
  margin-inline: auto;
  min-width: 0;
}
.rp-widget .rp-phone-view { position: relative; grid-area: phone; align-self: start; justify-self: center; width: min(100%, 336px); min-width: 0; }

.rp-widget .rp-controls { grid-area: devices; min-width: 0; }
.rp-widget .rp-device-buttons {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 19px;
  background: none;
}
.rp-widget .rp-device-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  --rp-platform-color: #408bdb;
  gap: 7px;
  min-width: 0;
  min-height: 78px;
  margin: 0;
  padding: 8px 2px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.rp-widget .rp-device-button[data-family="Android"] { --rp-platform-color: #2da579; }
.rp-widget .rp-device-button:hover { background: color-mix(in srgb, var(--accent2) 5%, var(--card)); color: var(--text); }
.rp-widget .rp-device-button:active { background: var(--accent-soft); }
.rp-widget .rp-device-button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--rp-platform-color) 55%, var(--line));
  background: linear-gradient(155deg, color-mix(in srgb, var(--rp-platform-color) 18%, var(--card)), color-mix(in srgb, var(--rp-platform-color) 7%, var(--card)));
  color: var(--text);
  box-shadow: inset 0 1px 0 #ffffff24, 0 2px 7px color-mix(in srgb, var(--rp-platform-color) 12%, transparent);
}
.rp-widget .rp-device-platform {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 29px;
  height: 29px;
  border: 1px solid color-mix(in srgb, var(--rp-platform-color) 24%, var(--line));
  border-radius: 10px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--rp-platform-color) 15%, var(--card)), color-mix(in srgb, var(--rp-platform-color) 5%, var(--card)));
  color: color-mix(in srgb, var(--rp-platform-color) 70%, var(--text));
  box-shadow: inset 0 1px 0 #ffffff42, 0 2px 4px #140c2810;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.rp-widget .rp-device-platform > svg { display: block; width: 17px; height: 17px; }
.rp-widget .rp-device-platform::after {
  content: ''; position: absolute; inset: -2px; border: 1px solid color-mix(in srgb,var(--rp-platform-color) 84%,transparent); border-radius: inherit;
  background: color-mix(in srgb,var(--rp-platform-color) 17%,transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--rp-platform-color) 19%,transparent),0 0 22px color-mix(in srgb,var(--rp-platform-color) 65%,transparent),0 0 34px color-mix(in srgb,var(--rp-platform-color) 28%,transparent),inset 0 0 9px color-mix(in srgb,var(--rp-platform-color) 22%,transparent);
  opacity: 0; pointer-events: none;
  animation: rp-device-hint 18s ease-in-out infinite both; animation-delay: calc(var(--rp-device-hint-index,0) * 3s); animation-play-state: paused;
}
.rp-widget[data-device-hint-state="running"] .rp-device-platform::after { animation-play-state: running; }
.rp-widget[data-device-hint-state="dismissed"] .rp-device-platform::after { animation: none; opacity: 0; }
@keyframes rp-device-hint { 0%,22.3%,100% { opacity: 0; } 6.1%,11.7% { opacity: .95; } }
.rp-widget .rp-device-button:hover .rp-device-platform { box-shadow: inset 0 1px 0 #ffffff55, 0 0 10px color-mix(in srgb, var(--rp-platform-color) 18%, transparent); }
.rp-widget .rp-device-button[aria-pressed="true"] .rp-device-platform {
  border-color: color-mix(in srgb, var(--rp-platform-color) 50%, #fff);
  background: linear-gradient(145deg, color-mix(in srgb, var(--rp-platform-color) 68%, #fff), var(--rp-platform-color));
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff70, 0 0 0 2px color-mix(in srgb, var(--rp-platform-color) 16%, transparent), 0 0 18px color-mix(in srgb, var(--rp-platform-color) 55%, transparent);
}
.rp-widget .rp-device-name { display: none; }
.rp-widget .rp-device-short { display: block; min-height: 2.5em; font-size: 10px; font-weight: 500; line-height: 1.25; text-wrap: balance; }
/* An explicit owned-site suggestion only fills the field; Preview still starts it. */
.mv-url-suggestion, .topic-page .mv-url-suggestion, .extension-page .ext-url-field .mv-url-suggestion, .simulator-page :is(.ms-intro,.ms-addressbar) .mv-url-suggestion { --mv-url-suggestion-unit: 1; --mv-url-suggestion-accent: var(--pe-accent,var(--accent)); appearance: none; flex: 0 0 auto; align-self: center; min-width: 0; margin: 0; padding: calc(6px * var(--mv-url-suggestion-unit)) calc(9px * var(--mv-url-suggestion-unit)); border: 1px solid color-mix(in srgb,var(--mv-url-suggestion-accent) 28%,var(--line)); border-radius: calc(9px * var(--mv-url-suggestion-unit)); background: color-mix(in srgb,var(--mv-url-suggestion-accent) 11%,var(--card)); color: var(--mv-url-suggestion-accent); font: 600 calc(10.5px * var(--mv-url-suggestion-unit))/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; white-space: nowrap; cursor: pointer; box-shadow: inset 0 1px 0 #ffffff24; transition: background .2s ease,border-color .2s ease,box-shadow .2s ease; }
.mv-url-suggestion:hover, .extension-page .ext-url-field .mv-url-suggestion:hover, .simulator-page :is(.ms-intro,.ms-addressbar) .mv-url-suggestion:hover { border-color: var(--mv-url-suggestion-accent); background: color-mix(in srgb,var(--mv-url-suggestion-accent) 17%,var(--card)); box-shadow: 0 0 12px color-mix(in srgb,var(--mv-url-suggestion-accent) 16%,transparent); }
.mv-url-suggestion:focus-visible, .simulator-page :is(.ms-intro,.ms-addressbar) .mv-url-suggestion:focus-visible { outline: 2px solid var(--mv-url-suggestion-accent); outline-offset: 3px; }
.mv-url-suggestion[hidden], [data-preview-suggestion-state="hidden"] .mv-url-suggestion { display: none !important; }
@media (prefers-reduced-motion: reduce) { .mv-url-suggestion { transition: none; } }
/* The initial URL entry stays inside the device, at readable visual size. */
.rp-widget .rp-url-form { --rp-form-unit: var(--rp-control-upscale, 1); position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: calc(12px * var(--rp-form-unit)); width: 94%; min-width: 0; margin: 0; text-align: left; }
.rp-widget .mv-url-suggestion { --mv-url-suggestion-unit: var(--rp-form-unit); padding-inline: calc(6px * var(--rp-form-unit)); font-size: calc(10px * var(--rp-form-unit)); }
.rp-widget .rp-url-field { display: flex; align-items: center; width: 100%; min-width: 0; min-height: calc(46px * var(--rp-form-unit)); padding: calc(6px * var(--rp-form-unit)) calc(14px * var(--rp-form-unit)); border: 1px solid color-mix(in srgb,var(--accent) 30%,var(--line)); border-radius: calc(14px * var(--rp-form-unit)); background: color-mix(in srgb,var(--card) 90%,var(--accent) 10%); box-shadow: inset 0 1px 0 #ffffff45,0 5px 18px #433d7910; transition: border-color .2s ease,box-shadow .2s ease; }
.rp-widget [data-preview-url] { display: block; flex: 1 1 auto; width: 100%; min-width: 0; min-height: calc(30px * var(--rp-form-unit)); margin: 0; padding: 0; border: 0; border-radius: 0; outline: none; background: transparent; color: var(--text); box-shadow: none; font: 400 calc(13px * var(--rp-form-unit))/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.rp-widget .rp-url-field > svg { display: block; flex: 0 0 calc(16px * var(--rp-form-unit)); width: calc(16px * var(--rp-form-unit)); height: calc(16px * var(--rp-form-unit)); margin-right: calc(8px * var(--rp-form-unit)); color: var(--accent); opacity: .8; }
.rp-widget .rp-url-mark { display: block; flex: 0 0 auto; width: calc(52px * var(--rp-form-unit)); height: calc(52px * var(--rp-form-unit)); margin: 0 0 calc(3px * var(--rp-form-unit)); object-fit: contain; }
/* Equal columns keep both labels readable while the remaining action glides to the center. */
.rp-widget .rp-url-actions {
  --rp-action-gap: calc(6px * var(--rp-form-unit));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rp-action-gap);
  width: min(100%, calc(252px * var(--rp-form-unit)));
}
.rp-widget .rp-url-suggestion-slot {
  display: flex;
  min-width: 0;
  opacity: 0;
  transform: translateX(8%);
  pointer-events: none;
  transition: opacity 200ms ease, transform 360ms cubic-bezier(.2,.7,.2,1);
}
.rp-widget .rp-url-suggestion-slot[data-visible="true"] { opacity: 1; transform: none; pointer-events: auto; }
.rp-widget .rp-url-suggestion-slot .mv-url-suggestion,
.rp-widget .rp-url-suggestion-slot .mv-url-suggestion[hidden] { display: inline-flex !important; flex: 1 1 auto; align-self: stretch; }
.rp-widget .rp-url-suggestion-slot[data-visible="false"] + .rp-url-submit {
  transform: translateX(calc(-50% - var(--rp-action-gap) / 2));
}
.rp-widget .rp-url-actions .mv-url-suggestion { min-height: calc(34px * var(--rp-form-unit)); padding: calc(7px * var(--rp-form-unit)) calc(9px * var(--rp-form-unit)); border-color: color-mix(in srgb,var(--accent) 38%,var(--line)); border-radius: calc(10px * var(--rp-form-unit)); background: linear-gradient(145deg,color-mix(in srgb,var(--card) 86%,#fff),color-mix(in srgb,var(--accent) 13%,var(--card))); color: color-mix(in srgb,var(--accent) 78%,var(--text)); font-size: calc(11px * var(--rp-form-unit)); font-weight: 650; box-shadow: inset 0 1px 0 #ffffff60,0 3px 10px color-mix(in srgb,var(--accent) 14%,transparent); }
.rp-widget .rp-url-actions .mv-url-suggestion:hover { border-color: var(--accent); background: color-mix(in srgb,var(--accent) 18%,var(--card)); box-shadow: inset 0 1px 0 #ffffff65,0 0 15px color-mix(in srgb,var(--accent) 23%,transparent); }
.rp-widget .rp-url-suggestion-slot .mv-url-suggestion { box-shadow: inset 0 1px 0 #ffffff60; }
.rp-widget .rp-url-suggestion-slot .mv-url-suggestion:hover { box-shadow: inset 0 1px 0 #ffffff75; }
.rp-widget [data-preview-url]::placeholder { color: var(--muted); opacity: .8; }
.rp-widget .rp-url-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 calc(3px * var(--rp-form-unit)) color-mix(in srgb,var(--accent) 12%,transparent),inset 0 1px 0 #ffffff30; }
.rp-widget .rp-url-field:has([aria-invalid="true"]) { border-color: var(--rp-url-error); }
.rp-widget .rp-url-submit { appearance: none; display: inline-flex; flex: 0 1 auto; align-items: center; justify-content: center; gap: calc(5px * var(--rp-form-unit)); width: auto; max-width: 100%; min-width: 0; min-height: calc(34px * var(--rp-form-unit)); margin: 0; padding: calc(7px * var(--rp-form-unit)) calc(12px * var(--rp-form-unit)); border: 1px solid #c7b7ff66; border-radius: calc(10px * var(--rp-form-unit)); background: linear-gradient(125deg,#8a72ef,#7666e6 48%,#9986f5); color: #fff; font: 650 calc(12px * var(--rp-form-unit))/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; box-shadow: inset 0 1px 0 #ffffff44,0 4px 14px #7666e630; cursor: pointer; transition: transform 360ms cubic-bezier(.2,.7,.2,1),box-shadow .2s ease,filter .2s ease; }
.rp-widget .rp-url-submit > svg { flex: 0 0 calc(14px * var(--rp-form-unit)); width: calc(14px * var(--rp-form-unit)); height: calc(14px * var(--rp-form-unit)); }
.rp-widget .rp-url-actions :is(.mv-url-suggestion,.rp-url-submit) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(34px * var(--rp-form-unit));
  padding: calc(5px * var(--rp-form-unit)) calc(8px * var(--rp-form-unit));
  font-size: calc(12px * var(--rp-form-unit));
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.rp-widget .rp-url-submit:hover { color: #fff; filter: brightness(1.06); box-shadow: inset 0 1px 0 #ffffff66,0 0 calc(18px * var(--rp-form-unit)) #8870ec55; }
.rp-widget .rp-url-error { width: 100%; margin: 0; color: var(--rp-url-error); font-size: calc(11px * var(--rp-form-unit)); line-height: 1.5; text-align: center; text-wrap: pretty; }
.rp-widget .rp-url-close { position: absolute; top: calc(-42px * var(--rp-form-unit)); right: 0; display: grid; place-items: center; width: calc(29px * var(--rp-form-unit)); height: calc(29px * var(--rp-form-unit)); padding: calc(7px * var(--rp-form-unit)); border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb,var(--card) 85%,transparent); color: var(--muted); cursor: pointer; }
.rp-widget .rp-url-close > svg { width: 100%; height: 100%; }
.rp-widget .rp-url-close:hover { background: var(--card); color: var(--text); }
.rp-widget .rp-url-coach { position: absolute; z-index: 8; width: 124px; height: 70px; color: color-mix(in srgb,var(--accent2) 82%,var(--text)); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 360ms ease,visibility 0s linear 360ms; }
.rp-widget .rp-url-coach[data-ready="true"]:not([data-dismissed="true"]):not([data-hidden="true"]) { opacity: 1; visibility: visible; transition-delay: 0s; }
.rp-widget .rp-url-coach > span { position: absolute; left: 0; top: -10px; font: 650 18px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing: -.02em; white-space: nowrap; text-shadow: 0 0 7px color-mix(in srgb,var(--accent2) 35%,transparent),0 0 16px color-mix(in srgb,var(--accent2) 14%,transparent); }
.rp-widget .rp-url-coach > svg { display: block; width: 124px; height: 70px; overflow: visible; filter: drop-shadow(0 0 2px color-mix(in srgb,var(--accent2) 65%,transparent)) drop-shadow(0 0 7px color-mix(in srgb,var(--accent2) 32%,transparent)); animation: rp-url-coach-shimmer 3.2s ease-in-out infinite; animation-play-state: paused; }
.rp-widget[data-welcome-motion="running"] .rp-url-coach:not([data-dismissed="true"]):not([data-hidden="true"]) > svg { animation-play-state: running; }
@keyframes rp-url-coach-shimmer { 0%,100% { opacity: .72; } 50% { opacity: 1; } }
@media (max-width: 1100px) { .rp-widget .rp-url-coach { display: none; } }
@media (prefers-reduced-motion: reduce) { .rp-widget .rp-url-suggestion-slot,.rp-widget .rp-url-submit,.rp-widget .rp-url-coach { transition: none; } .rp-widget .rp-url-coach > svg { animation: none; } }
.rp-widget .rp-site-caption { display: flex; justify-content: center; align-items: center; min-width: 0; height: 24px; padding-top: 0; }
.rp-widget .rp-edit-site { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; margin: 0; padding: 4px 7px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 500 11px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; cursor: pointer; transition: color .2s ease,background .2s ease; }
.rp-widget .rp-edit-site span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-widget .rp-edit-site svg { flex: 0 0 13px; width: 13px; height: 13px; color: var(--accent); }
.rp-widget .rp-edit-site:hover { color: var(--accent); background: var(--accent-soft); }

/* The native PNG and its screen retain the same geometry when switching devices. */
.rp-widget .rp-stage { position: relative; isolation: isolate; width: 100%; min-width: 0; }
.rp-widget .rp-device-flight { position: absolute; inset: 0; }
.rp-widget .rp-device { position: absolute; top: 32px; left: 50%; transform: translateX(-50%) scale(var(--rp-scale, 1)); transform-origin: top center; }
.rp-widget .rp-screen { position: absolute; z-index: 1; overflow: hidden; border-radius: var(--rp-screen-radius, 32px); background: var(--card); }
.rp-widget .rp-canvas {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  background: var(--card);
  color: var(--text);
  transform: scale(var(--rp-screen-scale, 1));
  transform-origin: top left;
}
.rp-widget .rp-frame { position: absolute; z-index: 5; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; filter: drop-shadow(0 10px 15px #140c2824); pointer-events: none; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity 220ms ease-out; }
.rp-widget .rp-device[data-frame-state="ready"] .rp-frame { opacity: 1; }
/* A vector-like CSS rim is available before the PNG: no asset, delay or layout change. */
.rp-widget .rp-frame-placeholder {
  position: absolute; z-index: 4; inset: 1px;
  border-radius: var(--rp-frame-radius, 58px);
  pointer-events: none; opacity: 1;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent2) 30%, transparent), 0 0 20px color-mix(in srgb, var(--accent2) 10%, transparent);
  transition: opacity 180ms ease-out;
}
.rp-widget .rp-frame-placeholder::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px;
  background: linear-gradient(145deg, #d7cdfc, #8d89d7 35%, #7aa6cf 65%, #c7b6ed);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rp-frame-breathe 1600ms ease-in-out infinite;
}
.rp-widget .rp-frame-camera { display: none; position: absolute; top: 2.3%; left: 39%; width: 22%; height: 2.8%; border-radius: 99px; background: color-mix(in srgb, var(--accent2) 13%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent2) 24%, transparent); }
.rp-widget .rp-device[data-frame-family="iPhone"] .rp-frame-camera { display: block; }
.rp-widget .rp-device[data-device="iphone11"] .rp-frame-camera { top: 2%; left: 30%; width: 40%; height: 3.5%; }
.rp-widget .rp-device[data-frame-state="ready"] .rp-frame-placeholder { opacity: 0; }
.rp-widget .rp-device[data-frame-state="ready"] .rp-frame-placeholder::before,
.rp-widget .rp-device[data-frame-state="error"] .rp-frame-placeholder::before { animation: none; }
.rp-widget .rp-device[data-frame-state="error"] .rp-frame-placeholder { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent2) 24%, transparent); }
@keyframes rp-frame-breathe { 0%, 100% { opacity: .48; } 50% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) {
  .rp-widget .rp-frame, .rp-widget .rp-frame-placeholder { transition: none; }
  .rp-widget .rp-frame-placeholder::before { animation: none; }
}

/* The iframe uses the visible viewport between the device OS panels. */
.rp-widget .rp-page { position: absolute; isolation: isolate; inset: 0; overflow: hidden; background: var(--bg); }
.rp-widget .rp-frame-host { position: relative; width: 100%; height: 100%; }
.rp-widget .rp-frame-host iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; border: 0; background: #fff; }
.rp-widget .rp-welcome {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(16px * var(--rp-control-upscale, 1));
  padding: 24px 16px;
  background: var(--rp-welcome-bg);
  --mv-url-play: var(--rp-dust-play-state,running);
  text-align: center;
}
/* Portable pricing 5.0 dust palette/tiles, scoped to the welcome and moving upward. */
.mv-preview-dust { --rp-dust-unit: var(--rp-control-upscale, 1); isolation: isolate; overflow: hidden; }
.mv-preview-dust::before, .mv-preview-dust::after {
  --star-purple: var(--rp-dust-purple, #8b00ff);
  --star-pink: var(--rp-dust-pink, #ff009d);
  --star-cyan: var(--rp-dust-cyan, #00b6ed);
  --star-orange: var(--rp-dust-orange, #ff6a00);
  --star-green: var(--rp-dust-green, #00d96a);
  content: ""; position: absolute; z-index: 0; left: 0; top: 0; width: 100%;
  pointer-events: none; background-repeat: repeat;
  will-change: var(--rp-dust-compositor, transform);
}
.mv-preview-dust::before {
  height: calc(100% + 360px * var(--rp-dust-unit));
  opacity: var(--rp-dust-near-opacity, 1);
  background-size: calc(480px * var(--rp-dust-unit)) calc(360px * var(--rp-dust-unit));
  background-image:
    radial-gradient(circle at 7% 23%, var(--star-purple) calc(.8px * var(--rp-dust-unit)), transparent calc(1.6px * var(--rp-dust-unit))),
    radial-gradient(circle at 19% 81%, var(--star-pink) calc(.7px * var(--rp-dust-unit)), transparent calc(1.5px * var(--rp-dust-unit))),
    radial-gradient(circle at 31% 14%, var(--star-cyan) calc(.9px * var(--rp-dust-unit)), transparent calc(1.8px * var(--rp-dust-unit))),
    radial-gradient(circle at 43% 63%, var(--star-orange) calc(.7px * var(--rp-dust-unit)), transparent calc(1.5px * var(--rp-dust-unit))),
    radial-gradient(circle at 57% 25%, var(--star-green) calc(.9px * var(--rp-dust-unit)), transparent calc(1.9px * var(--rp-dust-unit))),
    radial-gradient(circle at 69% 86%, var(--star-purple) calc(.8px * var(--rp-dust-unit)), transparent calc(1.7px * var(--rp-dust-unit))),
    radial-gradient(circle at 82% 42%, var(--star-pink) calc(.7px * var(--rp-dust-unit)), transparent calc(1.6px * var(--rp-dust-unit))),
    radial-gradient(circle at 95% 74%, var(--star-cyan) calc(.9px * var(--rp-dust-unit)), transparent calc(1.8px * var(--rp-dust-unit)));
  animation: mv-preview-dust-near 64s linear infinite;
}
.mv-preview-dust::after {
  height: calc(100% + 300px * var(--rp-dust-unit));
  opacity: var(--rp-dust-far-opacity, .95);
  background-size: calc(390px * var(--rp-dust-unit)) calc(300px * var(--rp-dust-unit));
  background-image:
    radial-gradient(circle at 12% 65%, var(--star-orange) calc(.6px * var(--rp-dust-unit)), transparent calc(1.5px * var(--rp-dust-unit))),
    radial-gradient(circle at 25% 39%, var(--star-green) calc(.6px * var(--rp-dust-unit)), transparent calc(1.4px * var(--rp-dust-unit))),
    radial-gradient(circle at 38% 88%, var(--star-purple) calc(.8px * var(--rp-dust-unit)), transparent calc(1.7px * var(--rp-dust-unit))),
    radial-gradient(circle at 53% 75%, var(--star-pink) calc(.6px * var(--rp-dust-unit)), transparent calc(1.4px * var(--rp-dust-unit))),
    radial-gradient(circle at 75% 17%, var(--star-cyan) calc(.9px * var(--rp-dust-unit)), transparent calc(1.8px * var(--rp-dust-unit)));
  animation: mv-preview-dust-far 92s linear -15s infinite;
}
.mv-preview-dust::before, .mv-preview-dust::after { animation-play-state: var(--rp-dust-play-state, running); }
.rp-widget .rp-welcome > form { position: relative; z-index: 1; }
.rp-widget[data-welcome-motion="paused"] .mv-preview-dust { --rp-dust-play-state: paused; --rp-dust-compositor: auto; }
@keyframes mv-preview-dust-near { to { transform: translateY(calc(-360px * var(--rp-dust-unit))); } }
@keyframes mv-preview-dust-far { to { transform: translateY(calc(-300px * var(--rp-dust-unit))); } }
@media (prefers-reduced-motion: reduce) {
  .mv-preview-dust::before, .mv-preview-dust::after { animation: none !important; will-change: auto; }
}
.rp-widget .rp-demo-note {
  --rp-note-unit: var(--rp-control-upscale, 1);
  position: absolute;
  display: flex;
  flex-direction: column;
  z-index: 3;
  inset: auto 0 0;
  max-height: 80%;
  padding: calc(25px * var(--rp-note-unit)) calc(16px * var(--rp-note-unit)) calc(12px * var(--rp-note-unit));
  overflow: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--accent2) 32%, var(--line));
  border-bottom: 0;
  border-radius: calc(22px * var(--rp-note-unit)) calc(22px * var(--rp-note-unit)) 0 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent2) 12%, var(--card)), var(--card) 78%);
  color: var(--text);
  box-shadow: 0 -12px 36px #08061730, inset 0 1px 0 #ffffff24;
  text-align: center;
  scrollbar-width: thin;
}
.rp-widget .rp-demo-note[hidden] { display: none; }
.rp-widget .rp-demo-note h3 { flex: none; margin: 0 calc(8px * var(--rp-note-unit)); font-size: calc(16px * var(--rp-note-unit)); font-weight: 750; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
.rp-widget .rp-demo-body { min-height: 0; margin-top: calc(15px * var(--rp-note-unit)); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; text-align: left; }
.rp-widget .rp-demo-body ul { display: grid; gap: calc(12px * var(--rp-note-unit)); margin: 0; padding: 0; list-style: none; }
.rp-widget .rp-demo-body li { display: flex; align-items: flex-start; gap: calc(8px * var(--rp-note-unit)); color: var(--muted); font-size: calc(12px * var(--rp-note-unit)); line-height: 1.45; }
.rp-widget .rp-demo-body li svg { flex: none; width: calc(15px * var(--rp-note-unit)); height: calc(15px * var(--rp-note-unit)); margin-top: calc(1px * var(--rp-note-unit)); color: var(--accent); }
.rp-widget .rp-demo-note p { margin: calc(14px * var(--rp-note-unit)) 0 0; padding-top: calc(14px * var(--rp-note-unit)); border-top: 1px solid var(--line); font-size: calc(12px * var(--rp-note-unit)); line-height: 1.5; text-wrap: pretty; }
.rp-widget .rp-demo-actions { flex: none; margin-top: calc(16px * var(--rp-note-unit)); }
.rp-widget .rp-demo-install { display: flex; align-items: center; justify-content: center; min-height: calc(40px * var(--rp-note-unit)); padding: calc(8px * var(--rp-note-unit)); box-sizing: border-box; border: 1px solid #b8a7ff77; border-radius: calc(12px * var(--rp-note-unit)); background: linear-gradient(120deg, #8974ee, #7561de); color: #fff; font-size: calc(12px * var(--rp-note-unit)); font-weight: 650; line-height: 1.4; text-decoration: none; box-shadow: 0 4px 15px #7c65de38; transition: filter 180ms ease; }
.rp-widget .rp-demo-install:hover { filter: brightness(1.1); }
.rp-widget .rp-demo-continue { margin-top: calc(9px * var(--rp-note-unit)); padding: calc(4px * var(--rp-note-unit)); border: 0; background: none; color: var(--muted); font: inherit; font-size: calc(11px * var(--rp-note-unit)); line-height: 1.4; cursor: pointer; }
.rp-widget .rp-demo-continue:hover { color: var(--text); }
.rp-widget .rp-demo-close { position: absolute; top: calc(7px * var(--rp-note-unit)); right: calc(7px * var(--rp-note-unit)); display: grid; place-items: center; width: calc(25px * var(--rp-note-unit)); height: calc(25px * var(--rp-note-unit)); padding: calc(6px * var(--rp-note-unit)); border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); cursor: pointer; }
.rp-widget .rp-demo-close svg { width: 100%; height: 100%; }
.rp-widget .rp-loading { position: absolute; z-index: 2; right: 12px; bottom: 12px; left: 12px; display: flex; align-items: center; justify-content: center; gap: calc(8px * var(--rp-control-upscale, 1)); padding: calc(10px * var(--rp-control-upscale, 1)); border: 1px solid var(--line); border-radius: 13px; background: var(--card); color: var(--text); box-shadow: 0 5px 18px #140c2814; font-size: calc(13px * var(--rp-control-upscale, 1)); line-height: 1.4; }
.rp-widget .rp-spinner { display: block; flex: none; width: calc(16px * var(--rp-control-upscale, 1)); height: calc(16px * var(--rp-control-upscale, 1)); border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: rp-spin 900ms linear infinite; }
@keyframes rp-spin { to { transform: rotate(360deg); } }
.rp-widget :is(button, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rp-widget .rp-sr-only, .rp-widget .rp-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }


.rp-widget .rp-welcome { width: 100%; height: 100%; border: 0; color: inherit; font: inherit; }
.rp-widget .rp-more-devices {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 10px 5px;
  border: 1px solid color-mix(in srgb, var(--accent2) 35%, var(--line));
  border-radius: 13px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent2) 11%, var(--card)), var(--card));
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 #ffffff20, 0 2px 9px color-mix(in srgb, var(--accent2) 10%, transparent);
}
.rp-widget .rp-more-devices:hover { border-color: var(--accent2); background: color-mix(in srgb, var(--accent2) 13%, var(--card)); color: var(--text); box-shadow: 0 3px 12px color-mix(in srgb, var(--accent2) 18%, transparent); }
.rp-widget .rp-more-label { max-width: 100%; text-wrap: balance; line-height: 1.3; }
.rp-widget .rp-more-catalogs { display: flex; align-items: center; justify-content: center; gap: 8px; }
.rp-widget .rp-more-separator { color: inherit; opacity: .55; }
.rp-widget .rp-more-catalog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 0;
  border-radius: 6px;
  background: color-mix(in srgb, var(--rp-catalog-color) 8%, var(--card));
  color: color-mix(in srgb, var(--rp-catalog-color) 65%, var(--text));
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}
.rp-widget .rp-more-catalog--classic { --rp-catalog-color: #317bd4; }
.rp-widget .rp-more-catalog--workspace { --rp-catalog-color: var(--accent2); }
.rp-widget .rp-more-catalog strong { color: inherit; font-size: 12px; font-weight: 650; }
@media (max-width: 860px) {
  .rp-widget .rp-workbench { width: 100%; }
}
@media (min-width: 861px) {
  .rp-widget .rp-workbench {
    grid-template-areas: "phone devices";
    grid-template-columns: minmax(0, 1fr) 88px;
    width: calc(100% + 12px);
    max-width: none;
    margin-inline: -12px 0;
  }
  .rp-widget .rp-phone-view { width: 100%; }
  .rp-widget .rp-device-buttons { grid-template-columns: minmax(0, 1fr); padding: 4px; border-radius: 17px; gap: 3px; }
  .rp-widget .rp-device-button { min-height: 72px; padding: 6px 2px; border-radius: 11px; gap: 5px; }
  .rp-widget .rp-device-platform { width: 27px; height: 27px; border-radius: 9px; }
  .rp-widget .rp-device-name { display: block; font-size: 10px; font-weight: 500; line-height: 1.3; text-wrap: balance; }
  .rp-widget .rp-device-short { display: none; }
  .rp-widget .rp-more-devices { min-height: 68px; padding: 10px 2px; }
  .rp-widget .rp-more-catalogs { gap: 3px; }
  .rp-widget .rp-more-catalog { padding: 2px 0; border: 0; background: transparent; }
  .rp-widget .rp-more-catalog strong { font-size: 11px; }
}
@media (min-width: 861px) and (min-height: 600px) {
  .hero-grid[data-preview-scene] > .hero-visual { top: var(--rp-sticky-top,88px); }
}
@media (max-width: 720px) {
  .rp-widget .rp-device-button { min-height: 74px; padding: 7px 1px; }
  .rp-widget .rp-device-platform { width: 26px; height: 26px; border-radius: 9px; }
  .rp-widget .rp-device-platform > svg { width: 16px; height: 16px; }
  .rp-widget .rp-more-devices { min-height: 60px; padding: 9px 8px; }
}
/* The static phone reserves the same stage as fitPreview: the shortest device
   in the home catalog is 468 × 925, the initial iPhone frame is 455 × 943. */
.rp-static-controls { visibility: hidden; }
@media (scripting: enabled) {
  .rp-static-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 468 / 925;
    container-type: size;
    margin-bottom: 24px;
  }
  .rp-static-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    height: 100%;
    width: auto;
    max-width: 100%;
    aspect-ratio: 455 / 943;
    margin-inline: auto;
    border-radius: 17% / 8%;
    background:
      url("/assets/frames/iphone17pro-preview.webp?v=5942a93471ae") center / 100% 100% no-repeat,
      var(--rp-welcome-bg);
  }
  .rp-static-preview::after,
  .rp-static-preview figcaption::before {
    content: "";
    width: 52px;
    height: 52px;
    background: url("/assets/mobile-view-preview-mark.svg?v=332f6978fc10") center / contain no-repeat;
  }
  .rp-static-preview::after {
    position: absolute;
    inset: 0;
    margin: auto;
    opacity: 0;
    animation: rp-static-mark 0s 2s backwards;
  }
  .rp-static-preview figcaption {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    width: min(80%, 38cqh);
    margin: 0 auto;
    color: var(--rp-welcome-copy);
    text-align: center;
    /* The mark alone gives way to the centered caption if the script fails. */
    animation: rp-static-caption 0s 2s backwards;
  }
  @keyframes rp-static-mark { from { opacity: 1; } to { opacity: 0; } }
  @keyframes rp-static-caption { from { opacity: 0; } to { opacity: 1; } }
}
@media (scripting: enabled) and (min-width: 861px) and (min-height: 600px) {
  .hero-grid[data-preview-scene] > .hero-visual:has(.rp-static-workbench) {
    position: relative;
    top: auto;
    align-self: stretch;
    align-items: flex-start;
    container-type: inline-size;
  }
  .rp-widget:has(.rp-static-workbench) {
    --rp-header-height: 73px;
    --rp-available-height: calc(100vh - var(--rp-header-height) - 72px - 32px);
    /* The desktop workbench reserves its last 88px for device selection. */
    --rp-stage-height: min(calc((100cqw - 88px) * 925 / 468), var(--rp-available-height));
    position: sticky;
    top: max(var(--rp-header-height), calc((100vh + var(--rp-header-height) - var(--rp-stage-height) - 24px) / 2));
  }
  .rp-static-preview { max-height: var(--rp-available-height); }
}
@media (min-width: 861px) and (max-width: 1060px) {
  .rp-widget:has(.rp-static-workbench) { --rp-header-height: 65px; }
}
@media not (scripting: enabled) {
  .rp-widget .rp-static-workbench { display: block; width: 100%; margin-inline: 0; }
  .rp-widget .rp-static-workbench .rp-phone-view { width: 100%; }
  .rp-static-controls { display: none; }
}
/* Compact columns still fit beside the phone on a short desktop viewport. */
@media (min-width: 861px) and (max-height: 760px) {
  .rp-widget .rp-device-button { min-height: 68px; padding: 4px 2px; gap: 4px; }
  .rp-widget .rp-device-platform { width: 26px; height: 26px; border-radius: 8px; }
  .rp-widget .rp-device-platform > svg { width: 15px; height: 15px; }
  .rp-widget .rp-device-name { font-size: 10px; }
  .rp-widget .rp-more-devices { min-height: 64px; padding: 6px 2px; }
}
@media (min-width: 861px) and (max-height: 620px) {
  .rp-widget .rp-device-buttons { padding: 2px; gap: 2px; }
  .rp-widget .rp-device-button { min-height: 52px; padding: 3px 1px; gap: 2px; }
  .rp-widget .rp-device-platform { width: 22px; height: 22px; }
  .rp-widget .rp-device-name { font-size: 9px; }
  .rp-widget .rp-more-devices { min-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .rp-widget .rp-device-platform::after { animation: none !important; opacity: 0; }
  .rp-widget *, .rp-widget *::before, .rp-widget *::after { transition-duration: 0s; }
}

/* A nonmodal invitation: the page remains bright, scrollable and usable. */
.rp-install-sheet {
  --rp-sheet-bottom: max(18px, env(safe-area-inset-bottom));
  --rp-sheet-entrance: translateY(calc(100% + var(--rp-sheet-bottom) + 12px));
  position: fixed;
  z-index: 65;
  inset-inline: 0;
  bottom: var(--rp-sheet-bottom);
  width: max-content;
  max-width: min(820px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  margin-inline: auto;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid color-mix(in srgb, var(--accent2) 34%, var(--line));
  border-radius: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent2) 8%, var(--card)), var(--card) 60%);
  color: var(--text);
  box-shadow: 0 16px 60px #09071532, 0 3px 12px #09071518, inset 0 1px 0 #ffffff22;
}
.rp-install-sheet[hidden] { display: none; }
.rp-install-sheet, .rp-install-sheet * { box-sizing: border-box; }
.rp-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.rp-sheet-close svg { width: 16px; height: 16px; }
.rp-sheet-close:hover { background: var(--accent-soft); color: var(--text); }
.rp-sheet-header { padding-inline: 32px; text-align: center; }
.rp-sheet-header h2 { max-width: 570px; margin: 0 auto; font-size: 22px; font-weight: 750; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
.rp-sheet-description { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; text-wrap: balance; }
.rp-sheet-footer { display: flex; flex-direction: column; align-items: stretch; gap: 17px; margin-top: 17px; }
.rp-sheet-footer .btn, .extension-page .ext-hero-install { align-self: center; justify-content: center; width: fit-content; min-width: min(260px, 100%); max-width: 100%; padding: 13px 28px; color: #fff; min-height: 54px; font-size: 16px; font-weight: 650; line-height: 1.65; text-align: center; white-space: normal; border-radius: 14px; }
.rp-install-sheet :is(button, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@property --rp-neon-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.btn-primary.rp-neon-button { position: relative; isolation: isolate; color: #fff; background: linear-gradient(125deg, #8a72ef, #7666e6 48%, #9986f5); }
.btn-primary.rp-neon-button::before {
  content: '';
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--rp-neon-angle), #a89bff18 0 40%, #aea1ff 65%, #8cecff 78%, #fff 83%, #c3b9ff 88%, #a89bff18 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.btn-primary.rp-neon-button::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(112deg, transparent 20%, #ffffff38 48%, transparent 70%); background-size: 250% 100%; background-position: 160% 0; opacity: 0; }
.rp-install-sheet .rp-neon-button::before, .rp-neon-button.rp-neon-signalling::before, .rp-neon-button:hover::before { opacity: 1; animation: rp-neon-orbit 3.6s linear infinite; }
.rp-install-sheet .rp-neon-button::after, .rp-neon-button.rp-neon-signalling::after, .rp-neon-button:hover::after { opacity: 1; animation: rp-neon-sweep 4.2s ease-in-out infinite; }
.rp-install-sheet .rp-neon-button, .rp-neon-button.rp-neon-signalling { animation: rp-neon-breathe 2.8s ease-in-out infinite; }
@keyframes rp-neon-orbit { to { --rp-neon-angle: 360deg; } }
@keyframes rp-neon-sweep { 0%, 12% { background-position: 160% 0; } 58%, 100% { background-position: -60% 0; } }
@keyframes rp-neon-breathe { 0%, 100% { box-shadow: 0 0 0 1px #b9aaff20, 0 0 16px #9c7bff45, 0 5px 18px #6556c72b; } 50% { box-shadow: 0 0 0 2px #b9aaff32, 0 0 25px #9c7bff65, 0 5px 24px #81d8ff24; } }
@media (prefers-reduced-motion: reduce) {
  .rp-neon-button, .rp-neon-button::before, .rp-neon-button::after { animation: none !important; transition: none; }
}
@media (max-width: 520px) {
  .rp-install-sheet { width: calc(100% - 20px); padding: 22px 18px 18px; border-radius: 21px; --rp-sheet-bottom: max(10px, env(safe-area-inset-bottom)); }
  .rp-sheet-close { top: 10px; right: 10px; width: 28px; height: 28px; }
  .rp-sheet-header { padding-inline: 12px; }
  .rp-sheet-header h2 { font-size: 18px; }
  .rp-sheet-footer { gap: 14px; margin-top: 14px; }
  .rp-sheet-footer .btn { width: 92%; min-width: 0; padding-inline: 18px; }
}

/* The thin perimeter cue remains visible during entry without covering the text. */
@property --mv-url-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
:is(.extension-page .ext-url-field,.simulator-page .ms-intro .ms-url-field,.rp-widget .rp-url-field) {
  --mv-url-accent: var(--pe-accent,var(--accent));
  position: relative;
}
:is(.extension-page .ext-url-field,.simulator-page .ms-intro .ms-url-field,.rp-widget .rp-url-field)::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--mv-url-angle),transparent 0 65%,color-mix(in srgb,var(--mv-url-accent) 12%,transparent) 73%,color-mix(in srgb,var(--mv-url-accent) 65%,transparent) 83%,#c2efff 88%,#f6f1ff 90%,var(--mv-url-accent) 93%,transparent 99%);
  -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: mv-url-perimeter 5.8s linear infinite;
  animation-play-state: var(--mv-url-play,paused);
}
.extension-page [data-site-motion="true"],
.simulator-page [data-ms-motion="running"] { --mv-url-play: running; }
@keyframes mv-url-perimeter { to { --mv-url-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  :is(.extension-page .ext-url-field,.simulator-page .ms-intro .ms-url-field,.rp-widget .rp-url-field)::after { opacity: 0; animation: none; }
}

@media (max-width: 420px) {
  .rp-widget .rp-device-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The URL form sits on a scaled phone canvas. Its inverse scale keeps the
   actual on-screen hit target at least 44 CSS pixels on each device. */
@media (max-width: 760px), (pointer: coarse) {
  .rp-widget .rp-url-form { --mv-touch-size: calc(44.25px * var(--rp-form-unit)); }
}
