[hidden] { display: none !important; }
:root { --bg:#fcfaf8; --card:#ffffff; --ink:#1d1a19; --muted:#6d6563; --line:#ece4e1; --a1:#8a2433; --a2:#a8384a; --err:#b42335; }
@media (prefers-color-scheme: dark) { :root { --bg:#141212; --card:#1b1818; --ink:#f1ece9; --muted:#a69c99; --line:#2e2a29; --a1:#b4404f; --a2:#8a2433; --err:#ff8a94; } }
* { box-sizing: border-box; }
body { margin:0; min-height:100vh; display:grid; place-items:center; padding:24px; background:var(--bg); color:var(--ink);
       font: 16px/1.5 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing:antialiased; }
.card { width:100%; max-width:380px; background:var(--card); border-radius:28px; padding:32px 28px; box-shadow:0 10px 30px rgba(60,40,110,.08); text-align:center; }
.logo { width:64px; height:64px; margin:0 auto 14px; border-radius:18px; display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,var(--a1),var(--a2)); }
.logo svg { width:30px; height:30px; }
h1 { margin:0; font-size:24px; } .muted { color:var(--muted); margin:6px 0 22px; }
section { display:flex; flex-direction:column; gap:10px; text-align:left; }
label { font-size:14px; color:var(--muted); margin-top:6px; }
input { font:inherit; padding:12px 14px; border-radius:14px; border:1px solid var(--line); background:var(--bg); color:var(--ink); }
button, .btn { font:inherit; font-weight:600; padding:13px; border-radius:14px; border:1px solid var(--line); background:var(--bg); color:var(--ink); cursor:pointer; text-align:center; text-decoration:none; }
button.primary { color:#fff; border:0; background:linear-gradient(145deg,var(--a1),var(--a2)); }
button:disabled { opacity:.6; cursor:default; }
.btn.ghost { background:transparent; }
ul { list-style:none; margin:0 0 6px; padding:0; } li { padding:10px 0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:8px; }
li small { color:var(--muted); }
.msg { margin:18px 0 0; font-size:14px; color:var(--err); }
.msg.ok { color:var(--muted); }
.others { display: grid; gap: 10px; margin-top: 10px; } .others:empty { display: none; }
.qr { display: flex; align-items: center; justify-content: center; gap: 9px; }
.qr svg { width: 19px; height: 19px; flex: none; }
.small { font-size: 13.5px; margin: 2px 0 0; text-align: center; }
/* invite links page */
body.wide { place-items: start center; }
.card.inv { max-width: 560px; text-align: left; margin-top: 4vh; }
.inv h1 { font-size: 26px; } .inv h2 { font-size: 18px; margin: 30px 0 10px; }
.inv form.new { display: grid; gap: 8px; }
select { font: inherit; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.made { margin-top: 16px; padding: 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); gap: 10px; }
.made p { margin: 0; font-size: 14.5px; }
.linkrow { display: flex; gap: 8px; } .linkrow input { flex: 1; min-width: 0; font-size: 14px; } .linkrow button { flex: none; padding: 0 18px; }
.invlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.invlist > li { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; background: var(--card); }
.invlist > li.off { opacity: .6; }
.ihead b { display: block; } .ihead small { color: var(--muted); font-size: 13.5px; }
.devs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.devs li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; } .acts button { padding: 9px 14px; font-size: 14px; }
button.mini { padding: 5px 10px; font-size: 13px; border-radius: 10px; }
button.ghost { background: none; color: var(--muted); }
.foot { display: flex; justify-content: space-between; margin-top: 26px; font-size: 14px; }
.foot a { color: var(--muted); }
/* guest welcome page */
.welcome .logo { background: linear-gradient(145deg, #3f9a6b, #2f7d55); }
.who { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -8px 0 20px; font-size: 15px; }
.okdot { width: 8px; height: 8px; border-radius: 50%; background: #3f9a6b; flex: none; }
.welcome section form { display: grid; }
button.wide { width: 100%; }
.welcome .small { margin-top: 18px; }
.btn.primary { color:#fff; border:0; background:linear-gradient(145deg,var(--a1),var(--a2)); }

button.link { background:none; border:0; padding:6px; color:var(--muted); font-weight:500; text-decoration:underline; text-underline-offset:3px; font-size:14px; }
#keys li { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
#keys li small { flex:1; }
button.mini { padding:6px 12px; font-size:13px; font-weight:500; }
.rc { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); display:grid; gap:10px; }
.rc h2 { margin:0; font-size:17px; }
.rc p { margin:0; font-size:14px; }
.rcbox { background:var(--bg); border:1px solid var(--line); border-radius:14px; padding:14px 16px; display:grid; gap:10px; }
.rcbox ol { margin:0; padding-left:22px; columns:2; column-gap:20px; font:600 13px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing:.02em; white-space:nowrap; }
.rcacts { display:flex; gap:8px; } .rcacts button { flex:1; padding:9px; }
