.office-studio{width:min(1200px,96vw);max-width:none;height:92dvh;max-height:96dvh;padding:0;border:0;border-radius:22px;background:#f7f9fc;color:#172337;box-shadow:0 28px 100px #0f172a45}.office-studio::backdrop,.office-editor::backdrop{background:#10213d80;backdrop-filter:blur(4px)}#office-body{padding:30px}.office-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.office-header h1{font-size:30px;letter-spacing:-.8px;margin:3px 0 7px}.office-header p{color:#65718a;margin:0;line-height:1.6}.office-header .office-eyebrow{text-transform:uppercase;letter-spacing:1.5px;font-size:10px;font-weight:800;color:#526d9f}.office-studio button,.office-editor button,.office-external-create{min-height:44px;border:1px solid #d9e1ef;background:white;color:#233954;border-radius:10px;padding:9px 14px;font-size:12px;font-weight:650;cursor:pointer}.office-studio button:hover,.office-editor button:hover{border-color:#9eb6df;background:#f2f6ff}.office-studio button:focus-visible,.office-editor button:focus-visible,.office-studio input:focus-visible,.office-editor input:focus-visible,.office-studio select:focus-visible,.office-editor select:focus-visible{outline:3px solid #8cb7ff;outline-offset:2px}.office-studio button:disabled,.office-editor button:disabled{opacity:.45;cursor:not-allowed}.office-studio .primary,.office-editor .primary{background:#285ee7;color:white;border-color:#285ee7}.office-studio .office-icon-button{font-size:24px;padding:2px 13px}.office-connect{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#182d50;color:#fff;padding:23px;border-radius:16px;margin-top:24px}.office-connect p{font-size:12px;margin:6px 0 0;color:#c3d0e7;line-height:1.5}.office-connect strong{font-size:16px}.office-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.office-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.office-tabs button{display:flex;gap:12px;align-items:center;text-align:left;padding:17px;border-radius:14px}.office-tabs button[aria-current=page]{border-color:#7299ef;box-shadow:0 0 0 2px #285ee712;background:#fff}.office-tabs b{margin-left:auto;background:#f0f4fb;padding:4px 8px;border-radius:6px;color:#526680}.office-file-icon{display:inline-grid;place-items:center;flex:none;width:39px;height:43px;border-radius:6px 11px 6px 6px;background:var(--file-color);color:white;font-size:20px;font-weight:800}.office-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.office-toolbar>label{flex:1;min-width:150px}.office-studio label,.office-editor label{display:grid;gap:6px;font-size:11px;font-weight:650;color:#53627b}.office-studio input,.office-studio select,.office-editor input,.office-editor select,.office-editor textarea{box-sizing:border-box;border:1px solid #d7dfec;background:white;border-radius:9px;min-height:44px;width:100%;font:inherit;font-size:13px;color:#1b2b44;padding:9px 11px}.office-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:12px 0 24px}.office-card{background:white;border:1px solid #e0e6f0;border-radius:14px;padding:20px;display:flex;align-items:flex-start;gap:13px;flex-wrap:wrap}.office-card-content{flex:1;min-width:0}.office-card h2{font-size:15px;line-height:1.45;margin:1px 0 6px;overflow-wrap:anywhere}.office-card p{font-size:12px;line-height:1.5;color:#586b85;margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}.office-card small{color:#596b83;font-size:10px}.office-card-actions{display:flex;gap:6px;flex-wrap:wrap;width:100%;padding-top:9px}.office-card-actions button{font-size:12px;min-height:44px;padding:6px 9px}.office-empty{grid-column:1/-1;background:white;border:1px dashed #cbd6e6;border-radius:14px;padding:44px;text-align:center}.office-empty h2{font-size:18px;margin:17px 0 7px}.office-empty p{font-size:13px;color:#72809a}.office-footer{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:10px;color:#596b83;line-height:1.7}.office-notice{font-size:12px;padding:12px 15px;background:#fff5df;border:1px solid #edd8a7;border-radius:9px;line-height:1.6}.office-readonly{font-size:12px;color:#8b5f10}.office-setup{margin-top:25px;border-top:1px solid #dbe3ef;padding-top:17px;color:#60718a;font-size:12px;line-height:1.7}.office-setup summary{cursor:pointer;font-weight:700}.office-setup form{display:grid;grid-template-columns:2fr 2fr 1fr;gap:12px;margin:18px 0}.office-setup ol{padding-left:20px}.office-setup code{overflow-wrap:anywhere}#office-status{font-size:12px;min-height:18px;margin:15px 0 7px;color:#275987;line-height:1.6}#office-status.office-error{color:#a22835}.office-editor{width:min(540px,92vw);padding:24px;border:0;border-radius:17px;color:#172337;box-shadow:0 20px 80px #0f172a45}.office-editor header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:15px}.office-editor h2{font-size:21px;margin:0}.office-editor header button{font-size:20px;min-height:34px;padding:2px 11px}.office-editor form{display:grid;gap:15px}.office-editor [role=status]{font-size:12px;line-height:1.6;color:#a22835}.office-external-create{display:block;text-align:center;text-decoration:none;color:#285ee7}.office-editor textarea{min-height:90px}.office-editor p{font-size:13px;color:#66768d;line-height:1.6}@media(max-width:700px){.office-studio{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}#office-body{padding:20px 15px}.office-header h1{font-size:25px}.office-connect{align-items:flex-start;flex-direction:column;padding:18px}.office-tabs{gap:6px}.office-tabs button{flex-direction:column;gap:8px;padding:12px 6px;font-size:10px}.office-tabs b{margin:0}.office-file-icon{width:31px;height:35px;font-size:17px}.office-records{grid-template-columns:1fr}.office-toolbar .office-actions{width:100%}.office-setup form{grid-template-columns:1fr}.office-empty{padding:32px 17px}}@media(prefers-reduced-motion:reduce){.office-studio *{scroll-behavior:auto!important}}@media print{.office-studio,.office-editor{display:none!important}}
.office-tool-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#edf3ff;border:1px solid #dbe6fb;padding:16px 20px;border-radius:14px;margin-top:18px}.office-tool-strip strong{font-size:14px;color:#244c8a}.office-tool-strip p{font-size:12px;color:#536985;margin:5px 0 0}.office-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.office-tabs button{min-width:0;gap:9px;padding:14px 11px}.office-tabs span:not(.office-file-icon){overflow-wrap:anywhere}.office-events,.office-response-list{max-height:280px;overflow:auto;border:1px solid #dbe3ef;border-radius:10px;padding:12px}.office-events article,.office-response-list details{padding:10px 4px;border-bottom:1px solid #e1e8f2;font-size:13px}.office-events article:last-child,.office-response-list details:last-child{border-bottom:0}.office-editor a{color:#245cc3}.office-response-list summary{cursor:pointer;font-size:12px;overflow-wrap:anywhere}.office-response-list p{white-space:pre-wrap;overflow-wrap:anywhere}.office-editor textarea:focus-visible,.office-editor a:focus-visible,.office-response-list summary:focus-visible{outline:3px solid #8cb7ff;outline-offset:2px}.office-editor{max-height:88dvh;overflow-y:auto;box-sizing:border-box}.office-editor hr{width:100%;border:0;border-top:1px solid #dbe3ef}.office-editor h3{font-size:16px;margin:5px 0}@media(max-width:850px){.office-tabs button{flex-direction:column;text-align:center;gap:7px;font-size:11px}.office-tabs b{margin:0}}@media(max-width:500px){.office-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.office-tool-strip{align-items:flex-start;flex-direction:column}.office-editor{width:96vw;padding:20px;max-height:94dvh}}
/* Office Studio lives below the workspace function strip. */
#product-shell #main-content:has(>#view-office-studio:not(.hidden)){padding:0!important;gap:0!important;overflow:hidden}#product-shell #main-content:has(>#view-office-studio:not(.hidden))>:not(#view-office-studio){display:none!important}.office-studio-workspace{width:100%;height:100%;min-height:0;min-width:0;flex:1}.office-studio-workspace.hidden{display:none!important}#product-shell .office-studio-workspace .office-studio{display:flex;flex-direction:column;position:static;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:var(--es-canvas,#F4F6FB);color:var(--es-text,#191E32);overflow:hidden}.office-studio-workspace #office-body{padding:14px 18px;overflow:auto;min-height:0;flex:1}.office-studio-workspace #office-body[hidden]{display:none!important}.office-studio-workspace .office-header,.office-studio-workspace .office-tabs{display:none}.office-studio-workspace .office-connect{padding:10px 12px;margin:0 0 10px}.office-studio-workspace .office-tool-strip{padding:10px 12px;margin:0 0 10px}.office-studio-workspace .office-toolbar{gap:8px;margin-bottom:8px}.office-studio-workspace .office-toolbar label:first-child{max-width:240px}.office-file-stage{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}.office-file-toolbar{display:flex;align-items:center;gap:12px;padding:9px 14px;border-bottom:1px solid var(--es-border,#D8E3FF);background:var(--es-surface,#fff);font-size:12px;flex-shrink:0}.office-file-toolbar strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.office-file-toolbar button{border:1px solid var(--es-border,#D8E3FF);border-radius:7px;background:var(--es-surface,#fff);color:var(--es-text);padding:7px 10px;cursor:pointer;white-space:nowrap}.office-file-toolbar a{color:var(--es-primary,#514BFF);white-space:nowrap}.office-embed-note{font-size:11px;color:var(--es-text-muted,#64748B);padding:7px 14px;margin:0;flex-shrink:0}.office-file-stage iframe{display:block;width:100%;flex:1;min-height:300px;border:0;background:white}@media(max-width:767px){.office-studio-workspace #office-body{padding:10px}.office-file-toolbar{gap:8px;padding:8px;flex-wrap:wrap}.office-file-toolbar strong{order:-1;flex-basis:100%}.office-file-toolbar button,.office-file-toolbar a{min-height:44px;display:inline-flex;align-items:center}.office-file-stage iframe{min-height:200px}}
.office-organizer{max-width:1100px;margin:0 auto;color:var(--es-text)}.office-organizer>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.office-organizer h2{font-size:22px;margin:0 0 4px}.office-organizer p,.office-organizer>header>span{font-size:12px;color:var(--es-text-muted);margin:4px 0}.office-organizer .office-actions button,.office-task-add button{border:1px solid var(--es-border);background:var(--es-surface);color:var(--es-text);padding:9px 12px;border-radius:8px;cursor:pointer;font-size:12px}.office-task-add{display:flex;align-items:flex-end;gap:10px;margin:12px 0 18px}.office-task-add label{display:grid;gap:5px;font-size:11px;color:var(--es-text-muted)}.office-task-add label:first-child{flex:1}.office-task-add input{width:100%;box-sizing:border-box;background:var(--es-surface);border:1px solid var(--es-border);border-radius:8px;padding:9px 11px;color:var(--es-text);min-height:38px}.office-task-add button.primary{background:var(--es-primary);color:white}.office-calendar-event,.office-task{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;margin:8px 0;border:1px solid var(--es-border);border-radius:10px;background:var(--es-surface)}.office-calendar-event strong,.office-task strong{font-size:13px}.office-calendar-event a{font-size:11px;white-space:nowrap;color:var(--es-primary)}.office-task label{display:flex;align-items:center;gap:12px;cursor:pointer}.office-task input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;accent-color:var(--es-primary)}.office-task label>span{display:grid;gap:3px}.office-task small{font-size:11px;color:var(--es-text-muted)}.office-task.is-done strong{text-decoration:line-through;color:var(--es-text-muted)}.office-task-storage{margin-top:14px!important}@media(max-width:650px){.office-organizer>header{align-items:flex-start;flex-direction:column}.office-task-add{flex-wrap:wrap}.office-task-add label:first-child{flex-basis:100%}.office-task-add button,.office-task-add input{min-height:44px}.office-calendar-event{align-items:flex-start;flex-direction:column}}
.office-tasks-list-toolbar{display:flex;align-items:flex-end;gap:10px;margin:10px 0}.office-tasks-list-toolbar label{display:grid;gap:5px;font-size:11px;color:var(--es-text-muted)}.office-tasks-list-toolbar select{min-width:220px;max-width:70vw;padding:8px 10px;border:1px solid var(--es-border);border-radius:8px;background:var(--es-surface);color:var(--es-text)}.office-tasks-list-toolbar button{border:1px solid var(--es-border);border-radius:8px;background:var(--es-surface);color:var(--es-text);padding:8px 12px;cursor:pointer}
.office-contacts-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:12px 0}.office-contacts-toolbar label{display:grid;gap:5px;font-size:11px;color:var(--es-text-muted)}.office-contacts-toolbar input,.office-contacts-toolbar select{padding:9px 10px;border:1px solid var(--es-border);border-radius:8px;background:var(--es-surface);color:var(--es-text);min-width:210px}.office-contacts-toolbar button{border:0;border-radius:8px;background:var(--es-primary);color:white;padding:10px 14px;font-size:12px;cursor:pointer}.office-google-contact{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:7px 0;border:1px solid var(--es-border);border-radius:10px;background:var(--es-surface)}.office-google-contact>input{width:18px;height:18px;min-height:18px;accent-color:var(--es-primary)}.office-google-contact strong{font-size:13px}.office-google-contact p{overflow-wrap:anywhere}.office-google-contact small{font-size:11px;color:var(--es-text-muted)}#office-google-contact-count{font-size:11px;color:var(--es-text-muted)}@media(max-width:650px){.office-contacts-toolbar label{width:100%}.office-contacts-toolbar input,.office-contacts-toolbar select{min-width:0;width:100%;box-sizing:border-box}.office-contacts-toolbar button{min-height:44px}}

