/* ---- Property videos ---- */
.re-hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 24px; }
.re-art { display: none; width: min(34vw, 380px); height: auto; }
.re-card .art { display: block; aspect-ratio: 4 / 5; }
.re-empty-art { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.re-empty-art svg { width: 40px; height: 40px; opacity: 0.6; }
.re-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.12); z-index: 2; }
.re-prog i { display: block; height: 100%; background: var(--brand); transition: width 0.6s var(--ease); }
.re-pick input { width: 18px; height: 18px; accent-color: var(--magenta); cursor: pointer; margin: 2px 0 0; }
.re-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.re-side { position: static; }
.re-out { display: flex; flex-direction: column; }
.re-out > .h-2, .re-out > p { text-align: center; }
.re-ready-art { width: 72px; height: 72px; border-radius: 22px; margin: 6px auto 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--ink); }
.re-ready-art svg { width: 30px; height: 30px; }
.re-player { border-radius: 16px; overflow: hidden; background: #000; margin: 0 auto; display: flex; justify-content: center; width: 100%; }
.re-player video { display: block; max-width: 100%; max-height: 70vh; max-height: 70svh; }
.re-player.vertical video { aspect-ratio: 9 / 16; }
.re-player.wide video { aspect-ratio: 16 / 9; width: 100%; }
.re-player.square video { aspect-ratio: 1; }
.re-player.portrait video { aspect-ratio: 4 / 5; }
.re-making { display: flex; flex-direction: column; align-items: center; padding: 18px 6px; }
.re-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--magenta) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0); position: relative; }
.re-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface-solid); }
.re-ring span { position: relative; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.re-drop { border: 1.5px dashed var(--line-2); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; background: var(--surface); }
.re-drop:hover, .re-drop.over, .re-drop:focus-visible { border-color: var(--magenta); background: var(--brand-soft); outline: none; }
.re-drop svg { width: 28px; height: 28px; color: var(--magenta); }
.re-drop span { font-size: 13px; }
.re-up { min-height: 18px; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.re-up .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.re-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.re-ph { display: flex; flex-direction: column; gap: 6px; border-radius: 14px; padding: 6px; background: var(--surface); border: 1px solid var(--line); cursor: grab; transition: transform 0.2s var(--ease), border-color 0.2s, opacity 0.2s; }
.re-ph.dragging { opacity: 0.4; }
.re-ph.drop-here { border-color: var(--magenta); transform: scale(1.02); }
.re-ph-img { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.re-ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.re-num { position: absolute; left: 6px; top: 6px; min-width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, 0.6); color: #fff; }
.re-badge { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--brand); color: var(--on-brand); }
.re-ph-tools { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.re-ph:hover .re-ph-tools, .re-ph:focus-within .re-ph-tools { opacity: 1; }
.re-ph-tools .btn { background: rgba(0, 0, 0, 0.6); border-color: transparent; color: #fff; }
.re-ph-tools .btn.danger { color: #ff8a9a; }
.re-in { height: 34px; font-size: 13px; padding: 0 10px; border-radius: 9px; }
.re-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.re-agent { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.re-pics { display: flex; flex-direction: row; justify-content: center; gap: 10px; align-items: center; text-align: center; }
.re-pic { width: 120px; height: 120px; border-radius: 18px; border: 1.5px dashed var(--line-2); display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; color: var(--muted); font-size: 12px; background: var(--surface); transition: border-color 0.2s; }
.re-pic:hover { border-color: var(--magenta); }
.re-pic.round { border-radius: 50%; }
.re-pic img { width: 100%; height: 100%; object-fit: cover; }
.re-pic svg { width: 24px; height: 24px; }
.re-pics small { font-size: 11px; }
.re-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.re-sw { position: relative; overflow: hidden; }
.re-sw i { position: absolute; inset: 0; }
.re-sw-luxury { background: linear-gradient(135deg, #2b2116, #0b0b0f); }
.re-sw-luxury i { background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--acc) 70%, transparent), transparent 55%); }
.re-sw-modern { background: linear-gradient(135deg, #0a1220, #13324a); }
.re-sw-modern i { background: linear-gradient(90deg, transparent 55%, color-mix(in srgb, var(--acc) 80%, transparent) 55% 60%, transparent 60%); }
.re-sw-bright { background: linear-gradient(135deg, #fef4ea, #ffd9c9); }
.re-sw-bright i { background: radial-gradient(circle at 25% 70%, color-mix(in srgb, var(--acc) 80%, transparent), transparent 50%); }
.re-sw-cinematic { background: #050505; }
.re-sw-cinematic i { background: linear-gradient(180deg, #000 0 18%, color-mix(in srgb, var(--acc) 35%, #1c2630) 18% 82%, #000 82%); }
.re-shapes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.re-shapes .tile { min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.re-frame { display: block; height: 46px; max-width: 82px; border-radius: 6px; border: 2px solid var(--ink-2); margin-bottom: 6px; }
.re-shapes .tile.on .re-frame { border-color: var(--magenta); background: color-mix(in srgb, var(--magenta) 18%, transparent); }
.re-nets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.re-net { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 600; }
.re-net input { width: 16px; height: 16px; accent-color: var(--magenta); margin: 0; }
.re-net:has(input:checked) { border-color: color-mix(in srgb, var(--magenta) 60%, transparent); background: var(--brand-soft); }
.re-tpl { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.re-tpl > div:first-child { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); flex: none; }
/* Phones are the base above; wider screens add columns. */
@media (min-width: 560px) {
  .re-photos { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
  .re-form { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .re-styles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .re-shapes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (min-width: 861px) {
  .re-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .re-art { display: block; }
  .re-agent { grid-template-columns: 150px minmax(0, 1fr); }
  .re-pics { flex-direction: column; justify-content: flex-start; }
}
@media (min-width: 1181px) {
  .re-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .re-side { position: sticky; top: 18px; }
}
:root[data-theme='light'] .re-ph-tools .btn { background: rgba(15, 23, 42, 0.7); }
:root[data-theme='light'] .re-ring::before { background: #fff; }

/* ---- Public front page (signed out) ---- */
body.signed-out .rail { display: none; }
body.signed-out .shell { grid-template-columns: minmax(0, 1fr); }
body.signed-out main#view { padding: 0 16px 48px; }
.wl { max-width: 1180px; margin: 0 auto; }
.wl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.wl-logo { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.wl-logo .brand-mark { width: 40px; height: 40px; }
.wl-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; padding: 20px 0 40px; }
.wl-copy .sub { margin-top: 14px; }
.wl-phone { position: relative; justify-self: center; width: min(300px, 74vw); aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 10px; background: linear-gradient(145deg, #3a3129, #15110d); box-shadow: 0 0 0 1.5px rgba(255, 240, 220, 0.12) inset, 0 50px 90px -40px rgba(0, 0, 0, 0.9), 0 0 140px -40px var(--glow); animation: phoneIn 1s var(--ease) both; }
.wl-screen { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: #000; }
.wl-screen video { width: 100%; height: 100%; object-fit: cover; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(30px) rotate(3deg) scale(0.96); } }
.wl-tag { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(12px); animation: floaty 6s ease-in-out infinite; }
.wl-tag svg { width: 15px; height: 15px; color: var(--magenta); }
.wl-tag.t1 { left: -18%; top: 16%; }
.wl-tag.t2 { right: -16%; top: 46%; animation-delay: -2s; }
.wl-tag.t3 { left: -10%; bottom: 12%; animation-delay: -4s; }
.wl-features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.wl-feat b { display: block; font-size: 17px; margin: 12px 0 4px; }
.wl-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -10px var(--glow); }
.wl-ic svg { width: 22px; height: 22px; }
.wl-how { padding: 48px 0 8px; }
.wl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.wl-steps li { display: flex; gap: 14px; align-items: flex-start; }
.wl-steps i { font-style: normal; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: var(--on-brand); background: var(--brand); }
.wl-steps b { font-size: 17px; }
.wl-auth { display: grid; place-items: center; padding: 48px 0 24px; scroll-margin-top: 20px; }
.wl-form { width: min(460px, 100%); }
.wl-form .tabs { width: 100%; margin-bottom: 18px; }
.wl-form .tabs button { flex: 1; }
.wl-form form { display: flex; flex-direction: column; gap: 14px; }
.wl-err { margin: 0; min-height: 0; color: var(--bad); font-weight: 600; font-size: 14px; }
.wl-err:empty { display: none; }
.wl-foot { text-align: center; font-size: 13px; padding: 24px 0 8px; }
@media (min-width: 640px) {
  .wl-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .wl-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); padding: 40px 0 64px; }
  .wl-features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) { .wl-tag { display: none; } }

/* ---- My account / Accounts ---- */
.acc-meter .bar, .allow .bar { position: relative; height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.acc-meter .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: var(--brand); }
.acc-list { display: flex; flex-direction: column; }
.acc-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.acc-row:last-child { border-bottom: 0; }
.acc-row.off { opacity: 0.6; }
.acc-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.acc-who > div { min-width: 0; overflow-wrap: anywhere; }
.acc-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--on-brand); background: var(--brand); }
.acc-use { display: flex; gap: 18px; align-items: center; }
.acc-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.acc-act .field { width: 120px; }
.acc-pw { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); font-size: 22px; font-weight: 800; letter-spacing: 0.08em; text-align: center; user-select: all; }
.btn.danger { color: var(--bad); }
.kpi b { display: block; margin-top: 4px; }
@media (min-width: 1100px) { .acc-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) auto; align-items: center; } }
