/* Explicitly supersede inherited contents/nowrap rules across all ribbon tabs. */
.excel-shell61.app.workspace71.workspace78.workspace80.workspace81{grid-template-rows:auto auto minmax(0,1fr) 44px!important}
.excel-shell61.app.workspace81 .ribbon-panels58{position:relative;min-height:var(--panel-height81,142px)!important;height:auto!important;overflow:visible!important}
.excel-shell61.app.workspace81 .ribbon-panels58>[role=tabpanel]{flex-wrap:wrap!important;overflow:visible!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important}
.excel-shell61.app.workspace81 .ribbon-panels58>[role=tabpanel].measure81{position:absolute!important;visibility:hidden!important;pointer-events:none!important;left:0!important;top:0!important;width:100%!important;box-sizing:border-box!important}
.excel-shell61.app.workspace81 #ribbon-panel-common .formatting-ribbon{display:block!important;flex:0 0 var(--font-width78,250px)!important;width:var(--font-width78,250px)!important;min-width:0!important;max-width:100%!important}
.excel-shell61.app.workspace81 #ribbon-panel-common.common78{flex-wrap:wrap!important;overflow:visible!important;align-items:flex-start!important;gap:8px!important}
.excel-shell61.app.workspace81 #ribbon-panel-common .excel-format66{width:100%!important;min-width:0!important;grid-template-columns:minmax(0,1fr)!important}
.excel-shell61.app.workspace81 #ribbon-panel-common .appearance71{flex:0 0 140px!important;width:140px!important;min-width:0!important;max-width:140px!important}
.excel-shell61.app.workspace81 #ribbon-panel-common .geometry-group63{height:auto!important;flex:0 0 94px!important;width:94px!important;min-width:94px!important}
.excel-shell61.app.workspace81 #ribbon-panel-common .geometry-inline77{flex:0 0 200px!important;width:200px!important;min-width:200px!important;max-width:200px!important}
.excel-shell61.app.workspace81 #ribbon-panel-common .geometry-fields81{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
.excel-shell61.app.workspace81 .quick-row62{height:auto!important;min-height:34px!important;flex-wrap:wrap!important;overflow:visible!important}
.excel-shell61.app.workspace81 .canvas-quick64{position:relative!important;grid-column:1/3!important;grid-row:2!important;inset:auto!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;max-width:none!important;width:auto!important;height:auto!important;min-height:40px!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:5px!important;padding:4px 20px!important;margin:0!important;overflow:visible!important;box-sizing:border-box}
.excel-shell61.app.workspace81 .canvas-edit65{flex:1 1 420px!important;min-width:0!important;max-width:100%!important;flex-wrap:wrap!important;white-space:normal!important;gap:5px!important}
.excel-shell61.app.workspace81 .selection-tools74{max-width:100%!important;flex-wrap:wrap!important;margin-left:0!important;gap:4px!important}
.excel-shell61.app.workspace81 .workspace{grid-row:3!important;padding:12px 20px 20px!important}
.excel-shell61.app.workspace81 .canvas-statusbar{grid-row:4!important}
.excel-shell61.app.workspace81>.right{grid-row:1/-1!important}
.excel-shell61.app.workspace81 .ribbon-section78{align-content:flex-start!important;min-height:0!important;border-right:1px solid var(--line78);padding-right:12px}
.excel-shell61.app.workspace81 .ribbon-section78:last-child{border-right:0}
.excel-shell61.app.workspace81 #ribbon-panel-insert .insert-tools{flex:0 0 auto!important}
.excel-shell61.app.workspace81 #ribbon-panel-fonts{flex-wrap:wrap!important;min-width:0!important}
.excel-shell61.app.workspace81 #ribbon-panel-fonts .global-preview66{width:112px!important;min-width:0!important}
.excel-shell61.app.workspace81 .more-tools57,.excel-shell61.app.workspace81 [aria-label="介面字級"]{display:none!important}
/* Keep inactive tabs genuinely hidden, including the empty common panel. */
.excel-shell61.app.workspace81 .ribbon-panels58>[role=tabpanel][hidden],
.excel-shell61.app.workspace81 #ribbon-panel-common.common78.empty-common79[hidden],
.excel-shell61.app.workspace81 #ribbon-panel-common.common78[hidden],
.excel-shell61.app.workspace81 #ribbon-panel-layout.layout78[hidden],
.excel-shell61.app.workspace81 #ribbon-panel-view.view78[hidden]{display:none!important}
.excel-shell61.app.workspace81 #ribbon-panel-common .formatting-ribbon[hidden]{display:none!important}
@media print{.excel-shell61.app.workspace81 .canvas-quick64{display:none!important}.excel-shell61.app.workspace81 .workspace{padding:0!important}}
