:root{--ink:#171719;--muted:#69636d;--brand:#D5006D;--red:#fe1211;--line:#ececee;--safe:env(safe-area-inset-bottom,0px);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}*{box-sizing:border-box}body{margin:0;background:white;color:var(--ink);font-size:15px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #FF3B9D;outline-offset:3px}a{color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.12;letter-spacing:-.055em;margin-bottom:10px;font-weight:720}h2{font-size:20px;letter-spacing:-.035em;font-weight:650}h3{font-size:16px;letter-spacing:-.02em;font-weight:650}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px;flex:none;pointer-events:none}.shell{display:grid;grid-template-columns:220px minmax(0,1fr);max-width:1440px;margin:auto;min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;background:#0b0b0c;color:white;padding:40px 20px;display:flex;flex-direction:column}.brand{padding:0 16px;text-decoration:none;display:block}.brand img{width:118px;height:auto;display:block}.brand small{font-size:9px;letter-spacing:.24em;color:#aaa;display:block;margin:9px 2px}.sidebar nav{margin-top:62px;display:grid;gap:8px}.sidebar nav button{display:flex;align-items:center;gap:12px;border:0;background:none;text-align:left;color:#a7a7ac;border-radius:12px;padding:14px 15px}.sidebar nav button.active{background:#ffffff10;color:white}.sidebar nav button.active svg{color:#FF3B9D}.side-bottom{margin:auto 15px 0;color:#85858b;font-size:10px}.main{width:100%;max-width:920px;margin:0 auto;padding:30px 52px 70px;min-width:0}.topbar{height:40px;display:flex;align-items:center;justify-content:space-between;margin-bottom:42px;gap:16px}#workspace-name{font-size:12px;color:#69636d}.mobile-brand{display:none}#account-actions{display:flex;gap:10px;align-items:center}.icon-button{border:0;background:none;display:grid;place-items:center;width:40px;height:40px;position:relative;border-radius:50%;flex:none}.icon-button:hover{background:#f3f3f5}.count{position:absolute;right:2px;top:0;background:var(--brand);color:white;min-width:15px;height:15px;border-radius:8px;font-size:9px;display:grid;place-items:center}.avatar{display:grid;place-items:center;border-radius:50%;background:#f1eded;color:#8c3f46;width:36px;height:36px;font-size:11px;font-weight:700;border:0;flex:none}.heading,.section-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.eyebrow{text-transform:uppercase;letter-spacing:.11em;color:var(--muted);font-size:10px;font-weight:600;margin-bottom:10px}.subtitle{font-size:13px;color:var(--muted);line-height:1.6}.metrics{display:flex;gap:32px;margin:28px 0 32px}.metric{display:flex;flex-direction:column;gap:6px}.metric strong{font-size:29px;font-weight:650;letter-spacing:-.06em}.metric span{font-size:11px;color:#69636d}.filters{display:flex;gap:6px;overflow:auto;padding:5px 0 15px;scrollbar-width:none}.filter{border:0;background:none;white-space:nowrap;font-size:12px;font-weight:550;color:#69636d;padding:10px 14px;border-radius:20px}.filter.active{background:#f3f2f0;color:#242426}.filter-count{font-size:10px;color:#69636d;margin-left:5px}.appointment{display:flex;gap:18px;padding:22px 0;border:0;border-bottom:1px solid var(--line);text-align:left;background:none;width:100%;align-items:center}.appointment:last-child{border:0}.appointment:hover h3{color:var(--brand)}.appointment-time{min-width:60px;font-size:16px;font-weight:600;letter-spacing:-.03em}.appointment-time small{display:block;font-weight:450;font-size:10px;color:#69636d;margin-top:5px}.appointment-info{flex:1;min-width:0}.appointment-info h3{margin:0 0 6px}.appointment-info p{font-size:12px;color:var(--muted);margin:0 0 9px;line-height:1.4}.chevron{width:16px;color:#b1b1b7}.status{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:550;padding:4px 8px;border-radius:6px;line-height:1.25;background:#f0f1f4;color:#626973}.status:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.status.green{background:#eaf6ed;color:#2d7947}.status.yellow{background:#fff3d6;color:#8f650e}.status.red{background:#ffedec;color:#b64c46}.back{display:inline-flex;align-items:center;gap:5px;border:0;background:none;padding:0;margin-bottom:24px;font-size:12px;color:#69636d;min-height:28px}.back svg{width:14px}.detail-header .subtitle{margin-top:13px}.appointment-facts{display:flex;flex-wrap:wrap;gap:10px 24px;padding:6px 0 25px;color:#69636d;font-size:12px;border-bottom:1px solid var(--line);line-height:1.5}.appointment-facts span{display:flex;align-items:center;gap:7px}.appointment-facts svg{width:16px;height:16px;color:#99999f}.section-head{margin:26px 0 16px}.section-head h2{margin:0;font-size:19px}.text-button{border:0;background:none;font-size:12px;color:var(--brand);padding:8px 0;font-weight:550}.notes-empty{padding:12px 0 28px;color:#69636d;font-size:13px}.note{margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid var(--line)}.note header{display:flex;gap:10px;align-items:center}.note header>div{flex:1}.note .avatar{width:30px;height:30px;font-size:9px}.note header b{font-size:12px;font-weight:600;display:block}.note header small{display:block;font-size:10px;color:#69636d;margin-top:4px}.note p{font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:13px 0 0}.editor{padding:15px;border:1px solid #e4e2e3;border-radius:16px;margin-bottom:22px}.editor textarea{border:0;padding:0;min-height:110px}.editor-footer{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;padding:13px 19px;border-radius:12px;font-size:13px;font-weight:600;background:var(--brand);color:white;min-height:44px}.button.secondary{background:#f2f1f0;color:#5e5b60}.button.outline{background:none;border:1px solid #e4e3e5;color:#646168}.editor-footer .button{padding:10px 16px;font-size:12px;min-height:38px}.inline-action{display:flex;gap:9px;align-items:center;justify-content:space-between;padding:20px 0;color:#67656c;border-top:1px solid var(--line);font-size:13px}.inline-action button{display:flex;align-items:center;gap:9px;border:0;background:none;padding:6px 0;color:inherit}.inline-action svg{width:18px}.outcome{padding:20px 0;border-bottom:1px solid var(--line)}.outcome p{white-space:pre-wrap;line-height:1.6;font-size:14px;margin:12px 0}.outcome small,.sync-state{font-size:10px;color:#806c50}.form-grid{display:grid;gap:18px;margin:22px 0}label{display:grid;gap:8px;font-size:12px;font-weight:550;color:#66646b}input,select,textarea{width:100%;font-size:16px;border:1px solid #dfdfe3;background:white;color:#222226;border-radius:10px;padding:12px;line-height:1.5}textarea{resize:vertical;min-height:100px}.login{max-width:370px;margin:10vh auto 0}.login-mark{display:block;width:48px;height:48px;border-radius:14px;margin-bottom:28px}.login h1{font-size:31px}.login .button{width:100%;margin-top:4px}.login-footer{margin-top:25px;text-align:center;font-size:11px;color:#69636d}.error{font-size:12px;line-height:1.5;color:#b23e3e;padding:10px 0}.empty{padding:70px 15px;text-align:center}.empty svg{width:34px;height:34px;color:#b8b5ba;margin-bottom:16px}.empty h2{font-size:18px;margin:0 0 9px}.empty p{color:#69636d;font-size:13px;line-height:1.6;margin:0 auto;max-width:300px}.empty .button{margin-top:20px}.loading{display:flex;gap:12px;justify-content:center;align-items:center;padding:90px 0;font-size:13px;color:#69636d}.spinner{width:16px;height:16px;border-radius:50%;border:2px solid #eee;border-top-color:var(--brand);animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.thread-row{display:flex;align-items:center;gap:13px;width:100%;border:0;background:none;text-align:left;padding:18px 0;border-bottom:1px solid var(--line)}.thread-row .avatar{width:42px;height:42px;background:#f1eff0;color:#69636d;font-size:13px}.thread-row>div{flex:1;min-width:0}.thread-row h3{margin:0 0 5px;font-size:15px}.thread-row p{margin:0;font-size:11px;color:#69636d}.unread-dot{width:7px;height:7px;border-radius:50%;background:var(--brand)}.thread-header{display:flex;align-items:center;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--line)}.thread-header .back{margin:0;width:25px;flex:none}.thread-header>div{min-width:0;flex:1}.thread-header h1{font-size:18px;letter-spacing:-.025em;margin:0 0 4px}.thread-header p{font-size:11px;color:#69636d;margin:0}.chat-log{display:flex;flex-direction:column;gap:21px;padding:30px 4px 25px;flex:1;min-height:220px}.chat-empty{display:grid;place-items:center;flex:1;color:#69636d;font-size:12px;min-height:220px}.message-row{display:flex;flex-direction:column;align-items:flex-start;max-width:100%;position:relative}.message-row.own{align-items:flex-end}.message-author{font-size:10px;color:#69636d;margin:0 9px 6px}.dot-bubble{max-width:min(82%,420px);border-radius:20px 20px 20px 5px;background:#f0f0f3;padding:11px 15px;position:relative;min-width:30px;overflow-wrap:anywhere}.dot-bubble p{font-size:15px;line-height:1.45;white-space:pre-wrap;margin:0}.own .dot-bubble{border-radius:20px 20px 5px 20px;background:#e8f1fc;color:#193c64}.message-meta{display:flex;gap:10px;align-items:center;margin:6px 7px 0;color:#69636d;font-size:9px}.message-meta button{border:0;background:none;color:#69636d;font-size:10px;padding:2px 4px;min-height:24px}.overlap-reactions{position:absolute;right:-7px;top:-16px;display:flex;gap:2px;z-index:2}.overlap-reactions button{background:#eeeaf1;border:2px solid white;min-width:29px;height:28px;border-radius:17px;display:inline-flex;align-items:center;justify-content:center;gap:3px;font-size:15px;box-shadow:0 1px 3px #0000000b}.overlap-reactions button.mine{background:#e4ebf8}.overlap-reactions small{font-size:9px;color:#69636d}.chat-dock{position:sticky;bottom:0;padding:14px 0 10px;background:linear-gradient(#ffffff00,#fff 12%)}.chat-composer{display:flex;align-items:flex-end;gap:7px;border:1px solid #e4e1e7;border-radius:25px;padding:5px;background:white}.chat-composer textarea{resize:none;border:0;background:none;min-height:36px;max-height:130px;height:36px;padding:7px 10px;font-size:16px;line-height:22px;outline:none;min-width:0;flex:1}.send-button{background:var(--brand);color:white;border:0;width:34px;height:34px;flex:none;border-radius:50%;display:grid;place-items:center}.send-button svg{width:18px;height:18px;stroke-width:2}.composer-mic{border:0;background:none;color:#8b8292;width:34px;height:34px;flex:none;display:grid;place-items:center}.composer-mic svg{width:20px;height:20px}.chat-status{font-size:11px;color:#a44246;line-height:1.5;padding:8px 8px 0}.notification{width:100%;background:none;border:0;border-bottom:1px solid var(--line);text-align:left;display:flex;gap:13px;padding:18px 0}.notification svg{color:#988d98;width:19px;height:19px}.notification>div{flex:1}.notification p{font-size:13px;line-height:1.5;margin-bottom:6px}.notification small{color:#69636d;font-size:10px}.notification.unread p{font-weight:600}.profile-card{display:flex;align-items:center;gap:15px;margin:20px 0 30px}.profile-card .avatar{width:52px;height:52px;font-size:16px}.profile-card h2{margin:0 0 5px}.profile-card p{color:#69636d;font-size:12px;margin:0}.profile-details{margin:26px 0 35px}.profile-details>div{padding:17px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:24px;font-size:12px}.profile-details dt{color:#69636d}.profile-details dd{margin:0;text-align:right;overflow-wrap:anywhere}.bottomnav{display:none}#network-banner{font-size:12px;background:#fff4dc;color:#80621f;padding:11px 14px;border-radius:10px;margin-bottom:20px}#toast{position:fixed;z-index:90;bottom:25px;left:50%;transform:translateX(-50%);max-width:min(90vw,420px);background:#242127;color:white;border-radius:14px;padding:12px 18px;font-size:12px;box-shadow:0 6px 30px #0002}dialog{border:1px solid #eee;border-radius:22px;box-shadow:0 18px 60px #0002;padding:15px;background:white}dialog::backdrop{background:#0002;backdrop-filter:blur(2px)}.reaction-picker{display:flex;gap:2px}.reaction-picker button{background:none;border:0;border-radius:50%;font-size:25px;min-width:44px;min-height:44px}.dialog-close{display:block;border:0;background:none;color:#69636d;margin:8px auto 0;padding:7px;font-size:12px}.skip-link{position:fixed;top:-60px;left:12px;z-index:99;background:white;padding:10px}.skip-link:focus{top:10px}.voice-note{display:flex;align-items:center;gap:8px;min-width:200px;position:relative}.voice-play{width:36px;height:38px;flex:none;border:0;border-radius:50%;background:none;color:inherit;display:grid;place-items:center;padding:0}.voice-play svg{fill:currentColor;stroke:none;width:23px;height:23px}.voice-track{position:relative;flex:1;min-width:80px}.voice-peaks{display:flex;align-items:center;gap:1.5px;height:32px}.voice-peaks i{height:3px;min-width:2px;flex:1;background:currentColor;border-radius:2px;opacity:.65}.voice-peaks i.played{opacity:.3}.voice-seek{position:absolute;inset:0;opacity:0;cursor:pointer;height:36px;margin:0;padding:0}.voice-track:focus-within{outline:2px solid currentColor;outline-offset:3px;border-radius:4px}.voice-duration{font-size:12px;white-space:nowrap;min-width:34px;font-variant-numeric:tabular-nums}.voice-failure{position:absolute;font-size:10px;top:100%;left:0}.has-voice{padding:14px 14px 12px}.own .has-voice{background:#D5006D;color:white}.has-voice .voice-play{background:white;color:#D5006D;width:32px;height:32px}.voice-transcript{margin-top:10px;font-size:14px;line-height:1.45;max-width:260px}.voice-transcript p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.voice-transcript.expanded p{display:block}.voice-transcript button{border:0;background:none;color:inherit;text-align:right;font-size:12px;padding:5px 0 0;width:100%;opacity:1}.recording-row{display:flex;align-items:center;gap:10px;padding:10px}.recording-row canvas{flex:1;min-width:30px;width:100%;height:32px}.recording-row time{font-size:12px;font-variant-numeric:tabular-nums;color:var(--brand)}.recording-row button{border:0;background:none;padding:7px;font-size:12px;color:#69636d}.recording-row .stop{color:var(--brand)}.voice-preview{padding:12px;border:1px solid var(--line);border-radius:18px;margin-bottom:10px}.voice-preview-actions{display:flex;gap:14px;justify-content:flex-end;margin-top:10px}.voice-preview-actions button{border:0;background:none;color:var(--brand);font-size:12px}.voice-preview-actions button:first-child{color:#69636d}.voice-preview audio{width:100%}body[data-screen="thread"] #app{display:flex;flex-direction:column;min-height:calc(100dvh - 145px)}body[data-screen="thread"] .main{padding-bottom:15px}body[data-screen="login"] .sidebar nav,body[data-screen="login"] .side-bottom{display:none}@media(max-width:760px){.shell{display:block}.sidebar{display:none}.main{padding:18px 22px calc(100px + var(--safe));max-width:580px}.topbar{margin-bottom:30px}#workspace-name{display:none}.mobile-brand{display:flex;text-decoration:none;align-items:center;font-weight:820;font-size:20px;letter-spacing:-1px}.mobile-brand>span{color:var(--red)}.mobile-brand small{font-size:10px;letter-spacing:0;color:#69636d;font-weight:500;border-left:1px solid #ddd;margin-left:8px;padding-left:8px}.topbar .avatar{width:31px;height:31px;font-size:10px}.topbar .icon-button{width:32px;height:32px}.bottomnav:not([hidden]){display:grid;grid-template-columns:repeat(3,1fr);position:fixed;z-index:40;left:50%;transform:translateX(-50%);bottom:calc(10px + var(--safe));width:calc(100% - 34px);max-width:480px;padding:6px;background:#f7f6f4dc;border:1px solid white;border-radius:24px;box-shadow:0 7px 30px #25191b15;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}.bottomnav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;background:none;color:#69636d;border-radius:18px;min-height:48px;font-size:9px}.bottomnav button.active{background:#ffffffa0;color:var(--brand)}.bottomnav svg{width:20px;height:20px}h1{font-size:29px}.metrics{gap:30px;margin:26px 0}.metric strong{font-size:28px}.appointment{padding:20px 0;gap:14px}.appointment-time{min-width:53px;font-size:15px}.appointment-info h3{font-size:15px}.appointment-info p{font-size:11px}.filters{margin-right:-10px;gap:1px}.filter{padding:9px 11px;font-size:11px}.login{margin-top:7vh;padding:0 8px}.dot-bubble{max-width:85%}.dot-bubble p{font-size:15px}.thread-header h1{font-size:17px}.thread-header .avatar{width:30px;height:30px;font-size:9px}.chat-log{gap:22px;padding:29px 0 35px}.chat-dock{bottom:calc(78px + var(--safe));padding:15px 0 8px}body[data-screen="thread"] .main{padding-bottom:calc(85px + var(--safe))}body[data-screen="thread"] .topbar{margin-bottom:16px}body[data-screen="thread"] #app{min-height:calc(100dvh - 165px - var(--safe))}#toast{bottom:calc(90px + var(--safe))}.voice-note{min-width:190px}.has-voice{max-width:91%}.empty{padding:65px 0}.appointment-facts{gap:10px 18px}.profile-details>div{gap:15px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition:none!important}}[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.center{text-align:center}fieldset{border:0;padding:0;margin:0}legend{font-size:12px;color:#69636d;margin-bottom:12px}.person-choice{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.person-choice input{width:17px;height:17px;accent-color:var(--brand)}.person-choice small{display:block;margin-top:4px;font-size:10px;color:#69636d}#push-settings:not(:empty){margin:0 0 18px}
.brand-wordmark{font-weight:850;font-size:29px;letter-spacing:-2px}.brand-wordmark b{color:#fe1211}
#mention-dialog{min-width:260px;max-width:90vw;max-height:70vh}#mention-people{max-height:50vh;overflow:auto}.mention-person{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;padding:12px 10px;text-align:left;font-size:13px;border-radius:12px}.mention-person:hover{background:#f7f4f5}
.character-count{display:block;text-align:right;font-size:10px;color:#69636d;font-weight:400;margin-top:8px}.character-count.over-limit{color:#b51e26}
.sync-state{display:flex;align-items:center;gap:5px;font-size:10px;color:#806c50;margin-top:10px;font-weight:400}.sync-state svg{width:12px;height:12px;stroke-width:1.6}.sync-state.verified{color:#526f58}
/* Comfortable touch areas without enlarging the visual controls. */
@media(max-width:760px),(pointer:coarse){
.icon-button,.topbar .icon-button,.thread-header .icon-button,.heading .icon-button{width:44px;height:44px;min-width:44px;min-height:44px}
.topbar button.avatar{width:44px;height:44px;min-width:44px;min-height:44px;background:radial-gradient(circle at center,#f1eded 0 15.5px,transparent 16px)}
.text-button,.dialog-close,.voice-preview-actions button,.recording-row button{min-width:44px;min-height:44px}
.back{min-height:44px;margin-bottom:16px}.thread-header .back{width:44px;min-width:44px;margin:0}.filter{min-height:44px}
.editor-footer .button{min-height:44px}.composer-mic{width:44px;height:44px;min-width:44px}
.send-button{width:44px;height:44px;min-width:44px;background:none;position:relative;isolation:isolate}.send-button:before{content:'';position:absolute;inset:5px;background:var(--brand);border-radius:50%;z-index:-1}
.chat-composer textarea{min-height:44px;padding-top:11px;padding-bottom:11px}
.voice-play,.has-voice .voice-play{width:44px;height:44px;min-width:44px;background:none;position:relative;isolation:isolate}.has-voice .voice-play:before{content:'';position:absolute;inset:6px;background:#fff;border-radius:50%;z-index:-1}
.voice-transcript button{min-height:44px}.voice-seek{height:44px;top:-6px}
.overlap-reactions{top:-24px;right:-15px;gap:0}.overlap-reactions button,.overlap-reactions button.mine{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;background:none;border:0;box-shadow:none;position:relative;isolation:isolate}.overlap-reactions button:before{content:'';position:absolute;inset:8px;background:#eeeaf1;border:2px solid #fff;border-radius:16px;z-index:-1}.overlap-reactions button.mine:before{background:#e4ebf8}
.message-meta button{min-height:44px;min-width:44px;margin-top:-6px;margin-bottom:-10px}
}
.admin-connection{padding-bottom:28px;border-bottom:1px solid var(--line)}.admin-connection code{font-family:inherit;font-size:11px;overflow-wrap:anywhere}.admin-hint{font-size:11px;color:#69636d;line-height:1.6;margin:17px 0}.member-row{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}.member-row>div{flex:1;min-width:0}.member-row h3{margin:0 0 4px;font-size:14px}.member-row p{font-size:12px;color:#69636d;margin:0 0 5px;overflow-wrap:anywhere}.member-row small{font-size:10px;color:#69636d}
.inline-action button{min-height:44px}
.audio-retention{display:block;color:var(--muted,#73757a);font-size:.75rem;line-height:1.4;margin:0 0 .5rem}.audio-expired{display:block;font-size:.8rem;color:var(--muted,#73757a)}.retained-transcript{white-space:pre-wrap}

/* Approved Sync v2 wordmark and magenta only; existing layout/type/status colors preserved. */
.brand img{width:135px;height:auto}.mobile-brand img{width:92px;height:42px;object-fit:contain}.avatar{color:#A90057;background:#FFF0F7}.topbar button.avatar{background:radial-gradient(circle at center,#FFF0F7 0 15.5px,transparent 16px)}

.product-attribution{display:none}@media(max-width:760px){.product-attribution{display:block;text-align:center;margin-top:32px;padding:12px 0 16px;color:var(--muted);font-size:10px;letter-spacing:.02em}}

.demo-toolbar{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:0 16px;min-height:44px;font-size:12px;color:#666}.demo-toolbar>span{font-weight:700;text-transform:uppercase;letter-spacing:.1em}.demo-toolbar label{display:flex;align-items:center;gap:6px}.demo-toolbar select{font:inherit;border:0;background:transparent;color:#222;min-height:44px;padding:0 8px;width:auto}.sidebar{top:44px}.topbar{top:44px}

/* Mobile Sync chrome: fixed layout footprint, padded artwork and quiet scroll collapse. */
.mobile-mark{display:none}
@media(max-width:760px){
  .main{padding-top:8px}
  .topbar{position:sticky;top:44px;z-index:60;height:64px;min-height:64px;margin:0 -8px 22px;padding:0 8px;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);overflow:visible}
  .mobile-brand{position:relative;display:block;flex:0 0 110px;width:110px;height:64px;min-width:44px;min-height:44px;overflow:visible}
  .mobile-brand img{position:absolute;display:block;object-fit:contain;pointer-events:none;transform-origin:22px 50%;transition:transform 260ms cubic-bezier(.22,.75,.3,1),opacity 180ms ease;will-change:transform,opacity}
  .mobile-brand .mobile-wordmark{left:0;top:10.25px;width:82.5px;height:43.5px;opacity:1;transform:scale(1)}
  .mobile-brand .mobile-mark{left:0;top:10px;width:44px;height:44px;opacity:0;transform:rotate(0deg) scale(.8);transform-origin:50% 50%}
  .sync-header-compact .mobile-wordmark{opacity:0;transform:scale(.7)}
  .sync-header-compact .mobile-mark{opacity:1;transform:rotate(90deg) scale(1)}
  .topbar #account-actions{margin-left:auto}
}
@media(prefers-reduced-motion:reduce){.mobile-brand img{transition:none!important;will-change:auto}.sync-header-compact .mobile-mark{transform:none}}

/* Respect iPhone safe areas; keep header controls pinned without covering the demo switch. */
@media(max-width:760px){
  .demo-toolbar{padding-top:env(safe-area-inset-top,0px);min-height:calc(44px + env(safe-area-inset-top,0px));background:rgba(255,255,255,.86);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
  .topbar{top:calc(44px + env(safe-area-inset-top,0px));background:rgba(255,255,255,.84);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
  .bottomnav{transition:transform 200ms ease,opacity 160ms ease}
  .sync-input-active .bottomnav{transform:translate(-50%,calc(100% + 30px + var(--safe)));opacity:0;visibility:hidden;pointer-events:none}
  .sync-input-active .chat-dock{bottom:0}
}
@media(prefers-reduced-motion:reduce){.bottomnav{transition:none!important}}

/* Stable sticky slot; the glass bar itself visibly contracts from 64px to 48px. */
.mobile-header-slot{display:contents}
@media(max-width:760px){
  .mobile-header-slot{display:block;position:sticky;top:calc(44px + env(safe-area-inset-top,0px));z-index:60;height:64px;min-height:64px;margin:0 -8px 22px;overflow:visible}
  .main .mobile-header-slot .topbar{position:relative;top:0;height:64px;min-height:48px;margin:0;padding:0 8px;transition:height 260ms cubic-bezier(.22,.75,.3,1),box-shadow 180ms ease}
  .mobile-header-slot .mobile-brand{transition:height 260ms cubic-bezier(.22,.75,.3,1)}
  .mobile-header-slot .mobile-mark{transition:transform 260ms cubic-bezier(.22,.75,.3,1),opacity 180ms ease,top 260ms cubic-bezier(.22,.75,.3,1)}
  .sync-header-compact .mobile-header-slot .topbar{height:48px;box-shadow:0 1px 0 rgba(23,23,25,.04)}
  .sync-header-compact .mobile-header-slot .mobile-brand{height:48px}
  .sync-header-compact .mobile-header-slot .mobile-mark{top:2px}
}
@media(prefers-reduced-motion:reduce){.mobile-header-slot .topbar,.mobile-header-slot .mobile-brand,.mobile-header-slot .mobile-mark{transition:none!important}}


/* Readable neutral metadata; keep semantic outcome colors unchanged. */
.chat-composer textarea::placeholder{color:#69636d;opacity:1}

/* Keyboard focus is visible without shrinking the compact input. */
.chat-composer:focus-within{outline:2px solid #A90057;outline-offset:3px}
@media(max-width:360px){.chat-composer{gap:4px}.chat-composer textarea{padding-left:5px;padding-right:5px}}

/* User-authored names may be long: wrap content, never hide the page overflow. */
.thread-header h1,.thread-header p,.thread-row h3,.thread-row p,.appointment-info h3,.appointment-info p,.detail-header h1,.member-row h3,.member-row small,.profile-card h2,.profile-card p,.notification p,.notification small,.admin-connection code{overflow-wrap:anywhere}
.notification>div,.profile-card>div{min-width:0;flex:1}
.thread-header .avatar,.thread-row .avatar,.member-row .avatar,.profile-card .avatar,.notification svg{flex-shrink:0}

/* Small mobile labels remain readable without shrinking their touch targets. */
@media(max-width:760px){.message-meta,.bottomnav button{font-size:11px}}
