/* Holistic Healing Studio · Studio Cloud (v0.5): sign-in screen, header pill, session offer, account window. */

/* ---------- sign-in / setup screen ---------- */
.cloud-gate { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto;
  background: radial-gradient(900px 600px at 50% -10%, rgba(155,123,255,0.18), transparent 60%), radial-gradient(700px 500px at 50% 110%, rgba(233,196,106,0.10), transparent 60%), var(--bg);
  transition: opacity .35s; }
.cloud-gate.done { opacity: 0; pointer-events: none; }
.g-card { width: min(440px, 100%); background: linear-gradient(180deg, rgba(20,16,39,0.96), rgba(13,10,26,0.96)); border: 1px solid var(--line-2);
  border-radius: 22px; padding: 28px 28px 22px; box-shadow: 0 40px 120px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(233,196,106,0.06) inset; }
.g-brand { display: flex; align-items: center; gap: 10px; color: var(--gold); font-family: var(--display); font-size: 15px; letter-spacing: .02em; }
.g-brand .brand-mark { width: 30px; height: 30px; }
.g-card h1 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 18px 0 6px; color: var(--text); }
.g-intro { color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.g-form { display: flex; flex-direction: column; gap: 14px; }
.g-form .input { padding: 10px 12px; font-size: 15px; }
.g-pw { display: flex; gap: 6px; align-items: center; }
.g-pw .input { flex: 1; }
.g-eye { flex: none; }
.g-check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.g-check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--gold); flex: none; }
.g-msg { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; background: var(--violet-soft); color: #dcd2ff; }
.g-msg.bad { background: rgba(240,119,106,0.12); color: #f7b7ae; border: 1px solid rgba(240,119,106,0.3); }
.g-go { justify-content: center; padding: 11px 16px; font-size: 15px; }
.g-foot { margin: 4px 0 0; line-height: 1.45; }
.g-meter { font-size: 12.5px; color: var(--faint); min-height: 1em; margin-top: -8px; }
.g-meter.warn { color: var(--amber); }
.g-meter.ok { color: var(--emerald); }
.g-steps { margin: 0 0 4px; padding-left: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 4px; }
#g-setup, #g-code { letter-spacing: .08em; }

/* ---------- header pill ---------- */
.cloud-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 12px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.cloud-pill svg { width: 17px; height: 17px; }
.cloud-pill.ok { color: #9ee6c4; border-color: rgba(52,195,143,0.35); }
.cloud-pill.busy { color: #dcd2ff; border-color: rgba(155,123,255,0.45); }
.cloud-pill.busy svg { animation: cloud-breathe 1.6s ease-in-out infinite; }
.cloud-pill.off { color: var(--amber); border-color: rgba(242,184,75,0.4); }
.cloud-pill.bad { color: #f7b7ae; border-color: rgba(240,119,106,0.45); }
.cloud-pill:hover { color: var(--text); background: var(--surface-2); }
@keyframes cloud-breathe { 50% { opacity: .45; } }

/* ---------- "newer session from another device" ---------- */
/* centred with left/right + auto margins (left: 50% would cap the width at half the screen and wrap the buttons) */
.cloud-offer { position: fixed; left: 16px; right: 16px; bottom: 22px; margin: 0 auto; width: fit-content; max-width: 760px; z-index: 60; display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap;
  padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--deck); border: 1px solid rgba(233,196,106,0.45);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.9); font-size: 13.5px; }
.cloud-offer > span { flex: 1 1 220px; min-width: 0; }

/* ---------- account window ---------- */
dialog.acct .dlg-body { gap: 14px; }
/* the tabs stay visible while a long section scrolls (the body pads 10px at the top) */
.a-tabbar { position: sticky; top: -10px; z-index: 2; margin: -10px 0 -6px; padding: 10px 0 6px; background: var(--deck); }
.a-tabs { align-self: flex-start; }
.a-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.a-pane { display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.a-sec { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: rgba(20,16,39,0.5); display: flex; flex-direction: column; gap: 10px; }
.a-sec h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 19px; }
.a-sec p { margin: 0; line-height: 1.5; }
.a-status { font-weight: 600; }
.a-status.ok { color: #9ee6c4; }
.a-status.bad { color: #f7b7ae; }
.a-err { margin: 0; color: #f7b7ae; font-size: 13px; }
.a-stepup { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.a-stepup .input { width: auto; flex: 1 1 180px; }
.a-stepup .a-code { flex: 0 1 120px; }
.a-stepup .a-err { flex-basis: 100%; }
.a-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a-grid > :first-child, .a-grid .a-err { grid-column: 1 / -1; }
.a-grid button { justify-self: start; }
.a-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.a-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); }
.a-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.a-list small { color: var(--faint); font-size: 12px; overflow-wrap: anywhere; }
.a-list.compact li { padding: 6px 10px; font-size: 13px; }
.a-list li.warn { border-color: rgba(242,184,75,0.35); }
.a-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.a-checks li { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; }
.a-checks li span:first-child { font-weight: 700; width: 14px; }
.a-checks li.ok span:first-child { color: var(--emerald); }
.a-checks li.warn span:first-child { color: var(--amber); }
.a-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.a-qr { display: block; margin: 8px 0 2px; width: 200px; height: 200px; image-rendering: pixelated; border-radius: 10px; }
.a-key { font-family: var(--mono); font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; overflow-wrap: anywhere; }
.a-recovery { border: 1px solid rgba(233,196,106,0.45); background: var(--gold-soft); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.a-recovery pre { margin: 0; columns: 2; font-size: 14px; line-height: 1.7; }
.a-file { color: var(--muted); max-width: 100%; font-size: 13.5px; }
.a-file::file-selector-button { margin-right: 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.a-file::file-selector-button:hover { background: var(--surface-2); }
.a-sec details summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.a-sec details[open] summary { margin-bottom: 8px; }
.a-signout { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

@media (max-width: 720px) {
  .cloud-pill .label-lg { display: none; }
  .a-grid, .a-checks { grid-template-columns: 1fr; }
  .g-card { padding: 22px 18px 18px; border-radius: 18px; }
  .g-card h1 { font-size: 26px; }
}
