:root{font-family:system-ui,-apple-system,Roboto,"Segoe UI",sans-serif;color:#242424;background:#f5f6f8;font-synthesis:none;text-rendering:optimizeLegibility;--accent:#185abd;--line:#e5e5e5;--soft-hover:#f0f2f5}*{box-sizing:border-box}body{margin:0;min-width:360px;min-height:100vh;overflow:hidden}button,select,input{font:inherit}button{color:inherit}.app-shell{display:flex;flex-direction:column;height:100vh;min-height:480px;background:#f5f6f8}.titlebar{height:46px;flex:0 0 46px;display:flex;align-items:center;padding:0 17px;gap:11px;background:#fff}.brand{width:24px;height:27px;border-radius:4px;display:grid;place-items:center;color:#fff;background:#185abd;font-size:17px;font-weight:700;box-shadow:inset -5px 0 rgba(0,0,0,.1)}.brand span{transform:scaleX(.9)}.document-name{font-size:13px;color:#3b3b3b}.save-state{display:flex;align-items:center;gap:7px;color:#616161;font-size:12px;margin-left:7px}.save-dot{height:7px;width:7px;border-radius:50%;background:#4b9b69;transition:background .18s ease}.save-state.is-saving .save-dot{background:#e0a126}.save-state.is-error .save-dot{background:#c42b1c}.title-action{width:32px;height:32px;margin-left:auto;display:grid;place-items:center;border:0;border-radius:4px;background:transparent;cursor:pointer;transition:background .16s ease}.title-action:hover{background:var(--soft-hover)}.title-action svg{width:17px;fill:none;stroke:#4a4a4a;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}.tabs{height:38px;flex:0 0 38px;display:flex;align-items:stretch;gap:4px;background:#fff;border-bottom:1px solid var(--line);padding:0 16px}.tab{position:relative;padding:0 13px;border:0;background:transparent;color:#555;cursor:pointer;font-size:13px;transition:background .16s ease,color .16s ease}.tab:hover{background:#f7f7f7;color:#222}.tab.is-active{color:#202020}.tab.is-active:after{content:"";position:absolute;height:2px;bottom:0;left:12px;right:12px;border-radius:3px;background:var(--accent)}.tabs-spacer{flex:1}.ribbon-collapse{width:32px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;border-radius:4px;transition:background .16s ease}.ribbon-collapse:hover{background:var(--soft-hover)}.ribbon-collapse svg{width:16px;fill:none;stroke:#606060;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}.app-shell.is-collapsed .ribbon{display:none}.app-shell.is-collapsed .ribbon-collapse svg{transform:rotate(180deg)}.ribbon{height:96px;flex:0 0 96px;background:#fff;padding:8px 18px 4px;border-bottom:1px solid #dedede}.ribbon-panel{display:flex;align-items:stretch;height:100%;gap:14px}.ribbon-panel[hidden]{display:none}.tool-group{display:flex;flex-direction:column;justify-content:center;gap:4px}.font-row,.format-row{display:flex;align-items:center;gap:3px}.font-family,.font-size,.layout-control select{height:27px;border:1px solid #d7d7d7;border-radius:3px;background:#fff;color:#353535;font-size:12px;padding:0 7px;outline:none}.font-family{width:168px}.font-family option{font-family:inherit}.font-size{width:57px}.font-family:focus,.font-size:focus,.layout-control select:focus{border-color:#3483d1;box-shadow:0 0 0 1px #3483d1}.tool-button{min-width:39px;height:34px;border:0;border-radius:4px;background:transparent;display:flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;cursor:pointer;font-size:12px;transition:background .16s ease,color .16s ease,transform .16s ease}.tool-button:hover{background:#f0f2f5}.tool-button:active{background:#e5e9ef;transform:scale(.97)}.tool-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.format-row .tool-button{width:29px;min-width:29px;padding:0}.format-row .tool-button svg{width:18px}.tool-divider{width:1px;height:22px;background:#e5e5e5;margin:0 4px}.color-tool{height:29px;width:31px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;transition:background .16s ease}.color-tool:hover{background:#f0f2f5}.color-glyph{font-family:Georgia,serif;font-size:17px;line-height:17px;border-bottom:3px solid #242424}.color-tool input{width:1px;height:1px;opacity:0;position:absolute}.color-tool:focus-within{outline:2px solid #3483d1}.group-caption{align-self:stretch;display:flex;align-items:flex-end;justify-content:center;padding:0 8px 2px;margin-left:-14px;border-right:1px solid #e8e8e8;color:#737373;font-size:10px;white-space:nowrap}.compact-group{flex-direction:row;align-items:center;gap:2px}.compact-group .tool-button{height:54px;width:58px;flex-direction:column;gap:2px}.compact-group .tool-button svg{width:20px;height:20px}.layout-group{flex-direction:row;align-items:center;gap:20px}.layout-control{display:flex;flex-direction:column;gap:5px;color:#555;font-size:11px}.layout-control select{min-width:110px}.page-size-label strong{height:27px;display:flex;align-items:center;font-weight:400;color:#333}.workspace{flex:1;min-height:0;overflow:auto;display:flex;justify-content:center;align-items:flex-start;padding:27px 30px 36px;background:#f2f3f5}.page{flex:0 0 auto;width:794px;min-height:1123px;background:white;box-shadow:0 2px 5px rgba(0,0,0,.11),0 12px 30px rgba(0,0,0,.08);transform-origin:top center;zoom:1;transition:zoom .12s ease}.editor{min-height:1123px;padding:96px 96px;outline:none;color:#242424;font-family:Roboto,Arial,sans-serif;font-size:11pt;line-height:1.5;overflow-wrap:break-word}.editor p{margin:0 0 10px}.editor:focus{outline:none}.editor a{color:#185abd}.editor hr{border:0;border-top:1px solid #888;margin:14px 0}.page.margins-narrow .editor{padding:48px}.page.margins-wide .editor{padding:120px}.statusbar{height:32px;flex:0 0 32px;display:flex;align-items:center;gap:13px;padding:0 18px;background:#fff;border-top:1px solid #e5e5e5;color:#5c5c5c;font-size:11px}.document-stats{display:flex;align-items:center;gap:10px;white-space:nowrap}.document-stats strong{font-weight:500;color:#343434}.stats-divider{height:13px;width:1px;background:#dedede}.status-spacer{flex:1}.zoom-value{min-width:35px;text-align:right;font-variant-numeric:tabular-nums}.zoom-slider{width:110px;height:3px;accent-color:#185abd;cursor:pointer}.zoom-button{border:0;padding:0;width:20px;height:22px;border-radius:3px;color:#555;background:transparent;font-size:17px;line-height:1;cursor:pointer;transition:background .16s ease}.zoom-button:hover{background:#f0f2f5}@media(max-width:700px){.titlebar{padding:0 11px}.ribbon{padding-left:10px;padding-right:10px;overflow-x:auto}.font-family{width:130px}.workspace{justify-content:flex-start;padding:18px 12px 28px}.page{transform-origin:top left}.statusbar{padding:0 10px;gap:8px}.zoom-slider{width:72px}}@media(max-width:430px){.save-state{font-size:11px;gap:5px}.document-stats{gap:6px}.statusbar{font-size:10px}}
/* Unified workspace */
body{min-width:360px}.app-shell{min-height:0}.suitebar{height:58px;flex:0 0 58px;display:flex;align-items:center;gap:14px;padding:0 20px;background:#fff;border-bottom:1px solid #e8e9eb;position:relative;z-index:2}.app-switcher{height:100%;display:flex;align-items:center;gap:6px}.app-tab{height:42px;min-width:96px;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 15px;border:0;border-radius:11px;background:transparent;color:#4b4f56;font-size:13px;font-weight:550;cursor:pointer;position:relative;transition:background .18s ease,color .18s ease,transform .18s ease}.app-tab:hover{background:#f4f6f8;color:#222}.app-tab:active{transform:scale(.98)}.app-tab.is-active{background:#f0f4fa;color:#20252c}.app-tab.is-active:after{content:"";position:absolute;left:22px;right:22px;bottom:2px;height:3px;border-radius:3px;background:#3278d3}.app-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.write-icon{color:#3478d4}.calc-icon{color:#23945e}.show-icon{color:#e68a32}.suitebar-spacer,.status-spacer{flex:1}.suitebar .save-state{margin:0 3px 0 0}.save-button{height:34px;display:flex;align-items:center;gap:7px;padding:0 11px;border:1px solid #d9dce1;border-radius:7px;background:#fff;color:#343941;font-size:12px;cursor:pointer;transition:background .16s ease,border-color .16s ease}.save-button:hover{background:#f4f6f8;border-color:#c5cbd3}.save-button svg{width:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.write-controls{flex:0 0 auto}.suite-workspace{flex:1;min-height:0;display:flex;overflow:hidden}.app-view{flex:1;min-height:0;min-width:0}.app-view[hidden]{display:none!important}.write-view{display:flex;flex-direction:column}.write-view>.workspace{flex:1}.write-view .statusbar{flex:0 0 32px}.write-controls .tabs{height:36px;flex-basis:36px}.write-controls .ribbon{height:91px;flex-basis:91px}.write-controls .tool-button{font-family:inherit}.write-controls .icon-button{font-size:15px;font-weight:600}.align-center{ text-align:center}.align-right{text-align:right}.large-tool-icon{font-size:21px;line-height:20px}.calc-view{display:flex;flex-direction:column;background:#fff}.calc-toolbar{height:48px;flex:0 0 48px;display:flex;align-items:center;gap:9px;padding:0 18px;background:#fff;border-bottom:1px solid #e5e7ea}.calc-tool{height:29px;padding:0 10px;border:1px solid #e0e3e7;border-radius:6px;background:#fff;color:#464d55;font-size:12px;cursor:pointer;transition:background .16s ease}.calc-tool:hover{background:#f1f4f6}.calc-format{display:flex;align-items:center;gap:7px;margin-left:4px;color:#656b72;font-size:11px}.calc-format select{height:29px;padding:0 8px;border:1px solid #e0e3e7;border-radius:6px;background:#fff;color:#343a40;font-size:12px}.calc-hint{margin-left:auto;color:#898f96;font-size:11px}.formula-row{height:42px;flex:0 0 42px;display:flex;align-items:center;gap:9px;padding:0 16px;background:#fafbfc;border-bottom:1px solid #e4e6e9}.cell-name{width:62px;height:26px;border:1px solid #d9dde2;border-radius:4px;background:white;text-align:center;color:#444;font-size:12px}.formula-mark{color:#767e88;font-size:13px;font-style:italic}.formula-input{height:28px;flex:1;min-width:0;border:1px solid transparent;border-radius:4px;padding:0 8px;background:transparent;outline:none;color:#272c32;font-family:inherit;font-size:12px}.formula-input:focus{border-color:#9ab9df;background:#fff}.formula-enter{width:27px;height:26px;border:1px solid #dfe2e6;border-radius:4px;background:#fff;color:#4d5965;cursor:pointer}.sheet-scroll{flex:1;min-height:0;overflow:auto;background:#fff}
.workspace,.sheet-scroll,.slide-list{scrollbar-width:thin;scrollbar-color:transparent transparent}
.workspace::-webkit-scrollbar,.sheet-scroll::-webkit-scrollbar,.slide-list::-webkit-scrollbar{width:4px;height:4px}
.workspace::-webkit-scrollbar-thumb,.sheet-scroll::-webkit-scrollbar-thumb,.slide-list::-webkit-scrollbar-thumb{border-radius:8px;background-color:transparent;opacity:0;transition:opacity .24s ease}
.workspace.is-scrolling,.sheet-scroll.is-scrolling,.slide-list.is-scrolling{scrollbar-color:#8995a4aa transparent}
.workspace.is-scrolling::-webkit-scrollbar-thumb,.sheet-scroll.is-scrolling::-webkit-scrollbar-thumb,.slide-list.is-scrolling::-webkit-scrollbar-thumb{background-color:#8995a4aa;opacity:.72}.sheet-grid{display:grid;grid-template-columns:46px repeat(var(--sheet-column-count,26),minmax(92px,1fr));grid-auto-rows:30px;min-width:1100px;width:100%;align-content:start;border-collapse:collapse!important;border-spacing:0!important}.sheet-corner,.sheet-col-head,.sheet-row-head{display:grid;place-items:center;background:#f5f6f7;color:#666f79;border-right:1px solid #e2e5e8;border-bottom:1px solid #e2e5e8;font-size:11px;font-weight:500}.sheet-corner{position:sticky;left:0;top:0;z-index:3}.sheet-col-head,.sheet-row-head{cursor:pointer;user-select:none}.sheet-col-head{position:sticky;top:0;z-index:2}.sheet-row-head{position:sticky;left:0;z-index:1}.sheet-cell{min-width:0;border:0;border-right:1px solid #e7e9eb;border-bottom:1px solid #e7e9eb;border-radius:0;padding:0 7px;background:#fff;color:#30363d;text-align:left;font-family:inherit;font-size:12px;outline:none}.sheet-cell:focus,.sheet-cell.is-selected{position:relative;z-index:1;outline:2px solid #00E5FF;outline-offset:-2px}.sheet-cell.is-bold{font-weight:700}.calc-status{height:28px;flex:0 0 28px;display:flex;align-items:center;gap:10px;padding:0 16px;border-top:1px solid #e2e5e8;background:#fff;color:#707781;font-size:10px}.show-view{display:flex;background:#f2f3f5}.slide-rail{width:204px;flex:0 0 204px;display:flex;flex-direction:column;background:#fafbfc;border-right:1px solid #e2e5e8}.slide-rail-head{height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:0 15px;color:#545b63;font-size:12px;font-weight:600}.slide-rail-head .slide-rail-play{width:44px;height:44px;flex:0 0 44px;justify-content:center;padding:0;border-radius:50%;font-size:15px;box-shadow:0 2px 7px rgba(155,92,255,.3)}.slide-rail-head .slide-rail-play span{font-size:15px}.add-slide{width:27px;height:27px;border:1px solid #dce0e4;border-radius:7px;background:#fff;color:#545b63;font-size:19px;line-height:1;cursor:pointer;transition:background .16s ease}.add-slide:hover{background:#eef2f6}.slide-list{flex:1;overflow:auto;padding:4px 12px 16px}.slide-thumb{width:100%;display:flex;align-items:center;gap:10px;padding:9px 5px;border:0;border-radius:8px;background:transparent;text-align:left;color:#656b73;cursor:pointer}.slide-thumb:hover{background:#f0f2f5}.slide-thumb.is-active{background:#eaf1fa;color:#283b53}.slide-number{width:16px;font-size:10px;text-align:center}.thumb-preview{height:66px;flex:1;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:8px 10px;border:1px solid #dfe3e8;border-radius:3px;background:#fff;overflow:hidden;box-shadow:0 1px 2px #0000000a}.slide-thumb.is-active .thumb-preview{border-color:#72a3de;box-shadow:0 0 0 1px #72a3de}.thumb-title{overflow:hidden;color:#38404a;font-size:8px;font-weight:650;white-space:nowrap;text-overflow:ellipsis}.thumb-body{overflow:hidden;color:#838991;font-size:6px;white-space:nowrap;text-overflow:ellipsis}.show-stage{display:flex;flex:1;min-width:0;flex-direction:column}.show-toolbar{height:48px;flex:0 0 48px;display:flex;align-items:center;gap:10px;padding:0 19px;background:#fff;border-bottom:1px solid #e5e7e9}.show-page-label{color:#69717b;font-size:11px}.present-button{height:32px;display:flex;align-items:center;gap:8px;padding:0 13px;border:0;border-radius:7px;background:#9b5cff;color:white;font-size:12px;font-weight:600;cursor:pointer;transition:background .16s ease,transform .16s ease}.present-button:hover{background:#c96f25}.present-button:active{transform:scale(.98)}.present-button span{font-size:10px}.slide-rail-head .slide-rail-play,.slide-rail-head .slide-rail-play:hover{border:0;background:transparent;color:#00E5FF;box-shadow:none}.slide-work-area{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:30px}.slide-canvas{width:min(860px,100%);aspect-ratio:16/9;display:flex;flex-direction:column;justify-content:center;gap:20px;padding:8%;background:#fff;border:1px solid #e3e5e7;border-radius:3px;box-shadow:0 5px 18px #252b350f}.slide-title,.slide-body{width:100%;resize:none;border:0;outline:none;background:transparent;color:#262c33;font-family:inherit}.slide-title{min-height:70px;font-size:clamp(25px,4vw,46px);font-weight:650;line-height:1.15}.slide-body{min-height:95px;font-size:clamp(15px,1.7vw,20px);line-height:1.55;color:#626a73}.slide-title::placeholder,.slide-body::placeholder{color:#c5c9ce}.present-overlay{position:fixed;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;background:#141920;color:#fff}.present-overlay[hidden]{display:none}.present-close{position:absolute;top:24px;right:28px;width:40px;height:40px;border:0;border-radius:50%;background:#ffffff1c;color:white;font-size:27px;cursor:pointer}.present-content{position:absolute;inset:9vh 10vw;width:auto;height:82vh;display:flex;flex-direction:column;justify-content:center;white-space:pre-wrap}.present-content h1{position:relative;z-index:1;margin:0 0 30px;font-size:clamp(36px,7vw,76px);line-height:1.08}.present-content p{position:relative;z-index:1;font-size:clamp(19px,3vw,30px);line-height:1.5;color:#d9dee5}.present-nav{position:absolute;bottom:24px;left:50%;display:flex;align-items:center;gap:20px;transform:translateX(-50%);color:#cbd1d8;font-size:12px}.present-nav button{width:34px;height:34px;border:1px solid #ffffff38;border-radius:50%;background:transparent;color:#fff;font-size:23px;cursor:pointer}@media(max-width:700px){.suitebar{padding:0 9px;gap:6px}.app-tab{min-width:auto;padding:0 10px;gap:6px}.suitebar .save-state{font-size:10px}.save-button{padding:0 8px}.slide-rail{width:128px;flex-basis:128px}.slide-work-area{padding:15px}.slide-canvas{width:100%;padding:7%;gap:10px}.calc-toolbar{padding:0 9px}.calc-hint{display:none}}@media(max-width:430px){.app-tab{height:39px;padding:0 8px;font-size:11px}.app-icon{width:17px}.suitebar{height:54px;flex-basis:54px}.suitebar .save-state{gap:4px;margin-left:auto}.save-button span{display:none}.slide-rail{width:105px;flex-basis:105px}.slide-thumb{gap:4px;padding:7px 2px}.thumb-preview{height:50px;padding:5px}}

/* Rich editor, grid tools, and slide authoring */
.suite-workspace{position:relative}.write-view{position:relative}.write-select{height:27px;max-width:128px;padding:0 6px;border:1px solid #d7d7d7;border-radius:4px;background:#fff;color:#353535;font-size:11px}.paragraph-style{width:118px}.line-spacing{width:64px}.write-controls .font-row{gap:4px}.write-controls .font-family{width:150px}.write-controls .font-size{width:53px}.write-controls .format-row{gap:2px}.write-controls .ribbon-panel{gap:11px}.editor h1{margin:0 0 16px;font-size:2em;line-height:1.2}.editor h2{margin:0 0 13px;font-size:1.5em;line-height:1.25}.editor h3{margin:0 0 10px;font-size:1.17em;line-height:1.3}.editor .doc-table{width:100%;border-collapse:collapse;margin:14px 0 18px;table-layout:fixed}.editor .doc-table td{height:34px;border:1px solid #9da5ad;padding:6px 8px;vertical-align:top}.page-break-placeholder{height:30px;margin:18px 0;position:relative;border-top:2px dashed #9ba8b6;break-after:page}.page-break-placeholder:after{content:"Page break";position:absolute;right:7px;top:-10px;padding:1px 7px;background:#fff;color:#77818c;font:10px "Segoe UI",sans-serif}.editor-image{display:block;position:relative;max-width:100%;min-width:90px;min-height:60px;resize:both;overflow:hidden;margin:14px auto 18px;outline:1px solid transparent;cursor:pointer}.editor-image:hover,.editor-image:focus{outline-color:#7ea9dc}.editor-image img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.editor-image.image-align-left{margin-left:0;margin-right:auto}.editor-image.image-align-center{margin-left:auto;margin-right:auto}.editor-image.image-align-right{margin-left:auto;margin-right:0}.image-tools{position:absolute;z-index:6;display:flex;align-items:center;gap:4px;padding:5px;background:#fff;border:1px solid #dfe3e8;border-radius:7px;box-shadow:0 5px 18px #1112}.image-tools[hidden]{display:none}.image-tools button{height:25px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:#454c55;font-size:11px;cursor:pointer}.image-tools button:hover{background:#edf2f7}.image-tools span{padding:0 5px;color:#7a828c;font-size:10px;white-space:nowrap}.insert-table-wrap,.add-slide-wrap,.shape-menu-wrap{position:relative}.table-picker,.slide-template-menu,.shape-menu{position:absolute;z-index:8;top:calc(100% + 7px);left:0;width:190px;padding:10px;border:1px solid #dfe3e8;border-radius:8px;background:#fff;box-shadow:0 8px 24px #16202d1a}.table-picker[hidden],.slide-template-menu[hidden],.shape-menu[hidden]{display:none}.table-picker-title{margin-bottom:8px;color:#59616b;font-size:11px}.table-picker-grid{display:grid;grid-template-columns:repeat(5,24px);grid-template-rows:repeat(5,24px);gap:3px}.table-pick-cell{padding:0;border:1px solid #b9c2cc;border-radius:2px;background:#fff;cursor:pointer}.table-pick-cell:hover,.table-pick-cell.is-highlighted{border-color:#317ac4;background:#e7f1fc}.calc-toolbar{overflow-x:auto;white-space:nowrap}.calc-color{height:29px;min-width:30px;position:relative;display:grid;place-items:center;border:1px solid #e0e3e7;border-radius:6px;background:#fff;color:#454c55;font-size:14px;font-weight:700;cursor:pointer}.calc-color:hover{background:#f1f4f6}.calc-color input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.calc-color.fill-color{color:#555;font-size:15px}.calc-border,.transition-picker{display:flex;align-items:center;gap:6px;color:#656b72;font-size:10px;white-space:nowrap}.calc-border select,.transition-picker select{height:29px;padding:0 7px;border:1px solid #e0e3e7;border-radius:6px;background:#fff;color:#343a40;font-size:11px}.calc-toolbar-separator{height:22px;width:1px;background:#e0e3e7;margin:0 3px}.calc-tool:focus-visible,.show-tool:focus-visible,.present-button:focus-visible{outline:2px solid #7ba9dc;outline-offset:1px}.add-slide-wrap .slide-template-menu{top:34px;left:auto;right:0;width:162px;padding:5px}.slide-template-menu button,.shape-menu button{width:100%;display:block;padding:9px 10px;border:0;border-radius:5px;background:transparent;color:#424a53;text-align:left;font-size:11px;cursor:pointer}.slide-template-menu button:hover,.shape-menu button:hover{background:#f1f4f7}.show-tool{height:30px;padding:0 10px;border:1px solid #e0e3e7;border-radius:6px;background:#fff;color:#4a5159;font-size:11px;cursor:pointer}.show-tool:hover{background:#f1f4f6}.shape-menu{top:35px;width:135px;padding:5px}.transition-picker{font-size:11px}.slide-canvas{position:relative;overflow:hidden}.slide-title,.slide-body{position:relative;z-index:1}.slide-columns{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:30px;min-height:130px}.slide-columns[hidden]{display:none!important}.slide-columns textarea{min-width:0;min-height:120px;resize:none;border:0;outline:none;background:transparent;color:#626a73;font:inherit;font-size:clamp(14px,1.7vw,19px);line-height:1.5}.slide-canvas[data-layout="title"]{text-align:center}.slide-canvas[data-layout="title"] .slide-title,.slide-canvas[data-layout="title"] .slide-body{text-align:center}.slide-canvas[data-layout="title"] .slide-title{font-size:clamp(32px,5vw,58px)}.slide-shape,.present-shape{position:absolute;z-index:3;touch-action:none}.slide-shape{border:2px solid #7c3aed;background:#7c3aed1f;cursor:move}.shape-move-handle{display:none!important;position:absolute;top:-17px;left:-2px;z-index:4;min-width:26px;height:22px;align-items:center;justify-content:center;padding:0 5px;border:1px solid #fff;border-radius:8px;background:#9b5cff;color:#fff;font-size:12px;line-height:1;cursor:move;touch-action:none}.slide-shape.is-active .shape-move-handle{display:flex!important}.slide-shape.shape-circle{border-radius:50%}.slide-shape.shape-arrow{border:0;background:transparent;color:#7c3aed;font-size:clamp(30px,6vw,64px);line-height:.75;text-align:center}.shape-resize{position:absolute;right:-5px;bottom:-5px;width:11px;height:11px;border:1px solid #fff;border-radius:2px;background:#9b5cff;cursor:nwse-resize;touch-action:none}
@media(max-width:639px){.slide-shape .shape-resize{right:-22px;bottom:-22px;width:44px;height:44px;border:0;background:transparent}.slide-shape .shape-resize::after{content:"";position:absolute;right:16px;bottom:16px;width:12px;height:12px;border:1px solid #fff;border-radius:2px;background:#9b5cff;pointer-events:none}}.present-shapes{position:absolute;inset:0;pointer-events:none;overflow:hidden}.present-shape{border:3px solid #7c3aed;background:#7c3aed1f}.present-shape.shape-circle{border-radius:50%}.present-shape.shape-arrow{border:0;background:transparent;color:#7c3aed;font-size:clamp(45px,8vw,105px);line-height:.65;text-align:center}.present-columns{display:grid;grid-template-columns:1fr 1fr;gap:7%;margin-top:20px}.present-columns[hidden]{display:none}.present-columns p{margin:0}.present-content.transition-fade{animation:show-fade .3s ease both}.present-content.transition-left-next{animation:show-left-next .34s cubic-bezier(.2,.7,.3,1) both}.present-content.transition-left-prev{animation:show-left-prev .34s cubic-bezier(.2,.7,.3,1) both}@keyframes show-fade{from{opacity:.2}to{opacity:1}}@keyframes show-left-next{from{opacity:.35;transform:translateX(48px)}to{opacity:1;transform:translateX(0)}}@keyframes show-left-prev{from{opacity:.35;transform:translateX(-48px)}to{opacity:1;transform:translateX(0)}}@media(max-width:900px){.write-controls .font-family{width:125px}.paragraph-style{width:105px}.line-spacing{width:58px}.write-controls .ribbon-panel{gap:7px}.write-controls .group-caption{padding-left:5px;padding-right:5px}.calc-toolbar{gap:6px;padding:0 8px}.calc-tool{padding:0 7px}.calc-format select{max-width:95px}}@media(max-width:700px){.write-controls .font-row{gap:3px}.write-controls .font-family{width:110px}.paragraph-style{width:95px}.line-spacing{width:53px}.write-controls .compact-group .tool-button{width:48px}.image-tools{max-width:calc(100vw - 18px)}.image-tools span{display:none}.show-toolbar{padding:0 8px;gap:5px}.transition-picker{gap:3px}.transition-picker select{max-width:90px}.slide-columns{gap:12px}}

/* Fluent pastel glass theme */
.app-shell{--active-glass:rgba(224,242,254,.8);--active-indicator:#60a5fa}.app-shell[data-active-app="write"]{--active-glass:rgba(224,242,254,.8);--active-indicator:#60a5fa}.app-shell[data-active-app="calc"]{--active-glass:rgba(220,252,231,.8);--active-indicator:#4ade80}.app-shell[data-active-app="show"]{--active-glass:rgba(255,237,213,.8);--active-indicator:#fb923c}
.suitebar,.write-controls .tabs,.write-controls .ribbon,.calc-toolbar,.show-toolbar{background:var(--active-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.5);box-shadow:inset 0 1px rgba(255,255,255,.46);transition:background-color .4s ease,border-color .25s ease,box-shadow .2s ease}.suitebar{border-top:1px solid rgba(255,255,255,.65);border-left:1px solid rgba(255,255,255,.5);border-right:1px solid rgba(255,255,255,.5);border-bottom-color:rgba(255,255,255,.58)}.write-controls .tabs{border-left:1px solid rgba(255,255,255,.5);border-right:1px solid rgba(255,255,255,.5);border-bottom-color:rgba(255,255,255,.65)}.write-controls .ribbon{border-top:0;border-left:1px solid rgba(255,255,255,.5);border-right:1px solid rgba(255,255,255,.5);border-bottom-color:rgba(255,255,255,.65)}.calc-toolbar,.show-toolbar{border-top:0;border-left:0;border-right:0;border-bottom-color:rgba(255,255,255,.65)}
.suitebar{transition:background-color .4s ease,border-color .25s ease,box-shadow .2s ease}.app-tab,.tab,.write-controls button,.write-controls select,.calc-toolbar button,.calc-toolbar select,.calc-toolbar label,.show-toolbar button,.show-toolbar select{color:#334155}.app-tab .app-icon{color:inherit}.app-tab .write-icon{color:#3478d4}.app-tab .calc-icon{color:#23945e}.app-tab .show-icon{color:#e68a32}.app-tab.is-active{background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.9);box-shadow:0 3px 12px rgba(51,65,85,.12),inset 0 1px rgba(255,255,255,.9)}.app-tab.is-active:after{background:var(--active-indicator)}.tab.is-active{border-radius:7px;background:rgba(255,255,255,.82);box-shadow:0 2px 8px rgba(51,65,85,.1)}.tab.is-active:after{background:var(--active-indicator)}.write-controls .tool-button.is-active,.calc-tool.is-active,.show-tool.is-active{border:1px solid rgba(255,255,255,.95);background:rgba(255,255,255,.92);box-shadow:0 2px 8px rgba(51,65,85,.13),inset 0 1px rgba(255,255,255,.95)}.write-controls .tool-button:hover,.suitebar button:hover,.write-controls button:hover,.write-controls select:hover,.calc-toolbar button:hover,.calc-toolbar select:hover,.show-toolbar button:hover,.show-toolbar select:hover{transform:scale(1.02);transition:transform .2s ease,background-color .2s ease,color .2s ease}.write-controls .tool-button:active,.suitebar button:active,.calc-toolbar button:active,.show-toolbar button:active{transform:scale(.99)}.save-button{background:rgba(255,255,255,.75);border-color:rgba(255,255,255,.75);color:#334155}.present-button{background:rgba(255,255,255,.84);border:1px solid rgba(255,255,255,.9);color:#334155!important;box-shadow:0 2px 7px rgba(51,65,85,.1)}.present-button:hover{background:#fff}.write-controls .ribbon-panel .group-caption{color:#526175}.write-controls .tool-divider{background:rgba(71,85,105,.2)}.calc-toolbar .calc-tool{background:rgba(255,255,255,.72);border-color:rgba(255,255,255,.8)}.calc-toolbar .calc-tool:hover,.show-toolbar .show-tool:hover{background:rgba(255,255,255,.95)}.calc-toolbar .calc-border,.calc-toolbar .calc-format,.show-toolbar .transition-picker{color:#334155}.calc-toolbar-separator{background:rgba(71,85,105,.2)}.write-controls .font-family,.write-controls .font-size,.write-controls .write-select,.write-controls .layout-control select,.calc-toolbar select,.show-toolbar select{background:rgba(255,255,255,.8);border-color:rgba(255,255,255,.82);color:#334155}.color-tool,.calc-color{color:#334155}.ribbon-collapse{color:#334155}.ribbon-collapse svg{stroke:#334155}.app-tab:focus-visible,.tab:focus-visible,.write-controls button:focus-visible,.calc-toolbar button:focus-visible,.show-toolbar button:focus-visible{outline:2px solid rgba(51,65,85,.58);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.suitebar,.write-controls .tabs,.write-controls .ribbon,.calc-toolbar,.show-toolbar,.app-tab,.tool-button{transition:none!important}}
.write-controls .color-tool:hover,.calc-toolbar .calc-color:hover,.write-controls .layout-control:hover{transform:scale(1.02);transition:transform .2s ease,background-color .2s ease}.write-controls .tool-button.is-active:hover{background:rgba(255,255,255,.98)}


/* Compact responsive workspace */
.suitebar .save-state{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app-switcher{height:auto;gap:2px;padding:3px;border:1px solid #e5e5e5;border-radius:10px;background:#f0f2f5}
.app-tab{min-width:88px;height:36px;padding:0 12px;border-radius:7px}
.app-tab.is-active{background:#fff;border:0;box-shadow:0 1px 3px rgba(51,65,85,.14),inset 0 1px rgba(255,255,255,.9)}
.app-tab.is-active:after{display:none}
.write-controls .ribbon{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}
.write-controls .ribbon::-webkit-scrollbar{display:none}
.write-controls .ribbon-panel{width:max-content;min-width:100%}
.write-controls .ribbon-panel>.tool-group{flex-shrink:0}



@media(max-width:430px){.statusbar{gap:6px}.document-stats{gap:5px}.zoom-slider{width:56px}}

/* One-row mobile toolbars and native-feeling option sheets */
.mobile-tool-row{display:none;transition:background-color .4s ease,border-color .25s ease}
.mobile-sheet-overlay[hidden],.mobile-action-menu[hidden]{display:none!important}
.mobile-tool{min-width:0;height:36px;display:grid;place-items:center;border:0;border-radius:8px;background:rgba(255,255,255,.78);color:#334155;font-size:17px;line-height:1;cursor:pointer;touch-action:manipulation}
.mobile-tool svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mobile-tool:active{background:#e9eef4}
.mobile-more{font-size:23px;font-weight:650;letter-spacing:-2px}
.mobile-action-wrap{position:relative;display:flex;flex:1 1 28px;min-width:0}
.mobile-action-wrap>.mobile-tool{width:100%;height:36px}
.mobile-action-menu{position:absolute;z-index:4;left:50%;bottom:calc(100% + 7px);min-width:132px;padding:5px;transform:translateX(-50%);border:1px solid rgba(255,255,255,.78);border-radius:11px;background:rgba(245,248,252,.98);box-shadow:0 8px 24px rgba(51,65,85,.16);backdrop-filter:blur(14px)}
.mobile-action-menu button{width:100%;padding:10px;border:0;border-radius:7px;background:transparent;color:#334155;text-align:left;font-size:13px;white-space:nowrap}
.mobile-action-menu button:active{background:#e9eef4}
.mobile-sheet-overlay{position:fixed;inset:0;z-index:30;display:flex;align-items:flex-end;justify-content:center}
.mobile-sheet-scrim{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(26,37,52,.32);backdrop-filter:blur(2px)}
.mobile-sheet{position:relative;width:min(100%,560px);max-height:84vh;max-height:84dvh;overflow-y:auto;padding:9px 20px calc(20px + env(safe-area-inset-bottom));border:1px solid rgba(255,255,255,.7);border-bottom:0;border-radius:22px 22px 0 0;background:rgba(248,250,253,.98);box-shadow:0 -10px 36px rgba(51,65,85,.18);animation:sheet-up .2s ease-out}
.mobile-sheet-handle{width:34px;height:4px;margin:0 auto 12px;border-radius:4px;background:#c9d1da}
.mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.mobile-sheet-head h2{margin:0;color:#334155;font-size:17px;font-weight:650}
.mobile-sheet-head button{width:32px;height:32px;border:0;border-radius:50%;background:#edf1f6;color:#536172;font-size:22px;line-height:1}
.mobile-sheet-content{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.mobile-field{min-width:0;display:flex;flex-direction:column;gap:6px;color:#526175;font-size:12px;font-weight:550}
.mobile-field select{width:100%;height:42px;padding:0 10px;border:1px solid #dbe1e8;border-radius:9px;background:#fff;color:#334155;font-size:14px}
.mobile-color-field{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;padding:8px 0}
.mobile-color-field input{width:46px;height:34px;padding:2px;border:1px solid #dbe1e8;border-radius:8px;background:#fff}
.mobile-field-actions{display:flex;gap:8px}
.mobile-field-actions button,.mobile-sheet-action{min-height:42px;padding:0 13px;border:1px solid #dbe1e8;border-radius:9px;background:#fff;color:#334155;font-size:14px;font-weight:550}
.mobile-field-actions button{flex:1}
.mobile-sheet-action{grid-column:1/-1;text-align:left}
.mobile-sheet-action:active,.mobile-field-actions button:active{background:#edf1f6}
@keyframes sheet-up{from{transform:translateY(18px);opacity:.7}to{transform:translateY(0);opacity:1}}

@media(prefers-reduced-motion:reduce){.mobile-sheet{animation:none}}



.write-list-wrap{position:relative;min-width:0;overflow:visible}
.write-list-menu{top:calc(100% + 6px);bottom:auto;left:50%;width:168px;min-width:0;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;transform:translateX(-50%);z-index:40}
.write-list-menu button{min-height:42px;padding:8px 10px;font-size:13px;touch-action:manipulation}
.editor .todo-list,.editor .arrow-list{list-style:none;padding-left:0}
.editor .todo-list li{min-height:1.5em}
.editor .todo-list input[type="checkbox"]{width:16px;height:16px;margin:0 7px 0 0;vertical-align:middle;accent-color:#3478d4;cursor:pointer}
.editor .arrow-list li{position:relative;padding-left:1.35em}
.editor .arrow-list li::before{position:absolute;left:0;content:"➔";color:#3478d4}

/* Show mode mobile canvas, carousel, and consolidated toolbar */
.show-mobile-history,.show-more{display:none}




/* Permanent compact touch-first workspace */
body{min-width:0}
.app-shell{min-height:0;padding-top:calc(8px + env(safe-area-inset-top,0px))}
.suitebar{width:100%;min-width:0;height:54px;flex:0 0 54px;flex-wrap:nowrap;gap:clamp(4px,1.5vw,8px);padding-inline:clamp(4px,2.5vw,10px)}
.app-switcher{height:auto;flex:0 1 auto;min-width:0;max-width:100%;flex-wrap:nowrap;gap:3px}
.app-tab{width:auto;flex:1 1 auto;min-width:clamp(0px,14vw,88px);height:38px;padding-inline:clamp(4px,1.8vw,11px);white-space:nowrap}
.app-tab>span{display:inline}
.suitebar-spacer{flex:1 1 0;min-width:0}
.save-button{width:42px;height:42px;justify-content:center;margin-left:auto;padding:0}
.save-button svg{width:18px}
.save-button>span{display:none}
.write-controls .tabs,.write-controls .ribbon,.calc-toolbar{display:none!important}
.mobile-tool-row{width:100%;height:44px;display:flex;align-items:center;gap:2px;padding:4px 5px;background:var(--active-glass);border-bottom:1px solid rgba(255,255,255,.65)}
.write-mobile-toolbar .mobile-tool,.mobile-calc-toolbar>.mobile-tool,.mobile-calc-toolbar .mobile-action-wrap{flex:0 0 34px}
.mobile-calc-toolbar{height:42px;flex:0 0 42px;padding-inline:5px;border-top:0;position:relative;z-index:18;overflow:visible;gap:5px}.mobile-calc-toolbar .cell-name{width:clamp(48px,18vw,64px);flex:0 0 clamp(48px,18vw,64px);height:34px;padding-inline:5px;font-size:12px}.mobile-calc-toolbar>.mobile-tool.calc-fx-button{flex:0 0 34px;font-size:13px;font-weight:700}.mobile-calc-toolbar>.mobile-tool.calc-more-button{flex:0 0 34px;margin-left:auto}.mobile-calc-toolbar .mobile-action-wrap.calc-dropdown-wrap{position:relative;flex:1 1 90px;min-width:0;max-width:160px}.calc-dropdown-toggle{width:100%;height:34px;padding-inline:4px;font-size:12px;white-space:nowrap}.calc-dropdown-menu{top:calc(100% + 6px);bottom:auto;left:50%;width:160px;min-width:0;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;transform:translateX(-50%);z-index:40}.calc-dropdown-menu button{min-height:42px;padding:9px 11px;font-size:13px;touch-action:manipulation}.formula-row .formula-input{flex:1;min-width:0}
.mobile-action-wrap>.mobile-tool{width:100%}
.mobile-more{margin-left:auto}
.formula-row{height:36px;flex-basis:36px;gap:6px;padding:0 7px}
.formula-mark{flex:0 0 23px;font-size:12px;font-weight:650}
.cell-name{width:43px;flex:0 0 43px;height:25px}
.formula-input{height:27px;padding:0 5px;font-size:12px}
.formula-enter{width:28px;flex:0 0 28px}
.workspace{justify-content:stretch;padding:0;background:#fff}
.page{width:100%;min-width:0;min-height:100%;flex:1 1 auto;zoom:1;box-shadow:none;border:0!important;transform:none}
.editor,.page.margins-narrow .editor,.page.margins-wide .editor{width:100%;min-height:100%;padding:24px clamp(16px,3vw,40px)}
.show-view{flex-direction:column;min-width:0}
.show-stage{order:1;flex:1;min-width:0;min-height:0}
.show-toolbar{height:42px;flex:0 0 42px;gap:5px;padding:0 7px}
.show-page-label{flex:0 0 auto;font-size:10px;white-space:nowrap}
.show-toolbar>.status-spacer{flex:1;min-width:0}
.show-mobile-history{display:grid;width:30px;height:32px;flex:0 0 30px;padding:0;place-items:center;border-radius:8px;font-size:17px}
.show-toolbar>.shape-menu-wrap,.show-toolbar>.transition-picker{display:none!important}
.show-toolbar>.present-button{height:32px;flex:0 0 auto;gap:6px;padding:0 9px;font-size:11px;white-space:nowrap}
.show-more{display:grid;width:34px;height:32px;flex:0 0 34px;margin-left:auto;padding:0;place-items:center;border-radius:8px;font-size:22px;font-weight:650;letter-spacing:-2px}
.slide-work-area{flex:1;min-width:0;min-height:0;overflow:hidden;padding:9px}
.slide-canvas{width:100%;max-width:none;min-width:0;gap:8px;padding:6%}
.slide-title{min-height:36px;font-size:clamp(20px,6vw,32px)}
.slide-body{min-height:48px;font-size:clamp(13px,4vw,17px)}
.slide-rail{order:2;width:100%;height:112px;flex:0 0 112px;flex-direction:column;border-right:0;border-top:1px solid rgba(255,255,255,.7)}
.slide-rail-head{height:28px;flex:0 0 28px;gap:6px;overflow:visible;padding:0 10px;font-size:10px;position:relative;z-index:2}.slide-rail-head .slide-rail-play{width:44px;height:44px;flex-basis:44px;margin-block:-8px}
.add-slide{width:23px;height:23px}
.slide-list{min-width:0;display:flex;flex-direction:row;gap:9px;overflow-x:auto;overflow-y:hidden;padding:5px 10px 7px 62px;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.slide-thumb{width:164px;min-width:164px;min-height:68px;flex:0 0 164px;gap:8px;margin-inline:2px;padding:6px;scroll-snap-align:start;touch-action:manipulation}
.thumb-preview{height:58px;min-width:0;gap:4px;padding:5px 7px}
.slide-number{width:20px;font-size:11px}
@media(max-width:639px){.app-tab{width:38px;min-width:38px;padding:0}.app-tab>span{display:none}.app-icon{width:18px;height:18px}.write-mobile-toolbar .mobile-tool{flex:1 1 28px}.mobile-calc-toolbar>.mobile-tool,.mobile-calc-toolbar .mobile-action-wrap{flex:1 1 28px}.mobile-calc-toolbar .mobile-action-wrap.calc-dropdown-wrap{flex:1 1 28px;max-width:none}}
@media(max-height:620px){.slide-canvas{width:auto;height:calc(100dvh - 210px);max-width:100%;aspect-ratio:16/9}.slide-work-area{padding:6px}.slide-rail{height:98px;flex-basis:98px}}
@media(prefers-reduced-motion:reduce){.mobile-tool-row{transition:none}}

/* Curated touch-first color palette */
.mobile-palette-field{grid-column:1/-1;gap:10px}
.color-palette{display:grid;grid-template-columns:repeat(5,42px);gap:10px;justify-content:start;padding:2px 4px 4px}
.color-swatch{position:relative;width:42px;height:42px;min-width:42px;padding:0;border:1px solid rgba(51,65,85,.2);border-radius:50%;background:var(--swatch,#fff);box-shadow:inset 0 1px rgba(255,255,255,.3);touch-action:manipulation}
.color-swatch.is-active{outline:2px solid #334155;outline-offset:2px;box-shadow:0 0 0 4px #fff,inset 0 1px rgba(255,255,255,.3)}
.color-swatch.is-active:after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:17px;font-weight:700;text-shadow:0 1px 3px #17202b}
.color-swatch[style*="#FEF08A"].is-active:after,.color-swatch[style*="#BBF7D0"].is-active:after,.color-swatch[style*="#BFDBFE"].is-active:after{color:#334155;text-shadow:none}
.color-swatch.color-none{background:linear-gradient(135deg,#fff 47%,#dc2626 49%,#dc2626 52%,#fff 54%);color:#334155;font-size:23px}
.color-swatch.color-none:after{content:none}
.custom-color-link{width:max-content;display:inline-flex;align-items:center;gap:8px;padding:2px 0;border:0;background:transparent;color:#667487;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.custom-color-preview{width:13px;height:13px;border:1px solid rgba(51,65,85,.22);border-radius:50%;background:#242424}.custom-color-link.is-active .custom-color-preview{outline:2px solid #334155;outline-offset:2px}.custom-color-link.is-active{color:#334155;font-weight:650}
.native-color-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;opacity:0}

/* Show three-tier touch controls */
.show-stage{position:relative}
.show-toolbar{height:46px;flex-basis:46px;gap:4px;padding:0 6px}
.show-toolbar .show-tool{width:40px;height:40px;flex:0 0 40px;padding:0;display:grid;place-items:center;border:0;border-radius:9px;background:rgba(255,255,255,.76);color:#334155;font-size:19px;touch-action:manipulation}
.show-toolbar .show-tool:active{background:#e8edf3}
.show-toolbar .show-mobile-history{display:grid}
.show-toolbar .show-primary-action{font-size:23px;font-weight:600}
.show-toolbar .present-button{width:42px;height:40px;flex:0 0 42px;justify-content:center;padding:0;font-size:17px}
.show-toolbar .show-more{width:40px;height:40px;flex-basis:40px;margin-left:auto;font-size:23px}
.slide-context-toolbar{position:absolute;z-index:14;display:flex;max-width:calc(100% - 12px);padding:4px;gap:4px;border:1px solid rgba(255,255,255,.75);border-radius:12px;background:var(--active-glass);box-shadow:0 5px 18px rgba(51,65,85,.18);backdrop-filter:blur(14px);touch-action:manipulation}
.slide-context-toolbar[hidden],.context-text-tools[hidden],.context-media-tools[hidden],.context-color-grid[hidden],.context-media-menu[hidden]{display:none!important}
.context-text-tools,.context-media-tools{position:relative;display:flex;align-items:center;gap:4px}
.context-text-tools>button,.context-media-tools>button,.context-media-wrap>button{min-width:42px;height:42px;padding:0 10px;border:0;border-radius:8px;background:rgba(255,255,255,.82);color:#334155;font-size:14px;font-weight:600;white-space:nowrap}
.context-color-grid{position:absolute;z-index:2;left:0;top:calc(100% + 7px);display:grid;grid-template-columns:repeat(5,42px);gap:5px;padding:9px;border:1px solid rgba(255,255,255,.8);border-radius:12px;background:rgba(248,250,253,.98);box-shadow:0 8px 24px rgba(51,65,85,.18)}
.context-color-grid .color-swatch{width:42px;height:42px;min-width:42px}
.context-media-wrap{position:relative}
.context-media-menu{position:absolute;z-index:3;left:0;top:calc(100% + 7px);min-width:150px;padding:5px;border:1px solid rgba(255,255,255,.8);border-radius:11px;background:rgba(248,250,253,.98);box-shadow:0 8px 24px rgba(51,65,85,.18)}
.context-media-menu button{width:100%;min-height:42px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:#334155;text-align:left;font-size:14px}
.context-media-menu button:active{background:#edf1f6}
.slide-shape{touch-action:none;user-select:none;-webkit-user-select:none}
.slide-shape.shape-image img,.present-shape.shape-image img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.slide-title,.slide-body,.slide-column-editor{display:block;resize:none;overflow:auto;max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;touch-action:pan-y}.slide-column-editor{min-width:0;min-height:95px;outline:none;background:transparent;color:#626a73;font-family:inherit;font-size:clamp(13px,4vw,17px);line-height:1.55}.slide-columns{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:20px}.slide-title:empty:before,.slide-body:empty:before,.slide-column-editor:empty:before,.slide-title:has(>br:only-child):before,.slide-body:has(>br:only-child):before,.slide-column-editor:has(>br:only-child):before{content:attr(data-placeholder);color:#c5c9ce;pointer-events:none}
.present-title,.present-body{overflow-wrap:anywhere}
.mobile-sheet-content{align-items:start}
.mobile-sheet-section{grid-column:1/-1;display:grid;gap:8px}
.mobile-sheet-section h3{margin:2px 0;color:#526175;font-size:12px;font-weight:650}
.mobile-sheet-section .mobile-sheet-action{width:100%}
.show-sheet-layouts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.show-sheet-layouts button{min-width:0;min-height:46px;padding:6px 4px;border:1px solid #dbe1e8;border-radius:9px;background:#fff;color:#334155;font-size:12px;line-height:1.15;touch-action:manipulation}
.show-sheet-layouts button.is-active{border-color:#77a7d9;background:#eaf1fa;color:#23466d;font-weight:650}
.show-sheet-shapes{display:flex;gap:10px}
.show-sheet-shapes button{width:52px;height:48px;display:grid;place-items:center;border:1px solid #dbe1e8;border-radius:10px;background:#fff;color:#42536a;touch-action:manipulation}
.show-sheet-shapes button:active{background:#edf3fa}
.show-sheet-shapes svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.slide-background-palette .color-swatch.is-active{outline:2px solid #334155;outline-offset:2px;box-shadow:0 0 0 4px #fff}
@media(max-width:639px){.show-toolbar{height:44px;flex-basis:44px;gap:2px;padding:0 4px}.show-toolbar .show-tool{width:36px;height:38px;flex-basis:36px}.show-toolbar .present-button{width:38px;height:38px;flex-basis:38px}.show-toolbar .show-more{width:36px;height:38px;flex-basis:36px}.slide-context-toolbar{gap:2px;padding:3px}.context-text-tools>button,.context-media-tools>button,.context-media-wrap>button{min-width:40px;height:42px;padding:0 8px}.context-media-tools{flex-wrap:wrap}}

.context-text-tools #context-text-drag{touch-action:none;cursor:grab;font-size:18px}
.context-text-tools #context-text-drag:active{cursor:grabbing;background:#e6ebf1}
.slide-canvas textarea{resize:both;overflow:auto;max-width:100%}
.present-content{position:relative}
.present-shapes .shape-image{overflow:hidden}
.context-media-tools button:disabled{opacity:.45;cursor:default}
.slide-background-palette{margin:0}
.mobile-sheet-section .color-palette{padding:2px 4px 4px}

.write-css-isolation{isolation:isolate}
/* Mobile CALC workspace */
.calc-view{position:relative;min-width:0}
.calc-range-handle{position:fixed;z-index:18;width:44px;height:44px;display:grid;place-items:center;transform:translate(-50%,-50%);touch-action:none;user-select:none;-webkit-user-select:none}
.calc-range-handle[hidden],.calc-context-menu[hidden]{display:none!important}
.calc-range-handle span{width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:#00E5FF;box-shadow:0 1px 5px #123b6b70}
.sheet-cell.is-in-range{background:#dbeafe!important}
.formula-shortcuts{height:36px;flex:0 0 36px;display:flex;align-items:center;justify-content:space-around;gap:3px;padding:3px 7px;background:#f8fafc;border-bottom:1px solid #e4e6e9}
.formula-shortcuts[hidden]{display:none!important}
.formula-shortcuts button{min-width:38px;height:30px;padding:0 5px;border:1px solid #d8e0e9;border-radius:7px;background:#fff;color:#3d4c5a;font-size:11px;font-weight:650;touch-action:manipulation}
@media(min-width:640px){.formula-shortcuts{display:none!important}}
#sheet-grid .sheet-cell.is-numeric{text-align:right!important}
.sheet-row-head.is-selected,.sheet-col-head.is-selected{background:#dceaff;color:#185ca8;box-shadow:inset 0 0 0 1px #8db9ee}
.calc-context-menu{position:fixed;z-index:19;display:flex;align-items:center;gap:3px;max-width:calc(100vw - 16px);overflow-x:auto;padding:5px;border:1px solid rgba(255,255,255,.82);border-radius:15px;background:rgba(250,252,255,.96);box-shadow:0 10px 30px rgba(32,54,83,.22);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);scrollbar-width:none}
.calc-context-menu::-webkit-scrollbar{display:none}
.calc-context-menu button{min-width:58px;height:48px;flex:0 0 auto;padding:0 9px;border:0;border-radius:10px;background:transparent;color:#27384b;font-size:12px;font-weight:600;white-space:nowrap;touch-action:manipulation}
.calc-context-menu button:active{background:#e5edf8}
@media(max-width:639px){
 body{min-width:0;min-height:100dvh}
 .app-shell{height:100dvh;min-height:0;padding-bottom:env(safe-area-inset-bottom)}
 .suitebar{height:48px;min-height:48px;flex:0 0 48px;padding-inline:10px}
 .app-switcher{position:fixed;z-index:30;left:0;right:0;bottom:0;height:calc(66px + env(safe-area-inset-bottom));display:flex;align-items:flex-start;justify-content:space-around;gap:0;padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-top:1px solid #dce4ee;background:rgba(249,251,254,.96);box-shadow:0 -5px 20px #263b5310;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
 .app-tab,.app-tab:hover{width:33.333%;min-width:0;height:56px;flex-direction:column;justify-content:center;gap:3px;padding:3px;border:0;border-radius:12px;background:transparent;font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;touch-action:manipulation}
 .app-tab>span{display:block}
 .app-tab .app-icon{width:20px;height:20px}
 .app-tab.is-active{background:#e9f1fc;color:#175ca9;box-shadow:none}
 .app-tab.is-active:after{left:calc(50% - 14px);right:calc(50% - 14px);bottom:2px;height:3px}
 .suite-workspace{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
 .write-view .workspace{cursor:text;min-height:80vh}
 .mobile-calc-toolbar{display:flex!important}
 .formula-row{height:54px;flex-basis:54px;gap:9px;padding:0 10px;background:#f8fafc}
 .cell-name{width:52px;flex-basis:52px;height:42px;border-radius:9px;font-size:14px}
 .formula-mark{flex-basis:27px;font-size:15px}
 .formula-input{height:44px;padding:0 10px;border:1px solid #dce3eb;border-radius:9px;background:#fff;font-size:15px}
 .formula-enter{width:44px;height:44px;flex-basis:44px;border-radius:9px;font-size:19px}
 .sheet-grid{grid-template-columns:42px repeat(var(--sheet-column-count,26),minmax(65px,65px));grid-auto-rows:30px;min-width:0;width:max-content}
 .sheet-corner,.sheet-col-head,.sheet-row-head{min-height:30px;padding:4px 8px!important;font-size:13px!important;font-weight:650}
 .sheet-cell{padding:4px 8px!important;min-width:0;min-height:30px;font-size:13px!important;line-height:1.15;touch-action:manipulation}
 .sheet-cell:focus,.sheet-cell.is-selected{outline-width:3px}
 .calc-status{display:none}
}
@media(max-width:599px){.calc-context-menu[data-mode="header"]{left:50%!important;top:auto!important;bottom:calc(74px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 16px);justify-content:space-around;transform:translateX(-50%);padding:7px;border-radius:17px}.calc-context-menu[data-mode="header"] button{min-width:52px;height:52px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.calc-context-menu{scroll-behavior:auto}}

.slide-title,.slide-body,.slide-column-editor{display:block;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text}
.slide-title:empty:before,.slide-body:empty:before,.slide-column-editor:empty:before,.slide-title:has(>br:only-child):before,.slide-body:has(>br:only-child):before,.slide-column-editor:has(>br:only-child):before{content:attr(data-placeholder);color:#c5c9ce;pointer-events:none}
.slide-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;width:100%}
.slide-columns[hidden]{display:none!important}
.slide-column-editor{min-width:0;min-height:80px;color:#626a73;font-family:inherit;font-size:clamp(13px,1.7vw,20px);line-height:1.55}

.show-toolbar .show-tool{width:42px;height:42px;flex-basis:42px}
.show-toolbar .present-button{width:42px;height:42px;flex-basis:42px}
.slide-title,.slide-body,.slide-column-editor{resize:both;overflow:auto;max-width:100%;touch-action:pan-y}
@media(max-width:639px){.show-toolbar{height:46px;flex-basis:46px;padding-inline:3px;gap:1px}.show-toolbar .show-tool,.show-toolbar .present-button{width:42px;height:42px;flex-basis:42px}}

.open-file-button{height:42px;min-width:42px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 9px;border:1px solid rgba(255,255,255,.78);border-radius:8px;background:rgba(255,255,255,.72);color:#334155;font-size:12px;cursor:pointer;touch-action:manipulation}
.open-file-button:active{background:#e8edf3}
.folder-icon{font-size:18px;line-height:1}
.import-toast{position:fixed;z-index:50;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));max-width:calc(100vw - 32px);padding:11px 17px;transform:translate(-50%,12px);border:1px solid rgba(255,255,255,.16);border-radius:22px;background:#334155;color:#fff;font-size:13px;font-weight:550;box-shadow:0 6px 22px rgba(15,23,42,.24);opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease;white-space:nowrap}
.import-toast.is-visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:639px){.open-file-button{width:42px;padding:0}.open-file-label{display:none}}
@media(prefers-reduced-motion:reduce){.import-toast{transition:none}}
.app-sticky-top{position:sticky;top:0;z-index:99999!important;width:100%;flex:0 0 auto;background-color:#fff;isolation:isolate}
.app-shell:not([data-active-app="calc"]) .mobile-calc-toolbar{display:none!important}
.sheet-scroll{position:relative;z-index:10!important;overflow:auto!important}
#sheet-grid{position:relative;z-index:10!important}
.calc-range-handle,.calc-context-menu,.grid-resize-handle{z-index:10!important}
.mobile-sheet-overlay,.present-overlay{z-index:100000!important}
.show-format-wrap{position:relative;flex:0 0 42px}
.show-format-toggle{display:grid;place-items:center}
.show-format-menu{position:absolute;z-index:24;top:calc(100% + 6px);left:50%;width:180px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;padding:5px;transform:translateX(-50%);border:1px solid rgba(255,255,255,.82);border-radius:12px;background:rgba(248,250,253,.98);box-shadow:0 8px 24px rgba(51,65,85,.18);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.show-format-menu[hidden]{display:none!important}
.show-format-menu button{width:100%;min-height:42px;display:flex;align-items:center;gap:12px;padding:8px 11px;border:0;border-radius:8px;background:transparent;color:#334155;text-align:left;font-size:13px;touch-action:manipulation}
.show-format-menu button>strong{width:24px;flex:0 0 24px;text-align:center;font-size:14px}
.show-format-menu button:active{background:#e9eef4}
.slide-work-area{touch-action:pan-y}
@media(max-width:639px){.show-format-wrap{flex-basis:42px}}
.sheet-col-head,.sheet-row-head{overflow:visible}
.grid-resize-handle{position:absolute;display:block;z-index:8;touch-action:none;user-select:none;-webkit-user-select:none}
.col-resize-handle{top:0;right:-5px;width:10px;height:100%;cursor:col-resize}
.row-resize-handle{left:0;bottom:-5px;width:100%;height:10px;cursor:row-resize}
.grid-resize-handle::after{position:absolute;content:"";background:#94a3b8;opacity:.65;pointer-events:none}
.col-resize-handle::after{top:0;bottom:0;left:50%;width:1px}
.row-resize-handle::after{right:0;bottom:50%;left:0;height:1px}
.grid-resize-handle:hover::after{background:#3478d4;opacity:1}
body.is-grid-column-resizing,body.is-grid-column-resizing *{cursor:col-resize!important;user-select:none!important}
body.is-grid-row-resizing,body.is-grid-row-resizing *{cursor:row-resize!important;user-select:none!important}
.more-file-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.more-file-actions button{min-width:0;min-height:48px;display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid #dbe1e8;border-radius:9px;background:#fff;color:#334155;font-size:14px;font-weight:550;white-space:nowrap;touch-action:manipulation}
.more-file-actions button:active{background:#edf1f6}
.file-actions-content{grid-template-columns:1fr}.export-options{display:grid;gap:8px}.export-options[hidden]{display:none!important}.export-options h3{margin:5px 0 0;color:#526175;font-size:12px;font-weight:650}
.splash-screen{position:fixed;inset:0;z-index:999999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;background:#0b2230;opacity:1;transition:opacity .5s ease}
.splash-screen.is-fading{opacity:0;pointer-events:none}
.splash-gnome{display:block;width:min(120px,32vw);height:auto;overflow:visible}
.splash-wordmark{color:#fff;font-family:inherit;font-size:clamp(26px,8vw,32px);font-weight:700;letter-spacing:.01em;text-shadow:0 0 10px rgba(255,255,255,.38)}
.sheet-scroll{position:relative;z-index:10!important;overflow:auto!important}
#sheet-grid{position:relative;z-index:auto!important}
.app-shell[hidden]{display:none!important}
.splash-screen{background:#0d1b2a}
.language-screen{position:fixed;inset:0;z-index:999998;display:grid;place-items:center;padding:24px;background:#0d1b2a;color:#fff;font-family:Roboto,system-ui,sans-serif;animation:language-in .35s ease both}
.language-screen[hidden]{display:none!important}
.language-card{width:min(100%,390px);display:flex;flex-direction:column;align-items:center}
.language-mark{height:88px;margin:0 0 14px}.language-mark .splash-gnome{width:58px;height:88px}
.language-card h1{margin:0 0 26px;text-align:center;font-size:clamp(19px,5vw,23px);font-weight:650;letter-spacing:-.025em}
.language-options{width:100%;display:grid;gap:10px}
.language-option{min-height:56px;display:flex;align-items:center;gap:12px;padding:0 16px;border:1px solid #294252;border-radius:12px;background:#14283a;color:#fff;text-align:left;font-size:15px;font-weight:600;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.language-option:hover,.language-option:focus-visible{border-color:#00f2fe;background:#173348;outline:none;box-shadow:0 0 18px #00f2fe22}.language-option:active{transform:scale(.985)}
.language-flag{font-size:23px;line-height:1}.language-option small{margin-left:auto;color:#9fb4c2;font-size:12px;font-weight:450}
@keyframes language-in{from{opacity:0}to{opacity:1}}
.app-sticky-top .suitebar{background:#0d1b2a;border-bottom:1px solid #203646}
.brand-anchor svg{filter:drop-shadow(0 0 4px #00f2fe88)}
.brand-menu-button{background:#172a3a;color:#eafcff;border:1px solid #294252}
.brand-menu-button:hover{background:#20394d}
.app-sticky-top .app-switcher{border-color:#294252;background:#122335;box-shadow:none}
.app-sticky-top .app-tab{color:#a9bdca}
.app-sticky-top .app-tab:hover{background:#1a3043;color:#fff}
.app-sticky-top .app-tab.is-active{position:relative;border:1px solid #00f2fe;background:#132a3c;color:#fff;box-shadow:0 0 13px #00f2fe22}
.app-sticky-top .app-tab.is-active:after{left:20%;right:20%;bottom:-4px;background:#00f2fe;box-shadow:0 0 8px #00f2fe}
.suitebar .save-state{color:#c3d5de}
.mobile-calc-toolbar{display:flex!important;background:#0d1b2a;border-bottom:1px solid #203646}
.mobile-calc-toolbar .mobile-tool,.mobile-calc-toolbar .cell-name{border:1px solid #dce5e9;border-radius:8px;background:#fff;color:#27343b}
.mobile-calc-toolbar .mobile-tool{height:34px}
.sheet-grid{min-width:0!important}
.file-actions-content .change-language-action{order:-1;border:1px solid #00b8c7;background:#e9fcfd;color:#063b45;font-weight:700}
.file-actions-content .change-language-action:active{background:#d4f7f9}
@media(max-width:639px){.language-card{max-width:370px}.app-sticky-top .app-switcher{width:calc(100% - 116px)}.app-sticky-top .app-tab{font-size:9px}}
@media(prefers-reduced-motion:reduce){.language-screen{animation:none}.language-option{transition:none}}
.sheet-col-head,.sheet-row-head{z-index:100!important}
.sheet-corner{z-index:110!important}
.sheet-cell.is-selected,.sheet-cell.is-in-range{position:relative;z-index:10!important}
.calc-range-handle{position:absolute;z-index:10!important}
.calc-context-menu{z-index:20!important}
.grid-resize-handle{z-index:10!important}
.app-sticky-top .suitebar{position:relative;top:auto;left:auto;right:auto;width:100%;min-width:0;height:64px;min-height:64px;flex:0 0 64px;display:flex;align-items:center;justify-content:space-between;gap:0;padding:8px 16px;overflow:visible}
.brand-anchor{width:auto;height:40px;flex:0 0 auto;display:flex;align-items:center;gap:4px;z-index:2}.brand-menu-button{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;padding:0;border:0;border-radius:9px;background:transparent;color:#37474F;font-size:20px;line-height:1;cursor:pointer;touch-action:manipulation}.brand-menu-button:hover{background:#eef1f3}.brand-menu-button:active{background:#e4e9ec}
.brand-anchor svg{display:block;width:24px;height:24px;stroke:#0B2230;filter:none;animation:none}
.app-sticky-top .app-switcher{position:absolute!important;top:50%;left:50%;right:auto;bottom:auto;width:min(600px,calc(100% - 140px));max-width:600px;height:auto;min-width:0;display:flex;flex:0 1 auto;align-items:center;justify-content:stretch;gap:2px;margin:0;padding:3px;border:1px solid #e5e5e5;border-radius:11px;background:#f0f2f5;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;transform:translate(-50%,-50%);z-index:1}
.app-sticky-top .app-tab{width:auto;min-width:0;height:44px;flex:1 1 0;flex-direction:row;justify-content:center;gap:4px;padding:0 6px;font-size:11px;font-weight:650;letter-spacing:.04em;white-space:nowrap;touch-action:manipulation}
.app-sticky-top .app-tab>span{display:block}
.app-sticky-top .app-tab .app-icon{width:16px;height:16px;flex:0 0 16px}
.app-sticky-top .suitebar .save-state{position:absolute}
@media(max-width:639px){.app-sticky-top .suitebar{height:64px;min-height:64px;flex-basis:64px;padding:8px 16px}.app-sticky-top .app-switcher{width:min(600px,calc(100% - 140px));gap:1px;padding:2px}.app-sticky-top .app-tab{height:44px;padding-inline:4px;font-size:9px;letter-spacing:0}.app-sticky-top .app-tab .app-icon{width:14px;height:14px;flex-basis:14px}.suite-workspace{padding-bottom:0!important}}
@media(max-width:300px){.app-sticky-top .app-switcher{width:min(600px,calc(100% - 140px))}.app-sticky-top .app-tab{gap:0;padding-inline:2px;font-size:8px}.app-sticky-top .app-tab .app-icon{display:none}}
.brand-premium-button{width:32px;height:40px;flex:0 0 32px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent;cursor:pointer;touch-action:manipulation}
.brand-premium-button svg{transition:filter .18s ease,transform .18s ease}
.brand-premium-button:hover svg{filter:drop-shadow(0 0 4px rgba(255,215,0,.6));transform:scale(1.04)}
.brand-premium-button:active svg{transform:scale(.94)}
.brand-premium-mark{position:relative;display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center}
.premium-notification-dot{position:absolute;top:-1px;right:-2px;width:6px;height:6px;border-radius:50%;background:#FFB300;box-shadow:0 0 4px rgba(255,179,0,.35);animation:premium-dot-pulse 3.5s ease-in-out infinite}
@keyframes premium-dot-pulse{0%,100%{transform:scale(1);opacity:.8}50%{transform:scale(1.25);opacity:1}}
@media(prefers-reduced-motion:reduce){.premium-notification-dot{animation:none}}
.premium-overlay{position:fixed;inset:0;z-index:100001;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(3,14,22,.76);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.premium-overlay[hidden]{display:none!important}
.premium-scrim{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent}
.premium-sheet{position:relative;width:min(100%,480px);max-height:calc(100dvh - 32px);overflow-y:auto;padding:26px;border:1px solid rgba(114,230,224,.2);border-radius:22px;background:linear-gradient(155deg,#102e3d,#0b2230 72%);color:#edf7f7;box-shadow:0 24px 80px rgba(0,0,0,.45)}
.premium-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}
.premium-head h2{margin:0;font-size:clamp(22px,6vw,28px);font-weight:750;letter-spacing:-.035em}
.premium-head h2 span{background:linear-gradient(95deg,#00e5ff,#00e676);background-clip:text;-webkit-background-clip:text;color:transparent}
.premium-close{width:36px;height:36px;flex:0 0 36px;border:1px solid rgba(255,255,255,.12);border-radius:50%;background:rgba(255,255,255,.06);color:#d6e6e8;font-size:22px;line-height:1;cursor:pointer}
.premium-message{margin:0;color:#b8c9cd;font-size:14px;line-height:1.5}
.premium-actions{margin-top:22px}
.premium-actions{display:grid;gap:10px;margin-top:18px}
.premium-unlock{width:100%;min-height:52px;display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 14px;border:0;border-radius:12px;background:linear-gradient(95deg,#00d9f2,#00d878);color:#fff;font-size:14px;line-height:1.35;font-weight:750;cursor:pointer;box-shadow:0 5px 22px rgba(0,230,118,.15);touch-action:manipulation}
.premium-basic{width:100%;min-height:48px;padding:10px 14px;border:1px solid rgba(205,226,231,.42);border-radius:12px;background:transparent;color:#f3f8f9;font-size:14px;line-height:1.35;font-weight:600;cursor:pointer;touch-action:manipulation}
.premium-unlock:active,.premium-basic:active{transform:scale(.99)}
@media(max-width:639px){.premium-overlay{align-items:flex-end;padding:0}.premium-sheet{width:100%;max-height:86dvh;padding:22px 18px calc(20px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0}}
@media(max-width:639px){.slide-work-area{padding:18px 12px 24px}.slide-canvas{width:100%;height:auto;min-height:0;max-height:100%;flex:0 1 auto;aspect-ratio:16/9;padding:8%}}
@media(min-width:640px){.slide-work-area{padding:24px;background:#171b22}.slide-canvas{width:min(100%,860px);height:auto;max-width:100%;max-height:100%;flex:0 1 auto;aspect-ratio:16/9}}
#editor{-webkit-user-select:text!important;user-select:text!important}
.file-actions-overlay{align-items:flex-start;justify-content:flex-end;pointer-events:none}
.file-actions-overlay .mobile-sheet-scrim{position:fixed;inset:0;z-index:0;background:transparent;backdrop-filter:none;pointer-events:auto}
.file-actions-overlay .mobile-sheet{position:absolute;z-index:1;width:min(340px,calc(100vw - 16px));max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);padding:10px;overflow-y:auto;border-bottom:1px solid rgba(255,255,255,.7);border-radius:14px;background:rgba(248,250,253,.98);box-shadow:0 10px 30px rgba(51,65,85,.2);animation:file-menu-in .14s ease-out;pointer-events:auto}
.file-actions-overlay .mobile-sheet-handle{display:none}
.file-actions-overlay .mobile-sheet-head{margin-bottom:10px}
.file-actions-overlay .file-actions-content{gap:8px}
@keyframes file-menu-in{from{transform:translateY(-4px);opacity:.65}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.file-actions-overlay .mobile-sheet{animation:none}}
.save-as-options{display:grid;gap:7px;padding:8px 0 0 10px;margin-left:8px;border-left:1px solid rgba(71,85,105,.2)}
.save-as-options[hidden]{display:none!important}
.save-as-options .export-options{display:grid;gap:7px}
.save-as-options .mobile-sheet-action{min-height:42px}.tinker-arm{transform-box:view-box;transform-origin:20px 21px;animation:tinker .8s ease-in-out infinite}@keyframes tinker{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(15deg)}}
.show-view .show-toolbar{order:0}
.show-view .slide-context-toolbar{position:relative;left:auto!important;top:auto!important;z-index:14;order:1;align-self:center;width:max-content;max-width:calc(100% - 12px);margin:6px auto 0;flex:0 0 auto}
.show-view .slide-work-area{order:2}
@media print{
 @page{margin:.4in}
 html,body{width:100%!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important}
 body.print-active .app-shell{display:block!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important}
 body.print-active .app-sticky-top,body.print-active .write-controls,body.print-active .mobile-calc-toolbar,body.print-active .suitebar,body.print-active .slide-rail,body.print-active .show-toolbar,body.print-active .slide-context-toolbar,body.print-active .write-status,body.print-active .calc-status,body.print-active .formula-row,body.print-active .calc-toolbar,body.print-active .image-tools,body.print-active .mobile-sheet-overlay,body.print-active .info-modal-overlay,body.print-active .premium-overlay,body.print-active .present-overlay,body.print-active .mobile-action-menu,body.print-active .show-format-menu,body.print-active .context-color-grid,body.print-active .context-media-menu,body.print-active .calc-range-handle,body.print-active .calc-context-menu,body.print-active .import-toast{display:none!important}
 body.print-active .suite-workspace{display:block!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important;margin:0!important;padding:0!important;background:#fff!important}
 body.print-active .app-view[hidden]{display:none!important}
 body.print-active .app-view:not([hidden]){display:block!important;width:100%!important;height:auto!important;min-width:0!important;min-height:0!important;overflow:visible!important;margin:0!important;padding:0!important;background:#fff!important;box-shadow:none!important}
 body.print-active .write-view .workspace{display:block!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important;margin:0!important;padding:0!important;background:#fff!important}
 body.print-active .write-view .page{width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;transform:none!important;zoom:1!important;box-shadow:none!important;background:#fff!important}
 body.print-active .write-view .editor{width:100%!important;height:auto!important;min-height:100vh!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;outline:0!important;box-shadow:none!important;background:#fff!important;color:#111!important}
 body.print-active .calc-view{display:flex!important;flex-direction:column!important;width:100%!important;height:auto!important;min-height:100vh!important;overflow:visible!important;background:#fff!important}
 body.print-active .calc-view .sheet-scroll{flex:none!important;width:100%!important;height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important;background:#fff!important}
 body.print-active #sheet-grid{width:100%!important;min-width:0!important;grid-template-columns:42px repeat(var(--sheet-column-count,26),minmax(0,1fr))!important;grid-template-rows:auto!important;grid-auto-rows:auto!important;overflow:visible!important}
 body.print-active .sheet-cell{min-width:0!important;width:100%!important;height:auto!important;min-height:24px!important;padding:3px!important;border:1px solid #bbb!important;border-radius:0!important;color:#111!important;font-size:9px!important;box-shadow:none!important}
 body.print-active .sheet-row-head,body.print-active .sheet-col-head,body.print-active .sheet-corner{print-color-adjust:exact;-webkit-print-color-adjust:exact}
 body.print-active .grid-resize-handle{display:none!important}
 body.print-active .show-view{display:block!important;width:100%!important;height:auto!important;min-height:0!important;background:#fff!important}
 body.print-active .show-stage{display:block!important;width:100%!important;height:auto!important;min-width:0!important;min-height:0!important;overflow:visible!important;background:#fff!important}
 body.print-active .slide-work-area{display:block!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important;margin:0!important;padding:0!important;background:#fff!important}
 body.print-active .slide-canvas{display:flex!important;width:100%!important;height:auto!important;min-height:100vh!important;max-width:none!important;max-height:none!important;aspect-ratio:16/9;overflow:visible!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;break-after:page;page-break-after:always;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 body.print-active .slide-title,body.print-active .slide-body,body.print-active .slide-column-editor{overflow:visible!important;color:#111!important}
 body.print-active .slide-shape{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}
.app-sticky-top .suitebar{border-bottom:1px solid rgba(11,34,48,.2)!important}
.app-sticky-top .app-tab.is-active{border:0!important;box-shadow:none!important}
.app-sticky-top .app-tab.is-active:after{display:block!important;left:50%!important;right:auto!important;bottom:1px!important;width:30px;height:2px!important;transform:translateX(-50%);border-radius:2px;background:linear-gradient(90deg,#00e5ff,#00e676)!important;box-shadow:0 0 7px rgba(0,229,255,.32)}
#global-more{color:#0b2230!important;transition:color .18s ease,text-shadow .18s ease,background-color .18s ease}
#global-more:active,#global-more[aria-expanded="true"]{color:#00e5ff!important;text-shadow:0 0 5px rgba(0,229,255,.8),0 0 11px rgba(0,230,118,.45)}
.app-sticky-top .suitebar{background:#0b2230!important;border:0!important;border-bottom:1px solid rgba(0,229,255,.16)!important;box-shadow:0 3px 14px rgba(11,34,48,.2)!important}
.app-sticky-top .app-switcher{top:0!important;bottom:0!important;left:50%!important;width:min(600px,calc(100% - 140px))!important;height:100%!important;gap:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:translateX(-50%)!important}
.app-sticky-top .app-tab,.app-sticky-top .app-tab:hover{height:100%!important;min-width:0!important;flex:1 1 0!important;padding:0 6px!important;border:0!important;border-radius:0!important;background:transparent!important;color:rgba(235,244,248,.78)!important;box-shadow:none!important}
.app-sticky-top .app-tab .app-icon{color:inherit!important}
.app-sticky-top .app-tab:hover{color:#fff!important}
.app-sticky-top .app-tab.is-active{background:transparent!important;color:#00e5ff!important;text-shadow:0 0 8px rgba(0,229,255,.24);box-shadow:none!important}
.app-sticky-top .app-tab.is-active .app-icon{color:#00e5ff!important}
.app-sticky-top .app-tab.is-active:after{display:block!important;left:0!important;right:0!important;bottom:0!important;width:auto!important;height:2px!important;transform:none!important;border-radius:0!important;background:linear-gradient(90deg,#00e5ff,#00e676)!important;box-shadow:0 0 8px rgba(0,229,255,.42)}
.brand-anchor svg{stroke:#00e5ff!important}
.brand-premium-mark{border-radius:50%;box-shadow:0 0 9px rgba(0,229,255,.24)}
.brand-premium-mark svg{filter:drop-shadow(0 0 2px rgba(0,229,255,.38))}
#global-more{color:#00e5ff!important;box-shadow:0 0 8px rgba(0,229,255,.22)}
#global-more{background:transparent!important}
#global-more:hover{background:rgba(255,255,255,.08)!important}
#global-more:active,#global-more[aria-expanded="true"]{background:rgba(0,229,255,.08)!important;box-shadow:0 0 12px rgba(0,229,255,.42),0 0 18px rgba(0,230,118,.2)}
.app-sticky-top .brand-premium-button:hover,.app-sticky-top .brand-premium-button:active{background:rgba(255,255,255,.08)}
.app-sticky-top .save-state{color:rgba(235,244,248,.72)}
#formula-row[hidden]{display:none!important}
.info-modal-overlay{position:fixed;inset:0;z-index:100002;display:grid;place-items:center;padding:20px;background:rgba(11,34,48,.42);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.info-modal-overlay[hidden]{display:none!important}
.info-modal-scrim{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent}
.info-modal{position:relative;z-index:1;width:min(520px,calc(100vw - 32px));max-height:82vh;max-height:82dvh;overflow:auto;padding:22px;border:1px solid #dce4eb;border-radius:16px;background:#f9fbfd;color:#334155;box-shadow:0 16px 48px rgba(11,34,48,.24)}
.info-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid rgba(11,34,48,.12)}
.info-modal-head h2{margin:0;color:#0b2230;font-size:20px;font-weight:700;line-height:1.25}
.info-modal-close{flex:0 0 auto;min-height:36px;padding:0 14px;border:1px solid #b8c7d2;border-radius:8px;background:#fff;color:#0b2230;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.info-modal-close:active{background:#e9f3f6}
.info-modal-content{color:#465766;font-size:14px;line-height:1.6}
.info-modal-content p{margin:0 0 12px}
.info-modal-content p:last-child{margin-bottom:0}
.info-modal-content a{color:#0b5f77;font-weight:600;overflow-wrap:anywhere}
@media(max-width:639px){.info-modal-overlay{padding:16px}.info-modal{width:100%;max-height:88vh;max-height:88dvh;padding:18px;border-radius:14px}.info-modal-head h2{font-size:18px}.info-modal-content{font-size:14px}}
.show-template-modal{width:min(660px,calc(100vw - 32px))}
.template-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.template-choice{min-height:68px;display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #d9e0e7;border-radius:11px;background:#fff;color:#334155;text-align:left;cursor:pointer;transition:border-color .16s ease,background-color .16s ease,transform .16s ease}
.template-choice:hover{border-color:#00b8cf;background:#f5fcfd}
.template-choice:active{transform:scale(.985)}
.template-choice>span:last-child{min-width:0;display:grid;gap:3px}
.template-choice strong{font-size:13px;font-weight:700;line-height:1.2}
.template-choice small{color:#64748b;font-size:11px;line-height:1.25}
.template-swatch{width:34px;height:34px;flex:0 0 34px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}
.swatch-corporate{background:#17365d;border-color:#17365d;box-shadow:inset -8px -8px #fff}
.swatch-editorial{background:#f5efe4;border-color:#d7c8b3;box-shadow:inset -8px -8px #8a6b4f}
.swatch-dark{background:#000;border-color:#000;box-shadow:inset -8px -8px #fff}
.swatch-sage{background:#dfe9dd;border-color:#c5d2c4;box-shadow:inset -8px -8px #506c58}
.swatch-neon{background:#25292e;border-color:#25292e;box-shadow:inset -8px -8px #00e5ff}
@media(max-width:639px){.show-template-modal{max-height:88dvh}.template-choice-grid{grid-template-columns:1fr;gap:8px}.template-choice{min-height:58px}}
.new-file-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.new-file-clear{min-height:38px;padding:0 15px;border:1px solid #0b2230;border-radius:8px;background:#0b2230;color:#fff;font:inherit;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.new-file-clear:hover{background:#17394c}
.new-file-clear:active{background:#00e5ff;border-color:#00e5ff;color:#0b2230}
@media(max-width:639px){.new-file-actions{gap:8px}.new-file-actions>*{flex:1 1 auto}}
#write-sheet-overlay .mobile-sheet,#calc-sheet-overlay .mobile-sheet,#show-sheet-overlay .mobile-sheet{width:min(560px,calc(100vw - 24px))!important;height:auto!important;max-height:50vh!important;margin:0 12px 16px!important;padding:9px 0 calc(20px + env(safe-area-inset-bottom))!important;border:1px solid rgba(255,255,255,.7);border-radius:24px!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:auto!important}
#write-sheet-overlay .mobile-sheet-head,#write-sheet-overlay .mobile-sheet-content,#calc-sheet-overlay .mobile-sheet-head,#calc-sheet-overlay .mobile-sheet-content,#show-sheet-overlay .mobile-sheet-head,#show-sheet-overlay .mobile-sheet-content{padding-left:20px!important;padding-right:20px!important}
.app-sticky-top .app-switcher{gap:2px!important;padding:2px!important;border:1px solid rgba(255,255,255,.1)!important;border-bottom:0!important;border-radius:13px 13px 0 0!important;background:rgba(255,255,255,.025)!important;box-shadow:inset 0 1px rgba(255,255,255,.035)!important}
.app-sticky-top .app-tab,.app-sticky-top .app-tab:hover{position:relative!important;border-radius:10px!important;background:rgba(255,255,255,.04)!important;transition:background-color .14s ease,color .18s ease!important}
.app-sticky-top .app-tab+.app-tab:before{content:"";position:absolute;z-index:1;left:-2px;top:25%;bottom:25%;width:1px;background:rgba(255,255,255,.1);pointer-events:none}
.app-sticky-top .app-tab.is-active{background:rgba(0,229,255,.07)!important;color:#00e5ff!important}
.app-sticky-top .app-tab.is-active:before{opacity:.7}
.app-sticky-top .app-tab:not(.is-active):active{background:rgba(255,255,255,.1)!important;color:#fff!important;transform:none!important}
.app-sticky-top .app-switcher{top:6px!important;bottom:6px!important;height:auto!important;gap:6px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.app-sticky-top .app-tab,.app-sticky-top .app-tab:hover{height:100%!important;margin:0!important;border-radius:25px!important;background:rgba(255,255,255,.04)!important}
.app-sticky-top .app-tab.is-active{background:rgba(0,229,255,.07)!important}
.app-sticky-top .app-tab+.app-tab:before{left:-4px}
.app-sticky-top .app-tab{background:rgba(255,255,255,.02)!important}
.app-sticky-top .app-tab.is-active{background:rgba(255,255,255,.12)!important;border:1.5px solid #00e5ff!important;box-shadow:0 0 4px rgba(0,229,255,.42)!important}
.app-sticky-top .app-tab.is-active:after{left:-1.5px!important;right:-1.5px!important;bottom:-4px!important;width:auto!important;height:2px!important;z-index:2;border-radius:2px!important}
.slide-canvas .slide-title{color:var(--slide-title-color,#262c33)}
.slide-canvas .slide-body,.slide-canvas .slide-column-editor{color:var(--slide-muted-color,#626a73)}
.slide-canvas .slide-title,.slide-canvas .slide-body,.slide-canvas .slide-column-editor{font-family:var(--slide-font-family,inherit)}
.slide-canvas .slide-title:empty:before,.slide-canvas .slide-body:empty:before,.slide-canvas .slide-column-editor:empty:before,.slide-canvas .slide-title:has(>br:only-child):before,.slide-canvas .slide-body:has(>br:only-child):before,.slide-canvas .slide-column-editor:has(>br:only-child):before{color:var(--slide-placeholder-color,#c5c9ce)}
.present-content h1{color:var(--slide-title-color,#fff);font-family:var(--slide-font-family,inherit)}
.present-content p{color:var(--slide-muted-color,#d9dee5);font-family:var(--slide-font-family,inherit)}
.slide-canvas[data-template]:not([data-template=""]) .slide-column-editor{min-height:110px;padding:14px;border:1px dashed var(--slide-accent-color,#64748b);border-radius:9px;background:rgba(255,255,255,.08)}
.app-sticky-top .app-tab:not(.is-active){background:rgba(255,255,255,.05)!important}
.swatch-minioffice-neon{background:#060d14;border-color:#00e5ff;box-shadow:inset -8px -8px #00e5ff}
.template-brand-mark{display:none;position:absolute;z-index:5;width:28px;height:28px;left:14px;bottom:12px;pointer-events:none;filter:drop-shadow(0 0 3px rgba(0,229,255,.2))}
.slide-canvas[data-template="minioffice-neon"] #slide-template-brand,.present-content[data-template="minioffice-neon"] #present-template-brand{display:block}
.slide-canvas[data-template="minioffice-neon"] .slide-title,.present-content[data-template="minioffice-neon"] h1{color:#00e5ff;text-shadow:0 0 12px rgba(0,229,255,.35)}
.slide-canvas[data-template="minioffice-neon"][data-layout="title"] .slide-title{min-height:0;font-size:clamp(34px,6vw,62px);text-align:center}
.slide-canvas[data-template="minioffice-neon"][data-layout="title"] .slide-body{min-height:0;padding:0;color:#c4d0d8;text-align:center;font-size:17px}
.slide-canvas[data-template="minioffice-neon"][data-layout="title"]:after{content:"";position:absolute;z-index:2;left:50%;bottom:24px;width:96px;height:2px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#00e5ff,transparent);box-shadow:0 0 12px rgba(0,229,255,.55);pointer-events:none}
.slide-canvas[data-template="minioffice-neon"][data-layout="content"] .slide-title,.slide-canvas[data-template="minioffice-neon"][data-layout="columns"] .slide-title,.present-content[data-template="minioffice-neon"][data-layout="content"] h1,.present-content[data-template="minioffice-neon"][data-layout="columns"] h1{min-height:0;margin:0;padding:14px 18px;border:1px solid rgba(0,229,255,.15);border-radius:12px;background:rgba(255,255,255,.03);box-shadow:0 0 15px rgba(0,229,255,.05);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font-size:clamp(22px,3vw,34px);line-height:1.2}
.slide-canvas[data-template="minioffice-neon"][data-layout="content"] .slide-body,.present-content[data-template="minioffice-neon"][data-layout="content"] #present-body{min-height:190px;padding:24px 28px;border:1px solid rgba(0,229,255,.15);border-radius:12px;background:rgba(255,255,255,.03);box-shadow:0 0 15px rgba(0,229,255,.05);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#e4edf1;font-size:clamp(16px,2vw,22px);line-height:1.8;white-space:pre-wrap}
.slide-canvas[data-template="minioffice-neon"][data-layout="columns"] .slide-column-editor,.present-content[data-template="minioffice-neon"][data-layout="columns"] .present-columns p{min-height:210px;padding:20px;border:1px solid rgba(0,229,255,.15);border-radius:12px;background:rgba(255,255,255,.03);box-shadow:0 0 15px rgba(0,229,255,.05);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#e4edf1;font-size:clamp(16px,2vw,22px);line-height:1.6;white-space:pre-wrap}
.slide-canvas[data-template="minioffice-neon"][data-layout="columns"] .slide-column-editor:after,.present-content[data-template="minioffice-neon"][data-layout="columns"] .present-columns p:after{content:"";display:block;height:52px;margin-top:16px;border-bottom:1px solid rgba(0,229,255,.16);background:linear-gradient(to top,rgba(0,229,255,.44) 0 74%,transparent 74%) 12% bottom/14% 48px no-repeat,linear-gradient(to top,rgba(0,229,255,.28) 0 48%,transparent 48%) 40% bottom/14% 48px no-repeat,linear-gradient(to top,rgba(0,229,255,.56) 0 88%,transparent 88%) 68% bottom/14% 48px no-repeat}
.present-content[data-template="minioffice-neon"] #present-body{color:#c4d0d8}
.present-content[data-template="minioffice-neon"][data-layout="title"] h1{margin:0 0 18px;text-align:center;font-size:clamp(38px,7vw,78px)}
.present-content[data-template="minioffice-neon"][data-layout="title"] #present-body{margin:0;border:0;background:transparent;box-shadow:none;text-align:center;font-size:clamp(17px,2vw,24px)}
.present-content[data-template="minioffice-neon"][data-layout="title"]:after{content:"";position:absolute;left:50%;bottom:8px;width:110px;height:2px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#00e5ff,transparent);box-shadow:0 0 12px rgba(0,229,255,.55);pointer-events:none}
#present-overlay,#show-template-picker,#show-sheet-overlay,#show-format-menu,#slide-context-toolbar{scrollbar-width:none!important;-ms-overflow-style:none!important}
#present-overlay::-webkit-scrollbar,#present-overlay *::-webkit-scrollbar,#show-template-picker::-webkit-scrollbar,#show-template-picker *::-webkit-scrollbar,#show-sheet-overlay::-webkit-scrollbar,#show-sheet-overlay *::-webkit-scrollbar,#show-format-menu::-webkit-scrollbar,#show-format-menu *::-webkit-scrollbar,#slide-context-toolbar::-webkit-scrollbar,#slide-context-toolbar *::-webkit-scrollbar{display:none!important}
#present-overlay{overflow:hidden}
.slide-canvas[data-template="minioffice-neon"],.present-content[data-template="minioffice-neon"]{border:1px solid rgba(0,229,255,.38);box-shadow:0 0 18px rgba(0,229,255,.12)}
.slide-canvas[data-template="minioffice-neon"][data-layout="content"],.slide-canvas[data-template="minioffice-neon"][data-layout="columns"]{padding:5%}
.slide-canvas[data-template="minioffice-neon"][data-layout="content"] .slide-title,.slide-canvas[data-template="minioffice-neon"][data-layout="columns"] .slide-title{padding:8px 0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.slide-canvas[data-template="minioffice-neon"][data-layout="content"] .slide-body,.present-content[data-template="minioffice-neon"][data-layout="content"] #present-body,.slide-canvas[data-template="minioffice-neon"][data-layout="columns"] .slide-column-editor,.present-content[data-template="minioffice-neon"][data-layout="columns"] .present-columns p{min-height:280px;flex:1;padding:24px;border:0;border-radius:12px;background:rgba(245,247,250,.96);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:#111c24;font-size:clamp(16px,2vw,22px);line-height:1.65}
.present-content[data-template="minioffice-neon"]{outline:1px solid rgba(0,229,255,.38);outline-offset:0;padding:24px}
.present-content[data-template="minioffice-neon"][data-layout="content"] h1,.present-content[data-template="minioffice-neon"][data-layout="columns"] h1{padding:8px 0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.present-content[data-template="minioffice-neon"][data-layout="content"] #present-body{min-height:300px}
.present-content[data-template="minioffice-neon"][data-layout="columns"] .present-columns p{min-height:280px}
#write-sheet-overlay,#calc-sheet-overlay,#show-sheet-overlay,#file-actions-overlay{position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;z-index:100000!important;display:flex!important;align-items:stretch!important;justify-content:stretch!important;overflow:hidden!important;transform:translateY(0);animation:menu-drop-in .28s cubic-bezier(.2,.7,.25,1) both}
#write-sheet-overlay[hidden],#calc-sheet-overlay[hidden],#show-sheet-overlay[hidden],#file-actions-overlay[hidden]{display:none!important}
#file-actions-overlay{pointer-events:auto!important}
#write-sheet-overlay .mobile-sheet,#calc-sheet-overlay .mobile-sheet,#show-sheet-overlay .mobile-sheet,#file-actions-overlay .mobile-sheet{position:relative!important;inset:auto!important;display:flex!important;flex:1 1 auto!important;flex-direction:column!important;width:100vw!important;height:100vh!important;height:100dvh!important;min-height:100dvh!important;max-height:none!important;margin:0!important;padding:24px 22px calc(24px + env(safe-area-inset-bottom))!important;overflow:hidden!important;border:0!important;border-radius:0!important;box-shadow:none!important;animation:none!important}
#write-sheet-overlay .mobile-sheet,#calc-sheet-overlay .mobile-sheet,#show-sheet-overlay .mobile-sheet{background:rgba(248,250,253,.99)!important}
#file-actions-overlay .mobile-sheet{background:rgba(248,250,253,.99)!important}
#write-sheet-overlay .mobile-sheet-handle,#calc-sheet-overlay .mobile-sheet-handle,#show-sheet-overlay .mobile-sheet-handle,#file-actions-overlay .mobile-sheet-handle{display:none!important}
#write-sheet-overlay .mobile-sheet-head,#calc-sheet-overlay .mobile-sheet-head,#show-sheet-overlay .mobile-sheet-head,#file-actions-overlay .mobile-sheet-head{flex:0 0 auto;margin:0 0 18px!important;padding:6px 2px 16px!important;border-bottom:1px solid #dce4eb}
#write-sheet-overlay .mobile-sheet-head h2,#calc-sheet-overlay .mobile-sheet-head h2,#show-sheet-overlay .mobile-sheet-head h2,#file-actions-overlay .mobile-sheet-head h2{font-size:22px!important}
#write-sheet-overlay .mobile-sheet-head button,#calc-sheet-overlay .mobile-sheet-head button,#show-sheet-overlay .mobile-sheet-head button,#file-actions-overlay .mobile-sheet-head button{width:44px;height:44px;font-size:26px}
#write-sheet-overlay .mobile-sheet-content,#calc-sheet-overlay .mobile-sheet-content,#show-sheet-overlay .mobile-sheet-content,#file-actions-overlay .mobile-sheet-content{flex:1 1 auto;min-height:0;align-content:start;gap:14px!important;overflow:hidden!important;padding:0!important}
#write-sheet-overlay .mobile-sheet-section,#calc-sheet-overlay .mobile-sheet-section,#show-sheet-overlay .mobile-sheet-section,#file-actions-overlay .mobile-sheet-section{gap:10px}
#write-sheet-overlay .mobile-sheet-action,#calc-sheet-overlay .mobile-sheet-action,#show-sheet-overlay .mobile-sheet-action,#file-actions-overlay .mobile-sheet-action{min-height:46px}
#file-actions-overlay .file-actions-content{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
#file-actions-overlay .file-actions-content>.mobile-sheet-action{grid-column:auto!important;width:100%!important;min-width:0;padding:7px 10px;font-size:13px}
#file-actions-overlay .save-as-options{grid-column:1/-1;min-width:0}
#write-sheet-overlay .mobile-sheet,#write-sheet-overlay .mobile-sheet * ,#calc-sheet-overlay .mobile-sheet,#calc-sheet-overlay .mobile-sheet * ,#show-sheet-overlay .mobile-sheet,#show-sheet-overlay .mobile-sheet * ,#file-actions-overlay .mobile-sheet,#file-actions-overlay .mobile-sheet *{scrollbar-width:none!important;-ms-overflow-style:none!important}
#write-sheet-overlay .mobile-sheet::-webkit-scrollbar,#write-sheet-overlay .mobile-sheet *::-webkit-scrollbar,#calc-sheet-overlay .mobile-sheet::-webkit-scrollbar,#calc-sheet-overlay .mobile-sheet *::-webkit-scrollbar,#show-sheet-overlay .mobile-sheet::-webkit-scrollbar,#show-sheet-overlay .mobile-sheet *::-webkit-scrollbar,#file-actions-overlay .mobile-sheet::-webkit-scrollbar,#file-actions-overlay .mobile-sheet *::-webkit-scrollbar{display:none!important}
@keyframes menu-drop-in{from{transform:translateY(-100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#write-sheet-overlay,#calc-sheet-overlay,#show-sheet-overlay,#file-actions-overlay{animation:none!important}}
@media(max-height:720px){#write-sheet-overlay .mobile-sheet,#calc-sheet-overlay .mobile-sheet,#show-sheet-overlay .mobile-sheet,#file-actions-overlay .mobile-sheet{padding:12px 18px calc(12px + env(safe-area-inset-bottom))!important}#write-sheet-overlay .mobile-sheet-head,#calc-sheet-overlay .mobile-sheet-head,#show-sheet-overlay .mobile-sheet-head,#file-actions-overlay .mobile-sheet-head{margin-bottom:10px!important;padding:0 2px 9px!important}#write-sheet-overlay .mobile-sheet-content,#calc-sheet-overlay .mobile-sheet-content,#show-sheet-overlay .mobile-sheet-content,#file-actions-overlay .mobile-sheet-content{gap:8px!important}#write-sheet-overlay .mobile-sheet-section,#calc-sheet-overlay .mobile-sheet-section,#show-sheet-overlay .mobile-sheet-section,#file-actions-overlay .mobile-sheet-section{gap:6px}#write-sheet-overlay .mobile-sheet-section h3,#calc-sheet-overlay .mobile-sheet-section h3,#show-sheet-overlay .mobile-sheet-section h3,#file-actions-overlay .mobile-sheet-section h3{margin:0;font-size:11px}#write-sheet-overlay .mobile-sheet-action,#calc-sheet-overlay .mobile-sheet-action,#show-sheet-overlay .mobile-sheet-action,#file-actions-overlay .mobile-sheet-action{min-height:38px;padding-block:5px}.mobile-field select{height:38px}.show-sheet-layouts button{min-height:38px}.show-sheet-shapes button{height:40px}}
@media(max-height:600px){#write-sheet-overlay .mobile-sheet-content,#calc-sheet-overlay .mobile-sheet-content,#show-sheet-overlay .mobile-sheet-content,#file-actions-overlay .mobile-sheet-content{gap:5px!important}#write-sheet-overlay .mobile-sheet-action,#calc-sheet-overlay .mobile-sheet-action,#show-sheet-overlay .mobile-sheet-action,#file-actions-overlay .mobile-sheet-action{min-height:34px;padding-block:3px}.show-sheet-layouts button{min-height:34px}.show-sheet-shapes button{height:36px}.color-palette{gap:6px}}
/* Full-screen drop-downs for app tool menus */
.mobile-action-menu,.show-format-menu,.context-color-grid,.context-media-menu,#calc-context-menu{position:fixed!important;inset:0!important;left:0!important;top:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;min-width:0!important;max-width:none!important;max-height:none!important;overflow:hidden!important;z-index:100001!important;margin:0!important;padding:76px 20px 28px!important;border:0!important;border-radius:0!important;background:rgba(248,250,253,.99)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;animation:menu-drop-in .28s cubic-bezier(.2,.7,.25,1) both!important}
.mobile-action-menu,.show-format-menu,.context-media-menu{display:grid;grid-template-columns:minmax(0,min(440px,100%));grid-auto-rows:minmax(48px,auto);align-content:center;justify-content:center;gap:10px}
#calc-data-menu{grid-template-columns:repeat(2,minmax(0,min(210px,calc((100vw - 52px)/2))))}
#calc-data-menu button{min-width:0;padding-inline:10px;text-align:center;font-size:14px!important}
.mobile-action-menu[hidden],.show-format-menu[hidden],.context-color-grid[hidden],.context-media-menu[hidden],#calc-context-menu[hidden]{display:none!important}
.mobile-action-menu button,.show-format-menu button,.context-media-menu button{width:min(100%,440px)!important;min-height:50px!important;flex:0 0 auto;padding:12px 16px!important;border:1px solid #dbe1e8!important;border-radius:12px!important;background:#fff!important;color:#27384b!important;text-align:left!important;font-size:16px!important;white-space:normal!important}
.context-color-grid{display:grid;grid-template-columns:repeat(5,minmax(42px,60px));grid-auto-rows:48px;align-content:center;justify-content:center;gap:12px;padding:76px 20px 28px!important}
.context-color-grid .color-swatch{width:48px;height:48px;min-width:48px}
#calc-context-menu{display:flex;flex-flow:row wrap;align-content:center;align-items:center;justify-content:center;gap:8px}
#calc-context-menu button{width:min(100%,440px);min-width:min(160px,100%);height:50px;flex:0 1 200px;padding:0 14px;border:1px solid #dbe1e8;border-radius:12px;background:#fff;color:#27384b;font-size:15px;white-space:normal}
#write-sheet-overlay .mobile-sheet-content,#calc-sheet-overlay .mobile-sheet-content{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
#show-sheet-overlay .mobile-sheet-content{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px!important}
#show-sheet-overlay .mobile-sheet-section{grid-column:auto;align-content:start;gap:7px}
#show-sheet-overlay .mobile-sheet-section h3{margin:0 0 2px}
#show-sheet-overlay .slide-background-palette{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:0}
#show-sheet-overlay .slide-background-palette .color-swatch{width:100%;height:34px;min-width:0}
#show-sheet-overlay .show-sheet-shapes{gap:5px}
#show-sheet-overlay .show-sheet-shapes button{width:auto;height:40px;min-width:0;flex:1}
#show-sheet-overlay .show-sheet-layouts{gap:4px}
#show-sheet-overlay .show-sheet-layouts button{min-height:38px;font-size:11px}
@media(max-height:600px){#write-sheet-overlay .mobile-sheet-content,#calc-sheet-overlay .mobile-sheet-content,#show-sheet-overlay .mobile-sheet-content{gap:5px!important}#show-sheet-overlay .mobile-sheet-section{gap:4px}#show-sheet-overlay .slide-background-palette .color-swatch{height:30px}#show-sheet-overlay .show-sheet-shapes button{height:34px}}
:root{--suitebar-height:58px}
@media(max-width:639px){:root{--suitebar-height:48px}}
#write-sheet-overlay,#calc-sheet-overlay,#show-sheet-overlay,#file-actions-overlay{position:fixed!important;top:var(--suitebar-height,56px)!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;height:calc(100vh - var(--suitebar-height,56px))!important;height:calc(100dvh - var(--suitebar-height,56px))!important;display:flex!important;align-items:stretch!important;justify-content:flex-end!important;overflow:hidden!important;transform:none!important;animation:none!important}
#write-sheet-overlay .mobile-sheet,#calc-sheet-overlay .mobile-sheet,#show-sheet-overlay .mobile-sheet,#file-actions-overlay .mobile-sheet{position:fixed!important;top:var(--suitebar-height,56px)!important;right:0!important;bottom:0!important;left:auto!important;width:100%!important;max-width:360px!important;height:calc(100vh - var(--suitebar-height,56px))!important;height:calc(100dvh - var(--suitebar-height,56px))!important;min-height:0!important;max-height:none!important;flex:0 1 360px!important;margin:0!important;padding:20px 18px calc(20px + env(safe-area-inset-bottom))!important;overflow:hidden!important;border-left:1px solid #dce4eb!important;box-shadow:-12px 0 32px rgba(30,41,59,.16)!important;animation:menu-drop-in .28s cubic-bezier(.2,.7,.25,1) both!important}
.mobile-action-menu,.show-format-menu,.context-color-grid,.context-media-menu,#calc-context-menu{inset:auto auto 0 auto!important;top:var(--suitebar-height,56px)!important;right:0!important;left:auto!important;bottom:0!important;width:100%!important;max-width:360px!important;height:calc(100vh - var(--suitebar-height,56px))!important;height:calc(100dvh - var(--suitebar-height,56px))!important;min-height:0!important;padding:20px!important;border:0!important;border-left:1px solid #dce4eb!important;box-shadow:-12px 0 32px rgba(30,41,59,.16)!important;animation:menu-drop-in .28s cubic-bezier(.2,.7,.25,1) both!important}
.mobile-action-menu,.show-format-menu,.context-media-menu{grid-template-columns:minmax(0,1fr);align-content:center}
#calc-data-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
.context-color-grid{grid-template-columns:repeat(5,minmax(38px,48px));grid-auto-rows:44px;align-content:center;justify-content:center;gap:8px}
.context-color-grid .color-swatch{width:42px;height:42px;min-width:42px}
#calc-context-menu{padding:20px!important;align-content:center}
#calc-context-menu button{flex-basis:150px;width:100%;max-width:100%}
@media(prefers-reduced-motion:reduce){#write-sheet-overlay .mobile-sheet,#calc-sheet-overlay .mobile-sheet,#show-sheet-overlay .mobile-sheet,#file-actions-overlay .mobile-sheet,.mobile-action-menu,.show-format-menu,.context-color-grid,.context-media-menu,#calc-context-menu{animation:none!important}}

/* SHOW can scroll where needed, but never displays browser scrollbar chrome. */
#view-show,#view-show *,#show-sheet-overlay,#show-sheet-overlay *,#show-template-picker,#show-template-picker *,#show-format-menu,#show-format-menu *,#slide-context-toolbar,#slide-context-toolbar *,#present-overlay,#present-overlay *,#image-tools,#image-tools *{scrollbar-width:none!important;-ms-overflow-style:none!important}
#view-show::-webkit-scrollbar,#view-show *::-webkit-scrollbar,#show-sheet-overlay::-webkit-scrollbar,#show-sheet-overlay *::-webkit-scrollbar,#show-template-picker::-webkit-scrollbar,#show-template-picker *::-webkit-scrollbar,#show-format-menu::-webkit-scrollbar,#show-format-menu *::-webkit-scrollbar,#slide-context-toolbar::-webkit-scrollbar,#slide-context-toolbar *::-webkit-scrollbar,#present-overlay::-webkit-scrollbar,#present-overlay *::-webkit-scrollbar,#image-tools::-webkit-scrollbar,#image-tools *::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.developer-title-lockup{min-width:0;display:flex;align-items:center;gap:12px}.developer-title-lockup h2{margin:0}.developer-brand-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border:1px solid rgba(0,167,189,.55);border-radius:12px;background:linear-gradient(145deg,#0b3546,#071b2b);box-shadow:0 0 0 3px #e4f5f7,0 4px 12px rgba(8,49,64,.2)}.developer-brand-icon svg{display:block;width:30px;height:30px;filter:drop-shadow(0 0 3px rgba(0,229,255,.65))}
/* MiniOffice onboarding and spreadsheet shell */
.app-shell[hidden]{display:none!important}
.splash-screen{background:#0d1b2a}
.language-screen{position:fixed;inset:0;z-index:999998;display:grid;place-items:center;padding:24px;background:#0d1b2a;color:#fff;font-family:Roboto,system-ui,sans-serif;animation:language-in .35s ease both}
.language-screen[hidden]{display:none!important}
.language-card{width:min(100%,390px);display:flex;flex-direction:column;align-items:center}
.language-mark{height:88px;margin:0 0 14px}.language-mark .splash-gnome{width:58px;height:88px}
.language-card h1{margin:0 0 26px;text-align:center;font-size:clamp(19px,5vw,23px);font-weight:650;letter-spacing:-.025em}
.language-options{width:100%;display:grid;gap:10px}
.language-option{min-height:56px;display:flex;align-items:center;gap:12px;padding:0 16px;border:1px solid #294252;border-radius:12px;background:#14283a;color:#fff;text-align:left;font-size:15px;font-weight:600;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.language-option:hover,.language-option:focus-visible{border-color:#00f2fe;background:#173348;outline:none;box-shadow:0 0 18px #00f2fe22}.language-option:active{transform:scale(.985)}
.language-flag{font-size:23px;line-height:1}.language-option small{margin-left:auto;color:#9fb4c2;font-size:12px;font-weight:450}
@keyframes language-in{from{opacity:0}to{opacity:1}}
.app-sticky-top .suitebar{background:#0d1b2a!important;border:0!important;border-bottom:1px solid #203646!important;box-shadow:0 3px 14px #07142166!important}
.brand-anchor svg{filter:drop-shadow(0 0 4px #00f2fe88)}
.brand-menu-button{background:#172a3a!important;color:#eafcff!important;border:1px solid #294252!important}
.brand-menu-button:hover{background:#20394d!important}
.app-sticky-top .app-switcher{background:#122335!important;border:1px solid #294252!important;border-radius:12px!important;box-shadow:none!important}
.app-sticky-top .app-tab{color:#a9bdca!important}
.app-sticky-top .app-tab:hover{background:#1a3043!important;color:#fff!important}
.app-sticky-top .app-tab.is-active{position:relative;border:1px solid #00f2fe!important;background:#132a3c!important;color:#fff!important;box-shadow:0 0 13px #00f2fe22!important}
.app-sticky-top .app-tab.is-active:after{left:20%;right:20%;bottom:-4px;background:#00f2fe!important;box-shadow:0 0 8px #00f2fe!important}
.suitebar .save-state{color:#c3d5de}
.mobile-calc-toolbar{display:flex!important;background:#0d1b2a!important;border-bottom:1px solid #203646!important}
.mobile-calc-toolbar .mobile-tool,.mobile-calc-toolbar .cell-name{border:1px solid #dce5e9;border-radius:8px;background:#fff;color:#27343b}
.mobile-calc-toolbar .mobile-tool{height:34px}
.sheet-grid{min-width:0!important}
.calc-range-handle span{width:9px;height:9px;border:2px solid #fff;background:#00f2fe;box-shadow:0 0 7px #00f2feaa}
.sheet-cell:focus,.sheet-cell.is-selected{outline-color:#00f2fe}
.file-actions-content .change-language-action{border:1px solid #00b8c7;background:#e9fcfd;color:#063b45;font-weight:700}
.file-actions-content .change-language-action:active{background:#d4f7f9}
@media(max-width:639px){.language-card{max-width:370px}.app-sticky-top .app-switcher{width:calc(100% - 116px)!important}.app-sticky-top .app-tab{font-size:9px}}
@media(prefers-reduced-motion:reduce){.language-screen,.language-option{animation:none;transition:none}}
#file-actions-overlay .file-actions-content>.mobile-sheet-action{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;height:64px!important;min-height:64px!important;padding:8px 10px!important;border-radius:12px!important;font-size:13px!important;line-height:1.2!important;text-align:left!important;white-space:normal!important}
#file-actions-overlay .file-actions-content>.mobile-sheet-action .menu-item-icon{width:24px;height:24px;flex:0 0 24px;display:flex;align-items:center;justify-content:center;overflow:visible}
#file-actions-overlay .file-actions-content>.mobile-sheet-action .menu-item-icon>svg{display:block!important;width:24px!important;height:24px!important;flex:0 0 24px!important;vertical-align:initial!important}
#file-actions-overlay .file-actions-content>.mobile-sheet-action .menu-action-label{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;text-align:left}
#file-actions-overlay .file-actions-content>.mobile-sheet-action.change-language-action{border-color:#00b8c7;background:#e9fcfd;color:#063b45}
#file-actions-overlay .file-actions-content>.mobile-sheet-action.change-language-action:active{background:#d4f7f9}
.menu-corona-icon{width:24px;height:24px;display:block;overflow:visible;filter:drop-shadow(0 0 2px #00f2fe44)}







/* === Lilliwork: one toolbar style, one accent colour per part (Write / Calc / Show) === */
.app-shell,.app-shell[data-active-app="write"]{--app-accent:#00b8d9;--app-accent-glow:rgba(0,184,217,.35);--app-tint:#eefbfd;--active-glass:#eefbfd;--active-indicator:#00b8d9}
.app-shell[data-active-app="calc"]{--app-accent:#00c853;--app-accent-glow:rgba(0,200,83,.35);--app-tint:#effcf4;--active-glass:#effcf4;--active-indicator:#00c853}
.app-shell[data-active-app="show"]{--app-accent:#9b5cff;--app-accent-glow:rgba(155,92,255,.35);--app-tint:#f6f1ff;--active-glass:#f6f1ff;--active-indicator:#9b5cff}
.mobile-tool-row,.mobile-calc-toolbar,.show-toolbar,.calc-toolbar,.write-controls .ribbon,.write-controls .tabs{background:var(--app-tint)!important;border:0!important;border-bottom:2px solid var(--app-accent)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.app-sticky-top .app-tab.is-active{border-color:var(--app-accent)!important;box-shadow:0 0 10px var(--app-accent-glow)!important}
.app-sticky-top .app-tab.is-active:after{background:var(--app-accent)!important;box-shadow:0 0 8px var(--app-accent)!important}
.app-sticky-top .app-tab.is-active .app-icon{color:var(--app-accent)!important}
.sheet-cell:focus,.sheet-cell.is-selected{outline-color:var(--app-accent)}

/* === Lilliwork: font dropdown with live preview === */
.font-picker-source{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.font-dropdown{position:relative;width:100%}
.font-dropdown-trigger{width:100%;height:38px;padding:0 30px 0 10px;border:1px solid #dbe1e8;border-radius:9px;background:#fff;color:#334155;font-size:15px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23334155' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:11px 8px}
.font-dropdown-trigger:focus-visible,.font-dropdown-trigger[aria-expanded="true"]{border-color:var(--app-accent,#00b8d9);outline:none;box-shadow:0 0 0 1px var(--app-accent,#00b8d9)}
.font-dropdown-list{position:absolute;z-index:50;top:calc(100% + 4px);left:0;min-width:100%;width:max-content;max-width:min(280px,calc(100vw - 32px));max-height:300px;overflow-y:auto;margin:0;padding:4px 0;list-style:none;border:1px solid #dbe1e8;border-radius:9px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.18)}
.font-dropdown-option{padding:9px 12px;color:#1f2a33;font-size:17px;line-height:1.2;white-space:nowrap;cursor:pointer}
.font-dropdown-option:hover,.font-dropdown-option:focus{background:#f1f5f9;outline:none}
.font-dropdown-option[aria-selected="true"]{background:var(--app-tint,#eefbfd);box-shadow:inset 3px 0 0 var(--app-accent,#00b8d9)}
.font-dropdown-trigger,.font-dropdown-option{font-weight:400}

/* === Lilliwork: UI polish === */
/* Hint on an empty Write page */
.editor[data-empty="true"]>:first-child{position:relative}
.editor[data-empty="true"]>:first-child::before{content:var(--lw-hint,"");position:absolute;left:0;top:0;color:#9aa5ad;pointer-events:none;white-space:nowrap}
/* Resize grips on slide text boxes only while editing that box */
.slide-title,.slide-body,.slide-column-editor,.slide-canvas textarea{resize:none}
.slide-title:focus,.slide-body:focus,.slide-column-editor:focus,.slide-canvas textarea:focus{resize:both}
/* Line icon in the Show toolbar (replaces the emoji) */
.show-format-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* === Lilliwork: Write fixes === */
.editor-image{resize:none}
.editor-image.lw-selected{outline:2px solid var(--app-accent,#00b8d9);outline-offset:2px}
.image-tools{gap:2px}
.image-tools button{height:30px;min-width:32px;font-size:12px}
.image-tools .lw-img-smaller,.image-tools .lw-img-larger{font-size:18px;font-weight:600;line-height:1}
.image-tools .lw-img-delete{color:#c62828}
.image-tools .lw-img-delete svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.lw-marker-palette .lw-marker-clear{display:grid;place-items:center;background:#fff;color:#64748b;font-size:18px}
.lw-marker-palette [aria-pressed="true"]{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--app-accent,#00b8d9)}

/* === Lilliwork: Write extras (align menu, U-menu, clear formatting) === */
.write-mobile-toolbar .lw-align-wrap,.write-mobile-toolbar .lw-u-wrap{display:contents}
.write-mobile-toolbar .lw-u-more{flex:0 0 16px!important;width:16px;min-width:16px;padding:0;margin-left:-2px}
.lw-u-more svg{width:9px;height:9px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.lw-u-more.is-active{color:var(--app-accent,#00b8d9)}
.lw-align-toggle svg,.lw-align-menu svg,.lw-u-menu svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.lw-align-menu button,.lw-u-menu button{display:flex!important;align-items:center;gap:12px}
.lw-align-menu button svg,.lw-u-menu button svg{width:20px;height:20px;flex:0 0 20px}
.lw-u-menu button u{width:20px;flex:0 0 20px;text-align:center;font-weight:700}
.lw-align-menu button.is-active,.lw-u-menu button.is-active{border-color:var(--app-accent,#00b8d9)!important;background:var(--app-tint,#eefbfd)!important}
.lw-menu-sep{width:100%;margin:2px 0;border:0;border-top:1px solid #dbe1e8}
.lw-clear-format{width:100%;text-align:left}

/* === Lilliwork: compact icon dropdowns under the toolbar buttons === */
:is(.mobile-action-menu,.show-format-menu).lw-compact-menu{position:fixed!important;inset:auto!important;right:auto!important;bottom:auto!important;width:auto!important;height:auto!important;max-width:none!important;max-height:calc(100dvh - 120px)!important;min-height:0!important;display:flex!important;flex-direction:column;gap:4px;padding:4px!important;margin:0!important;border:1px solid #dbe1e8!important;border-radius:10px!important;background:#fff!important;box-shadow:0 8px 22px rgba(15,23,42,.16)!important;overflow:auto!important;z-index:100001!important;animation:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:is(.mobile-action-menu,.show-format-menu).lw-compact-menu[hidden]{display:none!important}
:is(.mobile-action-menu,.show-format-menu).lw-compact-menu button{width:var(--lw-item,36px)!important;min-width:0!important;height:var(--lw-item-h,36px)!important;min-height:0!important;padding:0!important;display:grid!important;place-items:center;border:1px solid transparent!important;border-radius:8px!important;background:#fff!important;color:#27384b!important;font-size:16px!important;line-height:1}
:is(.mobile-action-menu,.show-format-menu).lw-compact-menu button:active,:is(.mobile-action-menu,.show-format-menu).lw-compact-menu button:hover{background:#f1f5f9!important}
:is(.mobile-action-menu,.show-format-menu).lw-compact-menu button.is-active{border-color:var(--app-accent,#00b8d9)!important;background:var(--app-tint,#eefbfd)!important}
:is(.mobile-action-menu,.show-format-menu).lw-compact-menu .lw-label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:is(.mobile-action-menu,.show-format-menu).lw-compact-menu button svg{width:18px!important;height:18px!important;flex:none!important}
:is(.mobile-action-menu,.show-format-menu).lw-compact-menu button u{width:auto;font-weight:600}
:is(.mobile-action-menu,.show-format-menu).lw-compact-menu .lw-menu-sep{margin:1px 4px!important;width:auto}

.show-format-menu.lw-compact-menu strong{font-size:15px;font-weight:700}

/* === Lilliwork: one bottom sheet for every screen (mobile first) === */
html body :is(#write-sheet-overlay,#calc-sheet-overlay,#show-sheet-overlay,#file-actions-overlay) .mobile-sheet{position:fixed!important;top:auto!important;right:0!important;bottom:0!important;left:0!important;width:100%!important;max-width:560px!important;height:auto!important;min-height:0!important;max-height:72dvh!important;flex:none!important;margin:0 auto!important;padding:6px 18px calc(16px + env(safe-area-inset-bottom))!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border:1px solid #dce4eb!important;border-bottom:0!important;border-radius:20px 20px 0 0!important;background:#f8fafd!important;box-shadow:0 -10px 30px rgba(30,41,59,.18)!important;animation:lw-sheet-up .22s cubic-bezier(.2,.7,.25,1) both!important;transition:transform .18s ease}
html body :is(#write-sheet-overlay,#calc-sheet-overlay,#show-sheet-overlay,#file-actions-overlay) .mobile-sheet-handle{display:block!important;flex:0 0 auto;width:40px;height:5px;margin:4px auto 6px;border-radius:3px;background:#cbd5e1}
html body :is(#write-sheet-overlay,#calc-sheet-overlay,#show-sheet-overlay,#file-actions-overlay) .mobile-sheet-head{flex:0 0 auto;touch-action:none}
html body :is(#write-sheet-overlay,#calc-sheet-overlay,#show-sheet-overlay,#file-actions-overlay) .mobile-sheet-content{flex:1 1 auto;min-height:0;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:4px}
html body :is(#write-sheet-overlay,#calc-sheet-overlay,#show-sheet-overlay,#file-actions-overlay) .mobile-sheet-scrim{background:rgba(15,23,42,.28)!important}
@keyframes lw-sheet-up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){html body .mobile-sheet{animation:none!important}}
body.lw-menu-open .slide-context-toolbar{visibility:hidden!important}

/* === Lilliwork: compact 7-button Write toolbar + popovers === */
.lw-hidden{display:none!important}
.lw-split{display:contents}
.write-mobile-toolbar.lw-toolbar7{justify-content:flex-start}
.write-mobile-toolbar.lw-toolbar7 .lw-tb-btn{flex:1 1 34px!important;min-width:0}
.write-mobile-toolbar.lw-toolbar7 .lw-caret,.show-toolbar .lw-caret{flex:0 0 16px!important;width:16px!important;min-width:16px!important;padding:0!important;margin-left:-2px}
.lw-caret svg{width:9px;height:9px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.lw-caret.is-active{color:var(--app-accent,#00b8d9)}
.lw-tb-btn svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.lw-undo svg,.lw-plus svg{width:20px;height:20px}
.lw-aa-glyph{font-size:15px;font-weight:600;letter-spacing:-.2px}
.lw-color-btn{display:inline-flex!important;flex-direction:column;align-items:center;justify-content:center;gap:1px}
.lw-color-a{font-weight:700;font-size:15px;line-height:1}
.lw-color-bar{display:block;width:16px;height:4px;border-radius:2px;background:#242424}
.lw-undo-menu svg,.lw-b-menu svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.lw-b-menu i,.lw-b-menu u{font-size:16px;font-weight:600}
/* panels */
.lw-panel{position:fixed;z-index:100001;display:flex;flex-direction:column;gap:8px;width:min(250px,calc(100vw - 8px));max-height:calc(100dvh - 130px);overflow:auto;padding:10px;border:1px solid #dbe1e8;border-radius:12px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.18);color:#1f2a33;font-size:13px}
.lw-panel[hidden]{display:none!important}
.lw-panel button{font:inherit;color:inherit;cursor:pointer}
.lw-row{display:flex;gap:6px;align-items:center}
.lw-head-btn{flex:1;height:36px;border:1px solid #dbe1e8;border-radius:8px;background:#fff;font-weight:600!important}
.lw-head-btn[data-lw-head="h1"]{font-size:16px!important}
.lw-head-btn[data-lw-head="h2"]{font-size:14px!important}
.lw-size-row{justify-content:space-between}
.lw-size-row button{width:52px;height:36px;border:1px solid #dbe1e8;border-radius:8px;background:#fff;font-weight:600!important}
.lw-size-val{min-width:40px;text-align:center;font-size:15px;font-variant-numeric:tabular-nums}
.lw-font-list{display:flex;flex-direction:column;gap:2px;max-height:210px;overflow-y:auto;border-top:1px solid #edf1f5;padding-top:6px}
.lw-font-opt{height:38px;padding:0 10px;border:1px solid transparent;border-radius:8px;background:#fff;text-align:left;font-size:17px!important;white-space:nowrap}
.lw-panel .is-active{border-color:var(--app-accent,#00b8d9)!important;background:var(--app-tint,#eefbfd)!important}
.lw-label-row{font-size:12px;font-weight:600;color:#526175}
.lw-swatches{display:grid;grid-template-columns:repeat(5,34px);gap:8px}
.lw-sw{width:34px;height:34px;border-radius:50%;border:1px solid rgba(15,23,42,.15);padding:0}
.lw-sw-none{background:#fff;color:#64748b;font-size:18px!important}
.lw-custom-color{height:36px;border:1px solid #dbe1e8;border-radius:8px;background:#fff;text-align:left;padding:0 10px}
.lw-ins-row{display:flex;align-items:center;gap:10px;height:42px;padding:0 10px;border:1px solid #dbe1e8;border-radius:8px;background:#fff;text-align:left;font-size:15px!important}
.lw-ins-row svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.lw-link-form{display:flex;gap:6px}
.lw-link-form[hidden]{display:none}
.lw-link-input{flex:1;min-width:0;height:38px;padding:0 10px;border:1px solid #dbe1e8;border-radius:8px;font-size:15px}
.lw-link-ok{height:38px;padding:0 12px;border:0;border-radius:8px;background:var(--app-accent,#00b8d9);color:#fff!important;font-weight:600!important}
@media (min-width:600px){.write-mobile-toolbar.lw-toolbar7 .lw-tb-btn:not(.lw-caret){flex:0 0 44px!important}}
.write-mobile-toolbar.lw-toolbar7>*{margin-left:0!important}
.write-mobile-toolbar.lw-toolbar7 .lw-caret{margin-left:-2px!important}
.write-mobile-toolbar.lw-toolbar7>.write-list-wrap{display:contents}

/* === Lilliwork: link menu, table tools, divider === */
.lw-float-bar{position:fixed;z-index:100001;display:flex;align-items:center;gap:2px;max-width:calc(100vw - 8px);padding:4px;border:1px solid #dbe1e8;border-radius:10px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.16);flex-wrap:wrap}
.lw-float-bar[hidden]{display:none!important}
.lw-float-bar>button{min-width:36px;height:34px;padding:0 8px;border:0;border-radius:7px;background:transparent;color:#27384b;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.lw-float-bar>button:active,.lw-float-bar>button:hover{background:#f1f5f9}
.lw-float-bar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.lw-float-bar .lw-danger{color:#c62828}
.lw-tb-txt{white-space:nowrap;font-weight:600}
.lw-link-url{max-width:150px;padding:0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#2563eb;font-size:13px}
.lw-link-url[hidden]{display:none}
.lw-link-edit{display:flex;gap:4px;width:min(280px,calc(100vw - 20px))}
.lw-link-edit[hidden]{display:none}
.lw-link-edit input{flex:1;min-width:0;height:34px;padding:0 8px;border:1px solid #dbe1e8;border-radius:7px;font-size:15px}
.lw-link-edit button{height:34px;padding:0 10px;border:0;border-radius:7px;background:var(--app-accent,#00b8d9);color:#fff;font-weight:600}
.editor .doc-table td:focus-within{outline:2px solid var(--app-accent,#00b8d9);outline-offset:-2px}
.editor hr{border-top:1px solid #b8c2cc}
.todo-list li:has(> input:checked){color:#8a96a0;text-decoration:line-through}

/* === Lilliwork: floating images (behind / in front of text) === */
.editor{position:relative}
.editor>*:not(.lw-float-img){position:relative;z-index:1}
.editor>.lw-float-img{position:absolute!important;z-index:0;margin:0!important;min-width:0;min-height:0;height:auto!important;max-width:none;outline:none;cursor:default}
.editor>.lw-float-img[data-layer="front"]{z-index:2}
.editor .lw-float-img img{display:block;width:100%;height:auto;pointer-events:none;user-select:none;-webkit-user-drag:none}
.editor .editor-image.lw-selected{outline:2px dashed var(--app-accent,#00b8d9)!important;outline-offset:2px}
.editor>.lw-float-img.lw-selected{touch-action:none;cursor:move}
.lw-resize-handle{position:fixed;z-index:100001;width:28px;height:28px;border-radius:50%;background:#fff;border:3px solid var(--app-accent,#00b8d9);box-shadow:0 2px 8px rgba(15,23,42,.25);touch-action:none;cursor:nwse-resize}
.lw-resize-handle::after{content:"";position:absolute;inset:-10px}
.lw-resize-handle[hidden]{display:none!important}
.lw-img-bar .lw-btn-txt{margin-left:6px;font-size:13px;font-weight:600;white-space:nowrap}
.lw-img-bar .lw-big{font-size:18px;font-weight:600;line-height:1}
.lw-img-bar .lw-op-swatch{display:inline-block;width:14px;height:14px;border-radius:3px;background:#27384b}
.lw-img-bar .is-active{background:var(--app-tint,#eefbfd)!important;color:var(--app-accent,#00b8d9)}

/* === Lilliwork: long-press move === */
.editor>.lw-float-img{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.editor>.lw-float-img.lw-selected{touch-action:auto;cursor:pointer}
.editor>.lw-float-img.lw-moving{touch-action:none;cursor:grabbing;box-shadow:0 14px 34px rgba(15,23,42,.35);transform:scale(1.02);transition:transform .12s ease,box-shadow .12s ease}
.lw-move-icon{position:fixed;z-index:100002;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:var(--app-accent,#00b8d9);box-shadow:0 6px 18px rgba(15,23,42,.3);display:grid;place-items:center;pointer-events:none;opacity:.92}
.lw-move-icon[hidden]{display:none!important}
.lw-move-icon svg{width:36px;height:36px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* === Lilliwork: table size picker === */
.lw-grid-picker{display:flex;flex-direction:column;gap:6px;padding:6px 2px 2px}
.lw-grid-picker[hidden]{display:none!important}
.lw-grid-size{font-size:13px;font-weight:600;color:#27384b;text-align:center;font-variant-numeric:tabular-nums}
.lw-grid{display:grid;grid-template-columns:repeat(var(--cols,6),1fr);gap:4px;touch-action:none}
.lw-grid button{aspect-ratio:1;min-height:26px;padding:0;border:1px solid #cfd8e1;border-radius:4px;background:#fff}
.lw-grid button.on{background:var(--app-tint,#eefbfd);border-color:var(--app-accent,#00b8d9)}

/* === Lilliwork: Calc number pad (Lilli style) === */
.lw-keypad{position:fixed;left:0;right:0;bottom:0;z-index:100000;display:flex;flex-direction:column;gap:6px;padding:6px 8px calc(8px + env(safe-area-inset-bottom));background:#0d1b2a;border-top:2px solid var(--app-accent,#00c853);border-radius:16px 16px 0 0;box-shadow:0 -10px 28px rgba(7,20,33,.35);animation:lw-sheet-up .18s cubic-bezier(.2,.7,.25,1) both;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.lw-keypad[hidden]{display:none!important}
.lw-kp-head{display:flex;align-items:center;gap:8px;min-height:30px;padding:0 2px;color:#cfe3ea;font-size:13px}
.lw-kp-lilli{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px}
.lw-kp-lilli svg{width:22px;height:22px;fill:none;stroke:#00e5ff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px rgba(0,229,255,.55))}
.lw-kp-addr{padding:2px 7px;border-radius:6px;background:rgba(0,200,83,.16);color:#7ef0a8;font-weight:700;font-variant-numeric:tabular-nums}
.lw-kp-preview{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:15px;font-variant-numeric:tabular-nums}
.lw-kp-close{width:36px;height:30px;border:0;border-radius:8px;background:rgba(255,255,255,.08);color:#cfe3ea;display:grid;place-items:center}
.lw-kp-close svg{width:12px;height:8px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lw-kp-hint{margin:-2px 2px 0;color:#7ef0a8;font-size:12px}
.lw-kp-hint[hidden]{display:none}
.lw-kp-keys{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.lw-kp-bottom{display:grid;grid-template-columns:repeat(5,1fr) 1.6fr;gap:6px}
.lw-k{height:46px;border:0;border-radius:11px;font:inherit;font-size:21px;font-weight:600;font-variant-numeric:tabular-nums;color:#0d1b2a;background:#fff;box-shadow:0 1px 0 rgba(0,0,0,.25);cursor:pointer}
.lw-k:active{transform:translateY(1px);filter:brightness(.92)}
.lw-k.op{background:#1d3347;color:#7ef0a8}
.lw-k.del{background:#1d3347;color:#ffb4a8}
.lw-k.eq{background:var(--app-accent,#00c853);color:#fff}
.lw-k.fn{background:#1d3347;color:#cfe3ea;font-size:15px}
.lw-k.enter{background:linear-gradient(135deg,#00e5ff,#00c853);color:#0d1b2a;font-size:22px}
.lw-kp-chip{position:fixed;right:12px;z-index:100001;height:40px;padding:0 16px;border:0;border-radius:20px;background:#0d1b2a;color:#7ef0a8;font-weight:700;font-size:15px;box-shadow:0 4px 14px rgba(7,20,33,.35);border:2px solid var(--app-accent,#00c853)}
.lw-kp-chip[hidden]{display:none!important}
@media (min-width:700px){.lw-keypad{left:auto;right:16px;bottom:16px;width:360px;border-radius:16px;border:2px solid var(--app-accent,#00c853)}}

/* === Lilliwork: Σ two-tap sum and hints === */
.lw-kp-hint.lw-sum{margin:0;padding:7px 10px;border-radius:9px;background:rgba(0,200,83,.18);color:#b8f5cf;font-size:14px;font-weight:600}
.lw-keypad.lw-sum-active [data-k="sum"]{background:var(--app-accent,#00c853);color:#fff}
.sheet-cell.lw-sum-mark{outline:3px solid var(--app-accent,#00c853)!important;outline-offset:-3px;background:rgba(0,200,83,.12)!important}
.sheet-cell.lw-sum-range{background:rgba(0,200,83,.16)!important;transition:background .4s ease}

/* === Lilliwork: friendly calculation errors === */
.sheet-cell.is-error{color:#d32f2f!important;font-weight:700;text-align:center}
.lw-kp-hint.lw-err{margin:0;padding:7px 10px;border-radius:9px;background:rgba(239,83,80,.18);color:#ffcdd2;font-size:14px;font-weight:600}

/* === Lilliwork: Calc toolbar (Write style) === */
.mobile-calc-toolbar.lw-ctoolbar{justify-content:flex-start;gap:4px}
.mobile-calc-toolbar.lw-ctoolbar>.lw-ctb{flex:1 1 30px!important;min-width:0;max-width:none;height:34px;display:inline-flex;align-items:center;justify-content:center;margin:0!important;padding:0}
.mobile-calc-toolbar.lw-ctoolbar>.lw-caret{flex:0 0 16px!important;width:16px!important;min-width:16px!important;margin-left:-3px!important}
@media (min-width:600px){.mobile-calc-toolbar.lw-ctoolbar>.lw-ctb:not(.lw-caret){flex:0 0 44px!important}}
.mobile-calc-toolbar.lw-ctoolbar>.lw-ctb svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mobile-calc-toolbar.lw-ctoolbar>.lw-caret svg{width:9px;height:9px}
.mobile-calc-toolbar.lw-ctoolbar>.lw-bold b{font-size:16px}
.mobile-calc-toolbar.lw-ctoolbar>.is-active,.lw-pop .is-active{color:var(--app-accent,#00c853)}
.mobile-calc-toolbar.lw-ctoolbar>.lw-bold.is-active{background:var(--app-tint,#effcf4)!important;border-color:var(--app-accent,#00c853)!important}
.lw-num-glyph{font-size:13px;font-weight:700;letter-spacing:-.3px}
.lw-fill-bar{display:block;width:18px;height:5px;border-radius:2px}
.lw-fill-bar.is-empty{background:transparent!important;box-shadow:inset 0 0 0 1px #94a3b8}
.lw-calc-color .lw-row{gap:6px}
.lw-calc-color .lw-custom-color{flex:1;min-width:0;font-size:12px!important;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lw-sw.is-active{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--app-accent,#00c853)}
.lw-hidden-color{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}
.lw-fmt-sample{display:inline-block;min-width:86px;font-weight:700;font-variant-numeric:tabular-nums;color:#1f2a33}
.lw-num-panel .lw-ins-row,.lw-sum-panel .lw-ins-row,.lw-grid-panel .lw-ins-row{height:40px;font-size:14px!important}
.lw-ins-row .lw-row-txt{color:#334155}
.lw-dec-row{justify-content:space-between;border-top:1px solid #edf1f5;padding-top:8px}
.lw-dec-row .lw-label-row{flex:1}
.lw-dec{height:36px;padding:0 10px;border:1px solid #dbe1e8;border-radius:8px;background:#fff;font-weight:700!important;font-variant-numeric:tabular-nums}
.lw-more-fn{border-top:1px solid #edf1f5;padding-top:8px;margin-top:2px}
.lw-fn-name{font-size:12px;letter-spacing:.2px;color:var(--app-accent,#00c853)!important}
.lw-sum-panel .lw-fmt-sample{min-width:28px;text-align:center;font-size:16px}
.lw-sum-panel .lw-fn-name{min-width:86px;text-align:left}
.lw-grid-panel{width:min(240px,calc(100vw - 8px))}
.lw-grid-panel .lw-ins-row svg,.lw-sum-panel .lw-ins-row svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.lw-danger-row,.lw-danger-row .lw-row-txt{color:#c62828!important}
.lw-calc-bar .lw-btn-txt{margin-left:5px;font-size:12px;font-weight:600;white-space:nowrap}
.lw-calc-bar .lw-btn-sym{font-size:17px;font-weight:700}
.lw-undo-menu svg,.lw-b-menu svg,.lw-calign-menu svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#calc-context-menu{display:none!important}
#calc-range-handle{width:44px!important;height:44px!important;border:0;background:transparent;box-shadow:none;touch-action:none}#calc-range-handle span{width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:#00E5FF;box-shadow:0 1px 4px rgba(15,23,42,.35)}
/* lw-ctb-match: same look as the Write toolbar */ .mobile-calc-toolbar.lw-ctoolbar>.lw-ctb{background:rgba(255,255,255,.78)!important;border:0!important;height:36px!important;color:#334155!important;border-radius:8px!important} .mobile-calc-toolbar.lw-ctoolbar>.lw-ctb.is-active{color:var(--app-accent,#00c853)!important} .mobile-calc-toolbar.lw-ctoolbar>.lw-bold.is-active{background:var(--app-tint,#effcf4)!important;box-shadow:inset 0 0 0 1.5px var(--app-accent,#00c853)}
/* === Lilliwork: Show toolbar (Write style) === */
.show-toolbar.ls-toolbar{justify-content:flex-start;gap:4px;overflow:visible}
.show-toolbar.ls-toolbar>.ls-btn{flex:1 1 30px!important;width:auto!important;min-width:0;max-width:none;height:36px!important;display:inline-flex!important;align-items:center;justify-content:center;margin:0!important;padding:0!important;background:rgba(255,255,255,.78)!important;border:0!important;border-radius:8px!important;color:#334155!important;font-size:16px}
.show-toolbar.ls-toolbar>.lw-caret{flex:0 0 16px!important;width:16px!important;min-width:16px!important;margin-left:-3px!important}
@media (min-width:600px){.show-toolbar.ls-toolbar>.ls-btn:not(.lw-caret){flex:0 0 44px!important}}
.show-toolbar.ls-toolbar>.ls-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.show-toolbar.ls-toolbar>.lw-caret svg{width:9px;height:9px}
.show-toolbar.ls-toolbar>.ls-play{color:var(--app-accent,#9b5cff)!important}
.show-toolbar.ls-toolbar>.ls-play svg{fill:currentColor;stroke-width:1.2}
.show-toolbar.ls-toolbar>.ls-add svg{stroke-width:2}
.show-toolbar.ls-toolbar>[aria-expanded="true"]{color:var(--app-accent,#9b5cff)!important;background:var(--app-tint,#f4eeff)!important}
.ls-color .ls-color-bar{display:block;width:18px;height:4px;border-radius:2px;background:#7C3AED;margin-top:1px}
.ls-color{flex-direction:column}
.lw-sw.ls-white{box-shadow:inset 0 0 0 1px #cbd5e1}
.lw-sw.ls-white.is-active{box-shadow:inset 0 0 0 1px #cbd5e1,0 0 0 2px #fff,0 0 0 4px var(--app-accent,#9b5cff)}
.ls-slides-panel,.ls-insert-panel{width:min(250px,calc(100vw - 8px))}
.ls-slides-panel .lw-ins-row,.ls-insert-panel .lw-ins-row{height:40px;font-size:14px!important}
.ls-slides-panel svg,.ls-insert-panel svg,.ls-aa-panel svg,.ls-b-menu svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ls-slides-panel .lw-ins-row:disabled{opacity:.35;pointer-events:none}
.ls-sep-top{border-top:1px solid #edf1f5!important;margin-top:2px;padding-top:2px}
.ls-aa-panel{width:auto}
.ls-aa-panel .lw-row{gap:6px}
.ls-aa-panel .lw-row+.lw-row{margin-top:6px}
.ls-aa-panel button{min-width:42px;height:40px;border:1px solid #e3e8ef;border-radius:8px;background:#fff;color:#334155;font-weight:700;display:grid;place-items:center;padding:0 8px}
.ls-slide-panel{width:min(270px,calc(100vw - 8px))}
.ls-slide-panel .lw-label-row{margin-top:4px}
.ls-layouts{display:flex;flex-direction:column;gap:2px}
.ls-layout{display:flex;align-items:center;gap:10px;height:38px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:#334155;font-size:14px;text-align:left}
.ls-layout.is-active{background:var(--app-tint,#f4eeff);color:var(--app-accent,#9b5cff)}
.ls-lay-ico{width:26px;height:17px;border:1.5px solid currentColor;border-radius:3px;display:grid;padding:2px;gap:2px;grid-template-columns:1fr 1fr;grid-template-rows:4px 1fr}
.ls-lay-ico i{background:currentColor;opacity:.55;border-radius:1px}
.ls-lay-ico i:first-child{grid-column:1/3;opacity:.9}
.ls-lay-title{grid-template-rows:1fr}.ls-lay-title i:first-child{align-self:center;height:4px}.ls-lay-title i:not(:first-child){display:none}
.ls-lay-content i:nth-child(2){grid-column:1/3}.ls-lay-content i:nth-child(3){display:none}
.ls-bg{flex-wrap:wrap}
.ls-transition{width:100%;height:38px;border:1px solid #e3e8ef;border-radius:8px;background:#fff;color:#334155;padding:0 8px;font-size:14px}
/* floating bar on the slide */
.slide-context-toolbar.ls-context{gap:3px}
.slide-context-toolbar.ls-context button{display:inline-grid;place-items:center}
.slide-context-toolbar.ls-context svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.slide-context-toolbar.ls-context button:disabled{display:none}
.ls-ctx-del{min-width:40px;height:40px;border:0;border-radius:8px;background:#fff1f1;color:#c62828}
.ls-ctx-del[hidden]{display:none!important}
.slide-context-toolbar.ls-ctx-text .context-text-tools{display:none!important}
/* floating bar no longer pushes the slide down (taps landed on the wrong text) */
.show-view .slide-context-toolbar.ls-context{position:absolute!important;top:calc(var(--ls-tb-h,46px) + 6px)!important;left:50%!important;transform:translateX(-50%);margin:0!important}
/* === Lilliwork: presenting = exactly your slide, 16:9 === */
#present-overlay.ls-present #present-content{display:none!important}
#present-overlay.ls-present{display:flex;align-items:center;justify-content:center;padding-bottom:56px;box-sizing:border-box}
#present-overlay.ls-present[hidden]{display:none!important}
.ls-present-stage{position:relative;flex:0 0 auto;overflow:hidden;border-radius:4px;box-shadow:0 10px 40px rgba(0,0,0,.45);cursor:pointer;touch-action:pan-y}
.ls-present-clone{position:absolute!important;left:0;top:0;transform-origin:0 0!important;aspect-ratio:auto!important;border-radius:0!important;pointer-events:none;user-select:none}
.ls-present-clone *{resize:none!important;caret-color:transparent}
.ls-present-clone .ls-empty:before,.ls-present-clone .ls-empty::placeholder{content:none!important;color:transparent!important}
.ls-present-clone .slide-shape{outline:0!important}
.ls-present .present-nav{z-index:3;bottom:14px}
.ls-present .present-close{z-index:3}
.ls-present-stage.ls-fade{animation:show-fade .3s ease both}
.ls-present-stage.ls-next{animation:show-left-next .34s cubic-bezier(.2,.7,.3,1) both}
.ls-present-stage.ls-prev{animation:show-left-prev .34s cubic-bezier(.2,.7,.3,1) both}
/* phone held sideways: slide list on the left, slide gets the room */
@media (orientation:landscape) and (max-height:500px){
.show-view{flex-direction:row!important}
.show-view .slide-rail{order:0!important;width:118px!important;flex:0 0 118px!important;height:auto!important;max-height:none!important;border-top:0!important;border-right:1px solid rgba(148,163,184,.25)!important}
.show-view .slide-rail-head{height:34px!important;flex:0 0 34px!important;padding:0 6px!important;gap:4px!important;font-size:10px!important}
.show-view .slide-list{flex-direction:column!important;overflow-x:hidden!important;overflow-y:auto!important;padding:2px 6px 8px!important;gap:4px!important}
.show-view .slide-thumb{width:100%!important;flex:0 0 auto!important;min-width:0!important}
.show-view .show-stage{flex:1 1 auto!important;min-width:0!important;height:auto!important}
.show-view .slide-work-area{padding:8px!important}
}
.ls-slide-panel .ls-layout{width:100%!important;justify-content:flex-start!important}
.ls-slide-panel .ls-layout .lw-row-txt{flex:1;text-align:left}
.slide-canvas{justify-content:safe center!important}
.ls-layout.is-active{background:rgba(155,92,255,.12)!important;color:#7c3aed!important}

/* ===== Lilliwork: compact ☰ menu (file-menu.js) ===== */
.lw-filemenu{position:fixed;z-index:100002;width:min(272px,calc(100vw - 16px));overflow:auto;overscroll-behavior:contain;padding:6px;border:1px solid #dbe1e8;border-radius:12px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.2);font-family:Roboto,system-ui,sans-serif}
.lw-filemenu[hidden]{display:none!important}
.lw-fm-item{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:#27384b;font:inherit;font-size:15px;font-weight:500;text-align:left;cursor:pointer}
.lw-fm-item:hover,.lw-fm-item:active,.lw-fm-item:focus-visible{background:#f1f5f9;outline:none}
.lw-fm-icon{flex:0 0 24px;width:24px;height:24px;display:grid;place-items:center}
.lw-fm-icon svg{width:24px!important;height:24px!important;flex:none!important}
.lw-fm-icon svg:not([style]){fill:none;stroke:#00a8bd;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.lw-fm-lang .lw-fm-icon svg{width:30px!important;height:22px!important;stroke:initial}
.lw-fm-label{flex:1;min-width:0}
.lw-fm-chev{width:12px;height:12px;flex:none;fill:none;stroke:#94a3b8;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s ease}
.lw-fm-item[aria-expanded="true"] .lw-fm-chev{transform:rotate(90deg)}
.lw-fm-sub{margin:0 0 4px 22px;padding-left:12px;border-left:2px solid #e2e8f0}
.lw-fm-sub[hidden]{display:none!important}
.lw-fm-subitem{min-height:40px;font-size:14px}
.lw-fm-subitem .lw-fm-icon:empty{display:none}
.lw-fm-note{padding:9px 10px;color:#64748b;font-size:13px}
.lw-fm-version{padding-top:4px}
.lw-fm-sep{height:1px;margin:5px 8px;background:#e2e8f0}
.lw-fm-soon{flex:none;padding:2px 7px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:11px;font-weight:600}
.lw-fm-item.is-soon{color:#94a3b8;cursor:default}
.lw-fm-item.is-soon:hover,.lw-fm-item.is-soon:active{background:transparent}
.lw-fm-item.is-soon .lw-fm-icon{opacity:.45}
.lw-fm-premium{color:#c2410c;font-weight:600}
.lw-fm-premium .lw-fm-icon svg{stroke:#ea580c!important;fill:#ffedd5!important}

/* ===== Lilliwork Show: drawn shapes + object bar (show-objects.js) ===== */
.slide-shape.lw-vshape{border:0!important;background:transparent!important;color:inherit}
.slide-shape.lw-vshape.shape-arrow{font-size:0!important}
.slide-shape.shape-text.is-active{outline:1.5px dashed #9b5cff;outline-offset:2px}
.lw-shape-svg{position:absolute;left:0;top:0;overflow:visible;pointer-events:none;z-index:0}
.lw-shape-textwrap{position:absolute;z-index:1;display:flex;flex-direction:column;justify-content:center;pointer-events:none}
.lw-shape-ed{pointer-events:auto;outline:none;min-height:1.3em;text-align:center;font-size:clamp(11px,2vw,18px);line-height:1.3;word-break:break-word;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}
.slide-shape.shape-text .shape-text-content{position:relative;z-index:1;padding:4px 6px;outline:none;line-height:1.3;overflow-wrap:anywhere}
.lw-tail-handle{position:absolute;z-index:6;display:none;width:16px;height:16px;margin:-8px 0 0 -8px;border:3px solid #9b5cff;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.25);touch-action:none;cursor:grab}
.lw-tail-handle::before{content:"";position:absolute;inset:-12px}
.slide-shape.is-active .lw-tail-handle{display:block}
.ls-present-clone .lw-tail-handle,.ls-present-clone .lw-shape-ed:empty{display:none!important}
#slide-context-toolbar.lw-ob{display:flex;align-items:center;gap:3px;padding:4px!important;transition:none!important}
#slide-context-toolbar.lw-ob[hidden]{display:none!important}
.lw-ob-bar{display:flex;align-items:center;gap:2px}
.lw-ob-bar:empty{display:none}
.lw-ob-btn{width:40px;height:40px;display:grid;place-items:center;padding:0;border:0;border-radius:9px;background:transparent;color:#27384b;cursor:pointer}
.lw-ob-btn:active,.lw-ob-btn[aria-expanded="true"]{background:var(--app-tint,#f6f1ff);color:#7c3aed}
.lw-ob-danger{color:#dc2626!important}
.lw-ob-ico{position:relative;display:grid;place-items:center}
.lw-ob-bar-color{position:absolute;left:0;right:0;bottom:-5px;height:4px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(15,23,42,.18)}
#slide-context-toolbar.lw-ob #context-text-drag,#slide-context-toolbar.lw-ob #context-text-resize{width:40px;height:40px;display:inline-grid;place-items:center;touch-action:none}
.lw-ob-panel svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.lw-ob-row{display:flex;align-items:center;gap:10px}
.lw-ob-row .lw-ob-custom{flex:1}
.lw-ob-slider{display:flex;align-items:center;gap:10px}
.lw-ob-slider input{flex:1;accent-color:#9b5cff}
.lw-ob-slider span{width:40px;text-align:right;font-variant-numeric:tabular-nums;color:#526175}
.lw-ob-choices{display:flex;gap:6px}
.lw-ob-choice{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;border:1px solid #dbe1e8;border-radius:8px;background:#fff;color:#334155;font-size:11px!important}
.lw-ob-shapes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.lw-ob-shape{height:48px;display:grid;place-items:center;border:1px solid #dbe1e8;border-radius:8px;background:#fff;color:#334155}
.lw-ob-shape svg{width:28px;height:28px}
.lw-ob-panel .lw-ins-row{width:100%}
.lw-ob-hint{position:fixed;z-index:100003;padding:6px 10px;border-radius:8px;background:#1f2937;color:#fff;font-size:12px;pointer-events:none;white-space:nowrap}
.lw-ob-hint[hidden]{display:none}
.lw-ob-panel{--app-accent:#9b5cff;--app-tint:#f6f1ff}
.lw-ob-panel .lw-ob-choice.is-active,.lw-ob-panel .lw-ob-shape.is-active{color:#7c3aed}

/* ===== Lilliwork Show: slide list (show-rail.js) ===== */
.lw-rail .slide-rail-head,.lw-rail #slide-list{display:none!important}
.slide-rail.lw-rail .lw-rail-list{padding-left:10px;align-items:center}
.lw-thumb{position:relative;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;transition:transform .12s ease}
.lw-thumb .lw-thumb-frame{position:relative;display:block;height:auto!important;aspect-ratio:16/9;flex:1;min-width:0;padding:0!important;overflow:hidden;border:1px solid #dbe1e8;border-radius:6px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.lw-thumb-frame>.lw-thumb-clone{position:absolute!important;left:0;top:0;transform-origin:0 0!important;pointer-events:none;box-shadow:none!important;border:0!important;border-radius:0!important}
.lw-thumb.is-active{background:#f6f1ff!important;color:#5b21b6!important}
.lw-thumb.is-active .lw-thumb-frame{border-color:#9b5cff!important;box-shadow:0 0 0 2px #9b5cff!important}
.lw-thumb.is-held{transform:scale(1.05);z-index:2}
.lw-thumb.is-held .lw-thumb-frame{box-shadow:0 8px 18px rgba(124,58,237,.35),0 0 0 2px #9b5cff!important}
.lw-thumb.is-dragging{opacity:.3}
.lw-thumb-ghost{position:fixed!important;z-index:100005;margin:0!important;pointer-events:none;opacity:.95;transform:scale(1.06);border-radius:8px;background:#fff!important;box-shadow:0 12px 26px rgba(15,23,42,.3)}
.lw-rail-list .lw-drop-before{box-shadow:-6px 0 0 -3px #9b5cff}
.lw-rail-list.lw-v .lw-drop-before{box-shadow:0 -6px 0 -3px #9b5cff}
.lw-rail-list.lw-drop-end .lw-rail-add{box-shadow:-6px 0 0 -3px #9b5cff}
.lw-rail-list.lw-v.lw-drop-end .lw-rail-add{box-shadow:0 -6px 0 -3px #9b5cff}
.lw-rail-add{flex:0 0 auto;align-self:center;width:64px;height:56px;margin:0 6px 0 2px;display:grid;place-items:center;padding:0;border:2px dashed #c4b5fd;border-radius:8px;background:#faf7ff;color:#7c3aed;cursor:pointer}
.lw-rail-add:active{background:#f1eaff}
.lw-rail-list.lw-v .lw-rail-add{width:auto;align-self:stretch;height:44px;margin:4px 2px}
.lw-rail-add svg,.lw-rail-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lw-rail-bar{position:fixed;z-index:100004;display:flex;gap:2px;padding:4px;border:1px solid #e4dcf7;border-radius:12px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.18)}
.lw-rail-bar[hidden]{display:none!important}
.lw-rail-btn{width:42px;height:42px;display:grid;place-items:center;padding:0;border:0;border-radius:9px;background:transparent;color:#27384b;cursor:pointer}
.lw-rail-btn:active{background:#f6f1ff}
.lw-rail-btn:disabled{opacity:.3}
.lw-rail-danger{color:#dc2626}
.lw-snack{position:fixed;z-index:100006;left:50%;bottom:calc(124px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:14px;max-width:calc(100vw - 32px);padding:8px 8px 8px 16px;border-radius:12px;background:#1f2937;color:#fff;font-size:14px;box-shadow:0 8px 22px rgba(15,23,42,.3);white-space:nowrap}
.lw-snack[hidden]{display:none!important}
.lw-snack-undo{padding:8px 10px;border:0;border-radius:8px;background:transparent;color:#c4b5fd;font:inherit;font-weight:700;cursor:pointer}
/* slides are added from the list now: no +▾ in the toolbar */
.show-toolbar.ls-toolbar>.ls-btn.ls-add,.show-toolbar.ls-toolbar>.ls-btn.lw-caret[data-ls-label="slides"]{display:none!important}
@media (orientation:landscape) and (max-height:520px){.lw-snack{bottom:calc(14px + env(safe-area-inset-bottom))}}

.lw-fmt-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding-bottom:4px}.lw-fmt-chip{height:44px;min-width:58px;border:1px solid #dbe1e8;border-radius:10px;background:#fff;color:#1f2a33;font-size:17px!important;font-weight:700!important;font-variant-numeric:tabular-nums}.lw-fmt-chip.is-active{background:#ecfdf3!important;border-color:#22c55e!important;box-shadow:none!important;color:#166534!important}
.lw-sw,.color-swatch{-webkit-appearance:none!important;appearance:none!important;box-sizing:border-box!important;width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;min-height:34px!important;max-height:34px!important;flex:0 0 34px!important;aspect-ratio:1/1;padding:0!important;border-radius:50%!important;overflow:hidden;line-height:1}
.slide-canvas{overflow:visible!important}.ls-present-clone,.ls-present-stage{overflow:hidden!important}
.slide-shape.shape-image{border:0!important;background:transparent!important}.slide-shape.shape-image.is-active{outline:2px solid #7c3aed;outline-offset:0}.ls-present-clone .slide-shape.shape-image{outline:0!important}
.slide-shape .shape-resize,#slide-context-toolbar #context-text-resize{display:none!important}
.slide-shape .shape-move-handle{top:-46px!important;left:50%!important;transform:translateX(-50%);min-width:34px!important;height:26px!important}
.lw-hframe{position:fixed;z-index:60;pointer-events:none;outline:1.5px solid #9b5cff;outline-offset:0}.lw-hframe[hidden]{display:none!important}
.lw-hh{position:absolute;width:36px;height:36px;margin:-18px 0 0 -18px;pointer-events:auto;touch-action:none;cursor:pointer}
.lw-hh::after{content:"";position:absolute;left:11px;top:11px;width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:#9b5cff;box-sizing:border-box;box-shadow:0 1px 4px rgba(15,23,42,.35)}
.lw-hh-nw{left:0;top:0;cursor:nwse-resize}.lw-hh-n{left:50%;top:0;cursor:ns-resize}.lw-hh-ne{left:100%;top:0;cursor:nesw-resize}.lw-hh-e{left:100%;top:50%;cursor:ew-resize}.lw-hh-se{left:100%;top:100%;cursor:nwse-resize}.lw-hh-s{left:50%;top:100%;cursor:ns-resize}.lw-hh-sw{left:0;top:100%;cursor:nesw-resize}.lw-hh-w{left:0;top:50%;cursor:ew-resize}
.lw-hframe.is-sides-only .lw-hh-nw,.lw-hframe.is-sides-only .lw-hh-ne,.lw-hframe.is-sides-only .lw-hh-sw,.lw-hframe.is-sides-only .lw-hh-se,.lw-hframe.is-sides-only .lw-hh-n,.lw-hframe.is-sides-only .lw-hh-s{display:none}
body.print-active .lw-hframe{display:none!important}
.slide-canvas textarea,.slide-canvas [contenteditable]{resize:none!important}

.editor>.lw-float-img.lw-selected,.editor>.lw-float-img.lw-moving{z-index:3!important;touch-action:none;cursor:move}

#lw-print{display:none}
@media print{body.lw-printing>*:not(#lw-print){display:none!important}html:has(body.lw-printing),body.lw-printing{height:auto!important;min-height:0!important;overflow:visible!important;background:#fff!important}body.lw-printing #lw-print{display:block!important}#lw-print *{print-color-adjust:exact;-webkit-print-color-adjust:exact}.lw-print-doc{position:relative!important;min-height:0!important;height:auto!important;margin:0!important;color:#242424;background:#fff;outline:none}.lw-print-doc .lw-print-break{border:0!important;height:0!important;margin:0!important;break-after:page;page-break-after:always}.lw-print-doc .lw-print-break:after{display:none!important}.lw-print-sheet{border-collapse:collapse;table-layout:fixed;font:12px Roboto,Arial,sans-serif;color:#222}.lw-print-sheet td{border:1px solid #bbb;padding:3px 6px;height:20px;overflow:hidden;white-space:nowrap}.lw-print-slide{break-after:page;page-break-after:always;break-inside:avoid}.lw-print-slide:last-child{break-after:auto;page-break-after:auto}.lw-print-slide .slide-canvas{overflow:hidden!important;box-shadow:none!important;border:1px solid #ddd!important}}

.lw-notice-overlay{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:20px;background:rgba(13,27,42,.55)}
.lw-notice{width:min(100%,380px);padding:20px 20px 16px;border-radius:16px;background:#fff;color:#1f2a33;box-shadow:0 12px 40px rgba(0,0,0,.25);font-family:Roboto,system-ui,sans-serif}
.lw-notice h2{margin:0 0 8px;font-size:17px;font-weight:700}.lw-notice p{margin:0 0 14px;font-size:14px;line-height:1.5;color:#475569}
.lw-notice-never{display:flex;align-items:center;gap:8px;margin:0 0 14px;font-size:13px;color:#475569}.lw-notice-never input{width:18px;height:18px;accent-color:#00c2d8}
.lw-notice-ok{width:100%;height:44px;border:0;border-radius:10px;background:#0d1b2a;color:#fff;font-size:15px;font-weight:600}
.lw-notice-bar{position:fixed;left:12px;right:12px;bottom:16px;z-index:9999;display:flex;align-items:center;gap:10px;padding:10px 10px 10px 14px;border-radius:12px;background:#0d1b2a;color:#fff;font:13px/1.4 Roboto,system-ui,sans-serif;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.lw-notice-bar[hidden]{display:none!important}.lw-notice-bar span{flex:1}.lw-notice-bar button{width:32px;height:32px;flex:0 0 32px;border:0;border-radius:50%;background:#ffffff1f;color:#fff;font-size:18px}

.lw-pm-now{margin-bottom:6px!important;color:#e6f4f5!important;font-weight:600}.lw-pm-offer{margin-bottom:8px!important}
.lw-pm-list{margin:0 0 18px;padding:0 0 0 20px;color:#d6e6e8;font-size:14px;line-height:1.7}.lw-pm-list li::marker{color:#00E5FF}
.premium-unlock[disabled]{opacity:.55;cursor:default}
.lw-pm-left{margin:12px 0 0;text-align:center;color:#00E5FF;font-size:13px;font-weight:600}.lw-pm-left[hidden]{display:none}
.lw-pm-status{margin:8px 0 0;min-height:1em;text-align:center;color:#9be7a8;font-size:13px}

.slide-canvas[data-template="lilliwork-horizon"]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1600 900%22 preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient id=%22h%22 x1=%220%22 x2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%2300E5FF%22/%3E%3Cstop offset=%221%22 stop-color=%22%2322C55E%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width=%221600%22 height=%22900%22 fill=%22%23fff%22/%3E%3Cpath d=%22M0 750 C 400 650 800 850 1200 740 S 1600 700 1600 700 V900 H0Z%22 fill=%22url%28%23h%29%22 opacity=%22.9%22/%3E%3Cpath d=%22M0 810 C 450 725 850 910 1250 800 S 1600 760 1600 760 V900 H0Z%22 fill=%22%230D1B2A%22 opacity=%22.88%22/%3E%3C/svg%3E")!important;background-size:100% 100%!important;background-repeat:no-repeat!important}.swatch-lilliwork-horizon{background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1600 900%22 preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient id=%22h%22 x1=%220%22 x2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%2300E5FF%22/%3E%3Cstop offset=%221%22 stop-color=%22%2322C55E%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width=%221600%22 height=%22900%22 fill=%22%23fff%22/%3E%3Cpath d=%22M0 750 C 400 650 800 850 1200 740 S 1600 700 1600 700 V900 H0Z%22 fill=%22url%28%23h%29%22 opacity=%22.9%22/%3E%3Cpath d=%22M0 810 C 450 725 850 910 1250 800 S 1600 760 1600 760 V900 H0Z%22 fill=%22%230D1B2A%22 opacity=%22.88%22/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;border-color:#cfe9f2}
.slide-canvas[data-template="lilliwork-aurora"]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1600 900%22 preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3CradialGradient id=%22a%22 cx=%22.85%22 cy=%22.1%22 r=%22.7%22%3E%3Cstop offset=%220%22 stop-color=%22%2300E5FF%22 stop-opacity=%22.5%22/%3E%3Cstop offset=%221%22 stop-color=%22%2300E5FF%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3CradialGradient id=%22b%22 cx=%22.62%22 cy=%22.04%22 r=%22.5%22%3E%3Cstop offset=%220%22 stop-color=%22%2322C55E%22 stop-opacity=%22.42%22/%3E%3Cstop offset=%221%22 stop-color=%22%2322C55E%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3CradialGradient id=%22c%22 cx=%22.05%22 cy=%221%22 r=%22.6%22%3E%3Cstop offset=%220%22 stop-color=%22%237C3AED%22 stop-opacity=%22.18%22/%3E%3Cstop offset=%221%22 stop-color=%22%237C3AED%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width=%221600%22 height=%22900%22 fill=%22%230B1622%22/%3E%3Crect width=%221600%22 height=%22900%22 fill=%22url%28%23c%29%22/%3E%3Crect width=%221600%22 height=%22900%22 fill=%22url%28%23a%29%22/%3E%3Crect width=%221600%22 height=%22900%22 fill=%22url%28%23b%29%22/%3E%3C/svg%3E")!important;background-size:100% 100%!important;background-repeat:no-repeat!important}.swatch-lilliwork-aurora{background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1600 900%22 preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3CradialGradient id=%22a%22 cx=%22.85%22 cy=%22.1%22 r=%22.7%22%3E%3Cstop offset=%220%22 stop-color=%22%2300E5FF%22 stop-opacity=%22.5%22/%3E%3Cstop offset=%221%22 stop-color=%22%2300E5FF%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3CradialGradient id=%22b%22 cx=%22.62%22 cy=%22.04%22 r=%22.5%22%3E%3Cstop offset=%220%22 stop-color=%22%2322C55E%22 stop-opacity=%22.42%22/%3E%3Cstop offset=%221%22 stop-color=%22%2322C55E%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3CradialGradient id=%22c%22 cx=%22.05%22 cy=%221%22 r=%22.6%22%3E%3Cstop offset=%220%22 stop-color=%22%237C3AED%22 stop-opacity=%22.18%22/%3E%3Cstop offset=%221%22 stop-color=%22%237C3AED%22 stop-opacity=%220%22/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width=%221600%22 height=%22900%22 fill=%22%230B1622%22/%3E%3Crect width=%221600%22 height=%22900%22 fill=%22url%28%23c%29%22/%3E%3Crect width=%221600%22 height=%22900%22 fill=%22url%28%23a%29%22/%3E%3Crect width=%221600%22 height=%22900%22 fill=%22url%28%23b%29%22/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;border-color:#cfe9f2}
.slide-canvas[data-template="lilliwork-fold"]{background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1600 900%22 preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient id=%22v%22 x1=%220%22 y1=%220%22 x2=%221%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%2300E5FF%22/%3E%3Cstop offset=%221%22 stop-color=%22%2322C55E%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width=%221600%22 height=%22900%22 fill=%22%23F7F9FB%22/%3E%3Cpath d=%22M1290 0 H1600 V310 Z%22 fill=%22url%28%23v%29%22/%3E%3Cpath d=%22M1290 0 L1600 310 L1335 262 Z%22 fill=%22%230D1B2A%22 opacity=%22.12%22/%3E%3Cpath d=%22M1290 0 L1600 310 L1360 232 Z%22 fill=%22%23ffffff%22/%3E%3Crect x=%22130%22 y=%22780%22 width=%221340%22 height=%224%22 fill=%22%23dfe5ea%22/%3E%3C/svg%3E")!important;background-size:100% 100%!important;background-repeat:no-repeat!important}.swatch-lilliwork-fold{background:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1600 900%22 preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient id=%22v%22 x1=%220%22 y1=%220%22 x2=%221%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%2300E5FF%22/%3E%3Cstop offset=%221%22 stop-color=%22%2322C55E%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width=%221600%22 height=%22900%22 fill=%22%23F7F9FB%22/%3E%3Cpath d=%22M1290 0 H1600 V310 Z%22 fill=%22url%28%23v%29%22/%3E%3Cpath d=%22M1290 0 L1600 310 L1335 262 Z%22 fill=%22%230D1B2A%22 opacity=%22.12%22/%3E%3Cpath d=%22M1290 0 L1600 310 L1360 232 Z%22 fill=%22%23ffffff%22/%3E%3Crect x=%22130%22 y=%22780%22 width=%221340%22 height=%224%22 fill=%22%23dfe5ea%22/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;border-color:#cfe9f2}
.slide-canvas[data-template="lilliwork-aurora"] .slide-title{letter-spacing:-.01em}

/* Room above the first line on touch screens, so Android's selection menu (copy/paste) does not cover the toolbar */
@media (pointer:coarse),(max-width:820px){.write-view .editor,.write-view .page.margins-narrow .editor,.write-view .page.margins-wide .editor{--lw-sel-room:48px;padding-top:72px}}
/* Calc: compact bars stay on one line; function names in the Σ menu do not run into their description */
.lw-calc-bar{flex-wrap:nowrap!important;max-width:calc(100vw - 8px);overflow-x:auto;scrollbar-width:none}.lw-calc-bar::-webkit-scrollbar{display:none}.lw-calc-bar>button{flex:0 0 auto}
.lw-sum-panel .lw-ins-row .lw-fn-name{flex:0 0 auto;min-width:0!important;max-width:58%;font-size:13px!important;overflow-wrap:anywhere;line-height:1.2}.lw-sum-panel .lw-ins-row .lw-row-txt{flex:1 1 auto;min-width:0}
/* ☰ menu: file name under "Save", recent files */
.lw-fm-hint{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:400;opacity:.65;margin-top:1px}
.lw-fm-recent .lw-fm-label{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lw-fm-recent .lw-fm-icon svg{width:18px;height:18px}

/* Lilliwork: the 8px space above the top bar is dark like the bar (was a light strip) */
.app-shell{background-image:linear-gradient(#0d1b2a,#0d1b2a);background-repeat:no-repeat;background-size:100% calc(8px + env(safe-area-inset-top,0px))}
.slide-title[hidden],.slide-body[hidden],.slide-column-editor[hidden]{display:none!important}
/* Lilliwork: main buttons as one bar with a gliding pill (lw-tabs.js) */
.app-sticky-top .app-switcher.lw-pill-nav{border-radius:999px!important;background:#0a1622!important;border:1px solid #21384f!important;box-shadow:none!important;padding:4px!important;gap:0!important;touch-action:pan-y;overflow:hidden}
.app-sticky-top .lw-pill-nav .app-tab,.app-sticky-top .lw-pill-nav .app-tab:hover,.app-sticky-top .lw-pill-nav .app-tab.is-active,.app-sticky-top .lw-pill-nav .app-tab:not(.is-active),.app-sticky-top .lw-pill-nav .app-tab:not(.is-active):active{position:relative;z-index:1;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:999px!important;color:#8fa6b8!important;transition:color .25s ease!important}
.app-sticky-top .lw-pill-nav .app-tab.is-active{color:#fff!important}
.app-sticky-top .lw-pill-nav .app-tab:before,.app-sticky-top .lw-pill-nav .app-tab:after{display:none!important}
.app-sticky-top .lw-pill-nav .app-tab .app-icon{color:inherit!important}
.app-sticky-top .lw-pill-nav .app-tab.is-active .app-icon{color:var(--app-accent)!important}
.lw-tab-pill{position:absolute;z-index:0;top:4px;bottom:4px;left:0;width:0;border-radius:999px;background:linear-gradient(180deg,var(--app-accent-glow),rgba(255,255,255,0) 75%),#15293b;box-shadow:inset 0 0 0 1.5px var(--app-accent),0 0 14px var(--app-accent-glow);transition:transform .32s cubic-bezier(.3,.8,.3,1),width .32s ease,box-shadow .3s,background .3s;pointer-events:none}
.lw-pill-nav.is-dragging .lw-tab-pill{transition:box-shadow .2s,background .2s}
@media(prefers-reduced-motion:reduce){.lw-tab-pill{transition:none}}

/* Lilli-logo optie C + knopvorm B (1 nov 2026): app-icoon-Lilli in hetzelfde vierkant als het ☰-menu; Premium = goud + sterretje */
.app-sticky-top .brand-premium-button{width:40px!important;height:40px!important;flex:0 0 40px!important;padding:0!important}
.app-sticky-top .brand-premium-mark{width:40px;height:40px;border-radius:9px;background:transparent;border:1px solid #294252;box-shadow:0 0 8px rgba(0,229,255,.22);transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}
.app-sticky-top .brand-premium-mark svg{width:19px;height:30px;stroke:none!important;filter:drop-shadow(0 0 1.5px rgba(0,242,254,.6))!important}
.app-sticky-top .premium-notification-dot{top:-3px;right:-3px}
body.lw-premium .app-sticky-top .brand-premium-mark{border-color:#ffc83d;background:linear-gradient(180deg,rgba(255,200,61,.16),rgba(255,200,61,.04));box-shadow:0 0 12px rgba(255,200,61,.5)}
body.lw-premium .app-sticky-top .brand-premium-mark::after{content:"★";position:absolute;right:-6px;bottom:-6px;width:16px;height:16px;border-radius:50%;background:#ffc83d;color:#3a2700;font:700 11px/16px system-ui,sans-serif;text-align:center;box-shadow:0 0 6px rgba(255,200,61,.8);pointer-events:none}
body.lw-premium .app-sticky-top .premium-notification-dot{display:none}


/* Calc: "tap again to type" tip (lw-celltap.js) */
.lw-celltap-tip{position:fixed;z-index:100008;max-width:220px;padding:7px 12px;border-radius:10px;background:#13263a;color:#eef7f8;border:1px solid var(--app-accent,#00c853);box-shadow:0 4px 14px rgba(0,0,0,.35);font-size:14px;pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .15s,transform .15s}
.lw-celltap-tip.is-visible{opacity:1;transform:none}
/* read-only cells (only selected): no text cursor */
#sheet-grid input.sheet-cell[readonly]{caret-color:transparent;-webkit-user-select:none;user-select:none}

/* Calc: grip to resize the selected column / row (drag it), and the width/height panel */
.sheet-col-head.is-selected,.sheet-row-head.is-selected{z-index:101!important}
.sheet-col-head.is-selected .col-resize-handle{right:-18px;width:36px}
.sheet-row-head.is-selected .row-resize-handle{left:auto;right:-14px;width:28px;bottom:-14px;height:28px}
.sheet-col-head.is-selected .grid-resize-handle::before,.sheet-row-head.is-selected .grid-resize-handle::before{content:"";position:absolute;left:50%;top:50%;width:24px;height:24px;transform:translate(-50%,-50%);z-index:2;box-sizing:border-box;border-radius:50%;background:#0d1b2a center/16px 16px no-repeat;border:2px solid var(--app-accent,#00c853);box-shadow:0 0 0 2px rgba(255,255,255,.9),0 3px 8px rgba(7,20,33,.35),0 0 10px rgba(0,242,254,.35);pointer-events:none}
.sheet-col-head.is-selected .grid-resize-handle::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f2fe' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M8.5 8.5 5 12l3.5 3.5M15.5 8.5 19 12l-3.5 3.5'/%3E%3C/svg%3E")}
.sheet-row-head.is-selected .grid-resize-handle::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f2fe' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M8.5 8.5 12 5l3.5 3.5M8.5 15.5 12 19l3.5-3.5'/%3E%3C/svg%3E")}
.sheet-col-head.is-selected .grid-resize-handle::after,.sheet-row-head.is-selected .grid-resize-handle::after{background:var(--app-accent,#00c853);opacity:1;z-index:1}
.lw-calc-bar .lw-size-val{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:0 4px;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}

/* Calc keypad: a clear display of what you type (whole formula, cursor, coloured references) */
.lw-kp-head .lw-kp-preview,.lw-kp-abcbar .lw-kp-preview{flex:1;min-width:0;height:34px;padding:0 10px;border:1.5px solid #2c4a5e;border-radius:9px;background:#071421;color:#fff;font-size:17px;line-height:31px;white-space:nowrap;overflow-x:auto;overflow-y:hidden;text-overflow:clip;scrollbar-width:none;font-variant-numeric:tabular-nums;box-shadow:inset 0 1px 3px rgba(0,0,0,.4)}
.lw-kp-head .lw-kp-preview::-webkit-scrollbar,.lw-kp-abcbar .lw-kp-preview::-webkit-scrollbar{display:none}
.lw-kp-preview.is-empty::before{content:attr(data-placeholder);color:#6f8a99;font-size:14px}
.lw-kp-preview.is-fresh{color:#cfe3ea}
.lw-kp-preview.is-fresh .lw-kp-caret{display:none}
.lw-kp-preview.is-fresh{background:#0e2a3d}
.lw-kp-caret{display:inline-block;width:2px;height:20px;margin:0 -1px;vertical-align:-4px;background:#00f2fe;animation:lw-kp-blink 1s steps(1) infinite}
.lw-kp-preview.is-empty .lw-kp-caret{margin-left:2px}
@keyframes lw-kp-blink{50%{opacity:0}}
.lw-kp-head{min-height:40px}
.lw-ref{border-radius:3px;padding:0 1px}
.lw-ref-0{color:#5ab0ff}.lw-ref-1{color:#ff8a65}.lw-ref-2{color:#c792ea}.lw-ref-3{color:#7ef0a8}
#sheet-grid .lw-ref-cell.lw-ref-c0{box-shadow:inset 0 0 0 2px #5ab0ff;background-color:rgba(90,176,255,.10)}
#sheet-grid .lw-ref-cell.lw-ref-c1{box-shadow:inset 0 0 0 2px #ff8a65;background-color:rgba(255,138,101,.10)}
#sheet-grid .lw-ref-cell.lw-ref-c2{box-shadow:inset 0 0 0 2px #c792ea;background-color:rgba(199,146,234,.10)}
#sheet-grid .lw-ref-cell.lw-ref-c3{box-shadow:inset 0 0 0 2px #2fbf71;background-color:rgba(47,191,113,.10)}
.lw-kp-abcbar{position:fixed;left:12px;right:96px;z-index:100001;display:flex;align-items:center;gap:8px;height:40px;padding:0 4px 0 6px;border-radius:20px;background:#0d1b2a;border:2px solid var(--app-accent,#00c853);box-shadow:0 4px 14px rgba(7,20,33,.35)}
.lw-kp-abcbar[hidden]{display:none!important}
.lw-kp-abcbar .lw-kp-preview{height:30px;line-height:27px;font-size:15px;border-radius:15px}

/* Calc formula bar (lw-fxbar.js): [B3] fx [ content ] — shown while a cell is selected, hidden while typing */
.lw-fxbar{display:flex;align-items:center;gap:6px;height:38px;flex:0 0 38px;padding:0 8px;background:#f4f8fa;border-bottom:1px solid #dfe5ea;position:relative;z-index:11}
.lw-fxbar[hidden]{display:none!important}
.lw-fxbar-addr{flex:0 0 auto;min-width:40px;padding:3px 7px;border-radius:6px;background:rgba(0,200,83,.14);color:#127a3d;font-weight:700;font-size:13px;text-align:center;font-variant-numeric:tabular-nums}
.lw-fxbar-fx{flex:0 0 34px;height:30px;border:1px solid #cfd9e0;border-radius:8px;background:#fff;color:#185ca8;font:italic 700 14px/1 Georgia,serif;cursor:pointer}
.lw-fxbar-val{flex:1;min-width:0;height:30px;padding:0 10px;border:1px solid #cfd9e0;border-radius:8px;background:#fff;color:#1d2a35;font-size:15px;line-height:28px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:text}
.lw-fxbar-val.is-formula{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;color:#185ca8}
.lw-fxbar-val.is-empty::before{content:attr(data-placeholder);color:#8a99a6;font-style:italic}

/* Pinch zoom label (lw-zoom.js): tap = back to 100 % */
.lw-zoom-label{position:fixed;left:50%;transform:translateX(-50%);z-index:100009;height:32px;padding:0 14px;border-radius:16px;border:2px solid var(--app-accent,#00c853);background:#0d1b2a;color:#7ef0a8;font:700 14px/28px system-ui,sans-serif;font-variant-numeric:tabular-nums;box-shadow:0 4px 14px rgba(7,20,33,.35)}
.lw-zoom-label[hidden]{display:none!important}

/* Developer info: the same neon Lilli as the app icon (dark square like the logo button) */
.developer-brand-icon{border:1px solid #294252;border-radius:10px;background:#0d1b2a;box-shadow:0 0 0 3px #e4f5f7,0 0 10px rgba(0,242,254,.35)}
.developer-brand-icon svg{width:26px;height:32px;filter:drop-shadow(0 0 3px rgba(0,242,254,.55))}
.developer-title-lockup{min-width:0}
.developer-title-lockup h2{min-width:0;overflow-wrap:anywhere;hyphens:auto;-webkit-hyphens:auto}
@media (max-width:480px){.developer-title-lockup h2{font-size:19px;line-height:1.2}}

/* Calc keypad: the neon Lilli with a ± badge, and a little hop on Enter */
.lw-kp-lilli{position:relative;width:26px;height:30px;flex:0 0 26px}
.lw-kp-lilli svg.lw-kp-neon-svg{width:20px;height:28px;fill:none;stroke:none;stroke-width:12;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px rgba(0,242,254,.55))}
.lw-kp-lilli svg.lw-kp-neon-svg path{fill:none;stroke-width:12}
.lw-kp-badge{position:absolute;right:-5px;bottom:-2px;width:14px;height:14px;border-radius:50%;background:#0d1b2a;border:1.5px solid #39ff14;color:#7ef0a8;font:700 10px/11px system-ui,sans-serif;text-align:center;box-shadow:0 0 4px rgba(57,255,20,.5)}
.lw-kp-lilli.is-hop{animation:lw-kp-hop .55s cubic-bezier(.3,1.6,.5,1)}
.lw-kp-lilli.is-hop svg{animation:lw-kp-glow .55s ease-out}
@keyframes lw-kp-hop{0%{transform:translateY(0)}35%{transform:translateY(-7px) rotate(-6deg)}70%{transform:translateY(0) rotate(3deg)}100%{transform:none}}
@keyframes lw-kp-glow{0%,100%{filter:drop-shadow(0 0 3px rgba(0,242,254,.55))}40%{filter:drop-shadow(0 0 9px rgba(57,255,20,.95))}}
@media (prefers-reduced-motion:reduce){.lw-kp-lilli.is-hop,.lw-kp-lilli.is-hop svg{animation:none}}
/* Touch: the thin resize strips of headers that are not selected caught taps meant for the header
   (rows are only 30 px high). There, resizing goes via the round grip of the selected header. */
@media (pointer:coarse){
  .sheet-row-head:not(.is-selected) .row-resize-handle,.sheet-col-head:not(.is-selected) .col-resize-handle{pointer-events:none}
}

/* Calc: frame around the whole selected area (lw-celltap.js) */
#sheet-grid{position:relative}
#sheet-grid>.lw-range-frame{position:absolute;inset:0;z-index:12;border:3px solid #00f2fe;box-sizing:border-box;pointer-events:none;border-radius:1px}
#sheet-grid>.lw-range-frame[hidden]{display:none}

/* Show grips in the PDF-signature style: dashed frame, four big corner dots (finger-sized) */
.lw-hframe{outline:2px dashed #00b8d4;outline-offset:3px}
.lw-hframe .lw-hh{width:44px;height:44px;margin:-22px 0 0 -22px}
.lw-hframe .lw-hh::after{left:11px;top:11px;width:22px;height:22px;border:3px solid var(--app-accent,#00c853);background:#0d1b2a;box-shadow:0 0 0 2px #fff,0 2px 6px rgba(0,0,0,.35),0 0 8px rgba(0,242,254,.35)}
.lw-hframe:not(.is-sides-only) .lw-hh-n,.lw-hframe:not(.is-sides-only) .lw-hh-s,.lw-hframe:not(.is-sides-only) .lw-hh-e,.lw-hframe:not(.is-sides-only) .lw-hh-w{display:none}
.slide-columns,.present-columns{align-items:start}
#slide-context-toolbar .lw-sz{display:flex;align-items:center;gap:2px}
#slide-context-toolbar .lw-sz[hidden],#slide-context-toolbar .lw-sz-del[hidden]{display:none!important}
#slide-context-toolbar .lw-sz-btn{touch-action:manipulation}

/* LilliDocs-links onderaan het menu (website) */
.lw-fm-site{margin:6px 4px 2px;padding:10px 6px 4px;border-top:1px solid #e2e8f0;font-size:12.5px;color:#94a3b8;text-align:center;line-height:1.8}
.lw-fm-site a{color:#64748b;text-decoration:none;padding:4px 2px}
.lw-fm-site a:hover,.lw-fm-site a:focus-visible{color:#0d1b2a;text-decoration:underline}