#product-shell .office-studio-workspace #office-body{padding:10px 14px}#product-shell .office-studio-workspace .office-connect{background:transparent!important;border:0!important;border-radius:0;padding:0!important;margin:0 0 8px!important;min-height:32px;align-items:center;gap:8px;box-shadow:none!important}#product-shell .office-studio-workspace .office-connect>div>p{display:none}#product-shell .office-studio-workspace .office-connect strong{font-size:12px;color:var(--es-text)!important}#product-shell .office-studio-workspace .office-connect button{font-size:11px;min-height:30px!important;padding:5px 9px!important;border-radius:7px;white-space:nowrap}#product-shell .office-studio-workspace .office-toolbar{display:flex;align-items:flex-end;gap:8px;flex-wrap:nowrap;margin:0 0 6px!important;overflow-x:auto}#product-shell .office-studio-workspace .office-toolbar>label{flex:0 0 210px;min-width:0;margin:0}#product-shell .office-studio-workspace .office-toolbar>label:first-child{flex-basis:200px;max-width:200px}#product-shell .office-studio-workspace .office-toolbar input,#product-shell .office-studio-workspace .office-toolbar select{height:34px;min-height:34px;font-size:12px;padding:6px 9px}#product-shell .office-studio-workspace .office-toolbar .office-actions{flex-wrap:nowrap;gap:6px;margin-left:auto}#product-shell .office-studio-workspace .office-toolbar button{white-space:nowrap;font-size:11px;min-height:34px;padding:6px 9px}#product-shell .office-studio-workspace #office-status:empty{display:none}#product-shell .office-studio-workspace .office-records{gap:10px;margin-top:8px}#product-shell .office-studio-workspace .office-empty{padding:20px}#product-shell .office-studio-workspace .office-footer{padding-top:10px;margin-top:10px;font-size:10px}@media(max-width:767px){#product-shell .office-studio-workspace .office-toolbar button,#product-shell .office-studio-workspace .office-toolbar input,#product-shell .office-studio-workspace .office-toolbar select,#product-shell .office-studio-workspace .office-connect button{min-height:44px!important}}
#office-google-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;border-bottom:1px solid var(--es-border);background:var(--es-surface);flex-shrink:0;min-height:32px}#office-google-bar>span{font-size:12px;color:var(--es-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#office-google-bar>button{border:1px solid var(--es-border);background:var(--es-surface);color:var(--es-text);border-radius:7px;min-height:30px;padding:5px 10px;font-size:11px;white-space:nowrap;cursor:pointer}#office-google-bar>button:disabled{opacity:.5;cursor:wait}@media(max-width:767px){#office-google-bar>button{min-height:44px}}
