:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#253243;background:#edf1f7;font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button{border:1px solid #dfe5ed;background:#fff;color:inherit;border-radius:12px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover{background:#eff4fb}button.primary{background:#254f87;color:#fff;border-color:#254f87}button.danger{color:#a64040}a{color:#254f87}svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100svh;padding:10px 10px 10px 0;gap:10px}.sidebar{position:sticky;top:10px;height:calc(100svh - 20px);display:flex;flex-direction:column;padding:22px 15px;gap:22px}.wordmark{width:144px;height:auto;margin:0 10px}.subbrand{font-size:10px;letter-spacing:4px;color:#8c98a8;margin:7px 11px 20px}.nav{display:grid;gap:5px}.nav :is(button,a){background:transparent;border:0;justify-content:flex-start;padding:12px 16px}.nav :is(button,a).active{background:#dce7f8;color:#224b80;font-weight:600}.nav-label{font-size:11px;color:#8994a3;text-transform:uppercase;letter-spacing:1.4px;margin:5px 16px 10px}.profile{margin-top:auto;background:#fff;border:1px solid #e1e7ee;border-radius:14px;padding:14px;font-size:12px}.profile strong{display:block;margin-bottom:5px}.profile p{color:#8490a1;margin:0 0 12px}.profile button{width:100%;font-size:12px;padding:8px}.main{background:#fff;border:1px solid #e0e6ee;border-radius:23px;min-width:0;overflow:hidden}.topbar{height:67px;border-bottom:1px solid #edf0f5;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.topbar small{color:#8b97a8}.content{padding:32px;max-width:1600px;margin:0 auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:27px}h1{font-size:28px;letter-spacing:-.7px;margin:0 0 8px}h2{font-size:19px;letter-spacing:-.3px;margin:0 0 15px}h3{font-size:15px;margin:0 0 9px}p{line-height:1.7;margin:0 0 14px}.muted{color:#8390a1}.small{font-size:12px}.row{display:flex;align-items:center;gap:12px}.wrap{flex-wrap:wrap}.between{justify-content:space-between}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}.card{border:1px solid #e3e8f0;border-radius:18px;background:#fff;padding:22px}.metric{font-size:33px;font-weight:600;display:block;margin:15px 0 6px}.two{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:22px}.stack{display:grid;gap:16px}.list-row{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #edf0f5}.list-row:last-child{border-bottom:0}.details{flex:1;min-width:0}.details strong{display:block;margin-bottom:6px}.avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:#edf3fc;color:#6081ac;flex:none;font-size:12px;font-weight:600}.badge{display:inline-block;background:#eff4fb;color:#5578a4;font-size:11px;border-radius:30px;padding:6px 10px;white-space:nowrap}.badge.green{background:#eaf4ee;color:#397b61}.badge.amber{background:#fff4e3;color:#956a29}.velo-card{background:linear-gradient(140deg,#eff4fc,#fff);overflow:hidden}.velo-card img{display:block;width:200px;max-width:80%;margin:5px auto 20px}.empty{padding:42px 24px;text-align:center;color:#8290a2;line-height:1.8}.empty strong{display:block;color:#394b60;font-size:16px}.table-wrap{overflow:auto;border:1px solid #e3e8ef;border-radius:17px}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left}th{font-size:11px;color:#8390a1;font-weight:500;background:#f7f9fc}td,th{padding:17px 19px;border-bottom:1px solid #edf0f4}tr:last-child td{border-bottom:0}.calendar{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-top:25px}.calendar-col{background:#f9fbfd;min-height:460px;border:1px solid #e5eaf2;border-radius:16px;padding:17px}.calendar-col h3{margin-bottom:25px}.appointment{display:block;background:#edf3fd;border:1px solid #d7e3f6;border-left:3px solid #6189c0;border-radius:9px;padding:14px;margin:12px 0;width:100%;text-align:left;line-height:1.7}.appointment strong{display:block}.appointment small{color:#75869c}.field{display:grid;gap:9px;font-size:12px;font-weight:500;min-width:0}.field input,.field select,.field textarea,input.search{width:100%;border:1px solid #dae2ec;background:#fbfcfe;border-radius:11px;color:#28384c;padding:12px 13px}.field textarea{min-height:95px;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.full{grid-column:1/-1}form{display:grid;gap:19px}form footer{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}dialog{border:1px solid #dce4ef;border-radius:22px;width:min(610px,calc(100vw - 30px));padding:28px;color:inherit;max-height:90svh;overflow:auto;box-shadow:0 25px 100px #14243830}dialog::backdrop{background:#182a4855;backdrop-filter:blur(4px)}dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}dialog header h2{margin:0}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#243b57;color:#fff;padding:14px 22px;border-radius:13px;max-width:90vw;z-index:30;display:none}#notice.visible{display:block}.login{min-height:100svh;display:grid;grid-template-columns:1.15fr 1fr;background:#fff}.login-art{background:radial-gradient(ellipse at 60% 40%,#fff,#e0e9f7);padding:70px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.login-art>img{width:min(430px,100%);align-self:center;margin:30px 0}.login-art h1{font-size:48px;max-width:440px;line-height:1.1}.login-art p{max-width:360px;color:#748399;font-size:17px;margin-top:16px}.login-panel{display:flex;flex-direction:column;justify-content:center;max-width:470px;width:100%;margin:auto;padding:40px}.login-panel>.wordmark{margin:0 0 55px;width:160px}.login-panel h1{margin-bottom:12px}.login-panel form{margin-top:25px}.chat{display:grid;grid-template-columns:290px 1fr;min-height:580px;border:1px solid #e2e8f0;border-radius:18px;overflow:hidden}.chat-list{border-right:1px solid #e3e8ef;background:#fafbfd}.chat-list button{width:100%;border-radius:0;border:0;border-bottom:1px solid #e6ebf2;padding:18px;text-align:left;justify-content:flex-start}.chat-list button.active{background:#eaf1fc}.chat-list small{display:block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8190a3;margin-top:7px}.chat-main{display:flex;flex-direction:column;min-width:0}.chat-head{padding:17px;border-bottom:1px solid #e7ecf3}.messages{height:410px;overflow:auto;background:#f8fafd;padding:23px;display:flex;flex-direction:column;gap:12px}.bubble{max-width:82%;background:#fff;border:1px solid #e4eaf2;border-radius:14px;padding:13px 16px;white-space:pre-wrap;line-height:1.6;align-self:flex-start}.bubble.out{align-self:flex-end;background:#e6effc}.bubble small{font-size:10px;color:#8492a4;display:block;margin-top:7px}.composer{padding:16px;display:flex;border-top:1px solid #e7ecf3;gap:10px}.composer input{flex:1;min-width:0;border:1px solid #dce4ef;border-radius:10px;padding:12px}.notice-box{background:#f2f6fc;border:1px solid #dce7f5;border-radius:13px;padding:17px;color:#526d90;line-height:1.7}.error{color:#9f4040;font-size:13px;line-height:1.6}.mobile-menu{display:none}.switch{display:flex;gap:12px;align-items:flex-start;font-size:13px}.switch input{margin-top:4px;width:18px;height:18px}.bot-result{white-space:pre-wrap;background:#edf4fc;border-radius:14px;padding:20px;line-height:1.7;margin-top:20px}.date-input{border:1px solid #dce4ed;border-radius:12px;padding:10px;background:#fafbfd;color:inherit}
@media(max-width:1050px){.shell{grid-template-columns:205px 1fr}.content{padding:24px}.two{grid-template-columns:1fr}.chat{grid-template-columns:220px 1fr}.login-art{padding:40px}.login-art h1{font-size:38px}}
@media(max-width:760px){.shell{display:block;padding:7px}.sidebar{display:none;position:fixed;top:0;left:0;width:250px;height:100svh;background:#edf1f8;z-index:20;box-shadow:10px 0 70px #17233a33}.shell.menu-open .sidebar{display:flex}.mobile-menu{display:inline-flex;padding:6px;border:0}.topbar{padding:0 18px}.content{padding:25px 17px}.page-head{align-items:flex-start;flex-wrap:wrap}h1{font-size:25px}.cards{gap:9px}.cards .card{padding:15px}.metric{font-size:27px}.cards p{font-size:11px}.login{display:block}.login-art{display:none}.login-panel{min-height:100svh;padding:35px}.form-grid{grid-template-columns:1fr}.chat{display:block}.chat-list{max-height:160px;overflow:auto;border-right:0;border-bottom:1px solid #dce4ef}.messages{height:360px}.calendar-col{min-height:180px}.topbar small{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{white-space:normal}td,th{padding:14px}.two{gap:16px}}

@media(max-width:760px){.main{min-height:calc(100svh - 14px)}.table-wrap table,.table-wrap tbody,.table-wrap tr,.table-wrap td{display:block;width:100%;white-space:normal}.table-wrap thead{display:none}.table-wrap tr{padding:10px 16px;border-bottom:1px solid #e4eaf2}.table-wrap td{border:0;padding:7px 0}.table-wrap td:nth-child(3){font-size:12px;color:#8390a1}.table-wrap td:last-child{padding-bottom:12px}.table-wrap td:last-child button{width:100%}}

.patient-history{margin-top:28px}.patient-history h3{margin-bottom:8px}.history-row{align-items:flex-start;flex-wrap:wrap}.history-row .details{min-width:160px}.badge.cancelled{background:#fceeed;color:#9c4542;border:1px solid #f0d0cd}
/* Keep editable controls at iOS's non-zooming size, including dialogs and login. */
@media (max-width:1024px),(any-pointer:coarse){
  input,select,textarea,[contenteditable=""],[contenteditable="true"],[contenteditable="plaintext-only"]{font-size:16px!important}
}
/* Conversation-first inbox: separate list and thread on phones. */
.chat-route .content{padding:22px}.chat{grid-template-columns:340px minmax(0,1fr);height:calc(100dvh - 140px);min-height:480px;background:#fff}.chat-list{display:flex;flex-direction:column;min-height:0;background:#fff}.inbox-header{padding:22px 18px 14px;border-bottom:1px solid #e8edf2}.inbox-header h1{font-size:25px}.inbox-header p{font-size:12px;color:#788898;margin:0 0 16px}.chat-search{display:flex;gap:9px;align-items:center;border-radius:12px;background:#f0f3f7;padding:0 12px}.chat-search>span{font-size:23px;color:#778595}.chat-search input{border:0;background:transparent;padding:12px 0;width:100%;min-width:0;outline-offset:0}.chat-filters{display:flex;gap:8px;margin-top:14px}.chat-list .chat-filters button{width:auto;border:0;border-radius:20px;background:#f1f4f7;font-size:12px;padding:7px 13px}.chat-list .chat-filters button.selected{background:#e3edfb;color:#254f87}.chat-list #conversation-list{overflow:auto;flex:1;min-height:0}.chat-list .conversation-row{display:flex;gap:12px;padding:17px 15px;border-bottom:1px solid #edf0f4;align-items:center}.conversation-row .avatar{width:46px;height:46px;border-radius:50%;font-weight:600}.conversation-copy{min-width:0;flex:1}.conversation-title{display:flex;align-items:center;gap:10px;justify-content:space-between}.conversation-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.conversation-title time{font-size:10px;flex:none;color:#8592a2}.conversation-preview{display:block;color:#7e8b9a;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:5px 0}.conversation-owner{font-size:10px;color:#8a6b44}.conversation-owner.owner-velo{color:#3d6da3}.chat-main{min-height:0}.chat-head{display:flex;align-items:center;gap:11px;padding:14px 18px;min-height:77px;background:#fff;flex:none}.chat-head .avatar{border-radius:50%;width:42px;height:42px}.chat-contact{min-width:0;flex:1}.chat-contact strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-contact span{display:block;font-size:11px;color:#6b829a;margin-top:5px}.chat-takeover{font-size:12px;flex:none;padding:9px 12px}.chat-back{display:none}.chat .messages{height:auto;flex:1;min-height:0;background:#f0f3f7;padding:22px 20px;gap:7px;overscroll-behavior:contain}.message-day{align-self:center;background:#fff;border:1px solid #e1e7ee;padding:5px 11px;border-radius:8px;font-size:10px;color:#8090a0;margin:9px 0}.chat .bubble{max-width:82%;border-radius:2px 14px 14px 14px;padding:10px 13px;white-space:normal;box-shadow:0 1px 1px #1d34480b;border-color:#e8edf3}.chat .bubble.out{background:#e0ecfc;border-color:#d8e5f6;border-radius:14px 2px 14px 14px}.bubble-body{display:block;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}.bubble-author{display:block;font-size:10px;color:#537ba5;font-weight:600;margin-bottom:4px}.chat .bubble small{text-align:right;margin-top:4px}.delivery{margin-left:3px;letter-spacing:-2px}.delivery.read{color:#387cc7}.composer{background:#f8fafc;align-items:flex-end;padding:12px 16px;flex:none}.composer textarea{flex:1;min-width:0;resize:none;border:1px solid #dce4ed;border-radius:22px;background:white;min-height:44px;max-height:120px;padding:12px 16px;line-height:1.35}.chat-send{width:44px;height:44px;padding:11px;flex:none;border-radius:50%}.chat-send svg{width:21px;height:21px}
@media(max-width:760px){.chat-route{padding:0}.chat-route .main{border:0;border-radius:0}.chat-route .content{padding:0}.chat-route .chat{display:block;height:calc(var(--chat-height,100dvh) - 67px);min-height:0;border:0;border-radius:0}.chat-route .chat-list{height:100%;max-height:none;border:0}.chat-route .inbox-header{padding:20px 18px 12px}.chat-route .conversation-title strong{font-size:16px}.chat-route .conversation-title time{font-size:11px}.chat-route .conversation-preview{font-size:14px}.chat-route .conversation-owner{font-size:11px}.chat-route .conversation-row{padding:16px 18px}.chat-route .chat-main{display:none}.chat-route.chat-open{position:fixed;inset:0;z-index:15;background:#fff}.chat-route.chat-open .topbar{display:none}.chat-route.chat-open .chat{height:var(--chat-height,100dvh)}.chat-route.chat-open .chat-list{display:none}.chat-route.chat-open .chat-main{display:flex;height:100%}.chat-route .chat-head{padding:10px 12px 10px 4px;min-height:70px;gap:8px}.chat-route .chat-back{display:inline-flex;border:0;padding:10px 5px;background:transparent;min-height:44px;min-width:36px}.chat-route .chat-contact strong{font-size:15px}.chat-route .chat-contact span{font-size:10px}.chat-route .chat-takeover{padding:8px;font-size:11px}.chat-route .messages{padding:12px 12px 18px}.chat-route .bubble{font-size:15px;max-width:88%}.chat-route .composer{padding:10px 10px max(10px,env(safe-area-inset-bottom));gap:8px}.chat-route .composer textarea{font-size:16px!important}.chat-route .chat-search input{font-size:16px!important}}

.reception-panel{margin-bottom:24px}.reception-panel h2 .badge{vertical-align:middle;margin-left:8px;font-size:13px}.reception-list{max-height:440px;overflow:auto;overscroll-behavior:contain}.reception-row{display:flex;align-items:center;gap:15px;padding:20px 0;border-top:1px solid #e7ecf3}.reception-details{flex:1;min-width:0}.reception-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.reception-reason{color:#7a6b53;margin:7px 0}.reception-preview{color:#65768b;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.reception-row>button{flex:none}.reception-row .avatar{flex:none}.reception-panel .empty{padding:25px 12px}
@media(max-width:760px){.reception-panel{padding:18px!important}.reception-row{flex-wrap:wrap;gap:10px}.reception-row>.avatar{display:none}.reception-details{flex-basis:100%}.reception-row>button{width:100%;min-height:44px}.reception-list{max-height:530px}.reception-title strong{font-size:16px}}

/* Dedicated internal assistant conversation. */
.velo-route .content{padding:0}.velo-workspace{height:calc(100dvh - 115px);min-height:480px;display:flex;flex-direction:column}.velo-toolbar{padding:18px 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f4;gap:16px}.velo-toolbar strong{font-size:18px;display:block}.velo-toolbar span{font-size:12px;color:#8190a1;display:block;margin-top:3px}.velo-thread{flex:1;overflow:auto;min-height:0;padding:28px max(25px,calc((100% - 780px)/2));overscroll-behavior:contain}.velo-welcome{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px 0}.velo-welcome>img{width:100px;height:100px;object-fit:contain;border-radius:28px;margin-bottom:24px}.velo-welcome h1{font-size:30px;letter-spacing:-1px}.velo-welcome p{color:#7d8a9b;line-height:1.6}.velo-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:24px;max-width:650px}.velo-suggestions button{background:#f8fafc;text-align:left;font-size:13px;line-height:1.5;padding:14px 18px}.velo-message{display:flex;gap:12px;margin:0 0 28px;line-height:1.75}.velo-message>img{width:32px;height:32px;object-fit:contain;border-radius:10px;flex:none}.velo-message>div{min-width:0}.velo-speaker{font-size:11px;color:#7d8c9f;display:block;margin-bottom:5px}.velo-message-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}.velo-message.user{justify-content:flex-end}.velo-message.user>div{background:#edf3fc;border-radius:20px 20px 5px 20px;padding:14px 20px;max-width:85%}.velo-thinking{font-size:13px;color:#7e8c9e;padding:10px 0}.velo-input-area{flex:none;padding:12px max(25px,calc((100% - 780px)/2)) 15px;background:#fff}.velo-composer{display:flex;align-items:flex-end;gap:12px;border:1px solid #dbe3ef;border-radius:24px;padding:12px 14px;box-shadow:0 4px 20px #304e7610}.velo-composer:focus-within{border-color:#6d8fb9}.velo-composer textarea{flex:1;min-width:0;resize:vertical;max-height:150px;border:0;background:transparent;padding:8px;font:inherit;font-size:16px;line-height:1.5;outline:none}.velo-composer button{width:42px;height:42px;padding:0;border-radius:50%;font-size:25px;flex:none}.velo-input-area>p{font-size:11px;color:#8b96a5;text-align:center;margin:10px 0 0;line-height:1.5}.knowledge-library{max-width:950px}.knowledge-entry{border-top:1px solid #e6ebf2;padding:24px 0}.knowledge-entry h2{font-size:17px;line-height:1.5}.knowledge-entry p{white-space:pre-wrap;line-height:1.8;color:#65768b}.knowledge-entry small{display:block;line-height:1.6}
@media(max-width:760px){.velo-route{padding:0}.velo-route .main{border:0;border-radius:0}.velo-workspace{height:calc(var(--chat-height,100dvh) - 67px);min-height:0}.velo-toolbar{padding:14px 18px}.velo-toolbar button{font-size:12px;padding:10px}.velo-thread{padding:20px 18px}.velo-welcome{padding:10px 0}.velo-welcome>img{width:72px;height:72px;margin-bottom:18px}.velo-welcome h1{font-size:25px}.velo-suggestions{margin-top:14px;gap:8px}.velo-suggestions button{width:100%;padding:11px 14px}.velo-input-area{padding:10px 12px max(10px,env(safe-area-inset-bottom))}.velo-message.user>div{max-width:92%}.velo-composer{padding:8px 10px;border-radius:20px}.velo-message{gap:9px}.velo-input-area>p{font-size:10px}}

/* Keep the composer inside the visible viewport when a mobile keyboard opens. */
.velo-composer{display:block;padding:14px 16px 10px;background:#f8fafc;border-radius:26px;box-shadow:0 3px 16px #304e7608}.velo-composer textarea{display:block;width:100%;box-sizing:border-box;resize:none;min-height:44px;max-height:120px;padding:8px 4px;overflow-y:auto}.velo-composer-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px}.velo-model{display:flex;align-items:center;gap:7px;padding:5px 9px;border:1px solid #e2e8f0;background:white;border-radius:18px;max-width:190px}.velo-model img{height:24px;width:24px;object-fit:contain;border-radius:7px}.velo-model select{font:inherit;font-size:13px;border:0;background:transparent;color:#46566d;padding:5px 4px;max-width:140px;cursor:pointer}.velo-composer-tools button{width:38px;height:38px;display:grid;place-items:center}.velo-composer-tools button svg{height:20px;width:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){body.velo-active{overflow:hidden;overscroll-behavior:none}.velo-active .shell.velo-route{position:fixed;left:0;right:0;top:var(--chat-top,0px);height:var(--chat-height,100dvh);overflow:hidden;padding:0}.velo-route .main{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}.velo-route .topbar{flex:none;height:60px;min-height:60px;box-sizing:border-box}.velo-route .content{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}.velo-route .velo-workspace{height:100%;min-height:0;flex:1;overflow:hidden}.velo-route .velo-toolbar{flex:none;padding:10px 16px}.velo-route .velo-thread{min-height:0;flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.velo-route .velo-input-area{flex:none;padding:8px 12px max(8px,env(safe-area-inset-bottom))}.velo-route .velo-composer{padding:10px 12px 8px;border-radius:24px}.velo-route .velo-composer textarea{font-size:16px!important}.velo-route .velo-model select{font-size:16px!important;padding:3px 2px}.velo-route .velo-model{padding:3px 7px}.velo-route .velo-input-area>p{margin-top:6px}}

/* Mobile application navigation, with Velo as the central action. */
.mobile-tabs{display:none}#mobile-navigation:not(:defined){display:none}#mobile-navigation{--size:min(730px,90dvh);--spacing:20px;--backdrop-color:#18283e66;--backdrop-filter:blur(4px);--show-duration:220ms;--hide-duration:160ms}#mobile-navigation::part(dialog){border-radius:28px 28px 0 0;background:#fff;color:#253243;border:1px solid #e0e7f0}#mobile-navigation::part(body){padding:10px 22px max(22px,env(safe-area-inset-bottom))}.sheet-handle{height:4px;width:40px;background:#d4deea;border-radius:10px;margin:0 auto 22px}.sheet-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.sheet-title h2{margin:0 0 5px}.sheet-title p{font-size:12px;color:#75869a}.sheet-title button{font-size:12px}.sheet-navigation{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 20px}.sheet-navigation :is(button,a){display:flex;align-items:center;gap:10px;justify-content:flex-start;padding:16px 12px;min-height:62px;background:#f6f8fc;border:1px solid #e7edf5;text-align:left;font-size:13px}.sheet-navigation :is(button,a) span:last-child{margin-left:auto;color:#8e9cad}.sheet-navigation :is(button,a)[aria-current]{background:#e7effb;border-color:#cadcf3;color:#254f87}.sheet-logout{width:100%;min-height:46px;background:#fff;color:#66768c}.mobile-tabs button:active,.sheet-navigation :is(button,a):active{transform:scale(.96)}button{transition:background-color .16s,border-color .16s,transform .16s}button:focus-visible{outline:3px solid #97b5df;outline-offset:3px}
@media(max-width:760px){
 .shell{padding:0 0 calc(78px + env(safe-area-inset-bottom));background:#f5f7fb}.main{border:0;border-radius:0;min-height:calc(100svh - 78px);background:#f8fafd}.topbar{background:#ffffffed;backdrop-filter:blur(12px);padding:0 20px}.topbar .mobile-menu{display:none}.topbar strong{font-size:17px}.topbar small{font-size:11px;max-width:170px}.content{padding:24px 18px}.card{border-radius:22px;border-color:#e4eaf3;padding:20px;box-shadow:0 3px 12px #314e7204}.page-head{gap:14px;margin-bottom:22px}.page-head h1{font-size:27px;line-height:1.2}.page-head p{font-size:13px;line-height:1.65}.page-head>button{min-height:46px;border-radius:16px}.cards{gap:10px;grid-template-columns:1fr 1fr}.cards .card{padding:18px}.cards .card:first-child{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;background:#eaf1fc;border-color:#dbe6f5}.cards .card:first-child .metric{grid-column:2;grid-row:1/3;margin:0;font-size:40px;color:#254f87}.cards .card:first-child p{margin:5px 0 0}.cards .card p{font-size:12px}.cards .card .metric{font-size:30px;margin:10px 0 5px}.muted{color:#6f8095}.field input,.field textarea,.field select,.search,.date-input{min-height:48px;border-radius:14px;background:#f9fbfe;border-color:#dce5f0}.field{font-weight:500;gap:9px}.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #b9ceed;border-color:#6f96c8}.primary{box-shadow:0 3px 8px #254f8716}.badge{border-radius:10px;padding:5px 9px}.mobile-tabs{position:fixed;bottom:0;left:0;right:0;z-index:18;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;height:calc(76px + env(safe-area-inset-bottom));padding:5px 8px max(7px,env(safe-area-inset-bottom));background:#ffffffef;border-top:1px solid #e1e8f1;backdrop-filter:blur(18px);box-shadow:0 -4px 22px #254f8706}.mobile-tabs button{display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0;border:0;background:transparent;border-radius:16px;height:59px;padding:8px 2px;color:#7f8da0;font-size:10px;font-weight:500}.mobile-tabs button>svg{width:22px;height:22px}.mobile-tabs button.selected{color:#254f87;background:#edf3fc}.mobile-tabs .tab-velo{height:76px;position:relative;gap:3px;padding:0 0 7px;color:#254f87;font-weight:700}.tab-velo-orb{display:grid;place-items:center;width:58px;height:58px;margin-top:-12px;background:linear-gradient(145deg,#edf4ff,#d9e7fc);border:4px solid #fff;border-radius:21px;box-shadow:0 4px 12px #254f8729}.tab-velo-orb img{width:46px;height:46px;object-fit:contain;border-radius:15px}.mobile-tabs .tab-velo.selected{background:transparent}.tab-velo.selected .tab-velo-orb{background:#c6dcfa;box-shadow:0 0 0 2px #adc8ef,0 5px 14px #254f8729}.chat-route:not(.chat-open) .chat{height:calc(var(--chat-height,100dvh) - 143px - env(safe-area-inset-bottom))}.chat-route.chat-open .mobile-tabs{display:none}.chat-route.chat-open{padding:0}.chat-route.chat-open{min-height:0;height:var(--chat-height,100dvh)}
 /* min-height:100svh on .shell used to override the keyboard-aware height. */
 .velo-active .shell.velo-route{min-height:0!important;max-height:var(--chat-height,100dvh);padding:0}.velo-route .main{min-height:0!important;flex:1;background:#fff;padding-bottom:calc(76px + env(safe-area-inset-bottom))}.velo-route .content{width:100%;min-height:0}.velo-route .velo-workspace{height:auto;min-height:0}.velo-route .mobile-tabs{position:absolute}.keyboard-open .velo-route .mobile-tabs{display:none}.keyboard-open .velo-route .main{padding-bottom:0}.keyboard-open .velo-toolbar{display:none}.keyboard-open .velo-input-area{padding-bottom:8px}.keyboard-open .velo-input-area>p{display:none}.velo-route .velo-thread{overflow-anchor:none}.velo-welcome{min-height:0;height:auto;padding:28px 0}.velo-route .velo-thread:has(.velo-welcome){display:flex;align-items:safe center;justify-content:center}.velo-route .velo-welcome{flex:none;width:100%}.velo-composer textarea{max-height:min(120px,24dvh)}
 #dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:90dvh;border-radius:26px 26px 0 0;padding:24px 22px max(22px,env(safe-area-inset-bottom));border:1px solid #e2e8f1}#dialog::before{content:'';display:block;width:38px;height:4px;border-radius:8px;background:#d7dfea;margin:-12px auto 23px}#dialog::backdrop{background:#18283e66;backdrop-filter:blur(3px)}#dialog footer{position:sticky;bottom:-22px;background:#fff;padding:16px 0 6px;gap:10px}#dialog footer button{min-height:48px;flex:1}#notice{bottom:calc(88px + env(safe-area-inset-bottom));max-width:calc(100vw - 32px);border-radius:16px}
}
@media(prefers-reduced-motion:reduce){button,#mobile-navigation{transition:none;--show-duration:0ms;--hide-duration:0ms}}
/* Management screens follow the original Velox landing layouts. */
.management-toolbar{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:20px 0}.management-toolbar>.field{margin:0;min-width:175px}.management-toolbar>p{max-width:540px;margin:0 0 8px}.management-footnote{margin-top:18px}.management-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.management-metrics.four{grid-template-columns:repeat(4,minmax(0,1fr))}.management-metric strong{display:block;font-size:27px;letter-spacing:-.6px;margin:14px 0 9px}.management-metric small{display:block;line-height:1.6}.management-two{display:grid;grid-template-columns:1.65fr 1fr;gap:18px;margin:20px 0}.management-segments{display:flex;gap:7px;overflow:auto;max-width:100%;padding:5px 0 12px;flex-wrap:wrap}.management-segments button{white-space:nowrap;border:0;background:#f0f3f8;border-radius:22px;font-size:12px;padding:10px 14px;min-height:40px}.management-segments button[aria-pressed=true]{background:#dfeafb;color:#244f89}.pipeline-tabs{display:none}.pipeline-board{display:grid;grid-template-columns:repeat(5,minmax(230px,1fr));gap:14px;overflow-x:auto;padding-bottom:16px;align-items:start}.pipeline-lane{background:#f3f6fa;border:1px solid #e8edf4;border-radius:18px;min-height:410px;padding:13px}.pipeline-lane header{position:relative;padding:8px 0 14px}.pipeline-lane h2{font-size:14px;margin:0 35px 9px 0;border-left:3px solid #87a3cb;padding-left:9px}.pipeline-lane header p{font-size:12px;color:#8390a1;margin:0}.pipeline-lane header button{position:absolute;right:0;top:0;padding:6px 9px;background:transparent}.pipeline-card{display:flex;flex-direction:column;align-items:stretch;gap:11px;justify-content:flex-start;text-align:left;width:100%;padding:15px;border-radius:14px;background:#fff;margin-bottom:12px;line-height:1.5;box-shadow:0 2px 5px #254f8705}.pipeline-card .row{gap:8px;font-size:13px}.pipeline-card .avatar{flex:none;width:32px;height:32px}.pipeline-card>span:not(.row){font-size:13px}.pipeline-card>small{font-size:11px}.pipeline-card>strong{font-size:15px}.pipeline-next{display:block;background:#eef3fc;color:#526f94;border-radius:8px;padding:7px 9px;overflow-wrap:anywhere}.lane-empty{font-size:12px;line-height:1.7;text-align:center;padding:28px 6px;color:#8591a3}.cash-legend{display:flex;gap:20px;color:#668ac0;font-size:12px}.cash-legend span+span{color:#9eafc5}.cash-chart{height:185px;display:flex;align-items:stretch;justify-content:space-around;gap:12px;margin:18px 0 8px;padding-top:8px}.cash-bar-group{flex:1;min-width:0;display:flex;align-items:center;flex-direction:column;gap:8px}.cash-bars{height:145px;display:flex;align-items:end;justify-content:center;gap:5px;width:100%}.cash-bars span{display:block;background:#668ac0;border-radius:5px 5px 0 0;max-width:25px;width:35%;min-height:1px}.cash-bars span+span{background:#cad8ed}.cash-bar-group small{font-size:10px;color:#8291a5;white-space:nowrap}.cash-amount{font-weight:600;white-space:nowrap}.cash-amount.expense{color:#98635b}.management-list-button{border:0;border-bottom:1px solid #e7edf5;border-radius:0;display:flex;text-align:left;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:16px 0;background:transparent}.management-list-button>span:not(.avatar){flex:1;min-width:0}.management-list-button strong{display:block;font-size:13px}.management-list-button small{display:block;font-size:11px;color:#8090a5;margin-top:6px;line-height:1.5}.management-list-button .badge{margin-top:7px}.management-list-button.selected{background:#edf3fc;border-radius:12px}.return-workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:18px;margin-top:16px}.return-list .management-list-button{padding:15px 12px}.return-list .avatar{flex:none}.return-detail h2{font-size:17px;margin-bottom:5px}.return-summary{background:#f3f6fc;border-radius:14px;padding:18px;margin:22px 0}.return-summary h3{margin:10px 0}.return-summary>strong{display:block;margin-bottom:14px}.management-notes{white-space:pre-wrap;line-height:1.7;margin:20px 0;overflow-wrap:anywhere}.management-timeline{padding:16px 0 16px 18px;border-left:2px solid #dce7f5;position:relative}.management-timeline:before{content:'';width:8px;height:8px;border-radius:50%;background:#89a3ca;position:absolute;left:-5px;top:20px}.management-timeline strong{font-size:13px;display:block;line-height:1.6}.management-timeline small{color:#8292a5;display:block;margin-top:5px;font-size:11px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sidebar .nav{gap:2px}.sidebar .nav :is(button,a){padding:10px 14px}.sidebar{overflow-y:auto}
@media(max-width:1050px){.management-metrics.four{grid-template-columns:repeat(2,minmax(0,1fr))}.management-two,.return-workspace{grid-template-columns:1fr}.return-detail{min-width:0}}
@media(max-width:760px){.management-metrics{grid-template-columns:1fr;gap:10px}.management-metrics.four{grid-template-columns:1fr 1fr;gap:10px}.management-metric{padding:16px!important}.management-metric strong{font-size:24px;overflow-wrap:anywhere}.management-metric .muted{font-size:12px}.management-metric small{font-size:11px}.management-toolbar{align-items:stretch;gap:10px}.management-toolbar>.field{flex:1;min-width:130px}.management-toolbar button{min-height:44px}.management-toolbar h2{margin:8px 0}.pipeline-tabs{display:flex}.management-segments{flex-wrap:nowrap;scrollbar-width:none;overscroll-behavior-inline:contain}.management-segments button{min-height:44px}.pipeline-board{display:block;overflow:visible}.pipeline-lane{display:none;min-height:220px}.pipeline-lane.current{display:block}.pipeline-card{padding:18px}.pipeline-card .row{font-size:15px}.pipeline-card .avatar{width:38px;height:38px}.pipeline-card small{font-size:12px}.management-two{gap:14px}.cash-chart{gap:7px}.return-workspace{gap:14px}.return-list{max-height:520px;overflow:auto}.management-list-button strong{font-size:14px}.management-list-button small{font-size:12px}.management-table td:nth-child(3){font-size:13px}.management-table .cash-amount{font-size:18px}.sheet-navigation :is(button,a){min-height:56px}.sheet-navigation{gap:8px}#mobile-navigation{--size:min(760px,92dvh)}}

.pipeline-board{grid-template-columns:repeat(4,minmax(220px,1fr))}.pipeline-lane{min-height:560px}.pipeline-lane:nth-child(3) h2{border-left-color:#7c9e96}.pipeline-lane:nth-child(4) h2{border-left-color:#4a826b}.management-refresh{margin-left:auto}.page-head:has(.management-refresh)>div{flex:1}@media(max-width:760px){.pipeline-lane{min-height:220px}.management-refresh{margin-left:0}.page-head:has(.management-refresh)>div{flex-basis:100%}.management-refresh button{min-height:46px}}

.cash-bars svg{width:100%;height:145px;max-width:65px;stroke:none;fill:none}.cash-bars svg rect{stroke:none}
/* Clinic settings: shared typography, restrained surfaces, touch-size controls. */
.settings-tabs{display:flex;gap:6px;border-bottom:1px solid #dce3ed;margin-bottom:28px;overflow-x:auto;padding:0 0 12px}.settings-tabs button{border:0;background:transparent;white-space:nowrap;padding:12px 20px;color:#647386}.settings-tabs button[aria-current=page]{background:#e2ebf8;color:#244f85;font-weight:650}.settings-content{max-width:1280px}.settings-content>.page-head{display:none}.settings-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:24px;margin-bottom:28px}.settings-card-head{margin-bottom:22px}.settings-card-head p,.settings-flow p{color:#708094;line-height:1.65}.settings-kicker{font-size:11px;font-weight:700;letter-spacing:.13em;color:#6683a7}.settings-toggle{position:relative;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px 0;border-bottom:1px solid #edf0f5;cursor:pointer;margin-bottom:16px}.settings-toggle span{display:grid;gap:5px}.settings-toggle small{color:#708094;line-height:1.5}.settings-toggle input{position:absolute;right:0;opacity:0;width:46px;height:30px;cursor:pointer}.settings-toggle i{display:block;flex:none;width:46px;height:28px;border-radius:20px;background:#cbd5e2;pointer-events:none;transition:background .2s}.settings-toggle i:before{content:'';display:block;width:22px;height:22px;margin:3px;background:white;border-radius:50%;box-shadow:0 1px 3px #2343;transition:transform .2s}.settings-toggle input:checked+i{background:#315f99}.settings-toggle input:checked+i:before{transform:translateX(18px)}.settings-toggle input:focus-visible+i{outline:3px solid #80aaf0;outline-offset:3px}.settings-save{display:flex;gap:24px;align-items:center;justify-content:space-between;margin-top:24px}.settings-save p{font-size:12px;line-height:1.6;color:#708094;max-width:300px}.settings-save button{flex:none}.settings-flow{background:#eef3fa}.settings-flow ol{padding-left:22px;margin:25px 0}.settings-flow li{padding:0 0 16px 8px;color:#315782}.settings-flow li p{margin:5px 0 0;font-size:13px}.service-setting{display:grid;grid-template-columns:minmax(160px,1fr) 155px 140px auto;gap:24px;align-items:center;padding:24px 0;border-bottom:1px solid #e7edf4}.service-setting:last-child{border-bottom:0}.service-setting-title{display:grid;gap:5px}.service-setting-title>span,.service-setting-title>small{color:#718195;font-size:13px}.service-setting .field,.service-setting .settings-toggle{margin:0;border:0}.service-setting .settings-toggle{gap:12px}.service-setting input[type=number]{font-variant-numeric:tabular-nums}.deposit-queue{margin-bottom:26px}.deposit-row{display:flex;align-items:center;gap:18px;padding:22px 0;border-top:1px solid #e8edf4}.deposit-avatar{display:grid;place-items:center;background:#e8f0fc;color:#416999;width:42px;height:42px;border-radius:13px;font-size:23px;flex:none}.deposit-info{display:grid;gap:5px;flex:1;min-width:0}.deposit-info>span,.deposit-info>small{font-size:12px;color:#718195;line-height:1.5}.deposit-amount{display:grid;gap:7px;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.deposit-detail h3{margin:20px 0 0}.deposit-total{font-size:36px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.deposit-detail details{margin:20px 0}.deposit-detail textarea{width:100%;font-size:16px;word-break:break-all}.deposit-detail form{display:grid;gap:14px}.settings-empty{padding:28px 0;color:#718195}.settings-empty p{font-size:13px}.settings-content h1{font-size:26px}
@media(max-width:1000px){.service-setting{grid-template-columns:1fr 1fr}.settings-columns{grid-template-columns:1fr}.settings-flow ol{display:grid;grid-template-columns:1fr 1fr;gap:18px}.deposit-avatar{display:none}}
@media(max-width:760px){.settings-tabs{margin-bottom:20px}.settings-tabs button{padding:12px 15px}.settings-save{display:block}.settings-save button{width:100%}.settings-flow ol{display:block}.service-setting{gap:18px}.service-setting-title{grid-column:1/-1}.service-setting>button{grid-column:1/-1}.deposit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px}.deposit-info{grid-column:1/-1}.deposit-amount{text-align:left}.deposit-row>button{align-self:end}.deposit-queue>.row{align-items:flex-start;flex-wrap:wrap}.settings-toggle{min-height:44px}.settings-content .form-grid{grid-template-columns:1fr}.settings-content input,.settings-content select{min-width:0;font-size:16px}}
@media(max-width:760px){.settings-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;overflow:visible}.settings-tabs button{font-size:12px;padding:12px 5px}.settings-services>.row{flex-wrap:wrap;gap:12px}.settings-services>.row>div{flex-basis:100%}.settings-services>.row>button{white-space:nowrap}}
.patient-actions,.patient-contact{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.patient-contact{justify-content:space-between;margin-bottom:20px}.patient-actions button{white-space:nowrap}.chat-send-guidance{padding:14px 20px;background:#f0f5fc;border-top:1px solid #dae4f1;font-size:13px;line-height:1.6;flex:none}.chat-send-guidance[hidden]{display:none}.chat-whatsapp-link{display:block;margin-top:8px;color:#275990;font-weight:600;width:fit-content}.composer textarea:disabled{opacity:.65}.composer button:disabled{opacity:.4;cursor:not-allowed}@media(max-width:760px){.patient-actions{width:100%;gap:8px}.patient-actions button{flex:1;min-height:44px}.patient-contact button{width:100%}.chat-send-guidance{padding:12px 16px;font-size:12px}}

.nav a,.sheet-navigation a{display:flex;align-items:center;gap:8px;border-radius:12px;font:inherit;color:inherit;text-decoration:none;cursor:pointer}.nav a:focus-visible,.sheet-navigation a:focus-visible{outline:2px solid #254f87;outline-offset:3px}
