/* Each group owns its width; separators travel with the group when rows wrap. */
.excel-shell61.app.workspace81.workspace82 .ribbon-panels58>[role=tabpanel]{gap:8px!important;justify-content:flex-start!important;align-items:flex-start!important;flex-direction:row!important}
.excel-shell61.app.workspace81.workspace82 .ribbon-unit82{position:relative;flex:0 0 var(--group-width82);width:var(--group-width82);min-width:0;max-width:100%;padding-right:10px;box-sizing:border-box;align-self:stretch}
.excel-shell61.app.workspace81.workspace82 .ribbon-divider82{position:absolute;right:0;top:0;bottom:0;width:8px;min-height:0;cursor:col-resize;touch-action:none;background:linear-gradient(90deg,transparent 3px,var(--line78) 3px,var(--line78) 4px,transparent 4px)}
.excel-shell61.app.workspace81.workspace82 .ribbon-divider82:hover,.excel-shell61.app.workspace81.workspace82 .ribbon-divider82:focus-visible{background:color-mix(in srgb, var(--accent-soft) 26.667%, transparent);outline:2px solid var(--ui-accent);outline-offset:-2px}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common .ribbon-unit82>.formatting-ribbon,
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common .ribbon-unit82>.appearance71,
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common .ribbon-unit82>.geometry-group63,
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common .ribbon-unit82>.geometry-inline77,
.excel-shell61.app.workspace81.workspace82 .ribbon-unit82>.ribbon-section78,
.excel-shell61.app.workspace81.workspace82 .ribbon-unit82>.global-preview66{width:100%!important;min-width:0!important;max-width:none!important;flex:none!important;border-right:0!important;padding-right:0!important;box-sizing:border-box}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common .appearance71{padding:0!important;gap:6px!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common .appearance71 .direct-options{display:flex!important;flex-wrap:nowrap!important;width:100%;gap:3px!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common .appearance71 .direct-options .btn{flex:1 1 0!important;width:auto!important;min-width:0!important;white-space:nowrap!important;padding:3px 5px!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common .appearance-top78{position:static!important;display:flex;flex-wrap:wrap;gap:5px!important;width:100%!important;padding:0!important;margin:0!important;border:0!important;overflow:visible!important;max-height:none!important}
.excel-shell61.app.workspace81.workspace82 .appearance-top78 .appearance-heading78{font-size:14px!important}
.excel-shell61.app.workspace81.workspace82 .appearance-top78 .visibility73{gap:7px!important}
.excel-shell61.app.workspace81.workspace82 .appearance-top78 .compact-actions74 .btn{width:auto!important;flex:1;white-space:nowrap!important}
.excel-shell61.app.workspace81.workspace82 .appearance-top78 .chairs-inline77>div{flex-wrap:wrap!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common .geometry-fields81{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common .geometry-fields81 label{display:flex!important;flex-direction:column!important;width:100%!important;margin:0!important;gap:3px;white-space:nowrap!important;line-height:20px!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common .geometry-fields81 .field{width:100%!important;min-width:0!important;padding:3px 5px!important;height:30px!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-insert .ribbon-unit82>.insert-tools{width:100%!important;max-width:none!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;grid-auto-rows:minmax(30px,auto)!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-insert .favorite-materials66{display:grid!important;width:100%!important;min-width:0!important;max-width:none!important;grid-template-columns:repeat(auto-fit,minmax(72px,1fr))!important;grid-template-rows:none!important;grid-auto-rows:70px!important;gap:6px!important;padding:0!important;border:0!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-insert .favorite66{display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;width:100%!important;min-width:72px!important;height:70px!important;padding:5px 3px!important;gap:4px!important;white-space:nowrap!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-insert .favorite66>span{display:block;font-size:14px!important;line-height:20px!important;white-space:nowrap!important;max-width:100%!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-insert .favorite66 svg{width:28px!important;height:28px!important;flex:none}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-insert .favorite66 .material-letter82{font-size:26px!important;line-height:28px!important;height:28px;font-weight:600}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-view .ribbon-section78{display:flex!important;flex-direction:column!important;gap:7px!important;padding:0!important;align-items:flex-start!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-view .ribbon-section78 label{width:100%!important;white-space:nowrap!important;margin:0!important}
.excel-shell61.app.workspace81.workspace82 .seat-actions79>.purpose82{grid-column:1/-1;display:grid;gap:5px;width:100%}
.excel-shell61.app.workspace81.workspace82 .purpose82 .direct-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px!important}
.excel-shell61.app.workspace81.workspace82 .purpose82 .btn{width:100%!important;min-width:0!important;white-space:nowrap!important;padding:5px 3px!important}
.excel-shell61.app.workspace81.workspace82 .arc-match82{grid-column:1/-1;display:grid;gap:5px}
.excel-shell61.app.workspace81.workspace82 .arc-match82 p{margin:0;line-height:1.5}
.excel-shell61.app.workspace81.workspace82 .arc-match82 .match-actions82{display:flex;gap:5px}
.excel-shell61.app.workspace81.workspace82 .arc-match82 svg{width:100%;height:100px;border:1px solid var(--line78);background:var(--control78)}
.excel-shell61.app.workspace81.workspace82 .arc-match82 [role=status]:empty{display:none}
/* hidden always wins against flex/grid, including controls moved between groups. */
.excel-shell61.app.workspace81.workspace82 .ribbon-panels58 [hidden],
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common.common78[hidden],
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common.common78.empty-common79[hidden],
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-layout.layout78[hidden],
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-view.view78[hidden],
.excel-shell61.app.workspace81.workspace82 .purpose82 select[hidden]{display:none!important}

.excel-shell61.app.workspace81.workspace82 #ribbon-panel-common .appearance71 .line-style82{width:100%!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-fonts .global-controls66,.excel-shell61.app.workspace81.workspace82 #ribbon-panel-fonts .global-actions66{width:100%!important;min-width:0!important;max-width:100%!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-fonts .global-controls66 .text-style{grid-template-columns:minmax(118px,1fr) minmax(190px,1.4fr)!important;gap:6px!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-fonts .global-actions66{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important;gap:6px!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-fonts .global-actions66>.global-font-loader{grid-column:1/-1!important;grid-row:auto!important}
.excel-shell61.app.workspace81.workspace82 #ribbon-panel-fonts .global-actions66>.btn{width:100%!important;white-space:nowrap!important;padding:4px!important}
