:root{--ink:#173B30;--paper:#F5F5ED;--surface:#fff;--lime:#D9EDB0;--muted:#6B7A6E;--on-ink:#fff;--line:rgba(107,122,110,.18);--danger:#bd3a38;--scale:1;--app-height:100dvh;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',sans-serif;font-size:calc(16px * var(--scale));color:var(--ink);background:var(--paper)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--ink:#E6F1E8;--paper:#111A16;--surface:#1D2A23;--lime:#344C2D;--muted:#A8B8AB;--on-ink:#173B30;--line:rgba(168,184,171,.2);--danger:#ff9c94;color-scheme:dark}}
:root[data-theme=dark]{--ink:#E6F1E8;--paper:#111A16;--surface:#1D2A23;--lime:#344C2D;--muted:#A8B8AB;--on-ink:#173B30;--line:rgba(168,184,171,.2);--danger:#ff9c94;color-scheme:dark}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;overscroll-behavior:none}button,input,textarea,select{font:inherit;color:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0;background:none}a{color:var(--ink)}button:disabled{cursor:default;opacity:.4}.button:disabled{background:var(--line);color:var(--muted);opacity:1}.icon{width:23px;height:23px;flex-shrink:0;vertical-align:middle}.icon.chevron{width:16px;height:16px;color:var(--muted)}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0}.icon-button:active,.setting-row:active,.text-button:active{background:var(--line)}:focus-visible{outline:3px solid var(--muted);outline-offset:3px}.button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:17px 22px;border-radius:999px;background:var(--ink);color:var(--on-ink);font-weight:600;text-align:center;text-decoration:none;min-height:52px}.button.secondary{background:var(--surface);color:var(--ink)}.button.danger{background:var(--danger);color:#fff}.button:active{opacity:.75}.text-button{display:inline-flex;align-items:center;gap:5px;padding:10px 6px;text-align:left;min-height:44px}.danger-text{color:var(--danger)}h1,h2,h3,p{margin-top:0}h1{font-size:1.95rem;line-height:1.18;letter-spacing:-.6px}h2{font-size:1.5rem;line-height:1.25;letter-spacing:-.3px}h3{font-size:1.15rem}p{line-height:1.55}small,.muted{color:var(--muted)}small{font-size:.78rem}.stack{display:flex;flex-direction:column;gap:14px}.horizontal{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.spacer{flex:1}.center{text-align:center}.loading{min-height:80vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center}.spinner{display:inline-block;width:24px;height:24px;border:2px solid var(--line);border-top-color:var(--ink);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.logo{display:flex;align-items:center;gap:5px;font-size:2.35rem;font-weight:750;letter-spacing:-2px}.logo img{filter:none}.page-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:74px;padding:16px 24px;background:var(--paper);flex-shrink:0}.page-header:has(.back){padding:7px 16px;min-height:60px}.page-header:has(.back)>strong{flex:1;text-align:right;font-size:1rem}.page-tag{font-size:.63rem;letter-spacing:1.4px;font-weight:650;text-transform:uppercase;background:var(--lime);border-radius:999px;padding:10px}.app-frame{display:flex;flex-direction:column;height:var(--app-height);max-width:640px;margin:auto;padding-top:env(safe-area-inset-top);background:var(--paper)}.scroll-page{overflow-y:auto;flex:1;min-height:0;padding:0 24px 28px;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.tabs{display:flex;flex-shrink:0;padding:7px 6px calc(7px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}.tabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--muted);font-size:.67rem;position:relative;min-height:46px}.tabs button.active{color:var(--ink);font-weight:700}.badge{position:absolute;top:0;left:56%;background:var(--danger);color:#fff;font-size:.6rem;padding:2px 5px;border-radius:999px}.card{padding:24px;background:var(--surface);border-radius:28px}.card.lime{background:var(--lime)}.card h2{margin-bottom:14px}.card p:last-child{margin-bottom:0}.eyebrow{font-size:.69rem;font-weight:650;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted);margin:26px 0 14px}.avatar{display:inline-flex;align-items:center;justify-content:center;position:relative;flex-shrink:0;width:48px;height:48px;font-size:1.4rem;font-weight:500;border-radius:50%;background:var(--lime);color:var(--ink)}.avatar.large{width:64px;height:64px;font-size:1.8rem}.online{position:absolute;right:0;bottom:1px;width:12px;height:12px;border-radius:50%;background:#55b477;border:2px solid var(--surface)}.progress{width:100%;height:5px;border:0;border-radius:99px;overflow:hidden;background:var(--line)}.progress::-webkit-progress-bar{background:var(--line)}.progress::-webkit-progress-value{background:var(--ink)}.footer-note{display:flex;align-items:flex-start;gap:12px;margin-top:28px;color:var(--muted);font-size:.9rem;line-height:1.6}.setting-group{background:var(--surface);border-radius:20px;overflow:hidden}.setting-row{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:16px;min-height:54px;border-bottom:1px solid var(--line)}.setting-row:last-child{border-bottom:0}.setting-row>span{flex:1}.setting-row small{display:block;margin-top:4px}.setting-value{margin-left:auto;color:var(--muted);max-width:60%;text-align:right}.setting-label{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}.setting-label span{flex:1}.setting-label select{max-width:55%;padding:6px 22px 6px 6px;background:transparent;border:0;text-align:right}.setting-label input[type=range]{max-width:140px}.switch{appearance:none;-webkit-appearance:none;width:48px;height:28px;background:var(--line);border-radius:20px;position:relative;flex-shrink:0}.switch:before{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;background:white;border-radius:50%;transition:transform .18s}.switch:checked{background:#66834d}.switch:checked:before{transform:translateX(20px)}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}.field>span{font-size:.8rem;color:var(--muted)}input:not([type=checkbox],[type=range]),textarea,select{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:15px;min-height:52px;font-size:max(16px,1rem)}textarea{resize:vertical;min-height:110px}input[type=date]{min-width:0;-webkit-appearance:none;appearance:none;text-align:left}input[type=range]{accent-color:var(--ink);min-height:32px;width:100%;padding:0}input[type=checkbox]{accent-color:var(--ink);width:21px;height:21px;flex-shrink:0}.field select:disabled{opacity:.45}.dual-range{position:relative;height:42px;margin:6px 0}.dual-range input{position:absolute;top:0;left:0;pointer-events:none;appearance:none;-webkit-appearance:none;background:none}.dual-range input::-webkit-slider-thumb{pointer-events:auto;-webkit-appearance:none;width:25px;height:25px;border-radius:50%;background:var(--ink);border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line)}.dual-range input::-moz-range-thumb{pointer-events:auto;background:var(--ink)}.dual-track{position:absolute;left:0;right:0;top:14px;height:5px;border-radius:5px;background:var(--line)}.dual-fill{height:100%;background:var(--ink);border-radius:5px}.consent{display:flex;align-items:flex-start;gap:10px;font-size:.82rem;line-height:1.4;margin-bottom:18px}.auth-page{max-width:480px;margin:auto;display:flex;flex-direction:column;min-height:var(--app-height);padding-top:env(safe-area-inset-top)}.auth-content{padding:24px;overflow:auto;flex:1}.welcome-hero{padding:28px 0 20px}.welcome-mark{display:block;width:100px;height:100px;margin:25px auto 28px}.welcome-head{text-align:center;font-size:3.1rem;font-weight:750;letter-spacing:-2px}.install-page{max-width:540px;margin:auto;padding:calc(22px + env(safe-area-inset-top)) 24px 35px}.install-page .steps{list-style:none;padding:0;counter-reset:step}.steps li{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--line);line-height:1.5}.steps li:before{counter-increment:step;content:counter(step);display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--lime);flex-shrink:0;font-weight:700}.install-preview{padding:28px;border-radius:28px;background:var(--lime);margin:28px 0}.app-icon{width:78px;height:78px;border-radius:20px}.notice{display:flex;align-items:flex-start;gap:10px;font-size:.8rem;line-height:1.5;color:var(--muted);padding:16px 0}.notice .icon{width:18px;height:18px;margin-top:2px}.onboarding-head{display:flex;align-items:center;gap:10px;padding:14px 20px;background:var(--surface);flex-shrink:0}.onboarding-head strong{display:block}.onboarding-head small{display:block}.account-chip{background:var(--lime);border-radius:999px;padding:9px 12px;font-size:.72rem;font-weight:600;white-space:nowrap}.messages{overflow-y:auto;flex:1;min-height:0;padding:14px 18px 24px;scroll-behavior:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.message-row{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:14px 0;position:relative;padding-bottom:3px}.message-row.mine{align-items:flex-end}.bubble{max-width:82%;background:var(--surface);border-radius:21px;padding:15px 18px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;position:relative;text-align:left;user-select:text;-webkit-user-select:text}.mine>.bubble{background:var(--ink);color:var(--on-ink)}.message-time{font-size:.67rem;color:var(--muted);padding:0 4px}.message-photo{max-width:100%;max-height:360px;display:block;border-radius:14px;object-fit:contain;min-height:140px;background:var(--line)}.photo-bubble{padding:5px;min-width:180px}.reaction-badge{position:absolute;right:7px;bottom:-12px;border-radius:99px;background:var(--lime);color:var(--ink);padding:2px 6px;font-size:.92rem;box-shadow:0 1px 3px var(--line);border:2px solid var(--paper);white-space:nowrap}.has-reactions{margin-bottom:24px}.reply-preview{font-size:.74rem;border-left:3px solid currentColor;opacity:.8;padding:5px 9px;margin-bottom:10px;white-space:normal;max-height:65px;overflow:hidden}.composer{display:flex;align-items:flex-end;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--surface);flex-shrink:0;border-top:1px solid var(--line)}.composer textarea{min-height:45px;max-height:140px;resize:none;border:1.5px solid var(--ink);border-radius:24px;padding:11px 16px;margin:0;background:var(--paper);line-height:1.35}.send{border-radius:50%;width:44px;height:44px;background:var(--ink);color:var(--on-ink)}.send:disabled{background:var(--line);color:var(--muted);opacity:1}.chat-header{display:flex;align-items:center;gap:10px;padding:9px 12px;background:var(--surface);flex-shrink:0}.chat-header .identity{flex:1;min-width:0;text-align:left}.identity strong{display:block;font-size:1rem}.identity small{display:block;margin-top:3px}.location{display:flex;gap:3px;align-items:center}.location .icon{width:16px;height:16px}.chat-header .avatar{width:42px;height:42px}.banner{padding:10px 16px;display:flex;align-items:center;gap:10px;background:var(--lime);font-size:.78rem;flex-shrink:0}.banner .content{flex:1;overflow:hidden}.banner p{margin:3px 0 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.conversation{display:flex;gap:14px;padding:18px 0;border-bottom:1px solid var(--line);width:100%;text-align:left;align-items:center}.conversation .preview{flex:1;min-width:0}.conversation strong{display:block;margin-bottom:5px}.conversation p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.86rem;color:var(--muted)}.conversation .meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.unread{font-size:.69rem;font-weight:650;border-radius:999px;background:var(--ink);color:var(--on-ink);padding:4px 7px}.starter-card{background:var(--lime);border-radius:24px;padding:22px;margin:20px 0}.starter-card h3{margin-bottom:12px}.choice-button{display:flex;align-items:center;gap:12px;text-align:left;padding:15px 16px;border-radius:17px;background:var(--surface);width:100%;margin:8px 0;line-height:1.4}.choice-button.selected{background:var(--lime);outline:1px solid var(--ink)}.circle-check{width:21px;height:21px;border:1.5px solid var(--ink);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.circle-check .icon{width:13px;height:13px}.selected .circle-check{background:var(--ink);color:var(--on-ink)}.priority-wrap{height:220px;position:relative}.priority-list{height:100%;overflow:auto;padding-right:42px;scrollbar-width:none}.priority-list::-webkit-scrollbar{display:none}.priority-list .choice-button{background:transparent;padding:9px 0;margin:3px 0}.priority-arrow{position:absolute;right:0;width:36px;height:36px;border-radius:50%;background:var(--lime);display:flex;align-items:center;justify-content:center}.priority-arrow.up{top:0}.priority-arrow.down{bottom:0}.priority-arrow .icon{width:16px;height:16px}.question-input{background:var(--surface);padding:14px 18px calc(14px + env(safe-area-inset-bottom));flex-shrink:0;max-height:55%;overflow-y:auto;border-top:1px solid var(--line)}.question-input .field{margin:0 0 12px}.question-input .skip{display:block;text-align:center;margin:7px auto}.question-input .undo{font-size:.75rem;display:flex;justify-content:center;margin:auto}.sheet{border:0;border-radius:28px 28px 0 0;padding:0;width:100%;max-width:640px;max-height:88dvh;margin:auto auto 0;background:var(--paper);color:var(--ink);box-shadow:0 -10px 80px #0002;overflow:hidden}.sheet::backdrop{background:#0006}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;border-bottom:1px solid var(--line);background:var(--paper)}.sheet-header h2{font-size:1.15rem;margin:0}.sheet-body{padding:22px;max-height:calc(88dvh - 78px);overflow-y:auto;padding-bottom:calc(22px + env(safe-area-inset-bottom))}.sheet-body .setting-group{margin-bottom:10px}.emojis{display:flex;align-items:center;justify-content:space-between;gap:3px;margin-bottom:16px}.emojis button{border-radius:50%;height:44px;width:44px;font-size:1.55rem;padding:0}.emojis button.selected{background:var(--lime);box-shadow:inset 0 0 0 1px var(--ink)}.emoji-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;max-height:50vh;overflow:auto}.emoji-grid button{font-size:1.6rem;padding:5px}.photo-sheet{border-radius:0;max-width:100%;width:100%;height:100dvh;max-height:100dvh;background:#111;color:white}.photo-sheet .sheet-header{background:#111;color:white}.photo-sheet .sheet-body{height:calc(100dvh - 80px);max-height:none;display:flex;align-items:center;justify-content:center;padding:10px}.photo-sheet img{max-width:100%;max-height:100%;object-fit:contain}.error{color:var(--danger);font-size:.85rem;line-height:1.5;white-space:pre-wrap}.helper-idea{padding:22px;border-radius:24px;background:var(--surface);margin-bottom:14px}.helper-idea blockquote{margin:14px 0;line-height:1.5}.helper-idea small{display:block;line-height:1.5;margin-bottom:12px}.pull-refresh{height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:10px;transition:height .15s;color:var(--muted);font-size:.8rem}.lock-note{display:flex;align-items:center;gap:5px;font-size:.7rem;color:var(--muted);margin-top:5px}.lock-note .icon{width:12px;height:12px}#toast{position:fixed;left:50%;bottom:calc(85px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:90%;padding:13px 20px;background:var(--ink);color:var(--on-ink);border-radius:20px;font-size:.8rem;z-index:50;text-align:center;box-shadow:0 3px 25px #0003}.history-row{display:flex;align-items:flex-start;gap:14px;border-bottom:1px solid var(--line);padding:18px 0;width:100%;text-align:left}.history-row span{flex:1}.history-row small{display:block;margin-top:6px}.version{text-align:center;font-size:.75rem;color:var(--muted);padding:22px}.fade-in{animation:fade .2s}@keyframes fade{from{opacity:.5}to{opacity:1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(min-width:700px){.app-frame{border-left:1px solid var(--line);border-right:1px solid var(--line)}.sheet{margin:auto;border-radius:28px;max-height:85vh}.sheet-body{max-height:calc(85vh - 78px)}}

[hidden]{display:none!important}.bubble{-webkit-touch-callout:none}.history-row[tabindex="-1"]{cursor:default}.onboarding-head .icon{width:20px;height:20px}.location{display:flex!important;gap:3px!important}.photo-sheet .sheet-header{padding-top:calc(16px + env(safe-area-inset-top))}

.setting-label input.switch{width:48px;height:28px;min-width:48px;margin:0}.chat-header>.icon-button:last-child{width:40px}.sheet-header .icon-button{outline:none}.bubble .reply-preview{display:block;max-width:100%}.install-page>.horizontal .field{max-width:135px;margin-bottom:0}.install-page>.horizontal select{padding:10px}.question-input>.choice-button{margin:6px 0;padding:12px 15px}
:root[data-theme=dark] .logo img{filter:brightness(0) invert(.9)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .logo img{filter:brightness(0) invert(.9)}}

.update-banner{position:fixed;top:calc(env(safe-area-inset-top) + 8px);left:50%;transform:translateX(-50%);z-index:100;max-width:90%;box-shadow:0 3px 14px #0003;border-radius:24px;background:var(--paper)}.update-banner .button{white-space:nowrap;margin:0}

/* The installed welcome screen follows the preserved SwiftUI WelcomeView. */
.reli-avatar{border-radius:50%;background:var(--lime);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.native-mark{display:block;width:72%;height:72%;background:var(--ink);mask:url('./reli-mark.png') center/contain no-repeat;-webkit-mask:url('./reli-mark.png') center/contain no-repeat}.welcome-header{display:flex;align-items:center;gap:12px;padding:16px;background:var(--surface);flex-shrink:0}.welcome-brand{flex:1;min-width:0}.welcome-brand strong{display:block;font-size:1.125rem;line-height:1.2;font-weight:700}.welcome-brand small{display:block;margin-top:3px;font-size:.75rem;line-height:1.2;white-space:normal}.welcome-sparkles{color:var(--muted)}.welcome-sparkles .icon{width:20px;height:20px}.welcome-language{position:relative;display:inline-flex;align-items:center;gap:4px;font-size:.75rem;color:var(--ink);flex-shrink:0}.welcome-language>.icon{width:14px;height:14px}.welcome-language select{position:absolute;inset:-14px -6px;opacity:0;min-height:44px;width:calc(100% + 12px);cursor:pointer}.welcome-scroll{overflow-y:auto;flex:1;min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.welcome-body{display:flex;flex-direction:column;gap:16px;padding-bottom:calc(29px + env(safe-area-inset-bottom))}.welcome-eyebrow{text-align:center;letter-spacing:2px;font-size:.625rem;font-weight:600;color:var(--muted);margin:24px 12px 0;line-height:1.2}.native-welcome-hero{display:flex;align-items:center;flex-direction:column;gap:16px;padding:25px}.native-welcome-hero h1{font-family:ui-rounded,'SF Pro Rounded',-apple-system,BlinkMacSystemFont,sans-serif;font-size:1.9375rem;font-weight:600;line-height:1.18;letter-spacing:0;text-align:center;margin:0}.native-welcome-hero p{font-size:.9375rem;color:var(--muted);text-align:center;line-height:1.2;margin:0}.intro-message{display:flex;margin:0 18px;padding-right:25px}.intro-message.mine{justify-content:flex-end;padding-right:0;padding-left:35px}.intro-message .bubble{max-width:100%;font-size:1rem;padding:16px;line-height:1.5;letter-spacing:0}.intro-message.mine>.bubble{background:var(--ink);color:var(--on-ink)}.welcome-actions{padding:0 24px;display:flex;flex-direction:column;gap:16px;align-items:center}.welcome-login{font-size:.9375rem;font-weight:600;padding:8px 0;line-height:1.2}.welcome-typing{display:flex;align-items:center;gap:8px;padding:0 24px;font-size:.75rem;color:var(--muted)}.welcome-typing .spinner{width:20px;height:20px}.welcome-consent{margin:18px;padding:24px;border-radius:24px;background:var(--surface);display:flex;flex-direction:column;gap:18px;font-size:.9375rem;line-height:1.35}.welcome-consent>a{font-size:1.0625rem;font-weight:600;text-decoration:none}.welcome-consent>label{display:flex;align-items:center;gap:12px}.welcome-consent>label>span{flex:1}.welcome-consent .switch{width:51px;height:31px;margin:0}.welcome-consent .switch:before{width:25px;height:25px}.welcome-consent .switch:checked:before{transform:translateX(20px)}.welcome-consent>p{font-size:.75rem;color:var(--muted);margin:0;line-height:1.4}.welcome-decline{width:100%;color:var(--muted);padding:8px}.native-auth-hero{margin:26px 0;display:flex;align-items:flex-start;flex-direction:column;gap:12px}.native-auth-icon{display:flex;align-items:center;justify-content:center;width:70px;height:70px;border-radius:23px;background:var(--lime)}.native-auth-icon .icon{width:30px;height:30px}.native-auth-hero h1{font-family:ui-rounded,'SF Pro Rounded',-apple-system,sans-serif;font-size:2.25rem;font-weight:600;margin:0}.native-auth-hero p{font-size:1rem;color:var(--muted);white-space:pre-line;margin:0}.native-auth-form{display:flex;flex-direction:column;gap:26px}.native-auth-card{padding:22px;border-radius:26px;background:var(--surface)}.native-auth-field{display:block;margin-bottom:20px}.native-auth-field>span{font-size:.9375rem;font-weight:600;display:block;margin-bottom:8px}.native-auth-field>div{display:flex;align-items:center;gap:12px;padding:16px;border-radius:15px;background:var(--paper)}.native-auth-field .icon{color:var(--muted);width:20px;height:20px}.native-auth-field input{padding:0;min-height:22px;border:0;background:transparent;border-radius:0;min-width:0;flex:1}.password-visibility{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;flex-shrink:0}.auth-hint{font-size:.75rem;color:var(--muted);margin-top:-12px}.native-auth-footer{display:flex;align-items:center;justify-content:center;gap:8px;font-size:.75rem;color:var(--muted);margin:26px 0 6px}.native-auth-footer .icon{width:14px;height:14px}

.welcome-page{position:relative}.welcome-page:before{content:'';position:absolute;top:0;left:0;right:0;height:env(safe-area-inset-top);background:var(--surface)}.intro-message .bubble{line-height:1.25}.startup-logo{font-size:64px;letter-spacing:-1.7px;gap:5px}.startup-logo .native-mark{width:70px;height:70px}.startup-loading{gap:18px}.startup-loading p{margin:0;color:var(--muted)}

.welcome-language{padding:14px 6px;margin:-14px -6px;min-height:44px;overflow:hidden;border-radius:14px}.welcome-language select{inset:0;width:100%;height:100%;min-height:0}

/* Illustrated installation instructions; Safari reference is an actual capture. */
.install-step{min-width:0;flex:1}.install-step>p{margin:0}.install-guide{margin:16px 0 0;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--surface)}.install-guide figcaption{padding:12px 14px;font-size:.75rem;line-height:1.4;color:var(--muted)}.safari-toolbar-crop{position:relative;aspect-ratio:390/100;overflow:hidden;background:#f5f5ed}.safari-toolbar-crop>img{position:absolute;bottom:0;left:0;width:100%;height:auto;max-width:none}.toolbar-highlight{position:absolute;left:29.5%;top:42%;width:12%;aspect-ratio:1;transform:translate(-50%,-50%);border:3px solid #c24535;border-radius:50%;box-shadow:0 0 0 2px #fff}.guide-share{display:flex;align-items:center;gap:10px;padding:14px;border-top:1px solid var(--line);font-size:.9375rem}.guide-share>.icon{flex-shrink:0}.guide-share>span{margin-left:auto;font-size:.75rem;color:var(--muted)}.guide-example{padding:16px;font-size:.875rem}.guide-home-action{display:flex;align-items:center;gap:10px;padding:14px 12px;border:2px solid var(--ink);border-radius:14px;background:var(--paper);line-height:1.35}.guide-home-action>.icon{flex-shrink:0}.guide-next{display:flex;justify-content:center;padding:12px;color:var(--muted)}.guide-add-sheet{border:1px solid var(--line);border-radius:16px;background:var(--paper);padding:14px}.guide-sheet-header{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.8125rem}.guide-sheet-header>span{color:var(--muted)}.guide-sheet-header>strong{border:2px solid var(--ink);border-radius:18px;background:var(--lime);color:var(--ink);padding:6px 10px}.guide-app{display:flex;align-items:center;gap:12px;margin:18px 0}.guide-app>img{border-radius:10px}.guide-web-app{display:flex;gap:12px;align-items:center;font-size:.75rem;line-height:1.35}.guide-web-app>span{flex:1}.guide-web-app>i{width:40px;height:24px;flex-shrink:0;border-radius:20px;background:#34a65c;position:relative}.guide-web-app>i:after{content:"";position:absolute;right:3px;top:3px;width:18px;height:18px;border-radius:50%;background:white}

.welcome-start{min-height:100%;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.welcome-start>.welcome-version{margin:auto 0 0;padding:0 22px}.install-simple .install-preview h1{margin:20px 0 16px}.install-simple .install-preview .button{margin-top:24px}.install-caption{text-align:center;color:var(--muted);font-size:.75rem;line-height:1.5;margin:18px 0}.install-path{display:flex;align-items:center;gap:10px;background:var(--paper);padding:18px 12px;border-radius:20px}.install-path>div{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;flex:1;min-width:0;font-size:.875rem;line-height:1.35}.install-path>div>.icon{width:28px;height:28px}.install-more{border-top:1px solid var(--line);padding-top:16px}.install-more summary{cursor:pointer;font-weight:600;font-size:.875rem;padding:8px 0}.install-more>p{margin:12px 0;font-size:.875rem}.install-more .safari-toolbar-crop{border-radius:16px}.install-quick>.notice{margin:20px 0}.install-simple>.text-button{margin-top:12px}

/* Installed iPhone/iPad app: allow scrolling, suppress page pinch/double-tap zoom. */
html.installed-app,html.installed-app body{touch-action:pan-x pan-y}

/* Keep the document in normal layout: fixed body + iOS keyboard can leave a large blank pane. */
html.installed-app{height:100%;overflow:hidden;overscroll-behavior:none}
html.installed-app body{position:relative;height:100%;overflow:hidden;overscroll-behavior:none}
html.installed-app #app{position:absolute;top:var(--app-top,0px);left:0;right:0;height:var(--app-height);overflow:hidden}
html.installed-app .auth-page{height:var(--app-height);min-height:0;overflow:hidden}
html.installed-app .auth-content{min-height:0;-webkit-overflow-scrolling:touch}
html.installed-app :is(.welcome-scroll,.scroll-page,.auth-content,.messages,.priority-list,.question-input,.sheet-body,.emoji-grid){overscroll-behavior:none}
/* Keep the field's own design when editing, without the outer browser focus frame. */
input:focus,textarea:focus,select:focus{outline:none;outline-width:0;outline-offset:0;box-shadow:none}

.pin-unlock{max-width:330px;margin:auto;text-align:center}.pin-unlock h1{margin:18px 0 8px}.pin-dots{display:flex;justify-content:center;gap:20px;margin:28px 0}.pin-dots span{width:17px;height:17px;border:2px solid var(--ink);border-radius:50%}.pin-dots span.filled{background:var(--ink)}.pin-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.pin-keypad button{height:64px;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--ink);font-size:26px;font-weight:500}.pin-keypad button:disabled{opacity:.4}.pin-unlock .error{font-size:14px}.pin-unlock>.text-button{margin-bottom:14px}

/* Pending text uses the same bubble on both clients. */
.outgoing-content{display:flex;align-items:center;justify-content:flex-end;gap:8px;max-width:100%}.outgoing-bubble{opacity:.55;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.outgoing-spinner{flex:0 0 18px;width:18px;height:18px;border:2px solid #d49a2433;border-top-color:#d49a24;border-radius:50%;animation:outgoing-spin .9s linear infinite}.outgoing-failed{flex:0 0 24px;width:24px;height:24px;border:2px solid #d64444;border-radius:50%;color:#d64444;background:transparent;font-weight:700;padding:0}.outgoing-delete{background:transparent;border:0;color:var(--muted);padding:4px;width:28px;height:28px}.outgoing-delete svg{width:18px;height:18px}@keyframes outgoing-spin{to{transform:rotate(360deg)}}

.outgoing-content{position:relative;margin-right:26px;max-width:calc(100% - 26px);display:block}.outgoing-spinner,.outgoing-failed{position:absolute;left:calc(100% + 6px);bottom:0}.outgoing-bubble{cursor:default}.outgoing-failed{width:20px;height:20px;font-size:14px}.outgoing-spinner{width:18px;height:18px}
.page-chat .outgoing-content{width:fit-content;max-width:calc(100% - 51px)}.page-chat .message-row.mine .outgoing-bubble{background:var(--ink);color:var(--on-ink);padding:10px 14px;line-height:1.35;border-radius:18px;max-width:none;width:auto}
