/* KineSys — Home focada do profissional v1.0.0 */
.ks-prof-home-active [data-prof-home-legacy-hidden="1"]{display:none!important}
.ks-prof-home-active .card:has(#ks_home_recent_count){display:none!important}
.ks-prof-home-active{--ks-prof-gap:16px}
.ks-prof-home-active #card_painel_fisioterapeuta{position:relative;margin-bottom:var(--ks-prof-gap)}
.ks-prof-home-active #card_painel_fisioterapeuta>.card-header{align-items:flex-start;gap:14px;padding-bottom:12px}
.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.ks-prof-home-active .ks-prof-greeting-clean{outline:0!important;border:0!important;box-shadow:none!important;text-decoration:none!important;border-radius:0!important}
.ks-prof-home-active .ks-prof-greeting-clean:focus,.ks-prof-home-active .ks-prof-greeting-clean:focus-visible{outline:0!important;border:0!important;box-shadow:none!important}
.ks-prof-pending-trigger{margin:0;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:7px 10px;border:1px solid var(--border,#d8e0e2);border-radius:11px;background:var(--surface,#fff);color:var(--text,#183b41);font:inherit;font-size:.8rem;font-weight:680;cursor:pointer;box-shadow:none;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.ks-prof-pending-trigger:hover{border-color:var(--primary,#176a70);background:rgba(23,106,112,.045)}
.ks-prof-pending-trigger:active{transform:translateY(1px)}
.ks-prof-pending-trigger.has-pending{border-color:rgba(181,102,32,.28);background:rgba(181,102,32,.055)}
.ks-prof-pending-icon{display:grid;place-items:center;width:21px;height:21px;border-radius:7px;background:rgba(23,106,112,.09);color:var(--primary,#176a70);font-size:.72rem}
.ks-prof-pending-trigger.has-pending .ks-prof-pending-icon{background:rgba(181,102,32,.12);color:#9b591e}
#ks_prof_pendencias_badge,.ks-prof-notification-count{display:grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#a44b32;color:#fff;font-size:.7rem;font-weight:750;line-height:1}
#ks_prof_pendencias_badge[hidden],.ks-prof-notification-count[hidden]{display:none!important}
.ks-prof-home-workspace{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;margin:0 0 var(--ks-prof-gap)!important}
.ks-prof-home-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--ks-prof-gap);align-items:stretch}
.ks-prof-home-module{min-width:0;border:1px solid var(--border,#dfe6e7);border-radius:14px;background:var(--surface,#fff);box-shadow:0 3px 14px rgba(18,53,58,.04);overflow:hidden}
.ks-prof-month-card{display:flex;flex-direction:column}
.ks-prof-module-head{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px 9px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.ks-prof-module-head:hover{background:rgba(23,106,112,.025)}
.ks-prof-module-head>span:first-child,.ks-prof-module-title>span:first-child{display:grid;gap:4px}
.ks-prof-module-head small,.ks-prof-module-title small,.ks-prof-dialog-head small{font-size:.66rem;letter-spacing:.1em;font-weight:780;color:#6c8589}
.ks-prof-module-head strong,.ks-prof-module-title strong{font-size:1rem;line-height:1.25;color:#173f45}
.ks-prof-month-number{font-size:2rem;font-weight:760;letter-spacing:-.035em;color:var(--primary,#176a70);line-height:1}
.ks-prof-module-sub{margin:0;padding:0 20px 18px;color:#657b7f;font-size:.8rem;line-height:1.5}
.ks-prof-expand-panel{border-top:1px solid #edf1f2;padding:7px 20px 13px;max-height:290px;overflow:auto}
.ks-prof-month-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #eef2f3;font-size:.84rem;color:#284b50}
.ks-prof-month-row:last-child{border-bottom:0}
.ks-prof-month-row strong{display:grid;place-items:center;min-width:30px;height:25px;padding:0 8px;border-radius:8px;background:#edf6f6;color:#145f65;font-size:.78rem}
.ks-prof-module-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 10px}
.ks-prof-notification-list{display:grid;padding:0 12px 12px}
.ks-prof-notification-list.is-expanded{max-height:360px;max-height:min(360px,50dvh);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.ks-prof-notification-item[hidden],.ks-prof-notifications-toggle[hidden]{display:none!important}
.ks-prof-notification-list:not(.is-expanded) .ks-prof-notification-item small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.ks-prof-notifications-toggle{display:block;min-height:44px;width:calc(100% - 28px);margin:0 14px 14px;padding:9px 12px;border:1px solid var(--kds-line-soft,#d8e5e4);border-radius:10px;background:var(--kds-surface-soft,#f4f9f8);color:var(--kds-petrol-deep,#173f45);font:inherit;font-size:.8rem;font-weight:700;text-align:center;cursor:pointer}
.ks-prof-notifications-toggle:hover{background:var(--kds-accent-soft,#e8f4f1)}
.ks-prof-notifications-toggle:focus-visible{outline:2px solid var(--kds-accent,#168d83);outline-offset:2px}
.ks-prof-notification-item{display:grid;grid-template-columns:8px 1fr;gap:10px;align-items:start;width:100%;padding:10px 8px;border:0;border-radius:10px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.ks-prof-notification-item:not(:disabled):hover{background:#f5f8f8}
.ks-prof-notification-item:disabled{opacity:1;cursor:default}
.ks-prof-notification-item>span:nth-child(2){display:grid;gap:2px;min-width:0}
.ks-prof-notification-item strong{font-size:.83rem;color:#284b50;font-weight:690}
.ks-prof-notification-item small{font-size:.76rem;color:#728589;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.ks-prof-notification-dot{width:7px;height:7px;border-radius:999px;background:#9bb0b3;margin-top:5px}
.ks-prof-notification-item.is-unread .ks-prof-notification-dot{background:#b56a28;box-shadow:0 0 0 3px rgba(181,106,40,.1)}
.ks-prof-notification-item.is-unread strong{color:#173f45}
.ks-prof-empty{margin:0;padding:12px 8px;color:#7a8d90;font-size:.8rem}
.ks-prof-empty-state{display:grid;gap:5px;padding:18px;border:1px dashed #dfe7e8;border-radius:12px;background:#fafcfc;text-align:center}
.ks-prof-empty-state.compact{padding:16px;margin:0 6px 6px}
.ks-prof-empty-state strong{font-size:.86rem;color:#3f5f64}
.ks-prof-empty-state span{font-size:.76rem;color:#7a8d90;line-height:1.4}
.ks-prof-pending-dialog{width:min(620px,calc(100vw - 28px));max-height:min(78vh,720px);padding:0;border:0;border-radius:18px;background:#fff;color:#183b41;box-shadow:0 24px 70px rgba(14,38,42,.22)}
.ks-prof-pending-dialog::backdrop{background:rgba(15,36,40,.42);backdrop-filter:blur(2px)}
.ks-prof-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px 12px;border-bottom:1px solid #edf1f2}
.ks-prof-dialog-head h2{margin:2px 0 0;font-size:1.18rem}
.ks-prof-dialog-head button{width:36px;height:36px;border:1px solid #dbe4e5;border-radius:11px;background:#fff;color:#3d5e63;font-size:1.2rem;cursor:pointer}
.ks-prof-dialog-intro{margin:0;padding:13px 22px;color:#718589;font-size:.8rem;line-height:1.45}
.ks-prof-pending-list{display:grid;gap:7px;padding:0 14px 16px;max-height:52vh;overflow:auto}
.ks-prof-pending-item{display:grid;grid-template-columns:52px minmax(0,1fr) 20px;gap:12px;align-items:center;width:100%;padding:11px 12px;border:1px solid #e5ebec;border-radius:13px;background:#fff;color:inherit;text-align:left;font:inherit;cursor:pointer;transition:border-color .18s ease,background .18s ease}
.ks-prof-pending-item:hover{border-color:#bdd0d2;background:#f8fbfb}
.ks-prof-pending-item>span:nth-child(2){display:grid;gap:3px}
.ks-prof-pending-item strong{font-size:.86rem;color:#244c51}
.ks-prof-pending-item small{font-size:.76rem;color:#7a898c}
.ks-prof-pending-time{font-size:.78rem;font-weight:720;color:#466c71}
.ks-prof-pending-arrow{color:#789094;font-weight:700}
.ks-prof-home-active #card_crm{margin-top:2px}
@media(max-width:980px){.ks-prof-home-grid{grid-template-columns:1fr}.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions{justify-content:flex-start}}
@media(max-width:820px){.ks-prof-pending-trigger>span:nth-child(2){display:none}.ks-prof-pending-trigger{padding:7px}.ks-prof-module-head{padding-top:16px}}
@media(max-width:520px){.ks-prof-home-active #card_painel_fisioterapeuta>.card-header{flex-wrap:wrap}.ks-prof-home-grid{gap:10px}.ks-prof-home-module{border-radius:13px}.ks-prof-pending-dialog{width:calc(100vw - 18px)}}


/* Home profissional — composição compacta para telefone. */
.ks-prof-home-active .ks-home-overview{display:none!important}
@media(max-width:620px){
  .ks-prof-home-active{--ks-prof-gap:10px}
  .ks-prof-home-active #ks_home_hero{display:none!important}
  .ks-prof-home-active #card_painel_fisioterapeuta{margin-bottom:10px!important}
  .ks-prof-home-active #card_painel_fisioterapeuta>.card-header{gap:9px!important;padding:12px 14px 7px!important}
  .ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions{width:100%;gap:6px;justify-content:flex-start}
  .ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions button{min-height:44px;padding:7px 10px}
  .ks-prof-home-active #card_painel_fisioterapeuta #painel_fisio_resumo{padding:0 14px 8px!important}
  .ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-painel-vazio{padding:13px 14px!important}
  .ks-prof-home-grid{gap:10px}
  .ks-prof-module-head{gap:12px;padding:14px 14px 7px}
  .ks-prof-module-title{padding:14px 14px 8px}
  .ks-prof-module-sub{padding:0 14px 14px}
  .ks-prof-expand-panel{padding:6px 14px 11px}
  .ks-prof-notification-list{padding:0 8px 8px}
  .ks-prof-notification-item{padding:9px 6px}
  .ks-prof-month-number{font-size:1.75rem}
  .ks-prof-home-active #card_crm{margin-top:0}
}

/* Home profissional — polish mobile r5 (hierarquia, densidade e toque). */
@media(max-width:620px){
  .ks-prof-home-active{--ks-prof-gap:8px}
  #tela_home.ks-prof-home-active{padding-bottom:max(16px,env(safe-area-inset-bottom))}
  .ks-prof-home-active #card_painel_fisioterapeuta.ks-fisio-util-compact{
    border-color:var(--kds-line)!important;
    border-radius:var(--kds-radius-lg)!important;
    background:var(--kds-surface)!important;
    box-shadow:none!important;
  }
  .ks-prof-home-active #card_painel_fisioterapeuta.ks-fisio-util-compact>.card-header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start!important;
    column-gap:10px!important;
    row-gap:10px!important;
    padding:14px 14px 10px!important;
  }
  .ks-prof-home-active #card_painel_fisioterapeuta .eyebrow{
    margin-bottom:3px!important;
    color:var(--kds-accent)!important;
    font-size:11.5px!important;
    font-weight:760!important;
    letter-spacing:.06em!important;
    line-height:var(--kds-leading-ui)!important;
    text-transform:uppercase!important;
  }
  .ks-prof-home-active #card_painel_fisioterapeuta #painel_fisio_titulo{
    font-size:var(--kds-font-heading-md)!important;
    line-height:var(--kds-leading-compact)!important;
    letter-spacing:-.01em!important;
  }
  .ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions{
    grid-column:1/-1;
    display:flex!important;
    width:100%!important;
    gap:8px!important;
    align-items:center!important;
    flex-wrap:wrap!important;
  }
  .ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions>button{
    min-height:44px!important;
    margin:0!important;
    border-radius:var(--kds-radius-sm)!important;
    font-size:var(--kds-font-label)!important;
    font-weight:720!important;
    line-height:var(--kds-leading-ui)!important;
    box-shadow:none!important;
  }
  .ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions>[data-ks-fisio-agenda]{
    flex:1 1 120px;
    border-color:var(--kds-accent)!important;
    background:var(--kds-accent)!important;
    color:var(--kds-surface)!important;
  }
  .ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions>button:not([data-ks-fisio-agenda]):not(#ks_prof_pendencias_btn):not([data-ks-fisio-toggle]){
    flex:1 1 120px;
    border-color:var(--kds-line)!important;
    background:var(--kds-surface-soft)!important;
    color:var(--kds-text-secondary)!important;
  }
  .ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions>[data-ks-fisio-toggle]{
    order:4;
    flex:1 1 100%;
    border-color:var(--kds-line-soft)!important;
    background:transparent!important;
    color:var(--kds-muted)!important;
  }
  .ks-prof-home-active #ks_prof_pendencias_btn{
    position:relative;
    flex:0 0 44px;
    width:44px;
    min-width:44px;
    height:44px;
    padding:0!important;
    justify-content:center;
    border-color:var(--kds-line)!important;
    background:var(--kds-surface)!important;
  }
  .ks-prof-home-active #ks_prof_pendencias_btn.has-pending{
    border-color:var(--kds-warning)!important;
    background:var(--kds-warning-soft)!important;
  }
  .ks-prof-home-active .ks-prof-pending-icon{
    width:26px;
    height:26px;
    border-radius:var(--kds-radius-sm);
    background:var(--kds-accent-soft);
    color:var(--kds-accent);
    font-size:var(--kds-font-label);
  }
  .ks-prof-home-active #ks_prof_pendencias_btn.has-pending .ks-prof-pending-icon{
    background:var(--kds-warning-soft);
    color:var(--kds-warning);
  }
  .ks-prof-home-active #ks_prof_pendencias_badge{
    position:absolute;
    top:-6px;
    right:-6px;
    min-width:19px;
    height:19px;
    padding:0 5px;
    border:2px solid var(--kds-surface);
    background:var(--kds-danger);
    color:var(--kds-surface);
    font-size:10.5px;
  }
  .ks-prof-home-active #card_painel_fisioterapeuta #painel_fisio_resumo{
    padding:10px 14px!important;
    border-top:1px solid var(--kds-line-soft)!important;
    border-bottom:0!important;
    background:var(--kds-surface-soft)!important;
    color:var(--kds-muted)!important;
    font-size:var(--kds-font-label)!important;
    line-height:var(--kds-leading-text)!important;
  }
  .ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-painel-vazio{
    margin:0!important;
    padding:12px 14px 13px!important;
    border-top:1px solid var(--kds-line-soft)!important;
    background:var(--kds-surface)!important;
    color:var(--kds-muted)!important;
    font-size:var(--kds-font-label)!important;
    line-height:var(--kds-leading-text)!important;
  }
  .ks-prof-home-active .ks-prof-home-workspace{margin-bottom:8px!important}
  .ks-prof-home-active .ks-prof-home-grid{gap:8px!important}
  .ks-prof-home-active .ks-prof-home-module{
    border-color:var(--kds-line)!important;
    border-radius:var(--kds-radius-lg)!important;
    background:var(--kds-surface)!important;
    box-shadow:none!important;
  }
  .ks-prof-home-active .ks-prof-module-head,
  .ks-prof-home-active .ks-prof-module-title{
    gap:10px!important;
    padding:13px 14px 7px!important;
  }
  .ks-prof-home-active .ks-prof-module-head small,
  .ks-prof-home-active .ks-prof-module-title small{
    color:var(--kds-faint)!important;
    font-size:11px!important;
    font-weight:760!important;
    letter-spacing:.06em!important;
    line-height:var(--kds-leading-ui)!important;
  }
  .ks-prof-home-active .ks-prof-module-head strong,
  .ks-prof-home-active .ks-prof-module-title strong{
    color:var(--kds-text)!important;
    font-size:var(--kds-font-content)!important;
    font-weight:720!important;
    line-height:var(--kds-leading-compact)!important;
  }
  .ks-prof-home-active .ks-prof-month-number{
    min-width:32px;
    color:var(--kds-accent)!important;
    font-size:var(--kds-font-kpi)!important;
    font-weight:760!important;
    line-height:1!important;
    text-align:right;
  }
  .ks-prof-home-active .ks-prof-module-sub{
    padding:1px 14px 13px!important;
    color:var(--kds-muted)!important;
    font-size:var(--kds-font-label)!important;
    line-height:var(--kds-leading-text)!important;
  }
  .ks-prof-home-active .ks-prof-expand-panel{
    padding:5px 14px 10px!important;
    border-top-color:var(--kds-line-soft)!important;
  }
  .ks-prof-home-active .ks-prof-month-row{
    min-height:44px;
    padding:8px 0!important;
    border-bottom-color:var(--kds-line-soft)!important;
    color:var(--kds-text-secondary)!important;
    font-size:var(--kds-font-label)!important;
  }
  .ks-prof-home-active .ks-prof-month-row strong{
    min-width:32px;
    height:28px;
    border-radius:var(--kds-radius-sm);
    background:var(--kds-accent-soft)!important;
    color:var(--kds-accent)!important;
    font-size:var(--kds-font-metadata)!important;
  }
  .ks-prof-home-active .ks-prof-notification-list{padding:0 8px 8px!important}
  .ks-prof-home-active .ks-prof-notification-item{
    min-height:44px;
    padding:9px 7px!important;
    border-radius:var(--kds-radius-sm)!important;
  }
  .ks-prof-home-active .ks-prof-empty-state.compact{
    margin:0 7px 7px!important;
    padding:12px 13px!important;
    gap:3px!important;
    border:0!important;
    border-radius:var(--kds-radius-sm)!important;
    background:var(--kds-surface-soft)!important;
    text-align:left!important;
  }
  .ks-prof-home-active .ks-prof-empty-state.compact strong{
    color:var(--kds-text-secondary)!important;
    font-size:var(--kds-font-label)!important;
  }
  .ks-prof-home-active .ks-prof-empty-state.compact span{
    color:var(--kds-muted)!important;
    font-size:var(--kds-font-metadata)!important;
    line-height:var(--kds-leading-text)!important;
  }
  .ks-prof-home-active #card_crm{margin-top:2px!important}
  .ks-prof-home-active #card_crm>summary{
    min-height:44px;
    padding:11px 2px!important;
    color:var(--kds-text-secondary)!important;
    font-size:var(--kds-font-label)!important;
  }
  .ks-prof-home-active .ks-prof-pending-dialog{
    width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - 24px)!important;
    border-radius:var(--kds-radius-lg)!important;
    box-shadow:var(--kds-shadow-float)!important;
  }
  .ks-prof-home-active .ks-prof-dialog-head{
    position:sticky;
    top:0;
    z-index:1;
    padding:15px 16px 11px!important;
    background:var(--kds-surface)!important;
    border-bottom-color:var(--kds-line-soft)!important;
  }
  .ks-prof-home-active .ks-prof-dialog-head h2{
    color:var(--kds-text)!important;
    font-size:var(--kds-font-heading-md)!important;
  }
  .ks-prof-home-active .ks-prof-dialog-head button{
    width:44px;
    height:44px;
    border-color:var(--kds-line)!important;
    border-radius:var(--kds-radius-sm)!important;
    color:var(--kds-text-secondary)!important;
  }
  .ks-prof-home-active .ks-prof-dialog-intro{
    padding:11px 16px!important;
    color:var(--kds-muted)!important;
    font-size:var(--kds-font-label)!important;
  }
  .ks-prof-home-active .ks-prof-pending-list{padding:0 10px 12px!important}
  .ks-prof-home-active .ks-prof-pending-item{
    grid-template-columns:46px minmax(0,1fr) 18px!important;
    min-height:54px;
    gap:10px!important;
    padding:10px 11px!important;
    border-color:var(--kds-line-soft)!important;
    border-radius:var(--kds-radius-md)!important;
  }
}

@media(max-width:430px){
  .ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions>[data-ks-fisio-agenda],
  .ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions>button:not([data-ks-fisio-agenda]):not(#ks_prof_pendencias_btn):not([data-ks-fisio-toggle]){
    flex-basis:calc(50% - 30px);
  }
  .ks-prof-home-active .ks-prof-module-head,
  .ks-prof-home-active .ks-prof-module-title{padding-left:13px!important;padding-right:13px!important}
  .ks-prof-home-active .ks-prof-module-sub{padding-left:13px!important;padding-right:13px!important}
}

/* Home profissional — direção Âncora clínica (Product Design, 2026-10-13). */
#tela_home.ks-prof-home-active{
  max-width:1500px;
}
#tela_home.ks-prof-home-active .ks-home-hero{
  padding:10px 4px 22px;
  margin:0 0 22px;
  border-bottom:1px solid rgba(151,184,184,.55);
}
#tela_home.ks-prof-home-active .ks-home-hero .ks-home-primary{display:none!important}
#tela_home.ks-prof-home-active .ks-home-hero .ks-eyebrow{
  color:var(--kds-muted);
  letter-spacing:.04em;
}
#tela_home.ks-prof-home-active .ks-home-hero h2{
  font-size:clamp(2rem,3vw,2.8rem)!important;
  letter-spacing:-.045em;
}
#tela_home.ks-prof-home-active .ks-prof-home-focus{
  display:grid;
  grid-template-columns:minmax(280px,.68fr) minmax(620px,1.55fr);
  align-items:stretch;
  gap:18px;
  margin:0 0 18px;
}
#tela_home.ks-prof-home-active .ks-prof-home-support{
  display:flex;
  flex-direction:column;
  align-content:start;
  gap:0;
  min-width:0;
  border:1px solid rgba(215,228,229,.92);
  border-radius:18px;
  background:rgba(255,255,255,.84);
  box-shadow:0 15px 34px rgba(15,65,68,.065);
  -webkit-backdrop-filter:blur(16px) saturate(120%);
  backdrop-filter:blur(16px) saturate(120%);
  overflow:hidden;
}
#tela_home.ks-prof-home-active .ks-prof-home-support>.ks-prof-home-module{
  width:100%;
  min-width:0;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid rgba(215,228,229,.92)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden;
}
#tela_home.ks-prof-home-active .ks-prof-home-support>.ks-prof-home-module:last-child{border-bottom:0!important}
#tela_home.ks-prof-home-active .ks-prof-home-support .ks-prof-module-title,
#tela_home.ks-prof-home-active .ks-prof-home-support .ks-prof-module-head{
  padding:18px 18px 10px;
}
#tela_home.ks-prof-home-active .ks-prof-home-support .ks-prof-module-title strong,
#tela_home.ks-prof-home-active .ks-prof-home-support .ks-prof-module-head strong{
  color:var(--kds-petrol-deep);
  font-size:1.08rem;
  letter-spacing:-.018em;
}
#tela_home.ks-prof-home-active .ks-prof-home-support .ks-prof-module-title em{
  margin-top:3px;
  color:var(--kds-muted);
  font-size:.76rem;
  font-style:normal;
}
.ks-prof-priorities-list{display:grid;padding:0 14px 14px}
.ks-prof-priority-item{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 16px;
  align-items:center;
  gap:10px;
  min-height:43px;
  padding:5px 4px;
  border:0;
  border-bottom:1px solid var(--kds-line-soft);
  background:transparent;
  color:var(--kds-text-secondary);
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.ks-prof-priority-item:last-child{border-bottom:0}
.ks-prof-priority-item:hover,.ks-prof-priority-item:focus-visible{color:var(--kds-accent);background:var(--kds-accent-soft);outline:0}
.ks-prof-priority-item strong{
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  border-radius:999px;
  background:#e7f3f1;
  color:var(--kds-petrol-deep);
  font-size:.78rem;
}
.ks-prof-priority-item:first-child strong{background:#f9e9de;color:#9a5028}
.ks-prof-priority-item span{font-size:.8rem;font-weight:650}
.ks-prof-priority-item i{color:#8ca0a3;font-size:1.15rem;font-style:normal;text-align:center}
#tela_home.ks-prof-home-active .ks-prof-home-support .ks-prof-notification-list{padding:0 14px 14px}
#tela_home.ks-prof-home-active .ks-prof-home-support .ks-prof-notification-item{
  min-height:50px;
  padding:8px 4px;
  border:0;
  border-bottom:1px solid var(--kds-line-soft);
  border-radius:0;
  background:transparent;
}
#tela_home.ks-prof-home-active .ks-prof-home-support .ks-prof-month-card .ks-prof-module-sub{padding:0 18px 16px}
#tela_home.ks-prof-home-active .ks-prof-home-workspace{display:contents}

#tela_home.ks-prof-home-active #card_painel_fisioterapeuta.ks-fisio-util-compact{
  align-self:stretch;
  width:100%!important;
  min-width:0;
  margin:0!important;
  border:1px solid rgba(109,222,209,.74)!important;
  border-radius:20px!important;
  background:
    linear-gradient(145deg,rgba(35,119,115,.96),rgba(9,77,80,.98))!important;
  box-shadow:0 20px 48px rgba(8,61,64,.22),inset 0 1px rgba(255,255,255,.2)!important;
  -webkit-backdrop-filter:blur(20px) saturate(135%);
  backdrop-filter:blur(20px) saturate(135%);
  color:#f4fffd;
  overflow:hidden;
}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta.ks-fisio-util-compact>.card-header{
  align-items:flex-start!important;
  padding:27px 28px 14px!important;
}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .eyebrow{
  color:rgba(235,255,251,.78)!important;
  font-size:.72rem!important;
  letter-spacing:.07em!important;
  text-transform:uppercase!important;
}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta #painel_fisio_titulo{
  color:#fff!important;
  font-size:clamp(1.65rem,2.3vw,2.18rem)!important;
  letter-spacing:-.035em!important;
}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions{gap:7px}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions>button{
  min-height:39px!important;
  padding:7px 12px!important;
  border:1px solid rgba(226,255,250,.3)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.075)!important;
  color:#f7fffd!important;
  box-shadow:none!important;
}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions>button:hover,
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-header-actions>button:focus-visible{
  border-color:rgba(235,255,252,.68)!important;
  background:rgba(255,255,255,.14)!important;
}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta #ks_prof_pendencias_btn.has-pending{
  border-color:#f0caa9!important;
  background:#fff3e9!important;
  color:#6f4529!important;
}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta #painel_fisio_resumo{
  margin:0 28px!important;
  padding:0 0 18px!important;
  border-bottom:1px solid rgba(224,255,250,.22)!important;
  background:transparent!important;
  color:rgba(235,255,251,.8)!important;
}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-painel-lista{
  display:block!important;
  padding:0 28px 18px!important;
}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-row{
  grid-template-columns:82px minmax(0,1fr) auto;
  min-height:116px;
  gap:15px;
  padding:18px 0;
  border:0!important;
  border-bottom:1px solid rgba(224,255,250,.2)!important;
  border-radius:0;
  background:transparent!important;
  box-shadow:none!important;
  opacity:1;
}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-row:last-child{border-bottom:0!important}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-time{padding-right:12px;border-right:1px solid rgba(224,255,250,.42)}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-time>strong,
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-patient-name{color:#fff!important}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-status,
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-category{color:rgba(241,255,253,.9)!important}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-detail{color:rgba(230,249,246,.72)!important}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-actions{max-width:none;min-width:0;align-items:stretch}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-actions button{
  min-height:40px!important;
  padding:7px 11px!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-actions .ks-fisio-analysis-btn{
  border:1px solid rgba(226,255,250,.38)!important;
  background:rgba(255,255,255,.07)!important;
  color:#f5fffd!important;
}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-actions .btn-primary{
  border:1px solid rgba(140,249,233,.7)!important;
  background:linear-gradient(180deg,#24a99e,#15887f)!important;
  color:#fff!important;
}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-record-done{color:#baf3d7!important}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-painel-vazio{
  margin:18px 0!important;
  padding:22px!important;
  border:1px dashed rgba(226,255,250,.28)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.055)!important;
  color:rgba(241,255,253,.82)!important;
}
#tela_home.ks-prof-home-active .ks-prof-whatsapp-messages{
  display:block;
  margin:18px 0 0!important;
  border:1px solid rgba(215,228,229,.95)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.86)!important;
  box-shadow:0 15px 34px rgba(15,65,68,.065)!important;
  overflow:hidden;
}
#tela_home.ks-prof-home-active .ks-prof-whatsapp-messages>summary{
  min-height:54px!important;
  padding:16px 20px!important;
  color:var(--kds-petrol-deep)!important;
  font-size:1rem!important;
  font-weight:760!important;
}
#tela_home.ks-prof-home-active .ks-prof-whatsapp-messages #card_crm{
  display:block!important;
  margin:0!important;
  padding:18px 20px 20px!important;
  border:0!important;
  border-top:1px solid var(--kds-line-soft)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#tela_home.ks-prof-home-active .ks-prof-whatsapp-messages #card_crm .card-header{margin-bottom:4px!important}
#tela_home.ks-prof-home-active .ks-prof-whatsapp-messages #card_crm .card-header h2{font-size:1rem!important}
#tela_home.ks-prof-home-active .ks-prof-whatsapp-intro{margin:0 0 14px;color:var(--kds-muted);font-size:.8rem}
#tela_home.ks-prof-home-active .ks-prof-whatsapp-messages .dashboard-grid{margin-bottom:0!important}
#tela_home.ks-prof-home-active .ks-prof-whatsapp-messages .dashboard-grid button{min-height:44px!important}

.ks-fisio-evolution-dialog{
  width:min(760px,calc(100vw - 28px));
  max-height:min(86vh,760px);
  padding:0;
  border:1px solid rgba(205,224,223,.95);
  border-radius:20px;
  background:rgba(250,253,253,.97);
  color:var(--kds-text);
  box-shadow:0 26px 80px rgba(11,42,45,.28);
  overflow:auto;
}
.ks-fisio-evolution-dialog::backdrop{background:rgba(9,35,38,.52);backdrop-filter:blur(5px)}
.ks-fisio-evolution-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 16px;border-bottom:1px solid var(--kds-line-soft)}
.ks-fisio-evolution-head span{color:var(--kds-accent);font-size:.7rem;font-weight:760;letter-spacing:.07em}
.ks-fisio-evolution-head h2{margin:3px 0 2px;color:var(--kds-petrol-deep);font-size:1.42rem;letter-spacing:-.025em}
.ks-fisio-evolution-head p{margin:0;color:var(--kds-muted);font-size:.82rem}
.ks-fisio-evolution-head button{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid var(--kds-line);border-radius:11px;background:#fff;color:var(--kds-text-secondary);font-size:1.3rem;cursor:pointer}
.ks-fisio-evolution-body{display:grid;gap:18px;padding:20px 24px 24px}
.ks-fisio-evolution-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ks-fisio-evolution-summary>span{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--kds-line-soft);border-radius:12px;background:#fff}
.ks-fisio-evolution-summary small{color:var(--kds-muted);font-size:.72rem}
.ks-fisio-evolution-summary strong{color:var(--kds-petrol-deep);font-size:.92rem}
.ks-fisio-evolution-chart{display:block;width:100%;height:auto;border:1px solid var(--kds-line-soft);border-radius:14px;background:#fff}
.ks-fisio-chart-grid line{stroke:#e2eceb;stroke-width:1}
.ks-fisio-chart-grid text,.ks-fisio-chart-point text{fill:#6f8588;font-size:11px;font-family:inherit}
.ks-fisio-chart-line{fill:none;stroke:#168d83;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.ks-fisio-chart-point circle{fill:#fff;stroke:#168d83;stroke-width:4}
.ks-fisio-evolution-legend{display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--kds-muted);font-size:.76rem}
.ks-fisio-evolution-legend span{display:flex;align-items:center;gap:7px;color:var(--kds-text-secondary);font-weight:680}
.ks-fisio-evolution-legend i{width:9px;height:9px;border-radius:999px;background:#168d83}
.ks-fisio-evolution-empty{display:grid;gap:6px;padding:34px 22px;border:1px dashed var(--kds-line);border-radius:14px;background:var(--kds-surface-soft);text-align:center}
.ks-fisio-evolution-empty strong{color:var(--kds-petrol-deep)}
.ks-fisio-evolution-empty span{color:var(--kds-muted);font-size:.82rem}

@media(max-width:1180px){
  #tela_home.ks-prof-home-active .ks-prof-home-focus{grid-template-columns:minmax(250px,.7fr) minmax(500px,1.4fr)}
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-row{grid-template-columns:70px minmax(0,1fr)}
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-actions{grid-column:2;justify-content:flex-start;max-width:none}
}
@media(max-width:900px){
  #tela_home.ks-prof-home-active .ks-prof-home-focus{grid-template-columns:minmax(0,1fr)}
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta{grid-row:1}
  #tela_home.ks-prof-home-active .ks-prof-home-support{grid-row:2}
}
@media(max-width:620px){
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta.ks-fisio-util-compact>.card-header{padding:18px 16px 12px!important}
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta #painel_fisio_resumo{margin:0 16px!important;padding-bottom:13px!important}
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-painel-lista{padding:0 16px 12px!important}
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-row{grid-template-columns:1fr;min-height:0;padding:15px 0}
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-time{display:flex;padding-right:0;border-right:0}
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-actions{grid-column:1}
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-actions button{flex:1 1 145px}
  .ks-fisio-evolution-summary{grid-template-columns:1fr}
  .ks-fisio-evolution-body{padding:16px}
  .ks-fisio-evolution-legend{align-items:flex-start;flex-direction:column}
  #tela_home.ks-prof-home-active .ks-prof-whatsapp-messages .dashboard-grid{grid-template-columns:1fr!important}
}

/* Busca por nome no WhatsApp: mantém o ID legado sem exibir a lista nativa. */
#card_crm #crm_paciente_select[hidden],#card_crm #crm_paciente_sugestoes[hidden]{display:none!important}
#card_crm #crm_paciente_sugestoes{max-height:260px;overflow-y:auto;border:1px solid var(--kds-line,#d5e4e2);border-radius:10px;background:var(--kds-surface,#fff);margin-top:6px;padding:4px;min-width:0}
#card_crm #crm_paciente_sugestoes button{display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;border:0;border-radius:6px;background:transparent;color:var(--kds-text,#173b45);padding:11px 12px;min-height:44px;font:inherit;cursor:pointer}
#card_crm #crm_paciente_sugestoes button:hover,#card_crm #crm_paciente_sugestoes button[aria-selected="true"]{background:var(--kds-accent-soft,#e8f4f1)}
#card_crm #crm_paciente_sugestoes p{margin:8px 12px;color:var(--kds-muted,#607a82)}

/* As três ações são um grupo horizontal. A largura do card, não apenas a
 * janela, determina quando o grupo passa para baixo do nome do paciente. */
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta{container:ks-meu-dia / inline-size}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-actions button{flex:0 0 auto}
#tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-record-done{flex-basis:100%;justify-content:flex-end}
@container ks-meu-dia (max-width:720px){
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-row{grid-template-columns:70px minmax(0,1fr)}
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-actions{grid-column:2;justify-content:flex-start;width:100%}
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-actions button{flex:1 1 0;min-width:0;white-space:normal;word-break:normal;overflow-wrap:normal}
}
@container ks-meu-dia (max-width:480px){
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-row{grid-template-columns:minmax(0,1fr)}
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-actions{grid-column:1}
  #tela_home.ks-prof-home-active #card_painel_fisioterapeuta .ks-fisio-day-time{display:flex;padding-right:0;border-right:0}
}
