[hidden]{display:none!important}
/* ---------- Raio-X Casa: primeiro uso, tutorial, ajustes ---------- */
html.rxc-lock,html.rxc-lock body{overflow:hidden}
body{padding-top:max(20px,env(safe-area-inset-top,0px))}
.mono{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace}
#rxc{position:fixed;inset:0;z-index:1000;background:var(--bg);overflow-y:auto;-webkit-overflow-scrolling:touch}
.rxc-in{max-width:460px;margin:0 auto;padding:max(28px,env(safe-area-inset-top,0px)) 20px max(32px,env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:14px;min-height:100%}
.rxc-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px;letter-spacing:-.01em;margin-bottom:10px}
.rxc-brand span:last-child{color:var(--muted);font-weight:500}
.rxc-logo{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#B29BFF,#6A47F0);position:relative;flex:none}
.rxc-logo::after{content:"";position:absolute;inset:8px;border-radius:4px;background:var(--bg)}
.rxc-h{font-size:28px;line-height:1.15;font-weight:800;margin:4px 0 0}
.rxc-p{margin:0;color:var(--ink);opacity:.9}
.rxc-fine{margin:0;font-size:12.5px;color:var(--muted)}
.rxc-kicker{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#B9A7FF}
.rxc-kicker svg{width:16px;height:16px}
.rxc-note{background:var(--accent-soft);border:1px solid #3A3170;border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.5}
.rxc-note.warn{background:var(--warn-soft);border-color:#5A4417}
.rxc-note svg,.rxc-steps svg{width:16px;height:16px;vertical-align:-3px}
.rxc-acts{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.rxc-acts.row{flex-direction:row;flex-wrap:wrap}
.rxc-acts.row .rxc-btn{flex:1 1 auto}
.rxc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:12px;border:0;background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:15.5px;cursor:pointer}
.rxc-btn svg{width:18px;height:18px}
.rxc-btn.ghost{background:var(--sunk);color:var(--ink);border:1px solid var(--line);font-weight:600}
.rxc-btn.danger{background:var(--crit-soft);color:var(--crit);border:1px solid #5B2A31;font-weight:600}
.rxc-btn.sm{min-height:40px;font-size:14px;padding:0 14px;border-radius:10px}
.rxc-btn:disabled{opacity:.45;cursor:default}
.rxc-back{align-self:flex-start;background:none;border:0;color:var(--muted);padding:4px 0;font-size:14.5px;cursor:pointer}
.rxc-link{align-self:flex-start;background:none;border:0;color:#B9A7FF;padding:0;font-size:14px;text-decoration:underline;cursor:pointer;margin-top:-6px}
.rxc-lb{font-size:13px;font-weight:600;color:var(--muted);margin-bottom:-8px}
#rxc input:not([type=checkbox]){min-height:48px;font-size:16px;border-radius:12px}
#rxc input.mono{letter-spacing:.06em}
.rxc-err{margin:0;color:var(--crit);font-size:14px}
.rxc-code{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-size:21px;font-weight:700;letter-spacing:.06em;text-align:center;background:var(--surface);border:1px dashed #4B3F8F;border-radius:14px;padding:18px 10px;line-height:1.5;user-select:all;-webkit-user-select:all}
.rxc-code.sm{font-size:16px;padding:12px 8px}
.rxc-check{display:flex;align-items:center;gap:10px;font-size:15px;cursor:pointer}
.rxc-check input{width:22px;height:22px;accent-color:var(--accent)}
.rxc-steps{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.rxc-steps.tight{gap:6px}
.rxc-steps a{color:#B9A7FF}
#rxcToast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);background:#2B2D3C;color:#fff;padding:11px 16px;border-radius:12px;font-size:14px;z-index:1100;opacity:0;pointer-events:none;transition:.2s;max-width:calc(100vw - 32px);text-align:center}
#rxcToast.on{opacity:1;transform:translate(-50%,0)}

/* tutorial em cards (mesma lógica do tutorial do Acervo Move) */
#rxcTut,#rxcAj{border:0;padding:0;border-radius:20px;background:var(--surface);color:var(--ink);width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.55)}
#rxcTut[open]{display:flex;flex-direction:column}
#rxcTut::backdrop,#rxcAj::backdrop{background:rgba(5,5,10,.72);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.tut-topo{background:linear-gradient(135deg,#2A2158,#17142B);padding:22px 22px 18px;display:flex;align-items:center;gap:14px;flex:none}
.tut-num{width:48px;height:48px;border-radius:13px;background:var(--accent);color:#fff;display:grid;place-items:center;flex:none;box-shadow:0 6px 18px rgba(139,108,246,.45)}
.tut-num svg{width:24px;height:24px}
.tut-pas{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#B9A7FF}
.tut-topo h2{margin:2px 0 0;font-size:21px;line-height:1.2;color:#fff}
.tut-corpo{padding:18px 22px 6px;display:flex;flex-direction:column;gap:12px;min-height:290px;overflow-y:auto;font-size:15px}
.tut-corpo p{margin:0}
.tut-corpo ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:7px}
.tut-corpo svg{width:16px;height:16px;vertical-align:-3px}
.rxc-ilus{display:flex;align-items:center;gap:12px;background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:12px}
.rxc-ilus>svg{width:28px!important;height:28px!important;color:#B9A7FF;flex:none}
.rxc-mini{font-size:13px;color:var(--muted)}
.tut-rodape{display:flex;align-items:center;gap:10px;padding:14px 22px max(20px,env(safe-area-inset-bottom,0px));flex-wrap:wrap;border-top:1px solid var(--line);flex:none}
.tut-pular{background:none;border:0;color:var(--muted);font-size:14px;padding:6px 0;cursor:pointer}
.tut-dots{display:flex;gap:6px}
.tut-dots i{width:7px;height:7px;border-radius:50%;background:var(--line);transition:.2s}
.tut-dots i.on{width:20px;border-radius:4px;background:var(--accent)}
.tut-btns{display:flex;gap:8px;margin-left:auto}
@media (max-width:420px){.tut-pular{order:3;width:100%;text-align:center}.tut-dots{flex:1}}

/* ajustes */
#rxcAj{overflow-y:auto}
#rxcAjC{padding:6px 20px max(20px,env(safe-area-inset-bottom,0px))}
.aj-top{display:flex;align-items:center;justify-content:space-between;padding:14px 0 6px;position:sticky;top:0;background:var(--surface);z-index:1}
.aj-x{width:38px;height:38px;border-radius:50%;border:0;background:var(--sunk);color:var(--ink);font-size:22px;line-height:1;cursor:pointer}
#rxcAjC section{border-top:1px solid var(--line);padding:14px 0;display:flex;flex-direction:column;gap:8px}
#rxcAjC section p{margin:0;font-size:14.5px}
.aj-lb{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.aj-lb svg{width:16px;height:16px}
.aj-sync{display:flex;align-items:center;gap:8px;color:var(--muted)}
.aj-sync i{width:8px;height:8px;border-radius:50%;background:var(--ok);flex:none}
.aj-sync i.pend{background:var(--warn)}.aj-sync i.off{background:var(--crit)}

/* botão de ajustes no topo, com bolinha de sincronização */
.rxc-gear{position:relative}
.rxc-gear svg{width:19px;height:19px}
.rxc-gear::after{content:"";position:absolute;top:6px;right:6px;width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 2px var(--bg);opacity:0;transition:.2s}
.rxc-gear[data-s=pend]::after{background:var(--warn);opacity:1}
.rxc-gear[data-s=off]::after{background:var(--crit);opacity:1}
.rxc-gear+.eyebtn{margin-left:0!important}
