/* ============================================================
   REAL+ — live.css : cloud mode (sign-in, workspace setup, plan,
   team, account, Mission Control). Loaded on every host; every
   rule is scoped to markup only cloud mode renders.
   ============================================================ */

/* ---------------- sign-in / sign-up / setup ---------------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 44%) 1fr; background: var(--bg); }
.auth-art { position: relative; overflow: hidden; background: #0A1524; color: #F3F6FA; display: flex; align-items: flex-end; padding: 44px 46px; isolation: isolate; }
.aa-sky { position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 60% at 50% 104%, rgba(201,162,39,.42), transparent 64%),
    radial-gradient(90% 50% at 90% 0%, rgba(15,134,108,.22), transparent 60%),
    linear-gradient(180deg, #0B1828 0%, #12233D 60%, #1B3050 100%); }
.aa-city { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: -1; display: flex; align-items: flex-end; gap: 6px; padding: 0 18px; opacity: .42; }
/* The copy sits over the skyline, so it gets its own scrim: the towers stay visible above and
   to the right, and the window dots never run through a word (they did in the first render). */
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(8,17,30,.94) 0%, rgba(8,17,30,.86) 34%, rgba(8,17,30,.35) 62%, rgba(8,17,30,0) 80%); }
.aa-city i { flex: 1 1 0; height: var(--h); border-radius: 3px 3px 0 0; transform-origin: bottom; transform: scaleY(0);
  background-color: #08111E; background-image: radial-gradient(rgba(239,211,126,.85) 40%, transparent 46%); background-size: 6px 10px; background-position: 50% 6px;
  animation: aa-grow .9s var(--ease-spring) forwards; animation-delay: var(--d); }
@keyframes aa-grow { to { transform: scaleY(1); } }
.aa-copy { position: relative; max-width: 440px; }
.aa-brand { display: flex; align-items: center; gap: 10px; font: 600 22px Fraunces, serif; margin-bottom: 26px; }
.aa-brand em, .ac-brand em { font-style: normal; color: #E3C56A; }
.aa-h { font: 500 clamp(28px, 3.1vw, 40px)/1.12 Fraunces, serif; letter-spacing: -.015em; }
.aa-h em { font-style: italic; color: #EFD37E; }
.aa-pts { list-style: none; margin-top: 22px; display: grid; gap: 10px; font-size: 14px; color: rgba(243,246,250,.86); }
.aa-pts li { display: flex; align-items: center; gap: 10px; }
.aa-pts .ico { color: #E3C56A; }

.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 22px 22px; }
.auth-card { width: 100%; max-width: 420px; animation: ac-in .5s var(--ease) both; }
@keyframes ac-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ac-brand { display: none; align-items: center; gap: 9px; font: 600 20px Fraunces, serif; margin-bottom: 22px; }
.ac-h { font: 500 30px/1.15 Fraunces, serif; letter-spacing: -.015em; color: var(--ink); }
.ac-sub { color: var(--mut); font-size: 14.5px; margin-top: 6px; margin-bottom: 18px; line-height: 1.5; }
.auth-card label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin: 14px 0 6px; }
.auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=text], .auth-card input[type=tel] { width: 100%; min-height: 46px; font-size: 15px; }
.btn.wide { width: 100%; justify-content: center; min-height: 46px; }
.ac-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--faint); font-size: 12px; }
.ac-or::before, .ac-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ac-google { gap: 10px; }
.ac-links { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; }
.lnk { background: none; border: 0; padding: 6px 0; min-height: 32px; color: var(--ok-deep); font: 600 13.5px Inter, system-ui, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.lnk:hover { text-decoration-color: currentColor; }
html[data-theme="dark"] .lnk { color: var(--ok); }
.ac-demo { margin-top: 22px; padding: 12px 14px; border-radius: 12px; background: var(--bg2); font-size: 13px; color: var(--mut); }
.ac-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 13px !important; line-height: 1.5; color: var(--mut) !important; margin-top: 16px !important; }
.ac-check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.ac-check a, .auth-foot a { color: var(--ok-deep); }
.auth-foot { margin-top: 28px; font-size: 12px; color: var(--faint); }
.auth-foot a { color: var(--mut); }

