/* Shared clinic screens; deliberately scoped away from the owner application. */
body[data-clinic-desk] #belyash-care-prototype:not(.bo-login) .bo-shell{max-width:1180px;min-height:100vh;margin:auto;display:block}
body[data-clinic-desk] #belyash-care-prototype:not(.bo-login) .bo-body{padding:32px}
body[data-clinic-desk] .bo-telegram,body[data-clinic-desk] .bo-nav,body[data-clinic-desk] .bo-addwrap{display:none!important}
.cp{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:inherit;line-height:1.5;font-size:16px;box-sizing:border-box}
.cp *{box-sizing:border-box}.cp h1{font-size:clamp(26px,4vw,42px);line-height:1.15;margin:12px 0 18px}.cp h2{font-size:23px;margin:0 0 16px}.cp h3{font-size:19px;margin:0 0 12px}
.cp header{display:flex;gap:20px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:24px}.cp small{display:block;color:#777b70}.cp p{margin:10px 0}.cp a{color:inherit}
.cp-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;align-items:start}.cp-card{border:1px solid #dedbcf;border-radius:22px;padding:24px;background:#fffdf8;margin:16px 0;overflow-wrap:anywhere}.cp-card:first-child{margin-top:0}
.cp-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.cp button,.cp input,.cp select{font:inherit}.cp button,.cp .cp-button{border:1px solid #d6d2c6;border-radius:12px;padding:12px 18px;background:transparent;color:inherit;cursor:pointer;min-height:46px;text-decoration:none;display:inline-block}.cp button.primary{background:#ad5b25;color:#fff;border-color:#ad5b25}.cp button:disabled{opacity:.55;cursor:wait}.cp input:not([type=checkbox]),.cp select{padding:12px;border:1px solid #c9c7bd;border-radius:10px;background:transparent;color:inherit;width:100%;min-width:0}.cp label{display:block;margin:16px 0}.cp label.cp-check{display:flex;gap:12px;align-items:flex-start}.cp input[type=checkbox]{width:19px;height:19px;flex-shrink:0;margin-top:3px;accent-color:#ad5b25}.cp label span{display:block}.cp form button.primary{width:100%}.cp .cp-note{border-radius:14px;background:#eee8db;padding:16px;margin:16px 0}.cp .cp-error{color:#a12922;white-space:pre-wrap;overflow-wrap:anywhere;min-height:24px}.cp .cp-link{overflow-wrap:anywhere;word-break:break-all}.cp .cp-qr{display:block;width:210px;max-width:100%;height:auto;margin:16px auto;background:white;padding:8px}.cp .cp-badge{border-radius:99px;background:#ede8dc;padding:4px 10px;font-size:13px;display:inline-block}.cp .cp-record{white-space:pre-wrap;overflow-wrap:anywhere}.cp details{margin:12px 0}.cp summary{cursor:pointer;font-weight:600}.cp .cp-new[hidden]{display:none}.cp-dialog{background:#faf7ef;color:#292c24;border:1px solid #ddd8ca;border-radius:24px;width:640px;max-width:calc(100vw - 24px);max-height:90vh;padding:24px}.cp-dialog::backdrop{background:#0007}.cp-dialog .cp-close{float:right;margin:0 0 12px 12px}.cp-dialog h1{clear:both}.cp .cp-status{white-space:pre-wrap}.cp .cp-muted{color:#74796d}
@media(max-width:720px){.cp-grid{grid-template-columns:1fr}body[data-clinic-desk] #belyash-care-prototype:not(.bo-login) .bo-body{padding:16px}.cp-card{padding:18px}.cp-dialog{padding:18px}.cp-row>*{max-width:100%}}
@media(prefers-color-scheme:dark){.cp-card{background:#292920;border-color:#49493e}.cp .cp-note,.cp .cp-badge{background:#3e3a2b}.cp small,.cp .cp-muted{color:#bbbcb1}.cp-dialog{background:#25251e;color:#efeee6;border-color:#525044}.cp button,.cp input:not([type=checkbox]),.cp select{border-color:#69675a}.cp select option{background:#292920}.cp .cp-error{color:#ffb5a9}}
#belyash-care-prototype .cp button{font:inherit;border:1px solid #d6d2c6;border-radius:12px;padding:12px 18px;background:transparent;min-height:46px;text-align:center;line-height:1.35}
#belyash-care-prototype .cp button.primary{background:#ad5b25;color:#fff;border-color:#ad5b25}
/* Follow the app's actual theme, which may differ from the OS in Telegram. */
#belyash-care-prototype .cp-card{background:var(--bo-surface);color:var(--bo-text);border-color:var(--bo-line)}
#belyash-care-prototype .cp small,#belyash-care-prototype .cp .cp-muted{color:var(--bo-muted)}
#belyash-care-prototype .cp .cp-note,#belyash-care-prototype .cp .cp-badge{background:var(--bo-soft);color:var(--bo-text)}
#belyash-care-prototype .cp button:not(.primary){color:var(--bo-text);border-color:var(--bo-line)}
#belyash-care-prototype .cp button.cp-secondary{border:0;background:none;text-decoration:underline;text-underline-offset:3px;color:var(--bo-muted);padding:10px 0;font-size:14px}

/* Approved clinic connection design · 2026-10-28. */
.cp-owner,.cp-desk{--cp-bg:#faf6ef;--cp-surface:#fff;--cp-ink:#29241f;--cp-muted:#746d64;--cp-line:#e8e1d5;--cp-soft:#f2ebdd;--cp-accent:#ff981f;--cp-purple:#705293;--cp-lavender:#e9e0f5;--cp-success:#4c6652;font-family:BelyashManrope,Manrope,-apple-system,sans-serif;color:var(--cp-ink);font-size:14px;line-height:1.6}
.cp-owner [hidden],.cp-desk [hidden]{display:none!important}.cp-owner h1,.cp-desk h1{font-weight:800;letter-spacing:-1px;font-size:28px;line-height:1.2}.cp-owner h2,.cp-desk h2{font-weight:800;font-size:20px;line-height:1.35;letter-spacing:-.5px}.cp-owner h3,.cp-desk h3{font-size:15px;font-weight:800}.cp-owner strong,.cp-desk strong{font-weight:800}.cp-owner small,.cp-desk small,.cp-owner .cp-muted,.cp-desk .cp-muted{color:var(--cp-muted)}
body[data-clinic-desk] #belyash-care-prototype:not(.bo-login) .bo-body{padding:0}body[data-clinic-desk] #belyash-care-prototype:not(.bo-login) .bo-shell{background:var(--cp-bg,#faf6ef)}
.cp-desk{background:var(--cp-bg);min-height:100vh}.cp-desk .cp-workspace{padding:32px 40px 48px}.cp-desk .cp-desk-header{padding:22px 30px;background:var(--cp-surface);margin:0}.cp-desk-header>div:first-child{display:flex;gap:14px;align-items:center}.cp-desk-header strong{font-size:25px;letter-spacing:-1px}.cp-desk-header span{font-size:12px;color:var(--cp-muted)}.cp-desk .cp-desk-header .cp-button,.cp-desk .cp-desk-header button{font-size:12px;min-height:38px;padding:8px 12px}.cp-breadcrumb{font-size:12px;color:var(--cp-muted)}
.cp-desk .cp-grid{grid-template-columns:minmax(0,1fr) 310px;gap:26px;margin-top:28px}.cp-owner .cp-card,.cp-desk .cp-card{border:0;border-radius:22px;background:var(--cp-surface);padding:24px;color:var(--cp-ink)}.cp-flow{background:var(--cp-surface);border-radius:24px;padding:26px;min-width:0;align-self:start}.cp-flow>[data-step-panel]>div>.cp-card{padding:0;margin:0}.cp-flow [data-clients]>.cp-card{padding:0;border-radius:0;background:none;margin-top:24px}.cp-flow [data-clients] .cp-card .cp-card{border:1px solid var(--cp-line);padding:16px;border-radius:16px}.cp-invitation{padding:18px 0;border-bottom:1px solid var(--cp-line)}.cp-invitation:last-child{border:0;padding-bottom:0}.cp-invitation h3{margin:10px 0 4px}.cp-invitation small{margin-bottom:5px}.cp-aside-note{padding:20px 6px;font-size:12px;color:var(--cp-muted)}
.cp-owner button,.cp-desk button,.cp-desk .cp-button,#belyash-care-prototype .cp-desk button{font:inherit;border:1px solid var(--cp-line);border-radius:14px;background:var(--cp-surface);color:var(--cp-ink);padding:12px 16px;min-height:46px;line-height:1.4;overflow-wrap:anywhere}.cp-owner button.primary,.cp-desk button.primary,#belyash-care-prototype .cp-desk button.primary{background:var(--cp-accent);color:#29241f;border-color:var(--cp-accent);font-weight:800}.cp-owner>.primary,.cp-owner [data-content]>.primary,.cp-join-layout>.cp-card>.primary{width:100%}.cp-owner button:disabled,.cp-desk button:disabled{opacity:.45;cursor:default}.cp-owner button:focus-visible,.cp-desk button:focus-visible,.cp-owner select:focus-visible,.cp-desk input:focus-visible,.cp-owner summary:focus-visible,.cp-desk summary:focus-visible{outline:3px solid var(--cp-purple);outline-offset:3px}
.cp-owner input:not([type=checkbox]),.cp-owner select,.cp-desk input:not([type=checkbox]),.cp-desk select{background:var(--cp-bg);border:1px solid var(--cp-line);border-radius:12px;padding:12px;color:var(--cp-ink);min-height:46px}.cp-owner select option,.cp-desk select option{background:var(--cp-surface);color:var(--cp-ink)}.cp-owner label,.cp-desk label{font-size:13px;font-weight:600}.cp-owner label select,.cp-desk label input{margin-top:8px}.cp-owner input[type=checkbox],.cp-desk input[type=checkbox]{accent-color:var(--cp-accent);margin-top:3px}.cp-owner .cp-check,.cp-desk .cp-check{font-size:13px;font-weight:400;line-height:1.6}.cp-check small{margin-top:4px}.cp-desk .cp-pet-choice{background:var(--cp-bg);padding:16px;border-radius:16px}.cp-desk .cp-pet-choice span{font-weight:800}.cp-desk .cp-pet-choice small{font-weight:400}
.cp-owner .cp-note,.cp-desk .cp-note{background:var(--cp-soft);color:var(--cp-ink);padding:16px;border-radius:16px;font-size:12px}.cp-owner .cp-badge,.cp-desk .cp-badge{background:var(--cp-soft);color:var(--cp-ink);font-size:11px}.cp-desk .cp-connected{background:#e9eee5;color:#4c6652}.cp-fine{font-size:11px!important;text-align:center;color:var(--cp-muted);margin:12px 0!important}.cp-owner .cp-error:empty,.cp-desk .cp-error:empty{display:none}.cp-owner .cp-error,.cp-desk .cp-error{font-size:13px;margin-bottom:16px}.cp-owner .cp-clinic-identity,.cp-desk .cp-clinic-identity{display:flex;gap:13px;align-items:center;background:var(--cp-surface);border-radius:20px;padding:18px;margin:22px 0}.cp-clinic-identity>div{min-width:0;overflow-wrap:anywhere}.cp-clinic-mark{display:grid!important;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:15px;background:var(--cp-lavender);color:var(--cp-purple);font-size:30px;font-weight:400}.cp-clinic-identity small{margin-top:3px;font-size:12px}.cp-card>.cp-clinic-identity{padding:0;margin:0 0 24px}.cp-success{display:grid;place-items:center;width:64px;height:64px;border-radius:24px;background:#e9eee5;color:#4c6652;font-size:30px;margin:12px 0 24px}.cp-owner .cp-match h3{font-size:18px;margin:12px 0 2px}.cp-owner .cp-match{padding:20px}
.cp-owner.cp-dialog{background:var(--cp-bg);color:var(--cp-ink);border:0;border-radius:28px;width:430px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:26px}.cp-owner .cp-dialog-head{display:flex;gap:12px;align-items:start;margin-bottom:24px}.cp-owner .cp-dialog-head h1{font-size:24px;margin:4px 0 0;flex:1;clear:none}.cp-owner .cp-close{float:none;flex-shrink:0;width:32px;height:32px;min-height:32px;padding:0;font-size:25px;line-height:1;background:transparent;border:0;margin:0}.cp-owner details{font-size:12px;color:var(--cp-muted);margin-top:18px}.cp-owner summary{font-weight:600;color:var(--cp-ink)}.cp-benefits{border-radius:20px;background:var(--cp-surface);padding:4px 18px;margin:24px 0}.cp-benefits>div{padding:14px 0}.cp-benefits>div+div{border-top:1px solid var(--cp-line)}.cp-benefits small{font-size:12px;margin-top:3px}.cp-steps-list{list-style:none;padding:0;counter-reset:connect;display:grid;gap:16px;margin:18px 0 24px}.cp-steps-list li{counter-increment:connect;display:flex;gap:12px}.cp-steps-list li:before{content:counter(connect);border:1px solid var(--cp-line);border-radius:50%;width:25px;height:25px;display:grid;place-items:center;flex-shrink:0;font-size:12px}.cp-steps-list small{font-size:12px;margin-top:3px}
.cp-progress{display:flex;gap:18px;margin-bottom:24px;flex-wrap:wrap}.cp-progress span{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--cp-muted)}.cp-progress b{display:grid;place-items:center;border:1px solid var(--cp-line);border-radius:50%;width:25px;height:25px;font-size:12px;font-weight:400}.cp-progress .current{font-weight:800;color:var(--cp-ink)}.cp-progress .current b{background:var(--cp-ink);color:var(--cp-surface);border-color:var(--cp-ink)}.cp-desk .cp-back,#belyash-care-prototype .cp-desk .cp-back{border:0;background:none;padding:0 0 16px;min-height:32px;text-align:left;font-size:12px;color:var(--cp-muted)}.cp-join-layout{max-width:880px;display:grid;grid-template-columns:1fr 1fr;gap:54px;margin:44px auto}.cp-join-layout h1{font-size:36px;line-height:1.2;margin:22px 0}.cp-join-layout>.cp-card{align-self:start}.cp-join-benefits{list-style:none;padding:0;margin:26px 0;display:grid;gap:18px}.cp-join-benefits li:before{content:'✓';color:var(--cp-purple);margin-right:12px}.cp-join-layout .cp-note ul{padding-left:20px;margin:12px 0 0}.cp-join-layout .cp-note li{margin:8px 0}.cp-join-layout details{font-size:12px}.cp-qr-layout{display:flex;gap:24px;align-items:center;margin:24px 0}.cp-qr-layout .cp-qr{width:160px;height:160px;margin:0;border:1px solid var(--cp-line);border-radius:16px;flex-shrink:0}.cp-qr-layout p{font-size:13px}.cp-desk .cp-link{padding:14px;background:var(--cp-bg);border:1px solid var(--cp-line);border-radius:12px;font-size:12px;user-select:all}.cp-desk [data-result] .cp-row{margin-top:18px}.cp-desk [data-result] .cp-row>*{flex:1}.cp-desk [data-result] .cp-row [data-revoke]{flex:0 0 auto;color:var(--cp-muted)}
@media(prefers-color-scheme:dark){.cp-owner:not([data-theme=light]),.cp-desk{--cp-bg:#25241f;--cp-surface:#302e28;--cp-ink:#f4eee4;--cp-muted:#bfb5a5;--cp-line:#514a3e;--cp-soft:#3b352a;--cp-lavender:#3c324b;--cp-purple:#c5a7eb}.cp-owner .cp-error,.cp-desk .cp-error{color:#ffb5a9}}
.cp-owner[data-theme=dark]{--cp-bg:#25241f;--cp-surface:#302e28;--cp-ink:#f4eee4;--cp-muted:#bfb5a5;--cp-line:#514a3e;--cp-soft:#3b352a;--cp-lavender:#3c324b;--cp-purple:#c5a7eb}.cp-owner[data-theme=dark] .cp-error{color:#ffb5a9}
@media(max-width:850px){.cp-desk .cp-grid{grid-template-columns:1fr}.cp-desk .cp-workspace{padding:24px}.cp-desk .cp-join-layout{gap:24px;margin:20px auto}.cp-desk .cp-grid aside{display:block}.cp-desk .cp-desk-header{padding:20px}}
@media(max-width:540px){.cp-desk .cp-workspace{padding:20px 16px}.cp-desk .cp-desk-header{padding:16px;gap:12px}.cp-desk-header>div:first-child{display:block}.cp-desk-header span{display:block;font-size:11px}.cp-desk .cp-desk-header .cp-row{gap:6px}.cp-desk .cp-desk-header .cp-button,.cp-desk .cp-desk-header button{padding:8px;font-size:11px}.cp-desk .cp-card,.cp-flow{padding:20px}.cp-desk .cp-join-layout{grid-template-columns:1fr;gap:18px;margin:0}.cp-join-layout h1{font-size:28px}.cp-join-benefits{display:none}.cp-owner.cp-dialog{padding:22px 20px}.cp-owner .cp-dialog-head h1{font-size:22px}.cp-progress{gap:10px}.cp-progress span{font-size:10px;gap:5px}.cp-progress b{width:22px;height:22px}.cp-qr-layout{gap:14px;flex-wrap:wrap}.cp-qr-layout .cp-qr{width:144px;height:144px}.cp-desk .cp-row>*{max-width:100%}.cp-desk [data-result] .cp-row{flex-direction:column;align-items:stretch}.cp-desk h1{font-size:28px}.cp-desk aside .cp-card>.cp-row{align-items:start;flex-direction:column}}

/* Ясная забота: shared final clinic palette. */
.cp{--cp-bg:light-dark(#fff,#17242c);--cp-surface:light-dark(#fff,#17242c);--cp-ink:light-dark(#1b303a,#f1f7fa);--cp-muted:light-dark(#61717e,#b5c5d0);--cp-line:light-dark(#dce4e9,#3c505c);--cp-soft:light-dark(#f6f9fb,#1f303b);--cp-accent:#ff8500;--cp-purple:light-dark(#426477,#a8d5ed);--cp-lavender:light-dark(#e8f5fc,#243e4e)}
.cp .cp-card{border-radius:12px;box-shadow:none}.cp .cp-button{border-radius:10px;min-height:44px}.cp :is(input,select,textarea){border-radius:10px;font-size:16px;min-height:46px;min-width:0;max-width:100%}.cp h1{font-size:26px;line-height:1.25}.cp h2{font-size:21px;line-height:1.35}.cp .cp-row{border-radius:0}.cp-desk .cp-workspace{background:var(--cp-bg)}
.cp-owner,.cp-desk,.cp-owner[data-theme=light]{--cp-bg:#fff;--cp-surface:#fff;--cp-ink:#1b303a;--cp-muted:#61717e;--cp-line:#dce4e9;--cp-soft:#f6f9fb;--cp-accent:#ff8500;--cp-purple:#426477;--cp-lavender:#e8f5fc}
@media(prefers-color-scheme:dark){.cp-owner:not([data-theme=light]),.cp-desk{--cp-bg:#17242c;--cp-surface:#17242c;--cp-ink:#f1f7fa;--cp-muted:#b5c5d0;--cp-line:#3c505c;--cp-soft:#1f303b;--cp-lavender:#243e4e;--cp-purple:#a8d5ed}}
.cp-owner[data-theme=dark]{--cp-bg:#17242c;--cp-surface:#17242c;--cp-ink:#f1f7fa;--cp-muted:#b5c5d0;--cp-line:#3c505c;--cp-soft:#1f303b;--cp-lavender:#243e4e;--cp-purple:#a8d5ed}
.cp-owner .cp-card,.cp-desk .cp-card,.cp-flow{border-radius:12px}.cp-owner h1,.cp-desk h1{font-size:26px}.cp-owner h2,.cp-desk h2{font-size:21px}
#belyash-care-prototype .cp button.primary{background:var(--cp-accent,#ff8500);border-color:var(--cp-accent,#ff8500);color:#1b303a}

/* Complete workspace and invitation alignment with Ясная забота. */
body[data-clinic-desk]{background:light-dark(#f6f9fb,#1f303b)}
body[data-clinic-desk] #belyash-care-prototype{--bo-base:light-dark(#fff,#17242c);--bo-surface:light-dark(#fff,#17242c);--bo-text:light-dark(#1b303a,#f1f7fa);--bo-muted:light-dark(#61717e,#b5c5d0);--bo-line:light-dark(#dce4e9,#3c505c);--bo-soft:light-dark(#e8f5fc,#243e4e);color-scheme:light dark}
body[data-clinic-desk] #belyash-care-prototype .bo-shell{background:var(--bo-base);padding-bottom:0;max-width:1180px}
.cp-owner,.cp-desk{font-size:15px;line-height:1.55}
.cp-desk .cp-workspace{padding:28px 32px 40px}.cp-desk .cp-desk-header{border-bottom:1px solid var(--cp-line);padding:24px 32px}.cp-desk-header strong{font-size:32px}.cp-desk-header span{font-size:13px}
#belyash-care-prototype .cp h1,.cp-owner h1{font-size:26px;line-height:1.25;letter-spacing:-.7px;margin:10px 0 12px}#belyash-care-prototype .cp h2,.cp-owner h2{font-size:21px;line-height:1.35;margin:0 0 12px}#belyash-care-prototype .cp h3,.cp-owner h3{font-size:17px;line-height:1.4}
#belyash-care-prototype .cp .cp-card,.cp-owner .cp-card{background:var(--cp-surface);color:var(--cp-ink);border:1px solid var(--cp-line);border-radius:12px;padding:20px;box-shadow:none}
.cp-desk .cp-grid{grid-template-columns:minmax(0,1fr) 300px;gap:24px;margin-top:24px}.cp-flow{border:1px solid var(--cp-line);border-radius:12px;padding:24px;background:var(--cp-surface)}
#belyash-care-prototype .cp .cp-note,.cp-owner .cp-note,#belyash-care-prototype .cp .cp-badge,.cp-owner .cp-badge{background:var(--cp-lavender);color:var(--cp-ink);border-radius:8px;font-size:13px}.cp-owner .cp-note{padding:14px 16px}.cp-desk .cp-connected{color:var(--cp-success)!important}
#belyash-care-prototype .cp button,.cp-owner button,#belyash-care-prototype .cp .cp-button{font-size:14px;border-radius:10px;min-height:44px;padding:10px 14px;line-height:1.4}
#belyash-care-prototype .cp button.primary,.cp-owner button.primary{background:#ff8500;border-color:#ff8500;color:#1b303a;font-weight:800}.cp-desk form button.primary{width:auto}
#belyash-care-prototype .cp input:not([type=checkbox]),#belyash-care-prototype .cp select,.cp-owner input:not([type=checkbox]),.cp-owner select{font-size:16px;min-height:46px;border:1px solid var(--cp-line);border-radius:10px;padding:10px 12px;background:var(--cp-soft);color:var(--cp-ink)}
.cp-owner input[type=checkbox],.cp-desk input[type=checkbox]{min-height:20px;width:20px;height:20px;accent-color:#ff8500}.cp-owner label.cp-check,.cp-desk label.cp-check{font-size:14px;line-height:1.5;align-items:flex-start;gap:10px}.cp-check small{font-size:12px}
.cp-progress{gap:0;flex-wrap:nowrap;border-bottom:1px solid var(--cp-line);padding-bottom:16px;margin-bottom:22px}.cp-progress span{flex:1;gap:6px;font-size:12px}.cp-progress b{width:24px;height:24px}.cp-progress .current b{background:#ff8500;border-color:#ff8500;color:#1b303a}.cp-progress .current{color:var(--cp-ink)}
.cp-desk aside .cp-card>.cp-row{justify-content:space-between;gap:8px}.cp-desk aside h2{font-size:18px!important}.cp-invitation{padding:16px 0}.cp-desk .cp-pet-choice{background:var(--cp-lavender);border-radius:10px;padding:14px}.cp-aside-note{font-size:13px;padding:4px 0}
.cp-owner.cp-dialog{border:1px solid var(--cp-line);border-radius:14px;padding:24px;width:460px;background:var(--cp-bg)}.cp-owner .cp-dialog-head{border-bottom:1px solid var(--cp-line);padding-bottom:16px;margin-bottom:20px}.cp-owner .cp-dialog-head h1{font-size:24px;margin:0}.cp-owner .cp-close{width:32px;height:32px;min-height:32px;padding:0;border-radius:8px;font-size:24px}
.cp-owner .cp-clinic-identity{background:var(--cp-lavender);border-radius:10px;margin:16px 0;padding:14px}.cp-clinic-mark{background:var(--cp-lavender);color:var(--cp-purple);border-radius:10px;font-size:28px}.cp-benefits{background:var(--cp-lavender);border-radius:10px;margin:16px 0;padding:14px 16px}.cp-benefits>div{padding:0}.cp-benefits small{font-size:13px}
.cp-steps-list{gap:0;margin:16px 0}.cp-steps-list li{padding:14px 0;gap:12px}.cp-steps-list li+li{border-top:1px solid var(--cp-line)}.cp-steps-list li:before{border:0;background:var(--cp-lavender);color:var(--cp-ink);width:28px;height:28px;font-weight:600}.cp-steps-list small{font-size:13px}.cp-owner details{font-size:13px;border-top:1px solid var(--cp-line);padding-top:14px}.cp-owner summary{line-height:1.5}
.cp-owner .cp-error:empty,.cp-desk .cp-error:empty{display:none}.cp-success{border-radius:12px;background:var(--cp-lavender);color:var(--cp-purple);width:48px;height:48px;margin:0 0 16px}.cp-fine{font-size:12px!important}.cp-desk .cp-join-layout{gap:32px;margin:28px auto}.cp-join-layout h1{font-size:26px}.cp-desk .cp-link{font-size:13px;border-radius:10px}
@media(prefers-color-scheme:dark){.cp-owner,.cp-desk{--cp-success:#a0d6bd}}
@media(max-width:850px){.cp-desk .cp-grid{grid-template-columns:1fr}.cp-desk .cp-workspace{padding:24px}.cp-desk .cp-join-layout{gap:24px}.cp-desk aside .cp-card>.cp-row{flex-direction:row;align-items:center}}
@media(max-width:540px){.cp-desk .cp-workspace{padding:20px 16px}.cp-desk .cp-desk-header{padding:20px 16px}.cp-desk .cp-desk-header>div:first-child{display:block}.cp-desk .cp-desk-header .cp-row{gap:6px}.cp-flow,#belyash-care-prototype .cp .cp-card{padding:16px}.cp-progress span{font-size:11px;gap:4px}.cp-progress b{flex-shrink:0;width:22px;height:22px}.cp-desk .cp-join-layout{grid-template-columns:1fr;margin:0;gap:20px}.cp-owner.cp-dialog{padding:20px;max-width:calc(100vw - 24px)}.cp-owner .cp-dialog-head h1{font-size:22px}.cp-owner h2{font-size:20px}.cp-desk .cp-qr-layout{align-items:flex-start}.cp-desk [data-result] .cp-row>*{width:100%}}

/* Desktop clinic workspace: task navigation, searchable list, full-width history. */
body[data-clinic-desk] #belyash-care-prototype:not(.bo-login) .bo-shell{max-width:none;width:100%;padding-bottom:0}
.cp-desk .cp-desk-header{padding:22px 32px}
.cp-desk .cp-desk-layout{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:calc(100dvh - 90px)}
.cp-desk .cp-desk-layout:not(:has(.cp-desk-nav)){grid-template-columns:1fr}
.cp-desk .cp-desk-nav{padding:28px 16px;border-right:1px solid var(--cp-line);background:var(--cp-soft);display:flex;flex-direction:column;gap:6px;align-self:stretch}
.cp-desk .cp-nav-clinic{font-size:14px;font-weight:800;margin:0 12px 22px;overflow-wrap:anywhere}
#belyash-care-prototype .cp .cp-desk-nav button{text-align:left;border:0;background:none;padding:12px;font-size:14px}
#belyash-care-prototype .cp .cp-desk-nav button[aria-current=page]{background:var(--cp-lavender);box-shadow:inset 3px 0 #ff8500;font-weight:800}
.cp-desk .cp-workspace{padding:32px clamp(24px,3vw,48px) 48px;min-width:0}
.cp-desk .cp-page-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:18px}
.cp-desk .cp-page-head h1{margin:6px 0!important;font-size:28px!important}
.cp-desk .cp-breadcrumb{margin:0;font-size:13px}
.cp-desk .cp-clinic-select{width:240px;max-width:100%}
.cp-desk .cp-flow{margin-top:24px;max-width:none;padding:28px}
.cp-desk .cp-progress{max-width:700px;margin-bottom:28px}
.cp-desk .cp-search-line{display:flex;align-items:center;gap:10px;margin-top:8px}
.cp-desk .cp-search-line input{flex:1;width:100%;margin:0!important;min-width:0}
.cp-desk .cp-search-line button{flex-shrink:0}
.cp-desk .cp-search-results{margin-top:24px}
#belyash-care-prototype .cp button.cp-client-result{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;background:none;border:0;border-bottom:1px solid var(--cp-line);border-radius:0;padding:16px 0;gap:16px}
.cp-desk .cp-client-result strong{font-size:16px}
.cp-desk .cp-client-result small{font-size:13px;margin-top:4px}
.cp-desk .cp-client-result:hover{background:var(--cp-soft)!important}
.cp-desk .cp-section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.cp-desk .cp-invitations-table{border:1px solid var(--cp-line);border-radius:12px;overflow:hidden}
.cp-desk .cp-invitations-head,.cp-desk .cp-invitation{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(140px,.8fr) minmax(150px,.8fr) 92px;align-items:center;gap:20px;padding:18px 20px;margin:0}
.cp-desk .cp-invitations-head{background:var(--cp-soft);font-size:13px;font-weight:600}
.cp-desk .cp-invitation:last-child{padding:18px 20px}
.cp-desk .cp-invitation>div{min-width:0;overflow-wrap:anywhere}
.cp-desk .cp-invitation strong{font-size:15px}
.cp-desk .cp-invitation small,.cp-desk .cp-invitation time{font-size:13px;color:var(--cp-muted);margin:4px 0 0}
.cp-desk .cp-empty{padding:36px 0}
.cp-desk .cp-staff-invite{max-width:none;margin:24px 0 32px!important}
.cp-desk .cp-staff-list{max-width:none}
.cp-desk .cp-staff-row{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:18px 0;border-bottom:1px solid var(--cp-line)}
.cp-desk .cp-staff-row small{font-size:13px;margin-top:4px}
.cp-desk .cp-qr-layout{justify-content:flex-start}
.cp-desk .cp-fine{text-align:left}
@media(max-width:1100px){.cp-desk .cp-desk-layout{grid-template-columns:200px minmax(0,1fr)}.cp-desk .cp-invitations-head,.cp-desk .cp-invitation{grid-template-columns:minmax(0,1.5fr) minmax(120px,1fr) 92px;gap:14px}.cp-desk .cp-invitation time{grid-column:1;grid-row:2}.cp-desk .cp-invitations-head>span:nth-child(3){display:none}.cp-desk .cp-invitation>div:last-child{grid-column:3;grid-row:1}}
@media(max-width:760px){.cp-desk .cp-desk-layout{display:block}.cp-desk .cp-desk-nav{flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--cp-line);padding:12px 16px;gap:4px}.cp-desk .cp-nav-clinic{width:100%;margin:0 0 8px}.cp-desk .cp-workspace{padding:22px 16px 36px}.cp-desk .cp-page-head{display:block}.cp-desk .cp-clinic-select{display:block;margin-top:16px}.cp-desk .cp-flow{padding:18px}.cp-desk .cp-search-line{flex-wrap:wrap}.cp-desk .cp-search-line input{flex-basis:100%}.cp-desk .cp-page-head h1{font-size:24px!important}.cp-desk .cp-invitations-head{display:none}.cp-desk .cp-invitation,.cp-desk .cp-invitation:last-child{grid-template-columns:minmax(0,1fr) auto;padding:16px;gap:10px}.cp-desk .cp-invitation>div:first-child{grid-column:1/-1}.cp-desk .cp-invitation>div:nth-child(2){grid-column:1;grid-row:2}.cp-desk .cp-invitation time{grid-column:1;grid-row:3}.cp-desk .cp-invitation>div:last-child{grid-column:2;grid-row:2/4}.cp-desk .cp-desk-header{padding:16px}.cp-desk .cp-progress span{font-size:11px}}

/* Fluid clinic canvas, including intermediate and very narrow viewports. */
body[data-clinic-desk] #belyash-care-prototype .bo-shell{width:100%;max-width:none;box-sizing:border-box}
.cp-desk{min-width:0;overflow-wrap:anywhere}
.cp-desk .cp-desk-layout>*{min-width:0}
.cp-desk .cp-desk-nav{align-self:start;position:sticky;top:0;max-height:100dvh;overflow-y:auto;min-height:calc(100dvh - 90px)}
.cp-desk .cp-join-layout{max-width:none;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.cp-desk .cp-progress{max-width:none}
.cp-desk .cp-page-head{flex-wrap:wrap}
.cp-desk .cp-search-line{flex-wrap:wrap}
.cp-desk .cp-search-line input{flex:1 1 240px;width:auto}
.cp-desk .cp-qr-layout>div{min-width:0}
.cp-desk .cp-section-toolbar{flex-wrap:wrap}
.cp-desk .cp-staff-row>*{min-width:0}
@media(max-width:760px){
 .cp-desk .cp-desk-nav{position:static;max-height:none;min-height:0;overflow:visible}
 .cp-desk .cp-join-layout{grid-template-columns:minmax(0,1fr)}
 .cp-desk .cp-search-line input{flex-basis:100%;width:100%}
 .cp-desk .cp-desk-header>div{min-width:0}
}
@media(max-width:380px){
 .cp-desk .cp-flow{padding:12px}
 .cp-desk .cp-progress{gap:8px;flex-wrap:wrap}
 .cp-desk .cp-progress span{flex:0 1 auto}
 .cp-desk .cp-invitation,.cp-desk .cp-invitation:last-child{grid-template-columns:minmax(0,1fr)}
 .cp-desk .cp-invitation>div:last-child{grid-column:1;grid-row:4}
}
/* Invitation flow: one title per step, with readable action labels. */
.cp-desk .cp-flow{margin-top:12px}
.cp-desk .cp-progress{margin-bottom:20px}
.cp-desk .cp-invitation button{white-space:normal;line-height:1.35}

/* Equal-width mobile tabs keep the clinic workflow above the fold. */
@media(max-width:760px){
 .cp-desk .cp-desk-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:12px 16px}
 .cp-desk .cp-nav-clinic{grid-column:1/-1;margin:0 0 4px}
 #belyash-care-prototype .cp .cp-desk-nav button{padding:10px 6px;min-height:44px;text-align:center;font-size:13px;line-height:1.4}
 #belyash-care-prototype .cp .cp-desk-nav button[aria-current=page]{box-shadow:inset 0 -3px #ff8500}
}
