.office-workspace,.office-guide{--office-tint:var(--accent-emerald-light);--office-ink:var(--accent-emerald-dark)}.office-workspace{max-width:1720px;padding:var(--space-4) max(clamp(12px, 2.6vw, 40px), env(safe-area-inset-right)) max(var(--space-8), env(safe-area-inset-bottom)) max(clamp(12px, 2.6vw, 40px), env(safe-area-inset-left));margin:auto}.office-workspace[data-accent=blue],.office-guide[data-accent=blue]{--office-tint:#edf3fd;--office-ink:var(--accent-blue-dark)}.office-workspace[data-accent=coral],.office-guide[data-accent=coral]{--office-tint:var(--accent-coral-light);--office-ink:var(--accent-coral)}.office-header,.office-toolbar,.office-status{align-items:center;gap:var(--space-2) var(--space-3);background:var(--bg-primary);border:1px solid var(--border-default);padding:var(--space-2) var(--space-3);flex-wrap:wrap;display:flex}.office-header{border-radius:var(--radius-lg) var(--radius-lg) 0 0;padding:var(--space-3) var(--space-4);background:var(--office-tint);flex-wrap:nowrap;justify-content:space-between}.office-file{align-items:center;gap:var(--space-3);flex:1;min-width:0;display:flex}.office-file-details{width:min(100%,360px);min-width:0}.office-editor-icon{border-radius:var(--radius-md);height:42px;color:var(--office-ink);background:var(--office-tint);flex:0 0 42px;place-items:center;display:grid}.office-actions,.office-dialog-heading{align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.office-file-details h1{margin:0;font-size:clamp(18px,2.5vw,23px)}.office-filename{width:fit-content;max-width:100%;color:var(--text-muted);white-space:nowrap;align-items:center;font-size:13px;display:flex}.office-filename input{field-sizing:content;border-radius:var(--control-radius);width:auto;min-width:3ch;max-width:100%;min-height:32px;color:var(--text-secondary);background:0 0;border:1px solid #0000;padding:2px 4px;font-size:16px}.office-filename input:not(:disabled):hover,.office-filename input:focus-visible{border-color:var(--border-strong)}.office-toolbar,.office-status{border-top:0}.office-toolbar{justify-content:space-between}.office-header .btn,.office-toolbar .btn,.office-dialog-actions .btn{gap:7px;min-height:44px;padding:7px 11px}.office-save-actions{margin-inline-start:auto}.office-view-actions{flex:none;justify-content:flex-end}.office-expand{color:var(--office-ink)}.office-templates{position:relative}.office-templates summary{list-style:none}.office-templates summary::-webkit-details-marker{display:none}.office-templates summary[aria-disabled=true]{opacity:.55;cursor:not-allowed}.office-templates[open]>div{z-index:2;border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-primary);min-width:max-content;box-shadow:var(--shadow-md);padding:5px;position:absolute;top:calc(100% + 4px);left:0}.office-templates button{text-align:left;border-radius:6px;width:100%;min-height:44px;padding:6px 12px;font-size:14px;display:block}.office-templates button:hover{background:var(--bg-secondary)}.office-canvas{border-inline:1px solid var(--border-default);background:var(--bg-tertiary);block-size:clamp(510px,100dvh - 285px,1100px);position:relative}.office-frame{border:0;width:100%;height:100%;display:block}.office-frame:fullscreen{width:100vw;height:100dvh}.office-workspace[data-expanded=true]{z-index:100;max-width:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:var(--bg-primary);flex-direction:column;display:flex;position:fixed;inset:0;overflow:auto}.office-workspace[data-expanded=true]>:not(.office-canvas){flex:none}.office-workspace[data-expanded=true] .office-ad{display:none}.office-workspace[data-expanded=true] .office-header,.office-workspace[data-expanded=true] .office-status{border-radius:0}.office-workspace[data-expanded=true] .office-canvas{flex:auto;block-size:auto;min-block-size:170px}body:has(.office-workspace[data-expanded=true]){overflow:hidden}body:has(.office-workspace[data-expanded=true]) :is(.app-header,.app-footer,.office-guide,.skip-link){visibility:hidden}.office-canvas-message{align-content:center;justify-items:center;gap:var(--space-3);padding:var(--space-6);background:var(--bg-secondary);text-align:center;display:grid;position:absolute;inset:0}.office-canvas-message h2{font-size:22px}.office-canvas-message p{color:var(--text-secondary);max-width:52ch}.office-spinner{color:var(--brand);animation:.9s linear infinite office-spin}@keyframes office-spin{to{transform:rotate(360deg)}}.office-status{border-radius:0 0 var(--radius-lg) var(--radius-lg);min-height:42px;color:var(--text-secondary);font-size:13px}.office-status p,.office-check{align-items:center;gap:7px;display:inline-flex}.office-status>:last-child:not(:first-child){margin-left:auto}.office-check input{width:17px;height:17px;accent-color:var(--brand)}.office-notice{align-items:center;gap:var(--space-2);background:var(--brand-light);color:var(--accent-emerald-dark);flex-wrap:wrap;padding:9px 13px;font-size:14px;display:flex}.office-notice .btn{min-height:40px;padding:5px 11px}.office-error{color:var(--error);background:var(--accent-coral-light)}.office-ad{max-width:970px;height:104px;margin:0 auto var(--space-4);text-align:center;color:var(--text-muted);grid-template-rows:auto minmax(0,1fr);font-size:11px;display:grid}.office-ad img{object-fit:contain;width:100%;height:100%;display:block}.office-dialog{width:min(100% - 32px,440px);max-height:calc(100dvh - 32px);padding:var(--space-6);border:1px solid var(--border-default);border-radius:var(--radius-lg);background:var(--bg-primary);box-shadow:var(--shadow-lg);margin:auto}.office-dialog::backdrop{background:#27272d75}.office-dialog form{gap:var(--space-3);display:grid}.office-dialog-heading{justify-content:space-between}.office-dialog h2{font-size:23px}.office-download-fields{gap:var(--space-3);min-inline-size:0;display:grid}.office-dialog-actions{justify-content:flex-end}.office-dialog label{font-size:14px;font-weight:550}.office-dialog label .input-base{margin-top:4px}.office-dialog small,.office-muted{color:var(--text-muted);font-weight:400}.office-icon-button{min-width:44px;min-height:44px;padding:0}.office-library{max-width:1080px;min-height:50vh;margin:auto;padding:clamp(24px,5vw,64px) clamp(16px,4vw,36px)}.office-library-header{justify-content:space-between;align-items:end;gap:var(--space-4);margin-bottom:var(--space-4);flex-wrap:wrap;display:flex}.office-library-header p,.office-library small{color:var(--text-secondary)}.office-quota{min-width:175px;max-width:100%;font-size:13px}.office-quota progress{width:100%;height:8px;accent-color:var(--brand);margin-top:5px;display:block}.office-library-filters{gap:var(--space-2);margin-bottom:var(--space-3);grid-template-columns:minmax(0,1fr) minmax(124px,175px) minmax(124px,175px);display:grid}.office-library-list{gap:6px;display:grid}.office-library-item{justify-content:space-between;align-items:center;gap:var(--space-2);padding:var(--space-3);border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-primary);flex-wrap:wrap;display:flex}.office-library-item a:not(.btn){text-underline-offset:3px;font-weight:650;text-decoration:underline}.office-library-item small{display:block}.office-library-item .btn{min-height:42px;padding:6px 10px}.office-library-empty{padding:var(--space-6);border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-primary)}.office-library-empty .office-actions{margin-top:var(--space-4)}.office-versions{gap:6px;display:grid}.office-versions li{justify-content:space-between;align-items:center;gap:8px;padding-block:4px;display:flex}.office-guide{max-width:1120px;padding:var(--space-4) clamp(16px, 4vw, 36px) var(--space-12);gap:var(--space-4);margin:0 auto;display:grid}.office-guide-intro{border-inline-start:3px solid var(--office-ink);padding:6px 0 6px var(--space-4)}.office-guide-intro h2{font-size:clamp(22px,3vw,32px)}.office-guide p{max-width:69ch;color:var(--text-secondary);margin-top:6px}.office-guide-notes{gap:var(--space-3);grid-template-columns:1fr 1fr;display:grid}.office-guide-notes>div{padding:var(--space-4);border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--bg-primary)}@media (max-width:660px){.office-header{padding:8px 10px}.office-file-details h1{text-overflow:ellipsis;overflow:hidden}.office-header .btn,.office-toolbar .btn{padding-inline:8px}.office-view-actions a{min-width:44px}.office-view-actions a span{display:none}.office-guide-notes{grid-template-columns:1fr}.office-file,.office-toolbar .office-actions{gap:4px}.office-editor-icon{flex-basis:32px;height:32px}.office-editor-icon svg{width:17px}.office-toolbar{padding:4px 8px}.office-canvas{block-size:clamp(420px,100dvh - 260px,900px)}.office-ad{height:64px}.office-library-filters{grid-template-columns:1fr 1fr}.office-library-filters input{grid-column:1/-1}}@media (prefers-reduced-motion:reduce){.office-spinner{animation:none}}@media print{.office-ad,.office-header,.office-toolbar,.office-status,.office-dialog{display:none!important}}.office-workspace{--office-bar-height:56px;padding-top:var(--space-2)}.office-bar{align-items:center;gap:var(--space-2) var(--space-3);min-height:var(--office-bar-height);border:1px solid var(--border-default);border-radius:var(--radius-lg) var(--radius-lg) 0 0;background:linear-gradient(180deg, var(--office-tint), color-mix(in srgb, var(--office-tint) 55%, white));padding:6px 8px 6px 10px;display:flex}.office-bar .office-file{flex:auto;gap:10px;min-width:0}.office-bar .office-editor-icon{background:#ffffffb3;border-radius:9px;flex:0 0 34px;height:34px}.office-bar .office-file-details{flex-direction:column;justify-content:center;width:auto;min-width:0;display:flex}.office-bar .office-file-details h1{letter-spacing:.04em;text-transform:uppercase;color:var(--office-ink);margin:0;font-size:11px;font-weight:650;line-height:1.1}.office-bar .office-filename{font-size:12px}.office-bar .office-filename input{min-height:26px;color:var(--text-primary);margin-left:-4px;padding:1px 4px;font-size:15px;font-weight:600}.office-bar-status{min-width:0;color:var(--text-secondary);white-space:nowrap;background:#fff9;border-radius:99px;align-items:center;gap:6px;margin-left:4px;padding:3px 9px;font-size:12px;display:inline-flex}.office-bar-status span:last-child{text-overflow:ellipsis;overflow:hidden}.office-status-dot{background:var(--success);border-radius:50%;flex:none;width:7px;height:7px}.office-bar-status[data-state=dirty] .office-status-dot{background:var(--accent-orange-action)}.office-bar-status[data-state=offline]{color:var(--warning)}.office-bar .office-actions{flex-wrap:nowrap;gap:2px}.office-bar .btn{gap:7px;min-height:40px;padding:6px 10px;font-size:13px}.office-bar .btn-ghost{color:var(--text-primary)}.office-bar .btn-ghost:hover:not(:disabled){background:#ffffffb3}.office-file-actions{border-inline:1px solid color-mix(in srgb, var(--office-ink) 14%, transparent);padding-inline:6px}.office-bar .office-save-actions{gap:6px;margin-inline-start:0}.office-bar .office-check{color:var(--text-secondary);align-items:center;gap:6px;min-height:40px;padding:0 8px;font-size:12px;display:inline-flex}.office-bar .office-templates[open]>div{z-index:5}.office-canvas{block-size:max(460px, calc(100dvh - var(--header-height) - var(--office-bar-height) - 22px));border-bottom:1px solid var(--border-default);border-radius:0 0 var(--radius-lg) var(--radius-lg);overflow:hidden}.office-workspace[data-expanded=true] .office-bar{border-inline:0;border-radius:0}.office-workspace[data-expanded=true] .office-canvas{border:0;border-radius:0}@media (max-width:1280px){.office-file-actions .office-label,.office-save-actions a .office-label{display:none}.office-file-actions .btn{padding-inline:9px}}@media (max-width:1024px){.office-bar-status,.office-save-actions .office-check .office-label{display:none}}@media (max-width:760px){.office-workspace{--office-bar-height:96px;padding-inline:max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right))}.office-bar{flex-wrap:wrap;padding:6px}.office-bar .office-file{flex:100%}.office-file-actions{border:0;padding:0}.office-bar .office-save-actions{margin-inline-start:auto}.office-bar .office-save-actions .btn span{display:none}.office-bar .btn{min-height:44px;padding-inline:10px}}.office-canvas-message[data-state=loading]{background:var(--bg-tertiary);align-content:stretch;justify-items:stretch;padding:0}.office-skeleton{flex-direction:column;height:100%;display:flex;position:relative}.office-skeleton-ribbon{border-bottom:1px solid var(--border-subtle);background:#fff;gap:10px;padding:10px 14px;display:flex}.office-skeleton-ribbon .skeleton{border-radius:7px;width:52px;height:30px}.office-skeleton-ribbon .skeleton:nth-child(3n){width:84px}.office-skeleton-page{background:#fff;flex:1;align-content:start;align-self:center;gap:14px;width:min(720px,86%);margin:28px 0;padding:56px 64px;display:grid;box-shadow:0 2px 10px #00000010}.office-skeleton-page .skeleton{border-radius:6px;height:12px}.office-skeleton-page .skeleton:first-child{height:22px;margin-bottom:10px;width:55%!important}.office-skeleton-page i{height:8px}.office-skeleton-slides{flex:1;grid-template-columns:150px 1fr;gap:22px;padding:20px;display:grid}.office-skeleton-slides>div{align-content:start;gap:12px;display:grid}.office-skeleton-slides>div .skeleton{aspect-ratio:16/9;border-radius:6px}.office-skeleton-slide{aspect-ratio:16/9;background:#fff;border-radius:10px;align-self:center}.office-skeleton-grid{flex-direction:column;flex:1;gap:8px;padding:10px 14px;display:flex}.office-skeleton-formula{border-radius:6px;height:30px}.office-skeleton-grid>div{grid-template-columns:repeat(8,1fr);gap:2px;display:grid}.office-skeleton-grid>div .skeleton{border-radius:2px;height:26px}.office-skeleton-caption{box-shadow:var(--shadow-sm);color:var(--text-secondary);white-space:nowrap;background:#fff;border-radius:99px;align-items:center;gap:8px;padding:7px 14px;font-size:13px;display:inline-flex;position:absolute;bottom:18px;left:50%;translate:-50%}@media (max-width:760px){.office-skeleton-slides{grid-template-columns:1fr}.office-skeleton-slides>div{display:none}.office-skeleton-page{width:92%;padding:28px}.office-skeleton-caption{white-space:normal;text-align:center;width:max-content;max-width:90%}}.office-library-skeleton>div{flex:1;gap:8px;display:grid}.office-library-skeleton>div .skeleton:first-child{width:min(260px,60%);height:16px}.office-library-skeleton>div .skeleton:last-child{width:min(180px,40%);height:12px}.office-library-skeleton>.skeleton{border-radius:9px;width:96px;height:40px}
