/* Touch shell layout. Keep controls inside the safe viewport; allow short drawers to scroll. */
@media screen{
:root{--nkr-safe-left:env(safe-area-inset-left,0px);--nkr-safe-right:env(safe-area-inset-right,0px)}
@media(max-width:1180px) and (min-width:981px){
 body.nkr-studio .workspace-shell header.parity-topbar{min-width:0;gap:10px}
 body.nkr-studio .workspace-shell header.parity-topbar .shell-route-search{display:none!important}
 body.nkr-studio .workspace-shell header.parity-topbar .top-left{flex:1;min-width:0}
 body.nkr-studio .workspace-shell header.parity-topbar .top-actions{flex:none;min-width:0}
 body.nkr-studio .workspace-shell header.parity-topbar :is(.workspace-appearance,.workspace-top-settings,.notification-bell){width:44px;min-width:44px;height:44px;min-height:44px;flex:none;padding:0}
}
@media(max-width:980px){
 body.nkr-studio .workspace-shell header.parity-topbar{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;
  width:100%;min-width:0;max-width:100%;height:auto!important;min-height:calc(64px + var(--nkr-safe-top));
  padding:calc(8px + var(--nkr-safe-top)) max(12px,var(--nkr-safe-right)) 8px max(12px,var(--nkr-safe-left));
 }
 body.nkr-studio .workspace-shell header.parity-topbar .top-left{display:flex!important;gap:8px;min-width:0;width:auto;max-width:100%;overflow:hidden}
 body.nkr-studio .workspace-shell header.parity-topbar .top-left>div{flex:1;min-width:0;overflow:hidden}
 body.nkr-studio .workspace-shell header.parity-topbar :is(.top-title,.mobile-branch-context){width:100%;max-width:100%;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 body.nkr-studio .workspace-shell header.parity-topbar .top-actions{display:flex!important;flex:none;gap:6px;width:auto;min-width:0;max-width:100%;margin:0;align-items:center}
 body.nkr-studio .workspace-shell header.parity-topbar :is(.mobile-menu,.workspace-appearance,.workspace-top-settings,.notification-bell){width:44px;min-width:44px;height:44px;min-height:44px;flex:0 0 44px;padding:0;box-sizing:border-box}
 body.nkr-studio .workspace-shell header.parity-topbar .appearance-label{display:none}
 body.nkr-studio .workspace-shell .parity-content{padding-left:max(14px,var(--nkr-safe-left))!important;padding-right:max(14px,var(--nkr-safe-right))!important}
 body.nkr-studio .workspace-shell aside.parity-sidebar{padding-left:max(14px,var(--nkr-safe-left));padding-right:14px;padding-bottom:max(14px,var(--nkr-safe-bottom));max-width:calc(100vw - 44px);box-sizing:border-box}
 body.nkr-studio .workspace-shell .workspace-panel{max-width:100vw;min-width:0}
}
@media(max-width:600px){
 body.nkr-studio .workspace-shell header.parity-topbar{gap:6px}
 body.nkr-studio .workspace-shell header.parity-topbar .workspace-context{display:none}
 body.nkr-studio .workspace-shell header.parity-topbar .top-actions{gap:4px}
}
/* A short landscape screen cannot reserve a tall fixed footer plus a tall logo.
   Scroll the complete drawer so neither navigation nor management disappears. */
@media(max-height:600px){
 body.nkr-studio .workspace-shell aside.parity-sidebar{overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;display:flex;flex-direction:column}
 body.nkr-studio .workspace-shell aside.parity-sidebar .brand-block{flex:none;padding-bottom:12px}
 body.nkr-studio .workspace-shell aside.parity-sidebar .brand-block .logo{padding-bottom:14px}
 body.nkr-studio .workspace-shell aside.parity-sidebar .workspace-navigation{flex:none;min-height:auto;height:auto;max-height:none;overflow:visible;padding-bottom:12px}
 body.nkr-studio .workspace-shell aside.parity-sidebar .sidebar-foot{flex:none;margin-top:8px}
 body.nkr-studio .workspace-shell aside.parity-sidebar .sidebar-mobile-close{position:sticky;top:8px;align-self:flex-end;flex:0 0 44px;margin-bottom:-44px;z-index:3}
}
@media(prefers-reduced-motion:reduce){body.nkr-studio .workspace-shell aside.parity-sidebar{scroll-behavior:auto}}
@media(max-width:980px) and (orientation:portrait){
 :root.device-ios-standalone{--nkr-safe-top:max(48px,env(safe-area-inset-top,0px));--nkr-safe-bottom:max(20px,env(safe-area-inset-bottom,0px))}
}
@media(max-width:980px){
 body.nkr-studio #content .call-desk-v2-head-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;width:100%;gap:8px;min-width:0}
 body.nkr-studio #content .call-desk-v2-head-actions>.call-sound-switch{grid-column:1/-1;flex:none;min-width:0;width:100%;min-height:60px;grid-template-columns:32px minmax(0,1fr) 38px;padding:10px 14px;column-gap:12px;box-sizing:border-box}
 body.nkr-studio #content .call-desk-v2-head-actions>.call-sound-switch :is(b,em){min-width:0;white-space:normal;word-break:normal;overflow-wrap:normal;line-height:1.4}
 body.nkr-studio #content .call-sound-switch b{font-size:14px!important}
 body.nkr-studio #content .call-sound-switch em{font-size:12px!important}
 body.nkr-studio #content .call-desk-v2-head-actions>.btn{width:100%;min-width:0;height:auto;min-height:48px;padding:10px 12px;white-space:normal;word-break:normal;overflow-wrap:normal;line-height:1.4}
 body.nkr-studio #content #callDeskTransfers{flex-wrap:wrap;gap:6px}
 body.nkr-studio #content .call-desk-v2-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:8px;padding:0}
 body.nkr-studio #content .call-desk-v2-kpi{min-width:0;max-width:100%;padding:13px}
 body.nkr-studio #content .call-desk-v2-kpi>div{min-width:0}
 body.nkr-studio #content .call-desk-v2-kpi small{white-space:normal;overflow:visible;text-overflow:clip;word-break:normal;line-height:1.4}
 body.nkr-studio #content .call-panel-title{flex-wrap:wrap;gap:8px}
 body.nkr-studio #content .call-panel-title>em{font-size:11px;white-space:normal}
 body.nkr-studio #content .c360-name-line h1{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal;line-height:1.2;font-size:clamp(22px,5.6vw,29px)!important}
 body.nkr-studio #content .c360-identity-copy{min-width:0;max-width:100%;width:100%}
 body.nkr-studio #content .c360-meta{flex-wrap:wrap;gap:6px}
 body.nkr-studio #content .c360-meta>span{max-width:100%;overflow-wrap:anywhere;white-space:normal;line-height:1.5;font-size:11px!important}
 body.nkr-studio #content .c360-record-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:8px}
 body.nkr-studio #content .c360-record-strip>button{min-width:0;max-width:100%;width:100%;min-height:66px;white-space:normal;word-break:normal;overflow-wrap:normal}
}
@media(max-width:980px) and (orientation:landscape){
 :root.device-ios-standalone{--nkr-safe-left:max(32px,env(safe-area-inset-left,0px));--nkr-safe-right:max(32px,env(safe-area-inset-right,0px));--nkr-safe-bottom:max(14px,env(safe-area-inset-bottom,0px))}
}
@media(max-width:980px){
 body.nkr-studio .nkr-mobile-dock-shell{padding-bottom:calc(5px + var(--nkr-safe-bottom))}
 body.nkr-studio .nkr-appt-detail-drawer .staff-identity-inline{min-width:0;max-width:100%;align-items:flex-start}
 body.nkr-studio .nkr-appt-detail-drawer .staff-identity-inline>span{min-width:0;max-width:100%}
 body.nkr-studio .nkr-appt-detail-drawer .staff-identity-inline b{white-space:normal;overflow:visible;max-width:100%;text-overflow:clip;overflow-wrap:anywhere;line-height:1.5}
 body.nkr-studio .nkr-appt-detail-drawer .appointment-specialist-missing{display:grid;gap:5px;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
 body.nkr-studio .nkr-appt-detail-drawer .appointment-specialist-missing small{font-size:12px;color:var(--nkr-muted,var(--muted))}
}
}
