:root{--bg: #0F0F12;--surface: #1A1A20;--surface-2: #22222A;--surface-3: #2A2A33;--border: #2E2E38;--text: #ECECF0;--text-dim: #8A8A95;--text-faint: #5A5A65;--accent: #6B8AFE;--accent-dim: #4A5FB0;--danger: #FF6B7A;--success: #4ADE80;--bubble-out: #6B8AFE;--bubble-in: #22222A;--font: "Manrope", system-ui, -apple-system, sans-serif;--mono: "JetBrains Mono", monospace;--inset-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));--inset-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased}html,body{height:100%;width:100%;overflow:hidden}#root{display:flex;flex-direction:column;height:100dvh;max-width:480px;margin:0 auto;position:relative;overflow:hidden}@media (min-width: 600px){html,body{background:#08080b}body{padding:20px}#root{border:1px solid var(--border);border-radius:16px;box-shadow:0 20px 60px -15px #000000b3;height:calc(100dvh - 40px);background:var(--bg)}}.screen{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;background:var(--bg)}.topbar{min-height:56px;flex-shrink:0;display:flex;align-items:center;padding:0 14px;padding-top:var(--inset-top);gap:10px;border-bottom:1px solid var(--border);background:var(--bg)}.topbar .back{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;cursor:pointer;-webkit-tap-highlight-color:transparent;flex-shrink:0}.topbar .back:active{background:var(--surface-2)}.topbar .back svg{width:20px;height:20px;stroke:var(--text);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.topbar .title{font-size:17px;font-weight:700;flex:1;letter-spacing:-.01em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .actions{display:flex;gap:4px;flex-shrink:0}.bottom-nav{height:60px;flex-shrink:0;display:flex;border-top:1px solid var(--border);padding-bottom:var(--inset-bottom)}.bottom-nav .tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--text-faint);font-size:10.5px;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent}.bottom-nav .tab svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.bottom-nav .tab.active{color:var(--accent)}.btn{height:48px;border-radius:12px;border:none;font-family:var(--font);font-size:15px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;letter-spacing:-.005em;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity .15s}.btn:disabled{opacity:.5;cursor:not-allowed}.btn:not(:disabled):active{opacity:.85}.btn-primary{background:var(--accent);color:#fff}.btn-secondary{background:var(--surface);color:var(--text);border:1px solid var(--border)}.btn-danger{background:transparent;color:var(--danger);border:1px solid rgba(255,107,122,.3)}.btn-ghost{background:transparent;color:var(--text-dim)}.input{width:100%;height:48px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:0 16px;color:var(--text);font-size:16px;font-family:var(--font);outline:none;transition:border-color .15s}.input:focus{border-color:var(--accent)}.input::placeholder{color:var(--text-faint)}.input.with-prefix{padding-left:30px}.input-wrap{position:relative;width:100%}.input-prefix{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:var(--text-dim);font-weight:500;pointer-events:none;font-size:15px}.textarea{width:100%;min-height:120px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px 16px;color:var(--text);font-size:16px;font-family:var(--mono);outline:none;resize:vertical;line-height:1.7}.textarea:focus{border-color:var(--accent)}.textarea::placeholder{color:var(--text-faint);font-family:var(--font)}.splash{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;background:var(--bg)}.splash .logo{width:80px;height:80px;border-radius:22px;background:linear-gradient(135deg,var(--accent) 0%,#4A5FB0 100%);display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:800;color:#fff}.splash .name{font-size:14px;letter-spacing:.4em;text-transform:uppercase;color:var(--text-dim);font-weight:500}.onb{flex:1;display:flex;flex-direction:column;padding:24px 24px 32px;padding-top:calc(24px + var(--inset-top));background:var(--bg);overflow:hidden}.onb-header{display:flex;align-items:center;gap:10px;margin-bottom:32px;flex-shrink:0}.onb-header .back{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:50%;cursor:pointer;-webkit-tap-highlight-color:transparent}.onb-header .back:active{background:var(--surface-2)}.onb-header .back svg{width:20px;height:20px;stroke:var(--text);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.onb-content{flex:1;display:flex;flex-direction:column;gap:16px;overflow-y:auto;min-height:0}.onb-content::-webkit-scrollbar{width:0}.onb h1{font-size:26px;font-weight:800;letter-spacing:-.025em;line-height:1.2}.onb .hint{font-size:14px;color:var(--text-dim);line-height:1.55}.onb-footer{display:flex;flex-direction:column;gap:10px;padding-top:16px;flex-shrink:0}.mnemonic-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px;margin-top:8px}.mnemonic-word{display:flex;align-items:center;gap:6px;padding:6px 4px}.mnemonic-word .num{font-family:var(--mono);font-size:10px;color:var(--text-faint);min-width:16px}.mnemonic-word .word{font-size:12.5px;font-weight:500;font-family:var(--mono);color:var(--text)}.warning-card{background:#ff6b7a14;border:1px solid rgba(255,107,122,.25);border-radius:12px;padding:12px 14px;display:flex;align-items:flex-start;gap:10px;margin-top:4px}.warning-card .icon{color:var(--danger);flex-shrink:0;margin-top:2px}.warning-card .icon svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.warning-card .text{font-size:12.5px;color:var(--text);line-height:1.5}.warning-card .text strong{font-weight:600}.chats-list{flex:1;overflow-y:auto;min-height:0}.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;gap:14px;text-align:center}.empty-state .icon-wrap{width:64px;height:64px;display:flex;align-items:center;justify-content:center;background:var(--surface);border-radius:50%;color:var(--text-faint)}.empty-state .icon-wrap svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.empty-state .title{font-size:16px;font-weight:600}.empty-state .desc{font-size:13px;color:var(--text-dim);max-width:260px;line-height:1.55}.error-text{color:var(--danger);font-size:13px;margin-top:4px}.center-spinner{flex:1;display:flex;align-items:center;justify-content:center}.spinner{width:36px;height:36px;border:2.5px solid var(--surface-2);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}::-webkit-scrollbar{width:0;height:0}button,input{font-family:inherit}*{-webkit-tap-highlight-color:transparent}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}input,textarea,select{font-size:16px}html,body,#root{overscroll-behavior:none}.chats-list,.onb-content,[style*=overflow]{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.topbar,.bottom-nav,.btn,.tab,.back,.lin-chat-row{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text}.btn,.tab,.back,.lin-chat-row,button,a{touch-action:manipulation}.lin-chat-row{transition:background-color .12s ease;cursor:pointer}.lin-chat-row:active{background:var(--surface-2)}img{-webkit-user-drag:none;user-select:none}body.is-native{position:fixed;inset:0;width:100%;height:100%;padding-top:var(--inset-top, 0px);padding-bottom:var(--inset-bottom, 0px);background:#0a0a0b;overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}body.is-native input,body.is-native textarea,body.is-native [contenteditable=true],body.is-native .selectable{-webkit-user-select:text;user-select:text}body.is-native input,body.is-native textarea,body.is-native select{font-size:max(16px,1em)}body.is-native #root{height:100%;max-height:100%}body.is-native .screen{min-height:0;height:100%}body.is-native{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}
