#compact-editor{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;background:#fff;padding:0 18px 32px;z-index:2;scrollbar-gutter:stable}#engine-host iframe.engine-background{opacity:0;pointer-events:none}#compact-editor.is-busy{pointer-events:none}.compact-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid #e6e9ef;font-size:10px;color:#7886a2;letter-spacing:.2px}.compact-meta>span:first-child{font-weight:600;letter-spacing:1px;color:#546078}.flow-document{padding:15px 0;max-width:720px;margin:auto}.flow-paragraph{position:relative;display:block;width:100%;border:0;border-radius:4px;padding:7px 2px;margin:0;background:transparent;color:#2b2f38;text-align:left;font:15px/1.75 Inter,system-ui;white-space:pre-wrap;overflow-wrap:anywhere;min-height:40px}.flow-paragraph:hover,.flow-paragraph:focus-visible{background:#f3f5f8}.flow-heading{font-size:22px;font-weight:600;line-height:1.35;margin:10px 0}.list-dot{margin-right:10px}.empty-paragraph{color:#929db3;font-size:14px}.object-note{display:block;color:#75839f;font-size:11px;line-height:1.6;margin:8px 0}.paragraph-edit{padding:6px 0 12px}.paragraph-edit textarea{display:block;resize:none;width:100%;min-height:80px;border:1px solid #8b97af;border-radius:6px;padding:10px 12px;font:15px/1.75 Inter,system-ui;color:#2b2f38;outline:0;background:#fbfcfd}.paragraph-edit>div{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}.paragraph-edit button{padding:8px 14px;border-radius:5px;background:#eaedf2;color:#3d4657;font-size:12px;min-height:36px}.paragraph-edit button:last-child{background:#f3f4f7;color:#606e89}.add-block{display:block;width:100%;margin:20px 0 4px;padding:13px 10px;border:1px dashed #bfc5d2;border-radius:7px;background:#f8f9fb;color:#495368;text-align:center;font-size:13px;min-height:44px}.flow-table-wrap{max-width:100%;overflow:auto;margin:10px 0}.flow-table{border-collapse:collapse;font-size:12px}.flow-table td{border:1px solid #dadfe8;padding:8px 10px;min-width:90px}.compact-link{background:none;padding:8px 0;color:#535f77;font-size:11px;text-align:left}.sheet-switcher{display:flex;gap:5px;overflow:auto;padding:12px 0 8px}.sheet-switcher button{padding:9px 14px;border-radius:6px;background:#f0f2f6;color:#677694;font-size:12px;white-space:nowrap;min-height:36px}.sheet-switcher button.active{background:#e4e7ee;color:#3d4657;font-weight:600}.cell-jump{display:flex;align-items:center;gap:8px;margin:5px 0 12px;font-size:11px;color:#667592}.cell-jump input{width:64px;padding:8px;border:1px solid #d4d9e4;border-radius:5px;font-size:13px;color:#3d4657;background:white}.cell-jump button{padding:9px 11px;background:#e8ebf0;color:#454f64;border-radius:5px;font-size:11px}.cell-jump>span{font-size:10px;line-height:1.5;margin-left:auto;max-width:130px}.responsive-grid{max-width:100%;overflow:auto;border:1px solid #d6dbe4;border-radius:6px;max-height:65dvh}.responsive-grid table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;table-layout:fixed;font-size:12px}.responsive-grid th{background:#eef0f4;color:#6d7c9a;font-size:10px;font-weight:500;height:30px;min-width:30px;position:sticky;top:0;z-index:1;border-bottom:1px solid #dbdfe8;border-right:1px solid #dbdfe8}.responsive-grid tbody th{left:0;z-index:1}.responsive-grid td{border-right:1px solid #e3e6ed;border-bottom:1px solid #e3e6ed;padding:0}.responsive-grid td button{position:relative;display:block;background:#fff;color:#323742;font:13px/1.4 Inter,system-ui;text-align:left;padding:10px 9px;min-height:42px;width:96px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;outline-offset:-2px}.responsive-grid td button:hover,.responsive-grid td button.selected{background:#f1f3f6;box-shadow:inset 0 0 0 2px #8a96ae}.formula-dot{position:absolute;top:3px;right:3px;width:4px;height:4px;border-radius:50%;background:#707e9b}.grid-footer{display:flex;align-items:center;justify-content:space-between;margin:8px 0;color:#7886a1;font-size:10px}.grid-footer button{background:none;color:#505c73;font-size:11px;padding:9px}.slide-stack{max-width:740px;margin:16px auto}.slide-content-card{border:1px solid #e1e6eb;border-radius:9px;padding:15px 16px;margin:0 0 14px;background:#fff;box-shadow:0 1px 2px #213c4f03}.slide-content-card>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;font-size:9px;letter-spacing:1px;color:#9aa1af}.slide-content-card>header button{font-size:10px;background:#f1f3f8;color:#717c96;padding:7px 9px;border-radius:5px;letter-spacing:0}.slide-text{display:block;white-space:pre-wrap;overflow-wrap:anywhere;width:100%;background:none;color:#4e5970;font:14px/1.7 Inter,system-ui;text-align:left;padding:7px 0;border-radius:4px}.slide-text:hover{background:#f5f6fa}.slide-title{font-size:21px;font-weight:600;line-height:1.4;color:#2d3c58;margin-bottom:6px}.compact-present{background:#f6f7fa!important}.format-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.format-grid button{padding:13px 8px;min-height:46px;background:#edeff4;color:#454f63;border:1px solid #dce0e9;border-radius:7px;font-size:13px}.panel-label{display:block;font-size:12px;margin:16px 0 8px;color:#606e8b}#paragraph-style{width:100%;padding:12px;border:1px solid #dadfe8;background:white;border-radius:7px;margin-bottom:12px}#compact-editor~#engine-loading{z-index:3}@media(min-width:600px){#compact-editor{padding:0 28px 36px}.compact-meta{max-width:820px;margin:auto;padding:15px 0}.flow-document{padding-top:18px}.flow-paragraph{font-size:16px}.slide-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:100%}.slide-content-card{margin:0}.slide-stack>.add-block{align-self:start;margin:0}.responsive-grid td button{width:110px}}

