html,body{width:100%;min-height:100%;overscroll-behavior:none;-webkit-text-size-adjust:100%}
body{padding-top:env(safe-area-inset-top);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left)}
button,.project-open,.project-edit,.project-delete{min-height:44px;touch-action:manipulation}
input,select,textarea{font-size:16px!important}
.shell{height:100dvh}
.shellbar{padding-top:max(9px,env(safe-area-inset-top));flex-wrap:wrap}
.shell-actions{-webkit-overflow-scrolling:touch}
.portfolio,.dc-native,.dc-client-nav,.dc-admin-nav,.financial-scroll,.scroll,.dc-tablewrap,.dc-pc-todo-scroll{-webkit-overflow-scrolling:touch}
@media(max-width:650px){
 .shellbar{gap:8px;align-items:center}
 .brand{width:100%}
 .brand strong{font-size:.88rem}
 .shell-actions{width:100%;display:flex;flex-wrap:nowrap;overflow-x:auto;padding:0 0 3px;scrollbar-width:none}
 .shell-actions::-webkit-scrollbar,.dc-client-nav::-webkit-scrollbar,.dc-admin-nav::-webkit-scrollbar{display:none}
 .shell-actions button{white-space:nowrap;flex:0 0 auto;padding:8px 12px}
 .portfolio-head{align-items:flex-start;margin-bottom:15px}
 .portfolio-head h1{font-size:1.5rem}
 .portfolio-actions{width:100%}
 .portfolio-actions button{flex:1 1 45%}
 .panel{padding:15px;border-radius:16px}
 .project-card{padding:13px}
 .project-card>div:last-child{display:flex;flex-wrap:wrap;gap:7px}
 .project-card>div:last-child button{flex:1 1 auto}
 .auth-screen{padding:12px;align-items:flex-end}
 .auth-card{padding:20px 16px;border-radius:22px;max-height:calc(100dvh - 24px);overflow:auto}
 .modal{padding:0;align-items:flex-end}
 .dialog{border-radius:22px 22px 0 0;padding:20px 16px;max-height:92dvh;overflow:auto;padding-bottom:max(20px,env(safe-area-inset-bottom))}
 .dialog-actions{position:sticky;bottom:0;background:#fff;padding-top:10px}
 .dc-context-header{padding-top:max(12px,env(safe-area-inset-top))}
 .dc-brand-copy p{display:none}
 .dc-admin-nav{display:flex;flex-wrap:nowrap}
 .dc-admin-nav button{flex:0 0 auto}
 .dc-pc-todo-card{padding:14px;border-radius:16px}
 iframe{min-width:0}
}
@media(orientation:landscape) and (max-height:520px){
 .shellbar{padding-top:6px;padding-bottom:6px}
 .brand{width:auto}.brand small{display:none}
 .shell-actions{width:auto;flex:1}
 .auth-screen{align-items:center}
}
