
:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#182632;background:#e9eef3;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{border:0;background:none;color:inherit;cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #3295d8;outline-offset:2px}button:hover{filter:brightness(.96)}.stage{min-height:100dvh;display:flex;align-items:center;justify-content:center;gap:72px;padding:30px}.guide{max-width:280px}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700}.brandmark{width:37px;height:37px;background:#3396d2;color:white;border-radius:12px;display:grid;place-items:center;font-size:24px}.guide h1{font-size:32px;line-height:1.15;font-weight:650;letter-spacing:-1px;margin:28px 0 16px}.guide p{color:#728294;font-size:14px;line-height:1.7}.desktopbadge{font-size:10px;letter-spacing:1.8px;font-weight:600;color:#8c9aa8;margin:25px 0 12px}.sizes{display:flex;background:#dce4ec;padding:4px;border-radius:9px;gap:4px}.sizes button{font-size:12px;padding:9px 11px;flex:1;border-radius:6px;color:#718193}.sizes button.active{background:white;color:#283f50;box-shadow:0 2px 5px #263a4010}.guide .hint{font-size:12px;color:#8d9aa6;margin-top:30px}.guide .reset{margin-top:13px;padding:0;color:#6d8aa2;font-size:12px}.phone{--surface:#fff;--paper:#f0f2f5;--text:#182632;--sub:#8a939d;--border:#e8ecf0;--accent:#2794d3;--out:#e2ffc9;--wall:#dce6d7;--msg:#fff;color:var(--text);width:390px;height:min(844px,calc(100dvh - 60px));min-height:570px;flex-shrink:0;background:var(--surface);border:8px solid #222a32;box-shadow:0 24px 65px #172d4c24,0 2px 4px #172d4c33;border-radius:49px;overflow:hidden;display:flex;flex-direction:column;position:relative;font-size:15px;isolation:isolate}.phone.dark{--surface:#202c3a;--paper:#17212b;--text:#e8eff5;--sub:#8d9cab;--border:#2c3947;--accent:#61b2e1;--out:#365e46;--wall:#182731;--msg:#263a48}.statusbar{height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:4px 25px 0;font-size:13px;font-weight:600;background:var(--surface);z-index:3}.island{background:#151c22;width:94px;height:25px;border-radius:20px;position:absolute;left:50%;top:7px;transform:translateX(-50%)}.sys{display:flex;align-items:center;gap:5px}.battery{border:1px solid currentColor;border-radius:3px;width:23px;height:11px;padding:1.5px;position:relative}.battery:before{content:'';display:block;background:currentColor;height:100%;border-radius:1px;width:85%}.battery:after{content:'';width:2px;height:5px;background:currentColor;position:absolute;right:-4px;top:2px}.screen{flex:1;min-height:0;display:flex;flex-direction:column;position:relative;overflow:hidden}.header{padding:10px 18px 12px;background:var(--surface);flex-shrink:0}.titleline{display:flex;align-items:center;justify-content:space-between;height:34px}.titleline h2{font-size:27px;letter-spacing:-.6px;margin:0;font-weight:700}.link{color:var(--accent);font-size:14px;padding:0}.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.search{background:var(--paper);border-radius:11px;display:flex;align-items:center;padding:8px 12px;gap:7px;margin-top:14px;color:var(--sub)}.search .icon{width:17px;height:17px}.search input{width:100%;background:none;border:0;outline:none;font-size:14px;color:var(--text)}.scroll{overflow:auto;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#b9c6d355 transparent}.chatlist{background:var(--surface)}.chatrow{display:flex;width:100%;align-items:center;text-align:left;gap:12px;padding:13px 17px 0;position:relative}.avatar{width:55px;height:55px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:20px;overflow:hidden;color:white;font-weight:500;background:linear-gradient(140deg,#9cc5e7,#4b8ebc);position:relative}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.agent{background:linear-gradient(145deg,#77c4ee,#298dd2)}.avatar.agent .icon{width:30px;height:30px;stroke-width:1.6}.avatar.lilac{background:linear-gradient(145deg,#c3a5e8,#8e79c6)}.avatar.orange{background:linear-gradient(145deg,#edb883,#d99056)}.avatar.green{background:linear-gradient(145deg,#9fceaa,#63a885)}.avatar.large{width:88px;height:88px;font-size:30px;margin:auto}.chatinfo{min-width:0;flex:1;padding:3px 0 15px;border-bottom:1px solid var(--border)}.rowtop{display:flex;justify-content:space-between;gap:7px;align-items:center;margin-bottom:6px}.chatname{font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai{font-size:9px;color:var(--accent);background:#359be71a;padding:2px 4px;border-radius:4px;margin-left:4px;vertical-align:2px}.time{color:var(--sub);font-size:11px;flex-shrink:0}.preview{font-size:13px;line-height:1.4;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:25px}.unread{position:absolute;right:18px;bottom:20px;background:var(--accent);color:#fff;min-width:19px;height:19px;border-radius:20px;display:grid;place-items:center;font-size:11px;padding:0 5px}.pin{position:absolute;right:19px;bottom:20px;color:#adb5bd;font-size:12px}.sectionnote{font-size:11px;color:var(--sub);line-height:1.6;padding:17px 25px;text-align:center}.tabs{height:73px;border-top:1px solid var(--border);background:var(--surface);display:flex;flex-shrink:0;padding-bottom:12px;z-index:3}.tab{flex:1;color:#9ca5ad;font-size:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.tab .icon{width:25px;height:25px}.tab.active{color:var(--accent)}.homebar{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);background:var(--text);width:115px;height:4px;border-radius:5px;opacity:.85;z-index:8}.settings{background:var(--paper)}.profilecard{padding:15px 18px 24px;text-align:center;background:var(--surface)}.profilecard h3{font-size:21px;margin:13px 0 4px}.profilecard p{color:var(--sub);font-size:13px;margin:0}.photoedit{color:var(--accent);font-size:13px;margin-top:12px}.group{margin:22px 14px 0;border-radius:12px;background:var(--surface);overflow:hidden}.group .setting:last-child:after{display:none}.setting{width:100%;display:flex;align-items:center;gap:11px;padding:12px 13px;position:relative;min-height:48px;text-align:left}.setting:after{content:'';position:absolute;bottom:0;left:52px;right:0;height:1px;background:var(--border)}.settinglabel{flex:1;font-size:14px}.settingvalue{color:var(--sub);font-size:12px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chevron{color:#b0b9c0;font-size:19px;margin-left:1px}.settingicon{height:27px;width:27px;border-radius:7px;display:grid;place-items:center;color:white;flex-shrink:0}.settingicon .icon{width:18px;height:18px}.groupnote{font-size:11px;line-height:1.6;color:var(--sub);padding:9px 25px 0}.toggle{width:42px;height:25px;border-radius:20px;background:#cfd7de;position:relative;flex-shrink:0;padding:0}.toggle:after{content:'';width:21px;height:21px;border-radius:50%;background:white;position:absolute;left:2px;top:2px;box-shadow:0 1px 3px #0002;transition:transform .2s}.toggle.on{background:#44b86b}.toggle.on:after{transform:translateX(17px)}.conversation{background:var(--wall);position:relative}.conversation:before{content:'';position:absolute;inset:0;opacity:.14;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' fill='none' stroke='%23889981' stroke-width='1.1'%3E%3Cpath d='m12 12 5-3 5 3v6l-5 3-5-3zM60 55l5 4-5 4-5-4zM43 15q10 5 0 10q-10-5 0-10M20 65q12-4 16 9M70 20l7 6m-7 0 7-6'/%3E%3C/svg%3E")}.convheader{display:flex;align-items:center;background:var(--surface);padding:8px 12px 10px;gap:10px;z-index:1;border-bottom:1px solid var(--border);flex-shrink:0}.back{color:var(--accent);padding:4px 2px}.convheader .avatar{height:37px;width:37px;font-size:14px}.convheader .avatar .icon{width:23px}.convtitle{flex:1}.convtitle b{font-size:14px;font-weight:600}.convtitle small{display:block;color:var(--sub);font-size:11px;margin-top:3px}.messages{padding:16px 12px;z-index:1}.datediv{text-align:center;font-size:10px;margin:0 0 18px}.datediv span{background:#77916b66;color:white;padding:4px 10px;border-radius:15px}.bubble{max-width:87%;width:fit-content;background:var(--msg);padding:10px 12px 7px;border-radius:14px 14px 14px 4px;margin:8px 0;box-shadow:0 1px 1px #0000000c;font-size:var(--messagesize,14px);line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.me{margin-left:auto;background:var(--out);border-radius:14px 14px 4px 14px}.bubble .msgtime{display:block;text-align:right;color:#8a9c8c;font-size:9px;margin-top:3px}.matchoffer{background:var(--msg);border-radius:14px;padding:13px;margin:12px 0;max-width:90%;box-shadow:0 1px 1px #0001}.offerlabel{color:var(--accent);font-size:10px;font-weight:600;margin-bottom:10px}.offerperson{display:flex;gap:9px;align-items:center;font-size:13px}.offerperson .avatar{width:35px;height:35px;font-size:13px}.offerperson small{display:block;font-size:11px;color:var(--sub);margin-top:3px}.matchoffer p{font-size:12px;line-height:1.5;margin:10px 0;color:var(--sub)}.offeractions{display:flex;gap:7px}.bluebutton{background:var(--accent);color:white;padding:10px 12px;border-radius:9px;font-size:12px;flex:1}.mutebutton{padding:9px;background:var(--paper);border-radius:9px;color:var(--sub);font-size:12px}.composer{display:flex;gap:8px;padding:8px 10px 17px;background:var(--surface);align-items:flex-end;z-index:2;flex-shrink:0}.composer textarea{border:0;background:var(--paper);border-radius:18px;resize:none;flex:1;min-width:0;height:37px;max-height:90px;padding:9px 13px;outline:none;color:var(--text);font-size:14px}.send{width:36px;height:36px;background:var(--accent);color:white;border-radius:50%;display:grid;place-items:center}.send .icon{height:19px;width:19px}.demochip{font-size:9px;color:var(--sub);text-align:center;padding:7px 12px;background:var(--surface);z-index:1}.overlay{position:absolute;inset:0;background:#0005;z-index:10;display:flex;align-items:flex-end}.sheet{background:var(--paper);width:100%;padding:18px 18px 30px;border-radius:22px 22px 0 0;max-height:90%;overflow:auto;box-shadow:0 -4px 40px #0002}.sheettop{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.sheettop h3{margin:0;font-size:18px}.sheet p{font-size:12px;color:var(--sub);line-height:1.6}.sheet label{display:block;font-size:12px;color:var(--sub);margin:14px 0 6px}.field{background:var(--surface);color:var(--text);border:1px solid var(--border);padding:12px;border-radius:9px;width:100%;outline:none}.sheet .bluebutton{width:100%;font-size:14px;margin-top:17px;padding:13px}.sheet .setting{padding:12px 0}.sheet .setting:after{left:0}.delete{color:#e46060}.toast{position:absolute;left:17px;right:17px;bottom:90px;z-index:30;background:#283d50ee;color:white;border-radius:12px;padding:13px;text-align:center;font-size:12px;line-height:1.4;box-shadow:0 5px 25px #0002}.hidden{display:none!important}.empty{padding:45px 25px;text-align:center;color:var(--sub);font-size:13px}.range{width:100%;accent-color:var(--accent)}.detailhead{display:flex;align-items:center;gap:10px;padding:14px 12px;background:var(--surface);border-bottom:1px solid var(--border)}.detailhead h2{font-size:17px;margin:0}.editavatar{position:relative;width:88px;margin:auto}.camera{position:absolute;bottom:0;right:0;width:28px;height:28px;background:var(--accent);border:3px solid var(--surface);border-radius:50%;color:white;display:grid;place-items:center}.camera .icon{width:13px;height:13px}.demoicon{padding:3px 6px;background:var(--paper);border-radius:5px;color:var(--sub);font-size:9px}.typing{color:var(--sub);font-size:11px;padding:8px 5px}.statusbar .icon{width:15px;height:15px}
@media(max-width:780px){.guide{display:none}.stage{padding:15px}.phone{height:calc(100dvh - 30px)}}@media(max-width:450px){body{background:white}.stage{padding:0;display:block}.phone{width:100%!important;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none}.statusbar{padding-top:7px;height:42px}.island{display:none}.homebar{bottom:5px}}

