:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#fff;--surface:#f4f4f8;--line:#e3e3ec;--text:#1b1b1f;--muted:#6b6b76;--accent:#6965db;--accent-text:#fff;--accent-soft:#ecebfd;--danger:#c92a2a;--live:#2b8a3e;--radius:12px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.45}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#121212;--surface:#1e1e24;--line:#2e2e38;--text:#ececf1;--muted:#9a9aa6;--accent:#8f8cf0;--accent-text:#121212;--accent-soft:#26253f;--danger:#ff8787;--live:#69db7c}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}#root{height:100dvh}body{background:var(--bg);color:var(--text);overscroll-behavior:none;-webkit-tap-highlight-color:transparent}h1,h2,h3,p{margin:0}button,input{font:inherit;color:inherit}input{border:1px solid var(--line);border-radius:var(--radius);background:var(--bg);width:100%;min-width:0;height:48px;padding:0 14px}input:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.muted{color:var(--muted)}.error{color:var(--danger)}.pad{padding:16px}.btn{border-radius:var(--radius);background:var(--accent);min-height:44px;color:var(--accent-text);white-space:nowrap;cursor:pointer;border:0;justify-content:center;align-items:center;padding:0 18px;font-weight:600;display:inline-flex}.btn:disabled{opacity:.45;cursor:default}.btn.quiet{background:var(--surface);color:var(--text)}.btn.wide{width:100%}.icon-btn{border-radius:var(--radius);cursor:pointer;background:0 0;border:0;flex:none;place-items:center;width:44px;height:44px;display:grid}.icon-btn:hover{background:var(--surface)}.icon-btn svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.center-screen{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:16px;height:100%;padding:24px;display:flex}.onboarding{max-width:400px;min-height:100%;padding:48px 24px calc(24px + env(safe-area-inset-bottom));flex-direction:column;justify-content:center;gap:12px;margin:0 auto;display:flex}.onboarding img{border-radius:18px}.onboarding h1{font-size:1.75rem;line-height:1.2}.onboarding .lede{color:var(--muted);margin-bottom:16px}.onboarding form{flex-direction:column;gap:10px;display:flex}.onboarding label{font-weight:600}.steps{flex-direction:column;gap:10px;margin:0 0 16px;padding-left:22px;display:flex}.code{border-radius:var(--radius);background:var(--accent-soft);letter-spacing:.12em;text-align:center;-webkit-user-select:all;user-select:all;margin:8px 0;padding:10px;font:700 1.5rem/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;display:block}.contacts{max-width:560px;min-height:100%;padding-top:env(safe-area-inset-top);flex-direction:column;margin:0 auto;display:flex}.top-bar{justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.top-bar h1{font-size:1.4rem}.top-bar .btn{text-overflow:ellipsis;max-width:50%;line-height:44px;display:block;overflow:hidden}.card{border-radius:var(--radius);background:var(--surface);flex-direction:column;align-items:flex-start;gap:10px;margin:4px 16px 12px;padding:14px;display:flex}.empty{text-align:center;flex-direction:column;flex:1;justify-content:center;gap:8px;padding:24px;display:flex}.empty h2{font-size:1.2rem}.empty p{color:var(--muted)}.contact-list{flex:1;margin:0;padding:0;list-style:none}.contact{text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;width:100%;padding:10px 16px;display:flex}.contact:hover{background:var(--surface)}.avatar{background:var(--accent-soft);width:44px;height:44px;color:var(--accent);border-radius:50%;flex:none;place-items:center;font-weight:700;display:grid}.contact-text{flex-direction:column;flex:1;min-width:0;display:flex}.contact-text>*{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.contact-text span{color:var(--muted);font-size:.9rem}.contact-text .unread{color:var(--text);font-weight:600}.contact-thumb{object-fit:cover;border:1px solid var(--line);background:#fff;border-radius:8px;flex:none;width:56px;height:44px}.dot{background:var(--accent);border-radius:50%;flex:none;width:10px;height:10px}.bottom-action{padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(transparent, var(--bg) 30%);position:sticky;bottom:0}.sheet-backdrop{z-index:100;background:#00000073;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--bg);width:100%;max-width:520px;max-height:88%;padding-bottom:env(safe-area-inset-bottom);border-radius:18px 18px 0 0;flex-direction:column;display:flex}@media (width>=600px){.sheet-backdrop{align-items:center}.sheet{border-radius:18px}}.sheet-head{justify-content:space-between;align-items:center;padding:10px 8px 4px 20px;display:flex}.sheet-head h2{font-size:1.15rem}.sheet-body{flex-direction:column;gap:16px;padding:8px 20px 20px;display:flex;overflow-y:auto}.sheet-section{flex-direction:column;gap:10px;display:flex}.sheet-section h3{font-size:1rem}.sheet-section+.sheet-section{border-top:1px solid var(--line);padding-top:16px}.row{gap:8px;display:flex}input.link{height:40px;color:var(--muted);font-size:.85rem}.toast{left:50%;bottom:calc(88px + env(safe-area-inset-bottom));z-index:200;background:var(--text);max-width:calc(100% - 32px);color:var(--bg);text-align:center;pointer-events:none;border-radius:999px;padding:10px 16px;font-size:.95rem;position:fixed;transform:translate(-50%)}.board{height:100%;padding-top:env(safe-area-inset-top);flex-direction:column;display:flex}.board-bar{border-bottom:1px solid var(--line);flex:none;align-items:center;gap:2px;padding:6px 8px 6px 4px;display:flex}.board-title{flex-direction:column;flex:1;min-width:0;padding:0 4px;line-height:1.25;display:flex}.board-title>*{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.board-title span{color:var(--muted);font-size:.8rem}.board-title .live{color:var(--live);font-weight:600}.btn.send{min-height:40px;margin-left:6px}.banner{background:var(--accent-soft);text-align:center;cursor:pointer;border:0;flex:none;padding:10px 16px}.board-canvas{flex:1;min-height:0;position:relative}.history-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;display:grid}.history-item{text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;gap:4px;padding:0;display:flex}.history-item img,.thumb-missing{aspect-ratio:4/3;object-fit:contain;border:1px solid var(--line);background:#fff;border-radius:10px;width:100%}.history-item span{color:var(--muted);font-size:.8rem}.preview{z-index:150;color:#fff;background:#000000d9;flex-direction:column;display:flex;position:fixed;inset:0}.preview-image{flex:1;place-items:center;min-height:0;padding:16px;display:grid}.preview-image img{background:#fff;border-radius:8px;max-width:100%;max-height:100%}.preview-actions{padding:12px 16px calc(16px + env(safe-area-inset-bottom));flex:none;justify-content:center;gap:12px;display:flex}
