.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.auth-card{width:100%;max-width:360px;background:var(--paper)}.stamp-mark{width:52px;height:52px;border:2px dashed var(--postal);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:22px}.auth-card h1{font-family:var(--font-display);font-weight:600;font-size:26px;margin:0 0 6px;letter-spacing:-.01em}.auth-card .lede{font-size:13.5px;color:var(--text-mute);line-height:1.5;margin:0 0 28px}.field-group{margin-bottom:16px}.field-label{font-family:var(--font-mono);font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-mute);display:block;margin-bottom:6px}.field{background:var(--cream);border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-size:14px;display:flex;align-items:center;gap:8px}.field .at{color:var(--postal);font-family:var(--font-mono);font-weight:700}.field input{border:none;outline:none;background:transparent;width:100%;font-size:14px;color:var(--text-dark)}.hint{font-size:11.5px;color:var(--text-mute);margin-top:5px;padding-left:2px;min-height:14px}.hint.ok{color:var(--accept)}.hint.err{color:var(--postal)}.primary-btn{width:100%;background:var(--postal);color:var(--text-light);text-align:center;padding:14px;border-radius:12px;font-weight:600;font-size:14px;letter-spacing:.01em;margin-top:8px;transition:opacity .15s}.primary-btn:disabled{opacity:.5;cursor:not-allowed}.ghost-link{text-align:center;font-size:12.5px;color:var(--text-mute);margin-top:16px}.ghost-link b{color:var(--postal);font-weight:600;cursor:pointer}.list-page{max-width:480px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column;position:relative}.topbar{padding:calc(14px + env(safe-area-inset-top)) 20px 14px}.topbar h1{font-family:var(--font-display);font-weight:600;font-size:28px;margin:0 0 2px;letter-spacing:-.01em}.topbar .sub{font-family:var(--font-mono);font-size:11px;color:var(--text-mute);letter-spacing:.06em}.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;text-align:center;color:var(--text-mute)}.empty-state p{font-size:13.5px;max-width:240px;line-height:1.5}.chat-list{flex:1;padding:6px 16px 90px}.chat-row{display:flex;align-items:center;gap:12px;padding:12px 8px;border-bottom:1px solid var(--line);cursor:pointer}.chat-meta{flex:1;min-width:0}.chat-meta .row1{display:flex;justify-content:space-between;align-items:baseline}.chat-meta .name{font-weight:600;font-size:15px;color:var(--text-dark)}.chat-meta .stamp{font-family:var(--font-mono);font-size:10px;color:var(--text-mute)}.chat-meta .preview{font-size:13px;color:var(--text-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px;flex:1;min-width:0}.unread-badge{background:var(--postal);color:var(--text-light);font-family:var(--font-mono);font-size:10px;min-width:18px;height:18px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 5px;margin-left:8px;flex-shrink:0}.fab{position:fixed;right:24px;bottom:28px;width:56px;height:56px;background:var(--postal);border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px #b23a2e59}.new-chat-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1e243066;display:flex;align-items:flex-end;justify-content:center;z-index:10}.new-chat-sheet{width:100%;max-width:480px;background:var(--cream);border-radius:22px 22px 0 0;padding:20px 20px 28px}.new-chat-sheet h3{font-family:var(--font-display);font-size:18px;margin:0 0 14px}.emoji-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1e243066;display:flex;align-items:flex-end;justify-content:center;z-index:20}.emoji-sheet{width:100%;max-width:480px;background:var(--cream);border-radius:22px 22px 0 0;padding:14px 16px calc(16px + env(safe-area-inset-bottom));max-height:60vh;display:flex;flex-direction:column}.emoji-sheet .handle{width:36px;height:4px;background:var(--line);border-radius:2px;margin:0 auto 12px}.emoji-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:10px;overflow-x:auto}.emoji-tabs button{font-size:18px;padding:4px 8px;border-radius:8px;flex-shrink:0}.emoji-tabs button.active{background:var(--paper-deep)}.emoji-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;overflow-y:auto;padding-bottom:8px}.emoji-grid button{font-size:24px;padding:6px 0;border-radius:8px;line-height:1}.emoji-grid button:active{background:var(--paper-deep)}.attach-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1e243066;display:flex;align-items:flex-end;justify-content:center;z-index:20}.attach-sheet{width:100%;max-width:480px;background:var(--cream);border-radius:22px 22px 0 0;padding:16px 18px calc(22px + env(safe-area-inset-bottom))}.attach-sheet .handle{width:36px;height:4px;background:var(--line);border-radius:2px;margin:0 auto 16px}.attach-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px 8px}.attach-item{display:flex;flex-direction:column;align-items:center;gap:6px}.attach-icon{width:50px;height:50px;border-radius:16px;display:flex;align-items:center;justify-content:center}.attach-item span{font-size:10.5px;color:var(--text-mute);text-align:center}.a-camera{background:var(--postal)}.a-gallery{background:#7c8fa8}.a-file{background:#8a7d63}.a-video{background:var(--ink-soft)}.media-bubble{border-radius:14px;overflow:hidden;border:1px solid var(--line);max-width:220px}.media-bubble img,.media-bubble video{width:100%;max-height:260px;object-fit:cover;display:block}.file-card{display:flex;align-items:center;gap:10px;padding:10px;background:var(--cream)}.bubble-wrap.out .file-card{background:var(--ink)}.file-icon{width:34px;height:34px;border-radius:8px;background:var(--postal);color:var(--text-light);display:flex;align-items:center;justify-content:center;flex-shrink:0}.file-info .fname{font-size:12.5px;font-weight:600;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-info .fmeta{font-family:var(--font-mono);font-size:9.5px;color:var(--text-mute)}.upload-progress{padding:8px 12px;font-size:12px;color:var(--text-mute);font-family:var(--font-mono)}.chat-page{max-width:480px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}.chat-top{padding:calc(14px + env(safe-area-inset-top)) 16px 12px;background:var(--ink);display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:5}.chat-top .back{color:var(--text-light);font-size:22px;font-family:var(--font-display);cursor:pointer;padding:0 4px}.chat-top .who .name{font-family:var(--font-display);font-weight:500;font-size:15px;color:var(--text-light)}.chat-top .who .status{font-family:var(--font-mono);font-size:9.5px;color:#a9a192}.messages{flex:1;padding:16px 14px;display:flex;flex-direction:column;gap:10px;overflow-y:auto}.bubble-wrap{display:flex;flex-direction:column;max-width:78%}.bubble-wrap.in{align-self:flex-start;align-items:flex-start}.bubble-wrap.out{align-self:flex-end;align-items:flex-end}.bubble{padding:9px 13px;border-radius:16px;font-size:14px;line-height:1.42;word-break:break-word}.bubble-wrap.in .bubble{background:var(--cream);border:1px solid var(--line);border-bottom-left-radius:4px;color:var(--text-dark)}.bubble-wrap.out .bubble{background:var(--ink);color:var(--text-light);border-bottom-right-radius:4px}.postmark{font-family:var(--font-mono);font-size:9px;color:var(--text-mute);margin-top:3px;padding:0 3px}.composer{padding:10px 12px calc(14px + env(safe-area-inset-bottom));background:var(--paper);border-top:1.5px dashed var(--line);display:flex;align-items:center;gap:8px;position:sticky;bottom:0}.composer .icon-btn{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--text-mute);flex-shrink:0}.composer .field-input{flex:1;background:var(--cream);border:1px solid var(--line);border-radius:18px;padding:10px 14px;font-size:14px;outline:none}.composer .send{width:36px;height:36px;background:var(--postal);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.composer .send:disabled{opacity:.4}.perm-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.perm-card{width:100%;max-width:340px;display:flex;flex-direction:column;align-items:center;text-align:center}.perm-icon{width:64px;height:64px;border-radius:50%;background:var(--cream);border:2px dashed var(--postal);display:flex;align-items:center;justify-content:center;margin-bottom:22px}.perm-card h2{font-family:var(--font-display);font-weight:600;font-size:21px;margin:0 0 10px;letter-spacing:-.01em}.perm-card p{font-size:13.5px;color:var(--text-mute);line-height:1.55;margin:0 0 28px;max-width:240px}.perm-btn{width:100%;background:var(--postal);color:var(--text-light);text-align:center;padding:13px;border-radius:12px;font-weight:600;font-size:13.5px;margin-bottom:10px}.perm-btn.ghost{background:transparent;color:var(--text-mute);border:1px solid var(--line)}.call-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:linear-gradient(170deg,#2b3242,#14181f);display:flex;flex-direction:column;align-items:center;padding:70px 26px 40px;color:var(--text-light)}.call-kind-label{font-family:var(--font-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#a9a192;margin-bottom:26px}.call-avatar-big{width:104px;height:104px;border-radius:50%;background:var(--ink-soft);border:2px dashed var(--postal);color:var(--text-light);font-family:var(--font-display);font-size:36px;font-weight:500;display:flex;align-items:center;justify-content:center;margin-bottom:20px}.call-name-big{font-family:var(--font-display);font-size:23px;font-weight:600;margin-bottom:6px}.call-status-line{font-size:13px;color:#b7af9c;font-family:var(--font-mono)}.call-incoming-actions{margin-top:auto;display:flex;justify-content:space-between;width:100%;padding:0 10px}.call-action-col{display:flex;flex-direction:column;align-items:center;gap:10px}.call-round-btn{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center}.call-round-btn.decline{background:var(--postal)}.call-round-btn.accept{background:var(--accept)}.call-action-col span{font-family:var(--font-mono);font-size:9.5px;color:#b7af9c;letter-spacing:.05em}.call-toolbar{margin-top:auto;display:flex;justify-content:center;gap:16px;margin-bottom:22px}.call-tool{width:48px;height:48px;border-radius:50%;background:#fbf7ec1f;display:flex;align-items:center;justify-content:center}.call-tool.on{background:var(--text-light)}.call-tool.on svg{stroke:var(--ink)}.call-end-btn{width:60px;height:60px;border-radius:50%;background:var(--postal);display:flex;align-items:center;justify-content:center}.video-call-wrap{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#14181f}.remote-video{width:100%;height:100%;object-fit:cover}.self-video{position:absolute;top:60px;right:16px;width:96px;height:136px;border-radius:14px;object-fit:cover;border:2px solid rgba(251,247,236,.5)}.video-topbar{position:absolute;top:20px;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:0 16px;color:var(--text-light)}.video-topbar .vname{font-family:var(--font-display);font-size:14px}.video-topbar .vtimer{font-family:var(--font-mono);font-size:10.5px;color:var(--postal);background:#14181f99;padding:4px 9px;border-radius:8px}.video-bottom{position:absolute;bottom:0;left:0;right:0;padding:16px 22px 30px;display:flex;justify-content:center;gap:14px;background:linear-gradient(0deg,rgba(20,24,31,.7),transparent)}.call-header-btn{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#ffffff0f}:root{--paper: #EDE6D5;--paper-deep: #E3D9C2;--ink: #1E2430;--ink-soft: #2B3242;--postal: #B23A2E;--postal-deep: #8E2C22;--cream: #FBF7EC;--text-dark: #221F18;--text-mute: #6E6553;--text-light: #F3EEE1;--line: #D8CDB2;--accept: #5C8A54;--font-display: "Fraunces", serif;--font-body: "Inter", sans-serif;--font-mono: "Space Mono", monospace}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--paper);color:var(--text-dark);font-family:var(--font-body);-webkit-font-smoothing:antialiased;overscroll-behavior:none}button{font-family:inherit;border:none;cursor:pointer;background:none;padding:0}input{font-family:inherit}a{color:inherit;text-decoration:none}