.ac-lines { border: 0; margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ac-lines legend { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.line-opt { position: relative; display: flex !important; align-items: center; gap: 9px; margin: 0 !important; min-height: 52px; padding: 10px 12px; border: 1.5px solid var(--line2); border-radius: 12px; background: var(--card); cursor: pointer; font-weight: 600 !important; font-size: 13px !important; line-height: 1.3; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.line-opt input { position: absolute; opacity: 0; pointer-events: none; }
.line-opt .ico { color: var(--mut); flex: 0 0 auto; }
.line-opt.on { border-color: var(--ok); background: color-mix(in srgb, var(--ok-soft) 55%, var(--card)); }
.line-opt.on .ico { color: var(--ok-deep); }
.line-opt:has(input:focus-visible) { outline: 2px solid var(--ok); outline-offset: 2px; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .ac-brand { display: flex; }
  .auth-main { justify-content: flex-start; padding-top: max(28px, env(safe-area-inset-top)); }
}
@media (max-width: 420px) { .ac-lines { grid-template-columns: 1fr; } .ac-h { font-size: 26px; } }

/* the full-page wait between sign-in and the workspace */
.auth-wait { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--bg); padding: 24px; }
.aw-mark { animation: aw-breathe 1.8s ease-in-out infinite; }
@keyframes aw-breathe { 50% { transform: scale(1.05); } }
.aw-t { font: 500 20px Fraunces, serif; color: var(--ink); }
.aw-bar { width: 160px; height: 3px; border-radius: 9px; background: var(--line); overflow: hidden; }
.aw-bar i { display: block; width: 40%; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #C9A227, #EFD37E); animation: aw-slide 1.1s var(--ease) infinite; }
@keyframes aw-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; vertical-align: -2px; }

/* ---------------- the trial / read-only / offline bar ---------------- */
.live-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; font-size: 13px; color: var(--ink);
  background: color-mix(in srgb, var(--gold-soft) 70%, var(--card)); border-bottom: 1px solid var(--line); }
.live-bar > span { flex: 1 1 220px; }
.live-bar .ico { color: var(--ok-deep); flex: 0 0 auto; }
.live-bar.ro { background: var(--warn-soft); }
.live-bar.off { background: var(--bg2); }
.live-bar.ann { background: color-mix(in srgb, var(--sea-soft) 70%, var(--card)); }

/* ---------------- plan & billing ---------------- */
.plan-toggles { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; min-height: 36px; padding: 0 14px; border-radius: 999px; font: 600 13px Inter, system-ui, sans-serif; color: var(--mut); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding-top: 22px; }
.plan-card.fits { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok), var(--shadow); }
.plan-card.now { border-color: var(--gold); }
.pc-flag { position: absolute; top: -11px; left: 16px; padding: 3px 10px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
html[data-theme="dark"] .pc-flag { color: #0A1524; }
.pc-price { margin-top: 8px; font-size: 13px; color: var(--mut); }
.pc-price b { font: 600 28px Fraunces, serif; color: var(--ink); letter-spacing: -.01em; }
.pc-feats { list-style: none; margin: 10px 0 14px; display: grid; gap: 6px; font-size: 13px; flex: 1; }
.pc-feats li { display: flex; gap: 8px; align-items: center; }
.pc-feats .ico { color: var(--ok-deep); }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty input { width: 76px; min-height: 36px; text-align: center; }
.ent-card { border-left: 4px solid var(--gold); }
.note.warn { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); font-size: 13px; }

/* ---------------- account, team, locks ---------------- */
.acct-head { display: flex; align-items: center; gap: 12px; }
.lock-card { display: flex; gap: 16px; align-items: flex-start; max-width: 640px; }
.lk-ico { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--ok-deep); }
.card.danger { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); }
.btn.danger { background: var(--err); color: #fff; border-color: var(--err); }
html[data-theme="dark"] .btn.danger { color: #1A0B0C; }
.invite-row label { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .aa-city i { animation: none; transform: none; }
  .auth-card, .aw-mark, .aw-bar i { animation: none; }
}
html.rmotion .aa-city i { animation: none; transform: none; }
html.rmotion .auth-card, html.rmotion .aw-mark, html.rmotion .aw-bar i { animation: none; }

/* ---------------- first-run setup card (RP.c.setup) ---------------- */
.setup-wrap { max-width: 720px; }
.setup-wrap .photo-hero { margin-bottom: 0; border-radius: var(--r-card) var(--r-card) 0 0; }
.setup-card { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
.setup-steps { margin: 14px 0 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.setup-steps li { counter-increment: st; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.setup-steps li::before { content: counter(st); flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--ok-deep); font-weight: 700; font-size: 12.5px; }
