:root{--bg:#0f1216;--surface:#171c22;--surface-2:#1f262e;--mine:#274a78;--text:#e8edf2;--muted:#93a0ad;--accent:#7db4ff;--problem:#ffa28f;--good:#8ad6a2;--border:#29333d;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#app{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;overscroll-behavior:none;font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,Noto Sans Thai,sans-serif;font-size:16px;line-height:1.45}html{touch-action:pan-x pan-y}:lang(th){line-height:1.7}button,input,textarea{font:inherit;color:inherit}.layer{height:100%}.layer[hidden]{display:none}.screen{flex-direction:column;max-width:720px;height:100%;margin:0 auto;display:flex}.bar{min-height:52px;padding:4px 8px;padding-top:calc(4px + env(safe-area-inset-top,0px));background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:4px;display:flex}.bar-title{flex:1;padding:0 8px;font-size:18px;font-weight:600}.icon-button{width:44px;height:44px;fill:var(--text);background:0 0;border:0;border-radius:22px;justify-content:center;align-items:center;padding:0;display:flex}.icon-button:active{background:var(--surface-2)}.banner{color:var(--problem);text-align:center;background:#4a2f25;padding:6px 12px;font-size:14px}.list{-webkit-overflow-scrolling:touch;flex:1;min-height:0;padding:8px 10px 12px;overflow-y:auto}.day{background:var(--surface);width:fit-content;color:var(--muted);border-radius:12px;margin:14px auto 8px;padding:2px 12px;font-size:13px}.empty{color:var(--muted);text-align:center;margin-top:30vh}.row{touch-action:pan-y;margin:3px 0;display:flex;position:relative}.swipe-hint{background:var(--surface-2);width:30px;height:30px;color:var(--accent);opacity:0;pointer-events:none;border-radius:50%;justify-content:center;align-items:center;margin-top:-15px;display:flex;position:absolute;top:50%;right:4px}.row.flash .bubble{animation:1.6s ease-out flash}@keyframes flash{0%,35%{box-shadow:0 0 0 2px var(--accent)}to{box-shadow:0 0 0 2px #7db4ff00}}.quote{border-left:3px solid var(--accent);background:#ffffff14;border-radius:4px;margin:1px 0 5px;padding:3px 8px 4px;font-size:14px;line-height:1.35}.quote-name{color:var(--accent);font-size:12px;font-weight:600}.row.mine .quote-name{color:#cfe3ff}.quote-text{color:#cfd8e1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.extra-actions{flex-wrap:wrap;display:flex}.extra-actions .link{margin-right:14px}.reply-bar{border-left:3px solid var(--accent);background:var(--surface-2);border-radius:4px;align-items:center;margin-bottom:8px;padding-left:10px;font-size:14px;line-height:1.35;display:flex}.reply-bar-body{flex:1;min-width:0}.reply-bar .icon-button{color:var(--muted);flex:none}.row.mine{justify-content:flex-end}.bubble{background:var(--surface-2);overflow-wrap:anywhere;word-break:break-word;border-radius:16px;max-width:84%;padding:7px 11px 5px}.row.mine .bubble{background:var(--mine);border-bottom-right-radius:5px}.row.theirs .bubble{border-bottom-left-radius:5px}.bubble.sending{opacity:.6}.bubble.unsent,.bubble.problem{box-shadow:inset 0 0 0 1px var(--problem)}.text{white-space:pre-wrap}.text.small{color:#cfd8e1;font-size:15px}.status{color:var(--muted);margin-top:2px;font-size:13px}.problem-text,.bubble.problem .status,.bubble.unsent .status{color:var(--problem)}.note{border-left:2px solid var(--accent);color:#c3d3e6;margin-top:5px;padding-left:8px;font-size:13px}.extra{border-top:1px solid #ffffff24;margin-top:7px;padding-top:6px}.label{color:var(--muted);margin-top:4px;font-size:12px;line-height:1.3}.meta{color:var(--muted);text-align:right;margin-top:1px;font-size:11px;line-height:1.4}.row.mine .meta,.row.mine .label,.row.mine .status{color:#b7c9e0}.link{min-height:32px;color:var(--accent);background:0 0;border:0;margin-left:6px;padding:4px 6px;font-size:14px;text-decoration:underline;display:inline-block}.extra .link{margin-left:-6px}.link.center{margin:4px auto;display:block}.link:disabled,.button:disabled{opacity:.45}.toast{color:var(--problem);text-align:center;background:#3a2a25;border-radius:10px;margin:0 12px 8px;padding:8px 12px;font-size:14px}.composer{padding:8px 10px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--border)}.input-row{align-items:flex-end;gap:8px;display:flex}textarea,input[type=text]{background:var(--bg);border:1px solid var(--border);border-radius:20px;outline:none;width:100%;padding:10px 14px}textarea{resize:none;flex:1;min-height:44px;max-height:140px}textarea:focus,input[type=text]:focus{border-color:var(--accent)}.button{background:var(--accent);border:1px solid var(--accent);color:#0b1522;white-space:nowrap;border-radius:22px;min-height:44px;padding:0 18px;font-weight:600}.button.ghost{color:var(--accent);background:0 0}.button.wide{width:100%;margin-top:10px;display:block}.preview{border:1px solid var(--border);background:var(--surface-2);border-radius:14px;max-height:46vh;margin-bottom:8px;padding:8px 12px 10px;overflow-y:auto}.actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:10px;display:flex}.settings{padding:12px}.card{border:1px solid var(--border);background:var(--surface);border-radius:14px;margin-bottom:12px;padding:14px}.card h2{margin:0 0 6px;font-size:16px}.hint{color:var(--muted);margin:4px 0;font-size:14px}.hint.good{color:var(--good)}.hint.version{text-align:center;margin:12px 0;font-size:13px}.switch{align-items:center;gap:12px;min-height:44px;display:flex}.switch input{width:22px;height:22px;accent-color:var(--accent);flex:none}.field{margin-top:10px;display:block}.choice{border:0;margin:14px 0 6px;padding:0}.choice legend{color:var(--muted);margin-bottom:2px;padding:0;font-size:13px}.field span{color:var(--muted);margin-bottom:4px;font-size:13px;display:block}.field input{border-radius:12px}.pairs{grid-template-columns:1fr auto;gap:4px 12px;margin:8px 0;display:grid}.pairs dt{color:var(--muted)}.pairs dd{text-align:right;font-variant-numeric:tabular-nums;margin:0}.glossary{margin:8px 0;padding:0;list-style:none}.glossary li{border-top:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:8px;padding:8px 0;display:flex}.splash{justify-content:center;align-items:center;height:100%;padding:24px;display:flex}.splash-card{text-align:center;max-width:420px}.splash-card p{color:var(--muted);margin:10px 0}.button.mic{justify-content:center;align-items:center;width:48px;padding:0;display:flex}.input-row.recording{justify-content:space-between;align-items:center}.recording-time{font-variant-numeric:tabular-nums;align-items:center;gap:8px;font-size:18px;display:flex}.recording-dot{background:#ff5a5a;border-radius:50%;width:12px;height:12px;transition:transform .2s ease-out;animation:1.2s ease-in-out infinite recording-blink}@keyframes recording-blink{50%{opacity:.25}}.mic-problem{margin-bottom:8px}.voice{flex-wrap:wrap;align-items:center;gap:10px;min-width:200px;margin-bottom:6px;display:flex}.voice-button{background:var(--accent);color:#0b1522;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;width:40px;height:40px;padding:0;display:flex}.voice-button:disabled{opacity:.5}.voice-track{background:#ffffff38;border-radius:2px;flex:1;min-width:80px;height:4px;overflow:hidden}.voice-progress{background:var(--accent);height:100%}.voice-time{color:var(--muted);font-variant-numeric:tabular-nums;flex:none;font-size:13px}.voice-problem{flex-basis:100%}.circle{background:#00000059;border-radius:50%;width:200px;max-width:100%;height:200px;margin-bottom:6px;position:relative;overflow:hidden}.circle video{object-fit:cover;width:100%;height:100%}.circle-cover{color:#fff;font-variant-numeric:tabular-nums;text-align:center;background:#0000004d;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:13px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.circle-recorder{z-index:30;background:#0a0d11f5;flex-direction:column;justify-content:center;align-items:center;gap:20px;padding:24px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.circle-preview{border:3px solid var(--accent);object-fit:cover;background:#000;border-radius:50%;width:260px;max-width:76vw;height:260px;max-height:76vw}.circle-actions{align-items:center;gap:16px;display:flex}.circle-recorder .hint{text-align:center;margin:0}.sheet{z-index:30;background:#0000008c;align-items:flex-end;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.sheet-card{background:var(--surface);border-radius:18px 18px 0 0;width:100%;padding:16px 14px 20px}.sheet-card .button{margin-bottom:10px;padding-top:14px;padding-bottom:14px;font-size:17px}.icon-button.attach{color:var(--muted);flex:none;align-self:flex-end}.photo{background:#00000040;border-radius:12px;width:240px;max-width:100%;margin-bottom:6px;position:relative;overflow:hidden}.photo-shape{width:100%}.photo img,.photo video{object-fit:cover;width:100%;height:100%;position:absolute;top:0;left:0}.photo video{object-fit:contain;background:#000}.photo-problem{color:var(--problem);text-align:center;justify-content:center;align-items:center;padding:12px;font-size:13px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.viewer{z-index:40;touch-action:none;background:#000000f0;justify-content:center;align-items:center;display:flex;position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}.viewer img{object-fit:contain;touch-action:none;user-select:none;max-width:100%;max-height:100%}.viewer-close{color:#fff;background:#0000008c;border:0;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;padding:0;display:flex;position:absolute;top:10px;right:10px}.call{z-index:50;color:#fff;background:#000;position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}.call-remote{object-fit:cover;background:#000;width:100%;height:100%;position:absolute;top:0;left:0}.call-local{object-fit:cover;background:#111;border:1px solid #ffffff59;border-radius:12px;width:96px;height:128px;position:absolute;top:76px;right:12px}.mirror{transform:scaleX(-1)}.call-top{background:linear-gradient(#0009,#0000);padding:16px 16px 28px;position:absolute;top:0;left:0;right:0}.call-name{font-size:20px;font-weight:600}.call-status{color:#fffc;font-variant-numeric:tabular-nums;margin-top:2px}.call-bottom{background:linear-gradient(#0000,#000000b3);padding:24px 12px 20px;position:absolute;bottom:0;left:0;right:0}.call-lines{margin-bottom:14px}.call-line{text-align:center;background:#0000009e;border-radius:10px;max-width:100%;margin:0 auto 6px;padding:6px 12px;display:table}.call-line.theirs{font-size:20px;line-height:1.35}.call-line.mine{color:#ffffffb8;font-size:14px}.call-line:lang(th){line-height:1.6}.call-line.unsure,.call-history-item .text.unsure{opacity:.8;font-style:italic}.call-line.missed{color:#ffb4a8}.call-history-button{color:#fff;background:#00000080;border:1px solid #ffffff59;border-radius:999px;margin:0 auto 12px;padding:6px 14px;font-size:14px;display:block}.call-history{z-index:2;background:#000000d1;border-radius:14px;flex-direction:column;display:flex;position:absolute;top:30%;bottom:108px;left:8px;right:8px}.call-history-head{border-bottom:1px solid #ffffff26;justify-content:space-between;align-items:center;padding:10px 14px;font-weight:600;display:flex}.call-history-close{color:#9ec5ff;background:0 0;border:0;padding:4px 10px;font-size:15px}.call-history-list{overscroll-behavior:contain;text-align:left;flex:1;min-height:0;padding:10px 14px;overflow-y:auto}.call-history-empty{color:#fff9}.call-history-item{margin-bottom:12px}.call-history-item .who{color:#fff9;font-size:12px}.call-history-item .when{font-variant-numeric:tabular-nums;margin-left:4px}.call-history-item .text{font-size:17px;line-height:1.4}.call-history-item.mine .text{color:#ffffffc7}.call-history-item .other{color:#ffffff8c;margin-top:2px;font-size:13px;line-height:1.45}.call-card.with-history{box-sizing:border-box;flex-direction:column;width:100%;max-width:520px;height:100%;padding:20px 14px;display:flex}.call-history-title{text-align:left;margin:14px 0 6px;font-weight:600}.call-card.with-history .call-history-list{background:#ffffff12;border-radius:12px}.call-history-note{color:#fff9;text-align:left;margin:8px 0 12px;font-size:13px}.call-controls{justify-content:center;gap:12px;display:flex}.call-round{color:#fff;background:#fff3;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;width:56px;height:56px;padding:0;display:flex}.call-round.off{color:#111;background:#fff}.call-round.decline{background:#e5484d}.call-round.accept{background:#30a46c}.call-card-screen{background:var(--bg);justify-content:center;align-items:center;display:flex}.call-card{text-align:center;padding:24px}.call-card .call-name{font-size:28px}.call-answer{justify-content:center;gap:64px;margin-top:48px;display:flex}.call-answer .call-round{width:72px;height:72px}.call-answer-labels{color:var(--muted);justify-content:center;gap:64px;margin-top:10px;font-size:14px;display:flex}.call-answer-labels span{width:72px}.setup{border-bottom:1px solid var(--border);background:var(--surface);padding:12px 14px 6px}.setup-step{margin-bottom:10px}.setup .button{padding-top:14px;padding-bottom:14px;font-size:17px}.setup .hint{text-align:center;margin:6px 2px 0}.splash-card .button{margin-top:14px}.invite-link{border:1px solid var(--border);width:100%;color:var(--muted);font:inherit;word-break:break-all;resize:none;background:0 0;border-radius:10px;margin-top:12px;padding:10px;font-size:13px;display:block}.splash-heart{color:#e0607e;margin-bottom:8px;font-size:44px;line-height:1}.check-big{min-height:56px;font-size:18px}.check-run{text-align:center}.check-count{color:var(--muted);font-size:14px}.check-phrase{overflow-wrap:anywhere;margin:10px 0 16px;font-size:30px;font-weight:600;line-height:1.3}.check-level{background:var(--surface-2);border-radius:4px;height:8px;overflow:hidden}.check-level-bar{background:var(--accent);border-radius:4px;width:0;height:100%;transition:width 80ms linear}.check-status{overflow-wrap:anywhere;min-height:3em;margin:14px 0 4px;font-size:17px}.check-status.right{color:var(--good)}.check-status.wrong{color:var(--problem)}.check-results{margin:10px 0;padding:0;list-style:none}.check-results li{border-top:1px solid var(--border);gap:10px;padding:6px 0;display:flex}.check-results .mark{flex:none;width:1.2em;font-weight:700}.check-results .right .mark{color:var(--good)}.check-results .wrong .mark{color:var(--problem)}.check-results .asked{display:block}.check-results .heard{color:var(--muted);overflow-wrap:anywhere;font-size:14px;display:block}.update-pill{z-index:40;border:1px solid var(--accent);background:var(--surface-2);max-width:calc(100% - 24px);color:var(--text);border-radius:20px;padding:8px 16px;font-size:14px;position:fixed;top:62px;left:50%;transform:translate(-50%);box-shadow:0 4px 16px #0006}.update-pill b{color:var(--accent)}