html[data-layout="phone"] .editor-bar{display:flex;height:56px;min-height:56px;padding:6px 8px;gap:6px}html[data-layout="phone"] .editor-identity{flex:1;min-width:0}html[data-layout="phone"] .editor-identity strong{font-size:11px}html[data-layout="phone"] .editor-identity small{font-size:9px}html[data-layout="phone"] .editor-actions{display:flex;gap:4px}html[data-layout="phone"] .editor-bar .icon-button{width:32px;height:34px}html[data-layout="phone"] #editor-save{min-height:34px;padding:8px 10px;font-size:11px}html[data-layout="phone"] #editor-ai{min-height:34px;padding:8px;font-size:10px}html[data-layout="phone"] #engine-loading{inset:100px 0 0}

.responsive-grid{scrollbar-width:auto;scrollbar-color:#8592ab #edeff4;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;max-height:52dvh;scrollbar-gutter:stable}.responsive-grid::-webkit-scrollbar{width:10px;height:10px}.responsive-grid::-webkit-scrollbar-track{background:#edeff4}.responsive-grid::-webkit-scrollbar-thumb{background:#8592ab;border:2px solid #edeff4;border-radius:6px}.grid-location{display:flex;justify-content:space-between;gap:10px;margin:10px 0;color:#6e7d9b;font-size:10px}.grid-location span{color:#818ea8}.grid-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0 14px}.grid-navigation button{display:block;width:100%;margin:0;padding:11px 8px;border:1px solid #dbdfe8;background:#f5f6f9;border-radius:6px;color:#485267;font-size:12px;text-align:center;min-height:42px;font-weight:500}.grid-navigation button:disabled{opacity:.4;cursor:default}.responsive-grid td button{width:100%;min-width:96px}.responsive-grid th:not(:first-child){min-width:96px}@media(min-width:600px){.grid-navigation{grid-template-columns:repeat(4,minmax(0,1fr))}.responsive-grid th:not(:first-child){min-width:110px}}

#compact-editor.compact-cells{display:flex;flex-direction:column;overflow:hidden;padding-bottom:14px}.compact-cells .compact-meta,.compact-cells .sheet-switcher,.compact-cells .cell-jump,.compact-cells .grid-location,.compact-cells .grid-navigation{flex-shrink:0}.compact-cells .compact-meta{width:100%}.compact-cells .responsive-grid{flex:1;min-height:100px;max-height:none}.compact-cells .grid-navigation{margin-bottom:0}.compact-cells .grid-location{font-size:9px}@media(max-height:500px){#compact-editor.compact-cells{overflow:auto}.compact-cells .responsive-grid{flex:none;height:180px}}

html[data-editor-layout="full"] #phone-editor-tools{display:none!important}html[data-editor-layout="compact"] #phone-editor-tools.presentation-tool-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:7px 8px;height:auto;overflow:visible}.presentation-tool-tabs button{margin:0!important;min-height:34px!important;padding:7px 4px!important;text-align:center!important;font-size:11px!important;width:100%!important}

/* All compact editors retain a visible, touch-sized toolbar, including wide tablets. */
html[data-editor-layout="compact"] #phone-editor-tools{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;flex-shrink:0;height:auto;overflow:visible;padding:7px 8px;background:#fff;border-bottom:1px solid #dce0e9}
html[data-editor-layout="compact"] #phone-editor-tools button{display:block;width:100%;min-width:0;min-height:40px;margin:0;padding:8px 4px;border:1px solid #dde1ea;border-radius:6px;background:#f8f9fb;color:#3d4657;font-size:12px;font-weight:500;white-space:normal}

html[data-editor-layout="compact"] #modal input,html[data-editor-layout="compact"] #modal textarea,html[data-editor-layout="compact"] #modal select{font-size:16px}
