
@media(max-width:700px){
  .ed-titlebar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"name name" "left actions"!important;height:auto!important;row-gap:2px;padding-block:2px!important}
  .ed-titlebar .canvas-title-wrap{grid-area:name;position:static!important;transform:none!important;max-width:100%!important;width:100%!important;min-width:0;justify-self:stretch}
  .ed-titlebar .canvas-title{flex:1 1 auto!important;min-width:0!important;max-width:none!important;width:100%!important;text-align:left}
  .ed-title-left{grid-area:left}.canvas-title-actions{grid-area:actions}
  .word-tools-toggle{display:inline-flex;align-items:center;border:0;background:transparent;color:inherit;font:inherit;padding:4px 8px;min-height:32px}
  body:not(.word-tools-open) .ed-ribbon{display:none!important}
  .ribbon-panel .ribbon-group[aria-label="Шрифт"]{order:-1}
  .topbar-row:has(.document-title){display:grid!important;grid-template-columns:auto 1fr auto;row-gap:0;height:auto!important}
  .topbar-row .topbar-title-wrap{grid-column:1/-1;grid-row:1;display:flex!important;align-items:center;justify-content:space-between;min-width:0;width:100%;gap:6px}
  .topbar-title-wrap .editor-title,.topbar-title-wrap .document-title{max-width:100%!important;min-width:0}
  .topbar-title-wrap .save-status{flex:0 1 auto;max-width:45%}
  .topbar-row .topbar-actions{grid-column:3}
}
@media(min-width:701px){.word-tools-toggle{display:none}}
@media(max-width:700px){.suite-bar .cc-btn-cloud{white-space:nowrap}.canvas-workspace .ribbon-panel .ribbon-group[aria-label="Шрифт"]{order:-1}}
@media(max-width:350px){.suite-bar{gap:3px}.suite-bar>a{gap:4px}.suite-bar .cc-btn-cloud{padding-inline:5px!important}}