html,body,.stage,.phone{height:100%;width:100%}
body,.stage{overflow:hidden}
.stage{display:block;padding:0;min-height:0}
.stage .guide,.phone .statusbar,.phone .homebar{display:none}
.phone{min-height:0;border:0;border-radius:0;box-shadow:none}
.phone .tabs,.phone .composer{padding-bottom:8px}
.composer button:disabled{opacity:.55}
.sheet textarea.field{height:135px;resize:vertical}

@media(min-width:600px){.stage{display:flex;justify-content:center;padding:24px}
    .phone{width:min(440px,100%);height:100%;border:1px solid #d9e2eb;border-radius:26px;
    box-shadow:0 16px 55px #21344620}}
.auth{max-width:420px;width:100%;margin:auto;padding:24px;overflow:auto}
.auth h1{font-size:32px;margin:0 0 10px}.auth p{color:var(--sub);line-height:1.45}
.auth label,.sheet label{display:block;margin:12px 0 5px}
.auth .bluebutton{width:100%;margin-top:8px}
.auth .link{display:block;margin:16px auto}
.notice{color:var(--sub);font-size:13px;padding:8px 16px;line-height:1.4;background:var(--surface)}
.error{color:#bd423d;font-size:13px;line-height:1.45}
.settings .field{width:100%}.settings .group{padding:14px}
.settings .group label{display:block;margin:8px 0 4px}
.settings-section h3{margin:0 0 12px;font-size:16px}
.setting.push-toggle{display:flex;align-items:center;justify-content:space-between}
.push-track{width:44px;height:26px;flex:none;border-radius:16px;background:#747d89;padding:3px;box-sizing:border-box}
.push-track::before{content:"";display:block;width:20px;height:20px;border-radius:50%;background:#fff}
.push-toggle[aria-checked="true"] .push-track{background:var(--accent)}
.push-toggle[aria-checked="true"] .push-track::before{transform:translateX(18px)}
.push-toggle[aria-busy="true"] .push-track{opacity:.6}
.direct-chat-dialog{width:min(420px,calc(100% - 32px));max-height:calc(100% - 32px);padding:20px;border:1px solid var(--border,#dce4e9);border-radius:18px;background:var(--surface,#fff);color:var(--text,#182632)}
.direct-chat-dialog::backdrop{background:#15232c80}
.direct-chat-dialog h3{margin:0;font-size:18px}
.direct-chat-dialog p{margin:12px 0;line-height:1.45}
.direct-chat-dialog .field,.direct-chat-dialog .bluebutton{width:100%;min-height:44px;margin-bottom:8px}
.direct-chat-dialog form{display:flex;justify-content:flex-end}
.new-direct-chat{min-height:44px;white-space:nowrap}
@media(min-width:900px){.authenticated .new-direct-chat-mobile{display:none}}
.settings .profile-account{margin:0 0 12px;padding:0;overflow-wrap:anywhere}
.settings .profile-photo-row{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.settings .profile-photo-row .avatar{width:60px;height:60px;margin:0;font-size:24px}
.settings .photo-actions{display:flex;flex-wrap:wrap;gap:6px 14px}
.settings .photo-actions .photoedit{margin:0;padding:6px 0;text-align:left}
.settings .group .field:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.settings-actions{padding:14px 14px 0}
.settings-actions .bluebutton{width:100%;padding:12px;font-size:14px}
.mode-note{padding:7px 12px}
.calendar{padding:0 14px 16px}
.calendar-toolbar,.calendar-note-heading,.calendar-editor-actions{display:flex;align-items:center;gap:8px}
.calendar-toolbar h3,.calendar-note-heading h3{flex:1;margin:0;font-size:15px}
.calendar-toolbar h3::first-letter,.calendar-note-heading h3::first-letter{text-transform:uppercase}
.calendar-arrow,.calendar-note-heading button,.calendar-editor-actions button{min-height:44px}
.calendar-arrow{width:44px;display:grid;place-items:center}
.calendar-arrow.next .icon{transform:rotate(180deg)}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}
.calendar-weekday{padding:8px 0;color:#556473;font-size:12px}
.calendar-day{min-width:0;height:44px;border:1px solid var(--border);border-radius:0;position:relative}
.calendar-day span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%}
.calendar-day[aria-pressed="true"]{background:#e8f3fd}
.calendar-day.today span{background:#196da9;color:white}
.calendar-day.has-notes::after{content:'';position:absolute;bottom:3px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:#196da9}
.calendar-notes{margin-top:14px}
.calendar-week{margin-top:18px;border-top:1px solid var(--border);padding-top:12px}
.calendar-week h4{margin:12px 0 0;font-size:14px}
.calendar-week h4::first-letter{text-transform:uppercase}
.calendar-week-empty{margin:8px 0;color:#556473;font-size:13px}
.calendar-note{display:block;width:100%;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;border:1px solid var(--border);border-radius:9px;margin-top:8px}
.calendar-editor fieldset{border:0;margin:0;padding:0;min-width:0}
.calendar-editor textarea{min-height:96px;resize:vertical}
.calendar-editor-actions{justify-content:flex-end}
.calendar-editor-actions .bluebutton{flex:0 1 auto}
.calendar button:focus-visible,.calendar textarea:focus-visible{outline:2px solid #196da9;outline-offset:-2px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}

/* Web pilot: the approved messenger palette, with usable text and touch targets. */
:root { --web-accent:#237fb5; --web-muted:#586b7a; }
html,body {height:100%;}
.stage {height:100dvh;}
.phone {--sub:#586b7a;--accent:#237fb5;--out:#e2ffc9;--wall:#e3ebe0;font-size:16px;}
.workspace {display:flex;flex:1;min-height:0;overflow:hidden;}
.workspace>.screen {flex:1;min-width:0;}
.sidebar,.desktop-welcome {display:none;}
.bubble {font-size:16px;line-height:1.5;max-width:min(87%,65ch);}
.bubble .msgtime {font-size:11px;color:#536856;}
.chatname {font-size:16px;}
.preview {font-size:14px;}
.tab {font-size:12px;}
.tabs {height:68px;padding-bottom:env(safe-area-inset-bottom,0px);}
.back,.send {min-width:44px;min-height:44px;}
.composer {padding:10px 12px max(10px,env(safe-area-inset-bottom));gap:10px;}
.composer textarea {font-size:16px;min-height:44px;max-height:144px;line-height:1.4;}
.chat-viewport .stage{position:fixed;top:var(--chat-top,0px);left:0;right:0;height:var(--chat-height,100dvh);min-height:0}
.chat-viewport .phone{height:100%;min-height:0;max-height:100%}
.chat-viewport .convheader{flex-shrink:0}
.chat-viewport .messages{overscroll-behavior-y:contain;overflow-anchor:none}
#calendarTab{position:relative}
.family-invitation-badge{position:absolute;top:4px;left:calc(50% + 8px);min-width:18px;padding:2px 4px;border-radius:12px;background:var(--accent);color:white;font-size:11px}
.composer textarea:focus-visible,.field:focus-visible {outline:2px solid var(--accent);outline-offset:1px;}
.convtitle b {font-size:16px;}
.convtitle small {font-size:13px;}
.convheader .link {min-height:44px;}
.matchoffer {border-left:3px solid var(--accent);box-shadow:none;padding:16px;}
.matchoffer p,.offerperson {font-size:15px;line-height:1.5;}
.bluebutton,.mutebutton {min-height:44px;font-size:14px;}
.datediv {font-size:12px;margin:14px 0;}
.datediv span {background:#526b58;color:#fff;}
.chatrow.selected {background:#eaf4fb;}
.new-messages {position:absolute;bottom:90px;left:50%;transform:translateX(-50%);background:var(--surface);color:var(--accent);border:1px solid var(--border);border-radius:24px;padding:12px 18px;z-index:5;white-space:nowrap;box-shadow:0 2px 8px #0001;}
.calendar-toolbar {display:grid;grid-template-columns:minmax(0,1fr) auto 44px 44px;gap:2px;margin-bottom:12px;}
.calendar-toolbar h3 {min-width:0;font-size:14px;}
.calendar-toolbar .link {min-height:44px;}
.calendar-empty,.calendar-help {font-size:14px;color:var(--sub);line-height:1.5;}
.calendar-note {display:flex;gap:12px;align-items:baseline;font-size:16px;}
.note-time {color:var(--accent);font-weight:600;white-space:nowrap;}
.calendar-editor label {display:block;margin:12px 0 6px;font-size:14px;}
.calendar-editor textarea {font-size:16px;}
.reminder-time-row {display:flex;align-items:center;gap:12px;}
.reminder-time-row input {max-width:140px;font-size:16px;min-height:44px;}
.notification-permission {text-align:left;min-height:44px;}
.calendar-editor-actions {margin-top:12px;}
.connection-status {padding:9px 14px;color:#694b10;background:#fff2cf;font-size:13px;}
.reminder-tray {
    --reminder-top:max(8px,env(safe-area-inset-top));
    position:absolute;z-index:9;top:var(--reminder-top);
    left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));
    max-height:min(42%,calc(100% - var(--reminder-top) - 72px));
    overflow:auto;overscroll-behavior:contain;padding:4px;
    display:grid;gap:8px;
}
.phone:has(.calendar-workspace) .reminder-tray {
    --reminder-top:calc(132px + env(safe-area-inset-top));
}
.phone:has(.calendar-workspace .calendar-form) .reminder-tray {display:none;}
.reminder-tray:empty {display:none;}
.reminder-tray:has(.reminder-card:nth-child(3))::before {
    content:'Прокрутите список ↓';position:sticky;top:0;z-index:1;justify-self:end;
    padding:3px 8px;border:1px solid var(--border);border-radius:8px;
    background:var(--surface);color:var(--sub);font-size:12px;
}
.reminder-card {min-width:0;padding:12px 12px 2px;border:1px solid #acc9db;border-radius:14px;background:var(--surface);box-shadow:0 2px 6px #17364a33;}
.reminder-card p {margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
.reminder-card small {color:var(--sub);}
.reminder-actions {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:4px 8px;}
.reminder-actions button {min-height:44px;padding-inline:4px;}
.undo-bar {position:absolute;bottom:85px;left:16px;right:16px;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#203747;color:#fff;border-radius:12px;padding:12px 16px;}
.undo-bar .link {color:#a7dfff;min-height:44px;}
@media(min-width:600px) { .phone {width:min(600px,100%);} }
@media(min-width:900px) {
  .authenticated .phone {width:min(1180px,100%);border-radius:20px;}
  .authenticated .sidebar {display:flex;width:300px;flex-shrink:0;flex-direction:column;border-right:1px solid var(--border);background:var(--surface);}
  .authenticated .tabs.hidden {display:flex!important;}
  .authenticated .tabs {padding-left:300px;}
  .authenticated .mobile-chatlist {display:none;}
  .authenticated .desktop-welcome {display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;background:var(--paper);color:var(--sub);}
  .desktop-welcome h2 {font-size:24px;color:var(--text);margin-bottom:0;}
  .authenticated .convheader .back {display:none;}
  .messages {padding:20px 28px;}
  .calendar,.settings>.scroll {padding:12px 28px 24px;}
  .reminder-tray {left:auto;width:360px;max-width:100%;}
}
@media(max-width:450px) {.phone {height:100dvh;}.stage{height:100dvh;}}
.agent-options {display:grid;gap:6px;max-width:min(88%,60ch);margin:4px 0 12px;}
.agent-option {display:flex;align-items:center;gap:10px;text-align:left;padding:8px 10px;
    background:var(--surface);border:1px solid var(--border);border-radius:12px;}
.agent-option:hover {border-color:var(--accent);}
.agent-option .avatar {width:36px;height:36px;}
.agent-option small {display:block;color:var(--sub);font-size:12px;margin-top:3px;}
.agent-options > .mutebutton {justify-self:start;}
.attach-photo {width:44px;height:44px;flex-shrink:0;}
.specialist-attachment {display:flex;align-items:center;gap:10px;padding:8px 12px 0;
    background:var(--surface);z-index:2;flex-shrink:0;}
.specialist-attachment img {width:42px;height:42px;object-fit:cover;border-radius:7px;}
.conversation-photo {display:block;width:min(240px,55vw);max-height:230px;object-fit:contain;border-radius:8px;}
.bubble .message-receipt{display:inline-block;margin-inline-start:4px;color:#526b54;font-size:12px;line-height:1;letter-spacing:-2px;padding-inline-end:2px}
.bubble .message-receipt.read{color:#1689f4}
.bubble .message-receipt.failed{color:#a82431;font-weight:700;letter-spacing:0}
.dark .bubble .message-receipt{color:#bed5bf}
.dark .bubble .message-receipt.read{color:#82d8ff}
.dark .bubble .message-receipt.failed{color:#ffabab}
