#officeWorkspace .office-accountant-approval{margin:18px 0;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface2)}
.office-accountant-approval header,.office-welcome-packet header{display:flex;align-items:center;justify-content:space-between;gap:14px}
.office-accountant-approval h4,.office-welcome-packet h4{font-size:var(--fs-xl,17px);line-height:1.4;margin:0}
.office-accountant-approval header span,.office-welcome-packet header span{font-size:var(--fs-md,13.5px);color:var(--muted)}
.office-accountant-approval p,.office-welcome-accountant{font-size:var(--fs-lg,14px);line-height:1.6;overflow-wrap:anywhere;color:var(--muted)}
.office-entity-comparison{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}
.office-entity-comparison>div{display:grid;gap:5px;padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface);min-width:0;overflow-wrap:anywhere;font-size:var(--fs-lg,14px);line-height:1.5}
.office-entity-comparison small{font-size:var(--fs-md,13.5px);color:var(--muted)}
.office-entity-result.match{color:var(--cc-green)}.office-entity-result.mismatch{color:var(--cc-red);font-weight:var(--fw-s,600)}
#officeWorkspace .office-welcome>summary h3{margin:0;font-size:var(--fs-xl,17px);line-height:1.4}
#officeWorkspace .office-welcome>summary>span{color:var(--muted);font-size:var(--fs-md,13.5px)}
#officeWorkspace .office-welcome>.office-welcome-body{padding:18px}
#officeWorkspace .office-welcome-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:22px}
.office-welcome-steps>section{display:flex;flex-direction:column;align-items:flex-start;gap:10px;border:1px solid var(--border);border-radius:12px;padding:16px;min-width:0;background:linear-gradient(125deg,color-mix(in srgb,var(--blue,#76a6ce) 6%,var(--surface)),var(--surface))}
.office-welcome-steps>section.is-done{border-color:color-mix(in srgb,var(--cc-green) 40%,var(--border))}
.office-action-number{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--surface2);border:1px solid var(--border);font-size:var(--fs-lg,14px)}
.office-welcome-steps h4{font-size:var(--fs-xl,17px);margin:0;line-height:1.4}
.office-welcome-steps p{font-size:var(--fs-lg,14px);margin:0;line-height:1.5;color:var(--muted)}
.office-welcome-steps .btn{margin-top:auto;max-width:100%;white-space:normal}
@media(max-width:800px){#officeWorkspace .office-welcome-steps,.office-entity-comparison{grid-template-columns:1fr}}
.office-welcome-accountant strong{color:var(--text)}
.office-welcome-packet{padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.office-packet-files{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px;margin-top:16px}
button.office-packet-file{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;padding:12px;min-width:0;border:1px solid var(--border);border-radius:10px;background:var(--surface2);color:var(--text);cursor:pointer;font:inherit;transition:border-color .15s,transform .15s}
button.office-packet-file:hover{border-color:var(--blue,#79a8cf);transform:translateY(-1px)}
.office-packet-type{font-size:var(--fs-sm,12.5px);color:var(--muted);letter-spacing:.04em}
.office-packet-file strong{font-size:var(--fs-lg,14px);font-weight:var(--fw-s,600);line-height:1.4;overflow-wrap:anywhere}
.office-packet-file small{font-size:var(--fs-sm,12.5px);color:var(--muted);margin-top:auto}
.office-welcome-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.office-welcome-actions .btn{font-size:var(--fs-lg,14px);min-height:38px;padding:9px 12px}
.office-welcome-state{font-size:var(--fs-md,13.5px);line-height:1.5;color:var(--muted);margin-top:12px}
.office-welcome-outcome{display:grid;gap:5px;padding:13px;border:1px solid color-mix(in srgb,var(--blue,#79a8cf) 40%,var(--border));border-radius:10px;background:var(--surface2);font-size:var(--fs-lg,14px);line-height:1.5;margin:14px 0}
.office-welcome-outcome small{color:var(--muted);font-size:var(--fs-md,13.5px)}
.office-welcome-outcome.is-problem{border-color:#E5A83D}
.office-welcome-dialog footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:14px 20px;border-top:1px solid var(--border);background:var(--surface)}
.office-welcome-dialog footer span{margin-right:auto;font-size:var(--fs-md,13.5px);color:var(--muted)}
.office-welcome-dialog form>footer{padding:14px 0 0;margin-top:8px}
.office-preview-recipient{display:flex;gap:12px;flex-wrap:wrap;font-size:var(--fs-lg,14px)}.office-preview-recipient span{color:var(--muted)}
.office-preview-messages{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}
.office-preview-messages textarea{font-size:var(--fs-lg,14px);line-height:1.6}
.office-preview-messages small{font-size:var(--fs-md,13.5px);color:var(--muted);line-height:1.5}
.office-preview-check{padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface2)}
.office-material-body{padding:16px;min-height:260px}.office-material-body p{font-size:var(--fs-lg,14px);color:var(--muted)}
.office-material-body iframe{height:calc(60vh / var(--crm-ui-scale, 1));width:100%;border:0;background:#e5e8eb}
.office-phone-dialog{width:min(1120px,calc(93vw / var(--crm-ui-scale, 1)))}
.office-phone-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:380px;max-height:calc(70vh / var(--crm-ui-scale, 1));overflow:auto}
.office-phone-workspace>aside{padding:16px;border-right:1px solid var(--border);background:var(--surface2);overflow:auto}
.office-phone-workspace>section{padding:22px;min-width:0;overflow:auto}
.office-phone-workspace label{display:grid;gap:7px;font-size:var(--fs-lg,14px);line-height:1.5}
.office-phone-workspace :is(select,input,textarea){box-sizing:border-box;font:inherit;width:100%;min-width:0;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:10px}
.office-phone-workspace select{margin-bottom:10px}
.office-queue-row{display:grid;gap:5px;width:100%;text-align:left;padding:12px;border:1px solid transparent;border-bottom-color:var(--border);border-radius:8px;background:transparent;color:var(--text);font:inherit;cursor:pointer}
.office-queue-row strong{font-size:var(--fs-lg,14px);line-height:1.5}.office-queue-row span{font-size:var(--fs-md,13.5px);line-height:1.5;color:var(--muted)}
.office-queue-row[aria-current=true]{background:color-mix(in srgb,var(--blue,#79a8cf) 10%,var(--surface));border-color:color-mix(in srgb,var(--blue,#79a8cf) 60%,var(--border))}
.office-phone-person h3{font-size:var(--fs-2xl,22px);line-height:1.4;margin:0 0 8px}.office-phone-person p{font-size:var(--fs-lg,14px);color:var(--muted);line-height:1.5;margin:4px 0;overflow-wrap:anywhere}
.office-phone-accountant{font-size:var(--fs-lg,14px);line-height:1.5;padding:12px 0;border-bottom:1px solid var(--border)}
.office-phone-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-radius:10px;background:var(--surface2);border:1px solid var(--border);margin:18px 0}
.office-phone-strip strong{font-size:var(--fs-xl,17px);font-variant-numeric:tabular-nums}.office-phone-strip .btn{min-height:40px}
.office-call-result h4{font-size:var(--fs-xl,17px)}.office-call-result{display:grid;gap:14px}
.office-result-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.office-result-options label{display:flex;align-items:center;gap:7px;padding:12px 9px;border:1px solid var(--border);border-radius:9px;cursor:pointer;font-size:var(--fs-lg,14px)}
.office-result-options input{width:16px;height:16px;flex:none;accent-color:var(--blue,#79a8cf)}
.office-result-options label:has(input:checked){background:color-mix(in srgb,var(--blue,#79a8cf) 12%,var(--surface));border-color:var(--blue,#79a8cf)}
[data-result-fields]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}[data-result-fields] label:has(textarea),[data-result-fields] label:has([name=title]){grid-column:1/-1}
.office-phone-workspace [name=deadline]{max-width:260px}
.office-deadline-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(130px,1fr);gap:8px}.office-deadline-row select{margin:0}
.office-phone-workspace .ops-error{color:var(--premium-red,#e18383)}
@media(max-width:800px){.office-phone-workspace{grid-template-columns:190px minmax(0,1fr)}.office-result-options{grid-template-columns:1fr}.office-preview-messages{grid-template-columns:1fr}.office-phone-workspace>section{padding:15px}}
@media(max-width:550px){.office-phone-workspace{grid-template-columns:1fr}.office-phone-workspace>aside{max-height:180px;border-bottom:1px solid var(--border)}.office-phone-strip{flex-wrap:wrap}[data-result-fields]{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){button.office-packet-file{transition:none;transform:none}}
/* Shared accountant handoff: documents first, one action row, quiet collapsed guidance. */
.office-dispatch-documents{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}
.office-dispatch-actions{gap:10px;margin:12px 0}
.office-dispatch-recipient{font-size:var(--fs-lg,14px);line-height:1.6;color:var(--text-muted,var(--muted));overflow-wrap:anywhere}
.office-dispatch-recipient strong{color:var(--text)}
.office-accountant-dispatch .business-deadline{font-size:var(--fs-lg,14px);margin:12px 0}
.office-confirmation-copy{padding:12px 14px;border:1px solid var(--border);border-radius:10px;line-height:1.6;overflow-wrap:anywhere}
.ops-content>.ops-details>summary{padding-block:14px}
.office-accountant-dispatch .ops-details{margin-top:12px}
.business-editor .office-preview-messages textarea{min-height:240px}
@media(max-width:760px){.office-dispatch-documents{grid-template-columns:1fr}.office-dispatch-actions>.btn{flex:1 1 180px}}
.contact-confirmation-clock{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.contact-confirmation-clock>div{display:flex;flex-direction:column;gap:8px}
.contact-confirmation-clock span{font-size:var(--fs-lg,14px);color:var(--muted)}
.contact-confirmation-clock strong{font-size:var(--fs-2xl,22px);font-variant-numeric:tabular-nums;line-height:1.4}
.contact-confirmation.is-complete{border:1px solid #2FBF87;border-radius:12px;padding:16px}
.contact-confirmation.is-complete h3{color:#2FBF87}
.contact-reminder-status{display:flex;flex-direction:column;gap:8px;padding:14px 16px;margin:14px 0;border:1px solid var(--border);border-radius:10px;font-size:var(--fs-lg,14px)}
.contact-review{border-color:#E5A83D}
.contact-confirmation>.ops-actions{gap:10px;margin-bottom:16px}
@media(max-width:680px){.contact-confirmation-clock{grid-template-columns:1fr}}
/* Same queue, client identity and call dock as Sales; office scope only. */
.office-welcome-dialog .office-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.office-welcome-dialog .office-preview-footer .office-preview-check{display:flex;align-items:center;gap:8px;flex:1;margin:0;padding:0;border:0;background:none;font-size:var(--fs-md,13.5px)}
.office-preview-footer input[type=checkbox]{width:18px;height:18px;flex:none}
.office-preview-footer button{flex:none}
#officeWorkspace .office-welcome-steps>section.is-done{background:color-mix(in srgb,var(--cc-green,#2FBF87) 9%,var(--surface));border-color:var(--cc-green,#2FBF87)}
.office-welcome-dock{position:sticky;bottom:0;z-index:2;margin-top:12px}
.office-phone-dialog.business-editor{width:calc(98vw / var(--crm-ui-scale,1));max-width:calc(98vw / var(--crm-ui-scale,1));height:calc(96dvh / var(--crm-ui-scale,1));max-height:calc(96dvh / var(--crm-ui-scale,1));padding:0;display:flex;flex-direction:column;overflow:hidden}
.office-phone-dialog>.office-phone-workspace{flex:1;min-height:0;max-height:none;display:grid;grid-template-columns:minmax(260px,29%) minmax(0,1fr);gap:12px;padding:12px;overflow:hidden}
.office-phone-dialog .queue-panel{height:auto;min-height:0;max-height:none;padding:0;display:flex;flex-direction:column;overflow:hidden;margin:0;background:var(--surface)}
.office-phone-dialog .queue-list{flex:1;min-height:90px;max-height:none;overflow:auto}
.office-phone-dialog .queue-calendar{flex:none;background:var(--surface)}
.office-phone-dialog .office-queue-row{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;border-radius:0;padding:12px}
.office-phone-dialog .office-queue-row>span{min-width:0}.office-phone-dialog .queue-reason{display:block;margin-top:4px;font-size:var(--fs-sm,12.5px)}
.office-phone-dialog [data-phone-panel]{padding:0;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.office-phone-dialog .workspace-scroll{flex:1;min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain}
.office-phone-dialog .office-client-header{margin:0 0 14px}
.office-phone-dialog .office-welcome-guide{margin-bottom:12px}
.office-phone-dialog .office-welcome-guide ol,.office-phone-dialog .office-sent-packet ol{line-height:1.65;font-size:var(--fs-lg,14px);margin:12px 0;padding-left:24px}
.office-phone-dialog .office-sent-packet{padding:12px;border:1px solid var(--border);border-radius:10px}
.office-phone-dialog .office-sent-packet ol{columns:2;column-gap:24px}.office-sent-packet li{break-inside:avoid}
.office-phone-dialog .action-dock{position:static;flex:none;margin:0;padding:12px}
.office-phone-dialog .office-call-dock.is-calling{border-top-color:var(--cc-green,#2FBF87)}
.office-phone-dialog .office-call-dock.is-calling [data-clock]{color:var(--cc-green,#2FBF87);font-variant-numeric:tabular-nums}
.office-phone-dialog .business-end{background:var(--cc-red,#b43e46);color:#fff;border-color:var(--cc-red,#b43e46)}
.office-phone-dialog .office-phone-footer{padding:8px 14px;flex:none}
.office-phone-dialog .office-mobile-queue-toggle{display:none}
@media(max-width:700px){
 .office-phone-dialog.business-editor{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}
 .office-phone-dialog>.office-phone-workspace{grid-template-columns:1fr;padding:8px}
 .office-phone-dialog .queue-panel{display:none;max-height:none}
 .office-phone-dialog.show-queue .queue-panel{display:flex}.office-phone-dialog.show-queue [data-phone-panel]{display:none}
 .office-phone-dialog .office-mobile-queue-toggle{display:inline-flex;flex:none;margin:0 12px}
 .office-phone-dialog .workspace-scroll{padding:10px}.office-phone-dialog .office-sent-packet ol{columns:1}
 .office-welcome-dialog .office-preview-footer{flex-wrap:wrap}.office-welcome-dialog .office-preview-footer .office-preview-check{flex-basis:100%}
}

.office-phone-categories{display:flex;gap:8px;padding:6px 16px;border-bottom:1px solid var(--border)}
.office-phone-categories button{flex:1;min-height:36px}
.office-phone-categories button[aria-pressed=true]{border-color:var(--green,#2FBF87);background:color-mix(in srgb,var(--green,#2FBF87) 15%,var(--surface));color:var(--text)}
.office-phone-dialog .client-header{padding:12px 16px;border:1px solid var(--border);border-radius:12px;margin:0 0 12px}
.office-phone-dialog .client-header h2{margin:0;font-size:var(--fs-2xl,22px)}
.office-phone-dialog .client-header p{margin:6px 0;overflow-wrap:anywhere}

/* The page scrolls above its one original call dock. */
html body #officeWorkspace.office-intake-layout>.office-welcome-dock{position:relative;bottom:auto;flex:0 0 auto;margin:0 -16px -12px;padding:12px 24px;border:0;border-top:1px solid var(--border);border-radius:0;background:var(--surface);display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:64px}
html body #officeWorkspace>.office-welcome-dock .dock-main{width:auto;min-width:240px;flex:0 1 420px}
html body #officeWorkspace>.office-welcome-dock .call-context{white-space:normal}
@media(max-width:760px){html body #officeWorkspace.office-intake-layout>.office-welcome-dock{position:sticky;bottom:-12px;z-index:5}html body #officeWorkspace>.office-welcome-dock .dock-main{min-width:170px}}
/* Match the sales phone's viewport workspace; no double scaling or resizable dialog. */
html body dialog.office-phone-dialog.business-editor{position:fixed!important;inset:12px!important;margin:0!important;width:calc(100vw - 24px)!important;max-width:none!important;height:calc(100dvh - 24px)!important;max-height:none!important;scale:1!important;transform:none!important;translate:none!important;resize:none!important;box-sizing:border-box;display:flex;overflow:hidden}
html body .office-phone-dialog>.office-phone-workspace{width:100%;grid-template-columns:minmax(230px,25%) minmax(0,1fr);min-width:0}
html body .office-phone-dialog>.office-phone-workspace>*{width:auto;min-width:0;max-width:none}
html body .office-phone-dialog .workspace-scroll{width:100%;overflow-x:hidden;overflow-y:auto}
html body .office-phone-dialog [data-phone-panel]{min-width:0;max-width:none}
html body .office-phone-dialog .office-client-header .client-summary{display:block}
html body .office-phone-dialog .client-summary-line{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}
html body .office-phone-dialog .crm-person-name{display:block;font-size:var(--fs-2xl,22px);line-height:1.4}
html body .office-phone-dialog .crm-company-line{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px;font-size:var(--fs-md,13.5px);font-weight:var(--fw-n,400)}
html body .office-phone-dialog .client-contact{position:static;display:flex;gap:18px;flex-wrap:wrap}
html body .office-phone-dialog .crm-identity-contact{display:grid;gap:3px;font-size:var(--fs-md,13.5px)}
html body .office-phone-dialog .crm-header-facts{display:flex;gap:14px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:12px;margin:12px 0 0;font-size:var(--fs-sm,12.5px)}
html body .office-phone-dialog .crm-header-facts>div{display:flex;align-items:center;gap:5px}
html body .office-phone-dialog .crm-header-facts dd{margin:0}
html body .office-phone-dialog .office-header-owner{margin-left:auto}
html body .office-phone-dialog .office-header-owner dd{display:flex;align-items:center;gap:8px}
html body .office-phone-dialog .office-owner-contact.btn{width:28px;min-height:28px;padding:5px;border:0!important;box-shadow:none!important;background:transparent!important}
html body .office-phone-dialog .office-welcome-guide .card-body{padding:14px}
html body .office-phone-dialog .office-script-step{margin:0 0 10px;border:1px solid var(--border);border-radius:10px;overflow:hidden}
html body .office-phone-dialog .office-script-step>summary{padding:12px 14px;cursor:pointer;font-weight:var(--fw-s,600)}
html body .office-phone-dialog .office-script-step>p{margin:0;padding:4px 16px 16px;font-size:var(--fs-lg,14px);line-height:1.65}
html body .office-phone-dialog .office-call-packet-list{display:grid;gap:8px;margin:12px 0}
html body .office-phone-dialog .office-call-packet-list>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid var(--border);font-size:var(--fs-md,13.5px)}
html body .office-phone-dialog .office-call-packet-list>div>span{color:var(--muted);margin-left:auto}
html body .office-phone-dialog .office-call-dock{display:flex;align-items:center;gap:16px;justify-content:space-between;min-height:66px;border-top:1px solid var(--border);background:var(--surface)}
html body .office-phone-dialog .office-call-dock .dock-main{width:auto;min-width:240px;flex:0 1 420px}
html body .office-phone-dialog [data-clock]{font-size:var(--fs-xl,17px);font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:700px){html body dialog.office-phone-dialog.business-editor{inset:0!important;width:100vw!important;height:100dvh!important;border-radius:0}html body .office-phone-dialog>.office-phone-workspace{grid-template-columns:minmax(0,1fr)}html body .office-phone-dialog .office-call-dock{flex-wrap:wrap}html body .office-phone-dialog .office-call-dock .dock-main{min-width:0;flex:1}html body .office-phone-dialog .crm-header-facts{gap:8px}}

html body .office-phone-dialog>.crm-window-resize{display:none!important}
/* The office shell must have a viewport height before its flex children can scroll. */
html body.ops-open:has(#officeWorkspace.office-intake-layout) .app,
html body.ops-open:has(#officeWorkspace.office-intake-layout) .shell{height:calc(100dvh / var(--crm-ui-scale,1));min-height:0!important;max-height:calc(100dvh / var(--crm-ui-scale,1));overflow:hidden}
html body.ops-open:has(#officeWorkspace.office-intake-layout) .shell{grid-template-rows:auto minmax(0,1fr)}
html body.ops-open #officeWorkspace.office-intake-layout{min-height:0;max-height:100%;overflow:hidden}
@media(max-width:760px){html body.ops-open #officeWorkspace.office-intake-layout>.ops-grid{flex:1;min-height:0;overflow:auto}html body #officeWorkspace.office-intake-layout>.office-welcome-dock{position:relative;bottom:auto}}
html body.ops-open:has(#officeWorkspace.office-intake-layout) .shell{grid-template-rows:58px minmax(0,1fr)}
html body .office-phone-dialog .office-client-header{display:block!important}
html body .office-phone-dialog .office-client-header>.client-summary{display:block!important;width:100%!important}
html body .office-phone-dialog .office-client-header .client-summary-line{display:flex!important;flex-wrap:wrap!important;width:100%!important}
html body .office-phone-dialog .office-client-header .client-contact{position:static!important;inset:auto!important;transform:none!important;float:none!important;margin-left:auto}
html body .office-phone-dialog .office-client-header .crm-header-facts{width:100%!important}
html body .office-phone-dialog .business-end.btn{background:var(--cc-red,#b43e46)!important;border-color:var(--cc-red,#b43e46)!important;color:#fff!important}
/* Root scaling must not create a second scroll area when a task receives focus. */
html:root:has(body.ops-open #officeWorkspace.office-intake-layout){overflow:clip!important}
html:root>body.ops-open:has(#officeWorkspace.office-intake-layout){overflow:clip!important}
/* Office57: the same navigation classes, calendar and action dock as sales. */
html body #officeWorkspace.office-intake-layout{padding:0!important;gap:0!important}
html body #officeWorkspace.office-intake-layout>.ops-grid{display:grid!important;grid-template-columns:minmax(230px,18%) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto;gap:0!important;margin:0!important;flex:1;min-height:0}
html body #officeWorkspace .office-intake-list{grid-row:1/3;display:flex;flex-direction:column;padding:0!important;border:0;border-right:1px solid var(--border);border-radius:0;min-height:0;overflow:visible}
html body #officeWorkspace .office-intake-list>.ops-list{flex:1;min-height:0;overflow:auto}
html body #officeWorkspace .office-intake-detail{grid-column:2;grid-row:1;min-height:0;overflow:auto;padding:12px!important}
html body #officeWorkspace .ops-grid>.office-welcome-dock{grid-column:2;grid-row:2;margin:0;border-radius:0;border:0;border-top:1px solid var(--border)}
html body :is(#officeWorkspace,.office-phone-dialog) .action-dock{display:flex;align-items:center;gap:7px;flex:none;padding:8px 12px!important;min-height:0!important;background:var(--surface)!important}
html body :is(#officeWorkspace,.office-phone-dialog) .action-dock .dock-main{flex:1!important;max-width:none!important;width:auto!important;min-width:150px;justify-content:center}
html body :is(#officeWorkspace,.office-phone-dialog) .mc-list-search{position:relative;flex:none;flex-wrap:nowrap;background:var(--surface2);border-bottom:1px solid var(--border)}
html body :is(#officeWorkspace,.office-phone-dialog) .mc-search-field{display:flex;align-items:center;gap:7px;min-width:0}
html body :is(#officeWorkspace,.office-phone-dialog) .mc-search-field>.icon{width:17px;height:17px;flex:none}
html body :is(#officeWorkspace,.office-phone-dialog) .mc-search{min-width:0;width:100%;height:32px;margin:0;padding:5px 8px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text)}
html body #officeWorkspace .office-intake-more{position:static!important;min-width:0;margin:0!important;border:0!important;padding:0!important;flex:none!important}
html body #officeWorkspace .office-intake-more>div{position:absolute!important;top:100%;right:0;left:auto;z-index:20;width:230px!important;max-width:90vw;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #0002;display:grid;gap:8px;padding:10px}
html body #officeWorkspace .office-intake-more:not([open])>div{display:none!important}
html body #officeWorkspace .office-intake-more select{width:100%;min-width:0;max-width:100%;height:32px;padding:4px}
html body #officeWorkspace .office-intake-row{padding:9px 10px!important;display:flex;flex-wrap:wrap;gap:4px!important;min-height:0!important}
html body #officeWorkspace .office-intake-client,html body #officeWorkspace .office-intake-stage{width:100%;min-width:0;flex-basis:100%;text-align:left}
html body #officeWorkspace .office-intake-stage{font-size:var(--fs-xs,11.5px);display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px}
html body #officeWorkspace .office-no-contact{color:var(--red,#be4545);font-size:var(--fs-xs,11.5px);width:100%}
html body dialog.office-phone-dialog.business-editor{inset:0!important;width:100vw!important;height:100dvh!important;border-radius:0!important;padding:0!important;gap:0!important;border:0!important}
html body .office-phone-dialog>header,html body .office-phone-dialog>.office-phone-categories,html body .office-phone-dialog>.office-phone-footer{display:none!important}
html body .office-phone-dialog>.office-phone-workspace{grid-template-columns:minmax(230px,18%) minmax(0,1fr);padding:0!important;gap:0!important;flex:1;min-height:0}
html body .office-phone-dialog .queue-panel,html body .office-phone-dialog [data-phone-panel]{border:0!important;border-radius:0!important;margin:0!important}
html body .office-phone-dialog .queue-panel{border-right:1px solid var(--border)!important}
html body .office-phone-dialog [data-phone-panel]{display:flex;flex-direction:column;overflow:hidden}
html body .office-phone-dialog .workspace-scroll{flex:1;min-height:0;padding:0!important}
html body .office-phone-dialog .office-client-header{margin:0!important;border:0!important;border-bottom:1px solid var(--border)!important;border-radius:0!important;padding:12px 18px!important}
html body .office-phone-dialog .office-script-prose{max-width:900px;margin:0 auto;padding:24px 32px;line-height:1.75;font-size:var(--fs-xl,17px);color:var(--text)}
html body .office-phone-dialog .office-script-prose h3{font-size:var(--fs-xl,17px);margin:8px 0 18px}
html body .office-phone-dialog .office-script-prose p{margin:0 0 22px;padding:0}
html body .office-phone-dialog .office-call-packet-list{display:block;margin:0 0 22px;padding-left:24px;line-height:1.8}
html body .office-phone-dialog .office-material-link{border:0;background:none;padding:0 4px;color:var(--blue);font:inherit;text-decoration:underline;cursor:pointer}
html body .office-phone-dialog .office-call-result{width:100%;margin:0;padding:0!important;border:0!important;background:transparent}
html body .office-phone-dialog .office-result-main{display:flex;gap:12px;align-items:end}
html body .office-phone-dialog .office-result-main>label{display:grid;gap:4px;font-size:var(--fs-sm,12.5px);min-width:210px}
html body .office-phone-dialog .office-result-main select{height:36px;padding:5px 8px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:6px}
html body .office-phone-dialog [data-result-fields]{max-height:30vh;overflow:auto;display:grid;gap:8px}
html body .office-phone-dialog [data-result-fields]:not(:empty){padding-top:8px}
html body .office-phone-dialog [data-result-fields] .ops-details{margin:0}
html body #officeWorkspace :is(.office-accountant-dispatch,.office-dispatch-contact,.office-dispatch-actions){min-height:0!important;margin:0!important;padding:10px!important;gap:8px!important}
html body #officeWorkspace .office-dispatch-contact{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap}
html body #officeWorkspace .office-dispatch-address{display:flex!important;gap:10px;flex-wrap:wrap}
html body #officeWorkspace .office-dispatch-send>summary{padding:10px!important}
html body #officeWorkspace .office-accountant-problem{padding:10px!important;margin:0!important}
@media(max-width:760px){html body #officeWorkspace.office-intake-layout>.ops-grid{grid-template-columns:minmax(170px,30%) minmax(0,1fr)!important}html body .office-phone-dialog>.office-phone-workspace{grid-template-columns:1fr}html body .office-phone-dialog .office-result-main{flex-wrap:wrap}html body .office-phone-dialog .office-script-prose{padding:16px}}
html body #officeWorkspace.office-intake-layout>.ops-head{display:none!important}
html body #officeWorkspace.office-intake-layout{padding:10px 20px!important}
html body #officeWorkspace .office-intake-list{border:1px solid var(--border);border-radius:8px;overflow:hidden}
html body #officeWorkspace.office-intake-layout>.ops-grid{grid-template-columns:var(--crm-phone-list-width,260px) minmax(0,1fr)!important;gap:0 12px!important}
html body #officeWorkspace .office-intake-detail{padding:0!important}
html body .office-phone-dialog .office-call-result{gap:0}
html body .office-phone-dialog .office-call-dock [data-result-fields] .ops-details{grid-column:1/-1}
html body .office-phone-dialog .office-call-close{min-width:30px;width:30px;padding:5px;border:0;background:none}
html body dialog.office-phone-dialog.business-editor{scale:var(--crm-ui-scale,1)!important;transform-origin:top left!important;width:calc(100vw / var(--crm-ui-scale,1))!important;height:calc(100dvh / var(--crm-ui-scale,1))!important}
html body .office-phone-dialog>.office-phone-workspace{grid-template-columns:var(--crm-phone-list-width,260px) minmax(0,1fr);max-height:none!important}
html body :is(#officeWorkspace,.office-phone-dialog) .queue-calendar{padding:8px 10px!important;flex:none;margin-top:auto}
html body :is(#officeWorkspace,.office-phone-dialog) .calendar-day{height:29px!important;min-height:29px!important;font-size:var(--fs-sm,12.5px)!important;padding:0!important}
html body :is(#officeWorkspace,.office-phone-dialog) .calendar-head{font-size:var(--fs-md,13.5px)}
html body :is(#officeWorkspace,.office-phone-dialog) .calendar-week{font-size:var(--fs-xs,11.5px)}
html body .office-phone-dialog .queue-tab{min-height:27px;padding:4px 5px;font-size:var(--fs-sm,12.5px)!important}
@media(max-width:760px){html body #officeWorkspace.office-intake-layout{padding:6px!important}html body #officeWorkspace.office-intake-layout>.ops-grid{grid-template-columns:minmax(150px,30%) minmax(0,1fr)!important}html body .office-phone-dialog>.office-phone-workspace{grid-template-columns:minmax(0,1fr)}}
html.crm-premium-trial[data-theme] body #officeWorkspace .office-intake-list .mc-list-search .office-intake-more>div{background:var(--wa-panel,var(--surface))!important;border:1px solid var(--border)!important;box-shadow:0 8px 24px #0005!important;border-radius:8px!important;width:230px!important;max-width:calc(100% - 10px)!important;padding:12px!important;gap:10px!important}
html.crm-premium-trial[data-theme] body #officeWorkspace .office-intake-list .office-intake-more select{background:var(--surface2)!important;border:1px solid var(--border)!important;border-radius:5px!important;padding:5px!important}

.office-call-result .office-next-choice{display:flex;align-items:center;gap:8px;font-size:var(--fs-md,13.5px);margin:4px 0 0}.office-next-choice input{width:16px;height:16px;margin:0}

/* Office68: original call summary in the main pane, shared booking and compact hang-up. */
html.crm-premium-trial[data-theme] body .office-phone-dialog #officeEndCall.office-end.business-end{background:#b4232c!important;border-color:#b4232c!important;color:#fff!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;min-height:36px!important;height:36px!important;padding:6px 14px!important;font-size:var(--fs-md,13.5px)!important}
html body .office-phone-dialog .office-result-content{max-width:920px;margin:0 auto;padding:22px 28px}
html body .office-phone-dialog .office-call-result{display:block}
html body .office-phone-dialog [data-result-fields]{grid-template-columns:minmax(0,1fr);max-height:none;overflow:visible;gap:14px;margin:16px 0}
html body .office-phone-dialog .office-call-result label{display:grid;gap:7px;margin:12px 0}
html body .office-phone-dialog .office-call-result .office-next-choice{display:flex}
html body .office-phone-dialog .office-call-result :is(textarea,input:not([type=hidden]):not([type=checkbox]),select){width:100%;box-sizing:border-box;background:var(--surface2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:9px 12px;font:inherit}
html body .office-phone-dialog .office-call-result .ops-details{padding:12px}
html body .office-phone-dialog .office-call-result .ops-details>summary{cursor:pointer;font-weight:var(--fw-s,600)}
html body .office-welcome-dialog [data-booking-summary]:not(:empty){padding:10px 12px;border:1px solid var(--crm-confirm-line,var(--green));border-radius:8px;background:var(--crm-confirm-bg,var(--surface2));color:var(--crm-confirm-ink,var(--text));font-weight:var(--fw-s,600)}
html body .office-phone-dialog .queue-calendar>[data-office-welcome=schedule]{width:100%;margin-bottom:8px}
html body .office-phone-dialog .office-booked-call{display:block;white-space:normal;margin:0 0 8px}
html body .office-booking-dialog{width:min(660px,94vw);max-height:90dvh;overflow:auto}
html body .office-booking-dialog .office-schedule-form{display:block;padding:16px}
html body .office-booking-dialog .office-schedule-form>label{display:grid;gap:6px;margin:12px 0}
html body .office-booking-dialog #officeMeetingChannels{grid-template-columns:1fr!important}
html body .office-welcome-dialog .availability-slots{max-height:240px;overflow:auto}
html body .office-welcome-dialog .office-caregiver{padding:16px 20px;margin:0 0 22px;border:1px solid var(--border);border-left:4px solid var(--crm-sign-line);border-radius:10px;background:var(--surface2)}
html body .office-welcome-dialog .office-caregiver p{margin:8px 0}
html body .office-welcome-dialog .office-caregiver strong{display:block;font-size:calc(var(--crm-type-body,14px)*1.3)!important;line-height:1.5}
html body #officeWorkspace .office-dispatch-contact>div{display:grid;gap:7px}
@media(max-width:700px){html body .office-phone-dialog .office-result-content{padding:16px}}

html body .office-phone-dialog .office-call-dock>button:last-child{margin-right:36px!important}

/* This bar is a separate grid row, not sticky content inside the scrolling pane. */
html body #officeWorkspace.office-intake-layout>.ops-grid>.office-welcome-dock{position:static!important;inset:auto!important;align-self:stretch;transform:none!important}

/* Pending welcome: outline of the entire existing card. */
html body #officeWorkspace details.office-welcome[data-welcome-pending="true"]{border:1px solid var(--crm-review-line,#E5A83D)!important}

/* 07.10 audyt biura: Telefon biura (pełny ekran) ma schowany nagłówek z „×”, a standard zamykania chował też dolny „Zamknij” — nie było jak wyjść z okna (tylko Esc) */
html body .office-phone-dialog .action-dock [data-office-welcome="close"].nl-close-hidden{display:inline-flex!important}
