/* Match existing CRM surfaces; no extra colour theme or independently scrolling columns. */
#opMeetingCalendar{margin:14px 0;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface2)}
#opMeetingCalendar>summary{font-size:var(--fs-lg,14px);font-weight:var(--fw-s,600);line-height:1.45;white-space:normal}
#opMeetingCalendar[open]>summary{margin-bottom:12px}
#opMeetingCalendar #opCalendar{min-width:0;width:100%}
#opMeetingCalendar label[hidden]{display:none!important}
#opMeetingCalendar .op-meeting-channels{display:flex;gap:8px;margin:12px 0}
#opMeetingCalendar .op-meeting-channels button{flex:1;min-width:0;white-space:normal;font-size:var(--fs-lg,14px);padding:8px}
#opMeetingCalendar .op-meeting-channels button[aria-pressed=true]{border-color:var(--accent,#2FBF87);box-shadow:inset 0 0 0 1px var(--accent,#2FBF87);font-weight:var(--fw-s,600)}
#opMeetingCalendar #opSaveMeeting{width:100%;min-height:36px}
.op-optional-deadline{display:block;color:var(--muted);font-size:var(--fs-md,13.5px);margin:5px 0 9px;line-height:1.4}
#clientWorkDialog.is-followup-review{width:min(1080px,calc(94vw / var(--crm-ui-scale, 1)));max-height:calc(92dvh / var(--crm-ui-scale, 1));overflow:auto}
#followupReview{padding:18px 20px;border-bottom:1px solid var(--border)}
#followupReview .op-review-intro{display:flex;align-items:center;gap:12px;margin-bottom:16px}
#followupReview .op-review-intro>span{color:var(--muted);font-size:var(--fs-lg,14px)}
#followupReview .op-review-top{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
#followupReview label,#followupReview .op-review-meeting{display:flex;flex-direction:column;gap:8px;font-size:var(--fs-lg,14px);min-width:0}
#followupReview select,#followupReview textarea{box-sizing:border-box;width:100%;border:1px solid var(--border);border-radius:8px;padding:10px 12px;background:var(--surface2);color:var(--text);font:inherit;line-height:1.5}
#followupReview .op-review-meeting{padding:10px 12px;border-radius:8px;background:var(--surface2)}
#followupReview .op-review-meeting>span{color:var(--muted)}
#opReviewChanges{margin-top:18px;font-size:var(--fs-lg,14px);line-height:1.55}
#opReviewChanges ul{padding-left:20px;margin:8px 0 0}
#opReviewChanges li{margin:6px 0;overflow-wrap:anywhere}
#opReviewChanges li>span{font-weight:var(--fw-s,600)}#opReviewChanges small,#opReviewChanges p{color:var(--muted);font-size:var(--fs-lg,14px)}
#opReviewError:empty{display:none}#opReviewError:not(:empty){color:#E5484D;border-left:3px solid currentColor;padding:10px}
#clientWorkDialog.is-followup-review .client-work-grid{grid-template-columns:1fr;gap:16px;padding:16px 20px}
#clientWorkDialog.is-followup-review .client-work-grid>article{max-height:none;overflow:visible}
#clientWorkDialog.is-followup-review #clientPersistentWorkbench{margin:0!important;max-height:none}
#clientWorkDialog.is-followup-review #followupReviewFooter{position:sticky;bottom:0;z-index:3;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;background:var(--surface);padding:14px 20px;border-top:1px solid var(--border)}
#clientWorkDialog #followupReviewFooter[hidden],#followupReview[hidden],#clientWorkDialog.is-followup-review #clientWorkDialogFooter{display:none!important}
@media(max-width:650px){#followupReview .op-review-top{grid-template-columns:1fr}#followupReview{padding:14px}#clientWorkDialog.is-followup-review .client-work-grid{padding:14px}}
/* The same outcome buttons, surfaces and work cards as the first sales summary. */
html body .followup-result-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
html body .followup-result-picker .result-option{min-height:42px;height:auto;padding:9px;font:inherit;font-size:var(--fs-md,13.5px);white-space:normal;color:var(--text);border:1px solid var(--border);background:var(--surface2)}
html body .followup-result-picker .result-option.selected{border-color:var(--green);background:color-mix(in srgb,var(--green) 10%,var(--surface));color:var(--green)}
html body #operationalControls .followup-result-picker{grid-template-columns:1fr}
html body #operationalControls #opResult,html body #opReviewResult{display:none!important}
html body #clientWorkDialog.is-followup-review{width:min(980px,calc(94vw / var(--crm-ui-scale,1)));background:var(--surface);border:1px solid var(--border);border-radius:13px;padding:0}
html body #clientWorkDialog.is-followup-review #followupReview{border:0;padding:17px}
html body #clientWorkDialog.is-followup-review #clientPersistentWorkbench{padding:0 17px 17px;box-sizing:border-box}
html body #clientWorkDialog.is-followup-review .modal-head h2{font-size:var(--fs-xl,17px)}
html body #clientWorkDialog.is-followup-review .modal-section h3{font-size:var(--fs-lg,14px);color:var(--text)}
html body #clientWorkDialog.is-followup-review #opReviewChanges{display:none!important}
html body #clientWorkDialog.is-followup-review #opMeetingCalendar{width:100%;box-sizing:border-box}
html body #followupReview .op-review-meeting{padding:0;background:none}
html body #opReviewText{background:var(--surface2);color:var(--text);min-height:100px}
@media(max-width:650px){html body .followup-result-picker{grid-template-columns:1fr}}
html body #followupReview .op-review-meeting[hidden]{display:none!important}
/* The live result belongs to the bottom dock, never to the left scroll column. */
html body #opCallResultDock{display:none!important}
html body #callMode.operational-call{grid-template-rows:minmax(0,1fr) auto!important}
html body #callMode.operational-call>.call-left,html body #callMode.operational-call>.call-main{grid-row:1!important;min-height:0}
html body #callMode.operational-call>#opCallResultDock{display:flex!important;grid-row:2!important;grid-column:1/-1!important;align-items:center;justify-content:center;gap:14px;padding:9px 14px;box-sizing:border-box;border-top:1px solid var(--border);background:var(--surface);z-index:2;min-width:0}
html body #opCallResultDock>span{font-size:var(--fs-sm,12.5px);color:var(--muted);flex:0 0 auto}
html body #opCallResultDock .followup-result-picker{width:min(720px,100%);margin:0;grid-template-columns:repeat(3,minmax(0,1fr))}
html body #opCallResultDock #opResult{display:none!important}
#opDeadlineSection{margin:12px 0;padding:0}
#opDeadlineSection:has(#opDeadline[hidden]){display:none}
#opDeadlineSection #opDeadline{width:100%;justify-content:center}
/* Fixed header and bottom actions; only the content area scrolls. */
html body #clientWorkDialog.is-followup-review[open]{display:flex!important;flex-direction:column!important;height:fit-content!important;/* 18.10 (Dawid: „okno powinno się dopasować do wysokości, żeby nie było tyle wolnej przestrzeni”): wysokość od treści (fit-content — przy dialogu z top/bottom 0 „auto” rozciąga na cały ekran), max 94dvh ze scrollem */max-height:calc(94dvh / var(--crm-ui-scale,1))!important;overflow:hidden!important;box-sizing:border-box}
html body #clientWorkDialog.is-followup-review>.modal-head{flex:0 0 auto;min-height:0}
html body #clientWorkDialog.is-followup-review>#clientWorkDialogBody{display:block!important;flex:1 1 auto;min-height:0;overflow:auto!important;overscroll-behavior:contain;padding:0!important}
html body #clientWorkDialog.is-followup-review>#followupReviewFooter{position:static!important;flex:0 0 auto!important;margin-top:auto!important;z-index:3;align-items:center;justify-content:flex-end;min-height:58px;box-sizing:border-box}
html body #clientWorkDialog.is-followup-review #clientPersistentWorkbench{margin:0!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box}
/* Commercial deadline uses the missing-data form surface, fields and spacing. */
html body #commercialReminderDialog .commercial-deadline-fields{display:grid!important;grid-template-columns:1fr 1fr!important;align-items:start!important;gap:12px!important;padding:14px!important;border-color:var(--crm-review-line)!important;border-left:3px solid var(--crm-review-line)!important;background:var(--crm-review-surface)!important;border-radius:10px!important}
html body #commercialReminderDialog .commercial-deadline-fields>label{display:block;font-size:var(--fs-md,13.5px)!important;line-height:1.5;text-transform:none;color:var(--text)!important;min-width:0}
html body #commercialReminderDialog .commercial-deadline-fields :is(.crm-date-trigger,.business-clock>select,select){width:100%!important;height:42px!important;font-size:var(--fs-lg,14px)!important;margin:6px 0 0!important;box-sizing:border-box}
html body #commercialReminderDialog :is(textarea,footer .btn){font-size:var(--fs-lg,14px)!important;line-height:1.5}
html body #commercialReminderDialog textarea{width:100%;box-sizing:border-box;padding:12px;background:var(--surface2);color:var(--text);border:1px solid var(--border);border-radius:8px}
@media(max-width:650px){html body #callMode.operational-call>#opCallResultDock{flex-wrap:wrap;gap:5px;padding:8px}html body #opCallResultDock .followup-result-picker .result-option{font-size:var(--fs-xs,11.5px);min-height:42px}html body #clientWorkDialog.is-followup-review>#followupReviewFooter .btn{flex:1;white-space:normal;height:auto}}
html body #clientWorkDialog.is-followup-review #clientPersistentWorkbench{padding:0 17px 17px!important;border:0!important;border-radius:0!important;background:transparent!important}
/* 29.09 (Dawid): „Ustal deadline z klientem” — rozwijana belka po lewej w rozmowie, jak „Umów kolejną rozmowę z klientem”; bez pop-upu */
#opDeadlineSection #opDeadline{display:none!important}
#opDeadlineFold{margin:14px 0 0;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface2)}
#opDeadlineFold>summary{font-size:var(--fs-lg,14px);font-weight:var(--fw-s,600);line-height:1.45;white-space:normal;cursor:pointer}
#opDeadlineFold[open]>summary{margin-bottom:12px}
#opDeadlineSection>#opCommercialState{margin:6px 2px 0;font-size:var(--fs-sm,12.5px);color:var(--muted)}
#opDeadlineInline>h2,#opDeadlineInline>#commercialReminderRecipient{display:none}
#opDeadlineInline #opCommercialState{margin:0 0 8px;font-size:var(--fs-sm,12.5px);color:var(--muted)}
#opDeadlineInline .deadline-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 8px}
#opDeadlineInline .deadline-fields label{display:grid;gap:4px;font-size:var(--fs-sm,12.5px);color:var(--muted)}
#opDeadlineInline .deadline-fields br{display:none}
#opDeadlineInline textarea{width:100%;min-height:120px;max-height:220px;font-size:var(--fs-sm,12.5px);box-sizing:border-box}
#opDeadlineInline>p{font-size:var(--fs-xs,11.5px)}
#opDeadlineInline footer{display:grid;gap:6px;margin-top:8px}
#opDeadlineInline footer .btn{width:100%;justify-content:center;white-space:normal}
#opDeadlineInline #closeCommercialReminder{order:3}
