.productivity-workspace{position:fixed;inset:0;z-index:20;background:#f5f7f5;display:grid;grid-template-rows:auto 1fr;overflow:hidden}.editor-shell{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.65rem;background:#173c2c;color:#fff}.editor-shell input{min-width:12rem;flex:1}.editor-shell button,.editor-shell summary{min-height:44px}.editor-surface{overflow:auto;padding:1rem}.document-toolbar,.sheet-toolbar,.design-toolbar,.photo-toolbar,.presentation-toolbar,.form-tools,.editor-options{display:flex;gap:.45rem;align-items:end;flex-wrap:wrap;padding:.5rem;background:#fff}.document-toolbar{position:sticky;top:0;z-index:2}.document-page{background:#fff;width:min(210mm,100%);min-height:297mm;margin:1rem auto;padding:20mm;box-shadow:0 2px 14px #0002}.document-page.landscape{width:min(297mm,100%)}.document-page table{border-collapse:collapse}.document-page td{border:1px solid #999;padding:.4rem}.page-break{break-after:page;border-top:2px dashed #999}.spreadsheet-grid{overflow:auto;max-height:62vh;background:#fff}.spreadsheet-grid table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content}.spreadsheet-grid th,.spreadsheet-grid td{border:1px solid #ccd4cf;min-width:7rem;height:2rem;padding:.25rem}.spreadsheet-grid thead.frozen{position:sticky;top:0;z-index:3}.spreadsheet-grid th{background:#e8f3eb}.spreadsheet-grid td.selected{outline:3px solid #3f785b;outline-offset:-3px}.formula-field{flex:1;min-width:15rem}.sheet-tabs{display:flex;gap:.25rem;overflow:auto}.chart-workspace{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.75rem}.chart-workspace article{border:1px solid #ccd4cf;padding:.6rem}.chart-workspace svg{width:100%}.presentation-layout{display:grid;grid-template-columns:9rem 1fr;gap:1rem}.slide-thumbnails{display:flex;flex-direction:column;gap:.5rem}.slide-stage{position:relative;aspect-ratio:16/9;box-shadow:0 2px 12px #0003;background-size:cover;background-position:center;overflow:hidden}.slide-stage.ratio-4-3{aspect-ratio:4/3}.slide-stage>[data-slide-object]{position:absolute;border:1px dashed #779;padding:.5rem;overflow:auto}.slide-stage .ellipse{border-radius:50%}.slide-line{height:2px!important;background:#173c2c!important;transform:rotate(15deg)}.design-layout{display:grid;grid-template-columns:1fr minmax(12rem,20rem);gap:1rem}.design-canvas{background:#fff;max-height:70vh;max-width:100%;border:1px solid #aaa}.layers-panel{max-height:70vh;overflow:auto}.layers-panel>div{display:flex}.layers-panel button:first-child{flex:1}.layers-panel .active{outline:2px solid #3f785b}.photo-toolbar label,.sheet-toolbar label,.design-toolbar label,.presentation-toolbar label{display:grid;gap:.2rem;font-size:.78rem}.photo-toolbar+canvas,.editor-surface canvas{max-width:100%;max-height:65vh;background:#ddd}.signature-pad canvas{display:block;background:#fff;border:1px solid #667a70;touch-action:none}.form-builder fieldset{display:grid;grid-template-columns:2fr 2fr auto auto;gap:.5rem;margin:.5rem 0}.calculator{max-width:48rem;margin:auto}.calculator>input,.calculator>output{display:block;width:100%;padding:1rem;font-size:1.4rem}.calculator>div{display:grid;grid-template-columns:repeat(4,1fr)}.calculator button{min-height:48px}.calculation-helpers{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem}.calculation-helpers label{display:grid}[data-drawer]{position:fixed;right:0;top:0;bottom:0;width:min(30rem,92vw);padding:1rem;background:#fff;box-shadow:-4px 0 18px #0003;overflow:auto;z-index:30}.presentation-overlay{position:fixed;inset:0;z-index:9999;background:#111;display:grid;grid-template-columns:44px 1fr 44px;align-items:center}.presentation-overlay>section{position:relative;aspect-ratio:16/9;width:min(90vw,1200px);overflow:hidden}.presentation-overlay [data-slide-object]{position:absolute}@media(max-width:48rem){.productivity-workspace{bottom:0}.editor-shell{max-height:35vh;overflow:auto}.editor-surface{padding:.5rem}.document-page{padding:1rem;min-height:70vh}.presentation-layout,.design-layout{grid-template-columns:1fr}.slide-thumbnails{flex-direction:row;overflow:auto}.form-builder fieldset{grid-template-columns:1fr}.formula-field{min-width:100%}.sheet-toolbar button,.design-toolbar button,.photo-toolbar button,.presentation-toolbar button,.form-tools button{min-height:44px}.artifact-kind{display:none}}
.slide-stage>[data-slide-object].selected{outline:3px solid #3f785b;outline-offset:2px}.slide-stage>[data-slide-text]{cursor:text;white-space:pre-wrap}.slide-stage>[data-slide-text].editing{outline:3px solid #1f6feb;caret-color:#111;user-select:text}
