/* Only the requested live sales controls; no page or theme redesign. */
html body #callMode #salesLiveActions .sales-paths{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
html body #callMode #salesLiveActions .sales-paths .sales-path{box-sizing:border-box!important;min-width:0!important;width:100%!important;height:46px!important;min-height:46px!important;padding:6px!important;line-height:1.35!important;font-size:var(--fs-sm,12.5px)!important;font-weight:var(--fw-b,700)!important;transform:none!important;letter-spacing:normal!important;transition:background-color .15s,border-color .15s,color .15s!important}
html body #callMode #salesLiveActions .sales-paths .sales-path::before{content:none!important}
/* Fold where the user clicked; do not chase the next row with scroll anchoring. */
#callMode .call-detail-scroll:has(#focusScript[data-call-kind=sales]){overflow-anchor:none;scroll-behavior:auto!important}
#focusScript[data-call-kind=sales] :is(.focus-step,.focus-step-body){transition:none!important}
#focusScript[data-call-kind=sales] .audit-fold-body-hidden{display:none!important}
:is(#callMode,#clientWorkDialog,.office-welcome-dialog) :is(#salesNextChannel,#opMeetingChannels,#officeMeetingChannels)[hidden]{display:none!important}
:is(#callMode,#clientWorkDialog,.office-welcome-dialog) :is(#salesNextChannel,#opMeetingChannels,#officeMeetingChannels) input{width:16px!important;height:16px!important;margin:0!important;accent-color:#98adc4}
#liveReplyPlan .reply-note{padding:10px 0!important;margin-top:10px!important;border:0!important;border-top:1px solid var(--border)!important;background:transparent!important}
#liveReplyPlan .reply-note header{display:flex;align-items:center;justify-content:space-between;gap:10px}
#liveReplyPlan .reply-note header strong{font-size:var(--fs-lg,14px)!important;color:var(--text)!important}
#liveReplyPlan .reply-note header button{font-size:var(--fs-sm,12.5px)!important;min-height:30px!important;padding:5px 9px!important}
.reply-note textarea[hidden]{display:none!important}
#liveReplyPlan .reply-note textarea{width:100%;box-sizing:border-box;margin-top:9px;font:inherit;font-size:var(--fs-lg,14px);min-height:72px;resize:vertical}
html.crm-premium-trial body :is(#saveSalesNextStepsLive,#opSaveMeeting,#officeSaveMeeting):not(:disabled){background:var(--crm-confirm-bg)!important;color:var(--crm-confirm-ink)!important;border:1px solid var(--crm-confirm-line)!important;box-shadow:none!important;font-weight:var(--fw-b,700)!important;min-height:42px!important;padding:10px 12px!important}
html.crm-premium-trial body :is(#saveSalesNextStepsLive,#opSaveMeeting,#officeSaveMeeting):hover:not(:disabled){background:var(--crm-confirm-hover)!important}
html.crm-premium-trial body :is(#saveSalesNextStepsLive,#opSaveMeeting,#officeSaveMeeting):focus-visible{outline:2px solid var(--premium-ink)!important;outline-offset:3px!important}
/* Same two-column channel row and full-width, rounded save action as the audit. */
html body :is(#callMode,#clientWorkDialog,.office-welcome-dialog) :is(#salesMeetingFooter,#opMeetingFooter,#officeMeetingFooter){display:grid!important;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 0;padding:0;border:0;background:transparent}
html body :is(#callMode,#clientWorkDialog,.office-welcome-dialog) :is(#salesMeetingFooter,#opMeetingFooter,#officeMeetingFooter)[hidden]{display:none!important}
html body :is(#callMode,#clientWorkDialog,.office-welcome-dialog) :is(#salesNextChannel,#opMeetingChannels,#officeMeetingChannels){grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;min-width:0}
html body :is(#callMode,#clientWorkDialog,.office-welcome-dialog) :is(#salesNextChannel,#opMeetingChannels,#officeMeetingChannels) label{display:flex!important;align-items:center;justify-content:center;gap:8px;min-width:0;font-size:var(--fs-lg,14px)!important;border-radius:8px!important}
html body :is(#callMode,#clientWorkDialog,.office-welcome-dialog) :is(#saveSalesNextStepsLive,#opSaveMeeting,#officeSaveMeeting){grid-column:1/-1;width:100%!important;height:46px!important;min-height:46px!important;max-height:none!important;border-radius:9px!important;justify-content:center!important;margin:0!important;font-size:var(--fs-lg,14px)!important}
html.crm-premium-trial body #liveReplyPlan .reply-mode-buttons .btn{background:var(--crm-sign-paper)!important;color:var(--premium-ink)!important;border:1px solid var(--crm-sign-line)!important;border-radius:8px!important;line-height:1.45!important;min-height:44px;font-weight:var(--fw-s,600)!important}
html.crm-premium-trial body #liveReplyPlan .reply-mode-buttons .btn[aria-pressed=true]{background:var(--crm-sign-bg)!important;color:var(--crm-sign-ink)!important;border-color:var(--crm-sign-line)!important;box-shadow:inset 0 0 0 1px var(--crm-sign-line)!important}
html.crm-premium-trial body .action-dock :is(#startCall,[data-office-welcome=call],[data-office-welcome=start]):not(:disabled):not([aria-disabled=true]){background:var(--crm-confirm-bg)!important;color:var(--crm-confirm-ink)!important;border-color:var(--crm-confirm-line)!important;opacity:1!important}

/* The audit booking controls never replace the sales next-step form. */
html body #callMode #callFollowup[hidden]{display:none!important}

/* Compact right tools while retaining the same controls. */
@media(min-width:1000px){html body #callMode.meet-open>.call-main{grid-template-columns:minmax(0,1fr) 360px!important}html body #callMode .live-advisor-rail{width:auto;min-width:0;box-sizing:border-box}html body #callMode .live-price-toolbar .btn{min-height:25px!important;padding:3px 5px!important}html body #callMode .live-advisor-rail summary{padding-top:7px!important;padding-bottom:7px!important}}
#clientTime[role=button]{cursor:pointer;border-bottom:1px dotted currentColor}#clientTime[role=button]:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

@media(min-width:1000px){html body #callMode .call-detail-scroll.ai-advisor-visible{grid-template-columns:minmax(0,1fr) 360px!important;gap:12px}}

.ac-unlinked-clients{margin:10px 0}.ac-unlinked-list{max-height:220px;overflow:auto;padding:12px}.ac-unlinked-list p{margin:0 0 10px}

/* Compact pending appointment: original calendar stays mounted with the user's choice. */
#ownScheduleChoice{min-width:0;margin-bottom:10px;border:1px solid var(--border);border-radius:8px}
#ownScheduleChoice>summary{display:flex;align-items:center;gap:10px;padding:12px;cursor:pointer;list-style:none;font-weight:var(--fw-s,600)}
#ownScheduleChoice>summary::-webkit-details-marker{display:none}
#ownScheduleChoice>summary::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-left:auto;flex:0 0 6px}
#ownScheduleChoice[open]>summary::after{transform:rotate(225deg)}
#ownScheduleChoice>#ownCalendar{padding:8px}
#ownScheduleChoice:not([open])>#ownCalendar{display:none!important}
html body #callMode .live-advisor-rail{max-width:100%;min-width:0}
html body #callMode .live-advisor-rail :is(select,input){min-width:0;max-width:100%;box-sizing:border-box}
html body #callMode>.crm-panel-divider,html body #callMode .crm-panel-divider{opacity:.55}

html body #ownLeadView .own-audit-planner:has(#ownScheduleChoice:not([open])){align-self:start;height:auto!important}

/* SALES157: compact contact planner, one existing note editor, readable appointment. */
html body #liveReplyPlan>strong{font-size:var(--fs-sm,12.5px)!important;text-transform:none!important;letter-spacing:normal!important;line-height:1.4!important}
html.crm-premium-trial body :is(#liveReplyPlan,#summaryReplyPlan) .reply-mode-buttons .btn[data-reply-mode="scheduled"][aria-pressed="true"]{background:var(--crm-confirm-bg,#294c3e)!important;border-color:var(--crm-confirm-line,#567867)!important;color:var(--crm-confirm-ink,var(--text))!important;box-shadow:none!important}
html body #summaryReplyPlan .summary-contact-readback{padding:14px!important;gap:12px!important}
html body #summaryReplyPlan .summary-contact-readback small{--crm-type-body:var(--fs-lg,14px);font-size:var(--fs-lg,14px)!important;line-height:1.5!important}
html body #summaryReplyPlan .summary-contact-readback strong{--crm-type-body:var(--fs-2xl,22px);display:block;font-size:var(--fs-2xl,22px)!important;line-height:1.4!important;font-weight:var(--fw-b,700)!important}
html body #commercialReminderDialog[open]{display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important}
html body #commercialReminderDialog>.commercial-reminder-body{min-height:0;overflow:auto;padding:0 18px 16px}
html body #commercialReminderDialog>.crm-dialog-header{display:flex;align-items:center;gap:12px;flex:none;padding:14px 18px;border-bottom:1px solid var(--border);background:var(--surface)}
html body #commercialReminderDialog>.crm-dialog-header h2{margin:0!important;padding:0!important;font-size:var(--fs-xl,17px)!important}
html body #commercialReminderDialog>footer{position:static!important;flex:none;margin:0!important;padding:12px 18px!important;background:var(--surface)!important;border-top:1px solid var(--border)}
html body #commercialReminderDialog .commercial-reminder-body>.deadline-fields{margin:12px 0!important}

html.crm-premium-trial body :is(#callMode,#outcomeOverlay) :is(#liveReplyPlan,#summaryReplyPlan) :is(.reply-deadline,.reply-mode-buttons,.summary-contact-readback)[hidden]{display:none!important}
/* 15.10.2026 (Dawid): „Umów audyt” kompaktowe — prawa kolumna kończy się na treści, nie ciągnie się do dołu */
html body #ownLeadView>.own-body.own-contact-grid .own-audit-planner{align-self:start;height:auto!important;max-height:100%}
