@media (max-width: 760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%}
  body{font-size:14px}
  input,select,textarea,button{font-size:16px}
  input,select,textarea{max-width:100%;min-width:0}
  button,.btn,.workspace-link,.workspace-drop-btn,.workspace-primary{min-height:42px}
  img,svg,canvas,video{max-width:100%}
  table{font-size:13px}
  .content,.content.wide,.main section,.project-grid,.material-grid,.report-grid,.project-overview,.knowledge-tabs{padding-left:12px!important;padding-right:12px!important;max-width:none!important}
  .main{overflow:visible!important}
  .card,.panel,.card-pad,.project-card,.material-card,.script-card,.banner-card,.report-card,.overview-block,.form-surface,.goal,.earn-card,.stat,.kpi-card{border-radius:14px!important}
  .card-pad,.panel,.card,.goal,.earn-card,.kpi-card{padding:15px!important}
  .topbar,.head,.page-header{padding-left:12px!important;padding-right:12px!important;gap:10px!important}
  .topbar,.head,.page-header,.panel-head,.modal-head{align-items:flex-start!important;flex-direction:column!important}
  .actions,.topbar-actions,.modal-foot,.goal-actions,.task-actions,.card-actions,.stage-actions,.moderation-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:8px!important}
  .actions .btn,.topbar-actions .btn,.modal-foot .btn,.goal-actions .btn,.task-actions .btn,.card-actions .btn,.stage-actions .btn,.moderation-actions .btn{width:100%!important}
  .btn:not(.btn-icon),button:not(.icon-btn):not(.btn-icon):not(.workspace-drop-btn):not(.workspace-link){white-space:normal;text-align:center}
  .modal,.mbox,.script-modal{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;border-radius:16px!important}
  .overlay,.modal-backdrop{padding:10px!important;align-items:flex-start!important;overflow-y:auto!important}
  .grid,.grid2,.cols2,.cols3,.fgrid,.step-grid,.budget-row,.budget-add,.goal-summary,.inline-progress,.summary,.summary-grid,.kpi-grid,.content-grid,.layout,.project-overview,.filters,.scripts-filters,.segment-cards{grid-template-columns:1fr!important}
  .table-wrap,.sheet-scroll,.panel:has(table),.card:has(table),#tableWrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  .table,.tbl,.fixed-table{min-width:640px}
  .sheet-panel{margin-left:10px!important;margin-right:10px!important;max-width:calc(100vw - 20px)!important;border-radius:14px!important}
  .sheet-scroll table{min-width:1120px!important}
  .toast{left:12px!important;right:12px!important;bottom:12px!important;width:auto!important;max-width:none!important}
  .workspace-header{position:sticky!important;align-items:stretch!important;padding:8px 10px!important;gap:8px!important}
  .workspace-brand{min-width:0!important;flex:1 1 auto!important}
  .workspace-brand-mark{width:32px!important;height:32px!important}
  .workspace-brand span{display:none!important}
  .workspace-nav{order:3;flex-basis:100%;width:100%;gap:5px;padding-bottom:2px}
  .workspace-link,.workspace-drop-btn{height:38px;padding:0 10px;font-size:13px}
  .workspace-actions{width:100%!important}
  .workspace-primary{width:100%!important}
  .workspace-popover{left:10px!important;right:10px!important;width:auto!important;min-width:0!important}
  .workspace-popover a{min-height:42px;font-size:14px}
  body.has-workspace-header .topbar,body.has-workspace-header .head{display:flex!important}
  .page-title h1,.topbar h1,.topbar-left h1,.head h1,.content h1{font-size:21px!important;line-height:1.2}
  .page-title p,.topbar p,.topbar small,.topbar-left p,.head p{font-size:12.5px!important;line-height:1.35}
  .stats-row,.kanban-board,.task-list-view{padding-left:12px!important;padding-right:12px!important}
  .stats-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .stat-card{padding:10px 12px!important}
  .stat-card b,.kpi-value,.metric-value{font-size:22px!important}
  .kanban-board{grid-template-columns:1fr!important;gap:12px!important;min-height:0!important}
  .kanban-col{min-height:220px!important}
  .task-card{padding:12px!important;border-radius:14px!important}
  .card-actions{opacity:1!important}
  .list-main{grid-template-columns:1fr!important;gap:8px!important}
  .list-status-select,.list-main>.card-actions{grid-column:auto!important;width:100%!important}
  .earnings-board{grid-template-columns:1fr!important}
  .earn-line,.earn-total{align-items:flex-start!important;gap:8px!important}
  .earn-line strong,.earn-total strong{white-space:normal!important;text-align:right}
  .budget-row,.budget-add{gap:8px!important}
  .calendar{overflow-x:auto!important}
  .weekdays,.month-grid{min-width:680px}
  .day{min-height:86px!important}
  .toolbar,.month-nav,.filters{width:100%!important}
  .filters input,.filters select{width:100%!important;min-width:0!important}
  .bar-chart{height:230px!important}
  .month-list{max-height:none!important;overflow:visible!important}
  .brief-shell{padding:14px 12px!important}
  .brief-head{display:block!important}
  .steps{display:inline-flex!important;margin-top:10px}
  textarea{min-height:220px}
}

@media (max-width: 420px){
  body{font-size:13.5px}
  .content,.content.wide,.main section{padding-left:10px!important;padding-right:10px!important}
  .card-pad,.panel,.card,.goal,.earn-card,.kpi-card{padding:13px!important}
  .stats-row{grid-template-columns:1fr!important}
  .workspace-link,.workspace-drop-btn{font-size:12.5px;padding:0 9px}
  .table,.tbl,.fixed-table{min-width:560px}
  .sheet-scroll table{min-width:980px!important}
}
