/* Conversation stays visible; supporting controls live in one drawer. */
#ottoBookingCoach.otto-conversation header{display:flex;align-items:center;gap:10px;padding-bottom:12px!important;position:relative}
#ottoBookingCoach.otto-conversation header .og-coach-landing{display:none!important}
#ottoBookingCoach.otto-conversation header strong{font-size:19px!important;line-height:1.25!important}
#ottoBookingCoach.otto-conversation .og-eyebrow{font-size:10px!important;letter-spacing:.08em}
#ottoBookingCoach.otto-conversation .og-coach-context{font-size:12px!important;margin-top:5px}
#ottoBookingCoach.otto-conversation header [data-close]{align-self:flex-start;font-size:12px;padding:6px}
#ottoBookingCoach.otto-conversation .review-chat-box{border:0;background:transparent;margin:0}
#ottoBookingCoach.otto-conversation .review-chat-box>summary{display:none!important}
#ottoBookingCoach.otto-conversation .otto-understanding-body{padding:0!important}
#ottoBookingCoach.otto-conversation .review-understanding{background:#f3f0fb;border-radius:14px;padding:14px!important;line-height:1.5;font-size:14px;margin:10px 0}
#ottoBookingCoach.otto-conversation .otto-next-context{font-size:13px;line-height:1.5;color:#596579;margin:10px 0}
#ottoBookingCoach.otto-conversation .review-chat-log{padding:0;max-height:300px}
#ottoBookingCoach.otto-conversation .review-chat-message{font-size:14px;padding:12px;border-radius:12px;margin:10px 0}
#ottoBookingCoach.otto-conversation [data-review-chat-form]{padding:8px 0 12px;gap:8px}
#ottoBookingCoach.otto-conversation [data-review-chat-form] label{font-size:12px}
#ottoBookingCoach.otto-conversation textarea{min-height:80px;font-size:14px;padding:12px;resize:vertical}
#ottoBookingCoach.otto-conversation .otto-chat-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
#ottoBookingCoach.otto-conversation .otto-chat-actions button{padding:9px 13px;font-size:13px;min-height:38px}
#ottoBookingCoach.otto-conversation [hidden]{display:none!important}
#ottoBookingCoach.otto-conversation .otto-context-details{border-top:1px solid #e5e2ed;margin-top:12px;font-size:13px}
#ottoBookingCoach.otto-conversation .otto-context-details>summary{padding:14px 0;cursor:pointer;color:#62577c;font-weight:600}
#ottoBookingCoach.otto-conversation .otto-context-content{min-width:0}
#ottoBookingCoach.otto-conversation .otto-context-content details{margin:8px 0;font-size:13px}
#ottoBookingCoach.otto-conversation .og-saved-booking{font-size:12px;padding:10px;margin:8px 0}
#ottoBookingCoach.otto-conversation .og-coach-nav{position:sticky;bottom:0;background:white;padding-top:12px;z-index:2}

/* The shared floating sprite requires a visible 140px landing target. */
body #ottoBookingCoach.otto-conversation header{display:grid!important;grid-template-columns:140px minmax(0,1fr)!important;gap:12px!important;padding:28px 0 14px!important}
body #ottoBookingCoach.otto-conversation header>.og-coach-landing{display:flex!important;width:140px!important;min-width:140px!important;height:140px!important;padding:0!important;position:relative;border-radius:18px}
body #ottoBookingCoach.otto-conversation #ottoBookingDock{width:140px!important;min-width:140px!important;height:140px!important;position:relative}
body #ottoBookingCoach.otto-conversation header>div:nth-child(2){min-width:0;padding:0!important}
body #ottoBookingCoach.otto-conversation header strong{font-size:17px!important}
body #ottoBookingCoach.otto-conversation header>[data-close]{position:absolute;top:0;right:0}
body #ottoBookingCoach.otto-conversation .og-eyebrow{display:none}
body #ottoBookingCoach.otto-conversation .review-chat-box{border:0!important;background:transparent!important}
body #ottoBookingCoach.otto-conversation [data-review-chat-input]{width:100%;box-sizing:border-box;font-size:14px!important}
body #ottoBookingCoach.otto-conversation{top:84px!important;bottom:16px!important;max-height:calc(100dvh - 100px)!important}

body #ottoBookingCoach.otto-conversation .og-review-progress{padding:12px;margin:10px 0;background:var(--og-bg,#fff);border:1px solid var(--og-line,#e4dfee);border-radius:12px}body #ottoBookingCoach.otto-conversation .og-review-progress>strong{font-size:13px}body #ottoBookingCoach.otto-conversation .og-review-progress progress{width:100%;height:5px;margin:10px 0;accent-color:var(--purple,#5927b8)}body #ottoBookingCoach.otto-conversation .og-review-progress ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}body #ottoBookingCoach.otto-conversation .og-review-progress li{display:flex;gap:7px;align-items:flex-start;font-size:12px;line-height:1.35}body #ottoBookingCoach.otto-conversation .og-review-progress small{display:block;font-size:10px;color:var(--og-muted,#686175)}body #ottoBookingCoach.otto-conversation .otto-step-marker{flex:0 0 21px;width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:var(--og-line,#e4dfee)}body #ottoBookingCoach.otto-conversation .otto-step-marker.is-done{background:#e6f5ed;color:#246d47}body #ottoBookingCoach.otto-conversation li[aria-current=step] .otto-step-marker:not(.is-done){background:var(--purple,#5927b8);color:white}

/* Each review column owns one reachable scrolling surface. */
body.review-conversation-active #emailView.otto-guided-review :is(.review-source-email,.review-proposed-email,.ow-inbox-reading .ow-letter,.ow-inbox-reading .ow-reply){height:var(--review-pane-height,calc(100dvh - 180px))!important;max-height:var(--review-pane-height,calc(100dvh - 180px))!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior-y:contain;scrollbar-gutter:stable;box-sizing:border-box}
body.review-conversation-active #ottoBookingCoach.otto-conversation{overflow-y:auto!important;min-height:0;scroll-padding-top:12px;scroll-padding-bottom:125px}
body.review-conversation-active #ottoBookingCoach.otto-conversation>header{position:relative!important;top:auto!important}
body.review-conversation-active #ottoBookingCoach.otto-conversation>*{flex-shrink:0!important}
body.review-conversation-active #ottoBookingCoach.otto-conversation .review-chat-log{max-height:none!important;overflow:visible!important}
body.review-conversation-active #ottoBookingCoach.otto-conversation .review-chat-box{overflow:visible!important}

/* Messaging layout: left/right bubbles and a single compact composer. */
body.review-conversation-active #ottoBookingCoach.otto-conversation .review-chat-log{display:flex;flex-direction:column;gap:10px;padding:0;margin:12px 0}
body.review-conversation-active #ottoBookingCoach.otto-conversation .review-chat-message{width:fit-content;max-width:90%;padding:11px 14px;margin:0;border-radius:16px 16px 16px 4px;background:var(--og-bg,#f3f1f8);color:var(--og-ink,#252333);overflow-wrap:anywhere}
body.review-conversation-active #ottoBookingCoach.otto-conversation .review-chat-message.from-user{align-self:flex-end;border-radius:16px 16px 4px 16px;background:var(--purple,#5927b8);color:#fff}
body.review-conversation-active #ottoBookingCoach.otto-conversation .review-chat-message>strong{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body.review-conversation-active #ottoBookingCoach.otto-conversation .review-chat-message p{margin:0;color:inherit;font-size:13px;line-height:1.5}
body.review-conversation-active #ottoBookingCoach.otto-conversation .review-understanding{max-width:90%;border-radius:16px 16px 16px 4px;font-size:13px;line-height:1.5;padding:12px 14px!important}
body.review-conversation-active #ottoBookingCoach.otto-conversation [data-review-chat-form]{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:8px;align-items:end;padding:8px!important;border:1px solid var(--og-line,#dfd9e9);border-radius:24px;background:var(--og-bg,#fff);margin-top:14px}
body.review-conversation-active #ottoBookingCoach.otto-conversation [data-review-chat-form]>label{margin:0!important;min-width:0}
body.review-conversation-active #ottoBookingCoach.otto-conversation [data-review-chat-input]{min-height:38px!important;height:38px!important;max-height:120px;margin:0!important;padding:9px 10px!important;border:0!important;border-radius:16px!important;background:transparent!important;resize:vertical;font:400 14px/20px system-ui!important}
body.review-conversation-active #ottoBookingCoach.otto-conversation [data-review-chat-input]::placeholder{font-weight:400;color:var(--og-muted,#746e80)}
body.review-conversation-active #ottoBookingCoach.otto-conversation .otto-chat-actions{display:contents}
body.review-conversation-active #ottoBookingCoach.otto-conversation .otto-chat-actions button[type=submit]{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;margin:0 0 1px!important;border:0!important;border-radius:50%!important;background:var(--purple,#5927b8);color:#fff;font-size:23px!important;line-height:1!important}
body.review-conversation-active #ottoBookingCoach.otto-conversation .otto-chat-actions [data-approve-understanding]:not([hidden]){grid-column:1/-1}

.ow-is-overview .ov-layout{grid-template-columns:1fr!important}.desk-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.desk-metrics>div{padding:16px;background:#f5f3fb;border:1px solid #e5dff2;border-radius:14px}.desk-metrics strong{display:block;font-size:26px;color:#49329b}.desk-metrics span{font-size:13px;color:#596579}.desk-dates{display:flex;gap:12px;margin:12px 0}[data-desk-metrics] select,[data-desk-metrics] input{padding:10px;border:1px solid #ded8ea;border-radius:10px;background:white;color:#252333}.desk-dates label{display:grid;gap:6px}@media(max-width:700px){.desk-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.desk-chart{margin:20px 0;padding-top:16px;border-top:1px solid #e7e2ee}.desk-chart svg{display:block;width:100%;max-height:240px}.desk-chart rect{cursor:pointer;transition:height .2s,y .2s}.desk-chart rect:hover,.desk-chart rect:focus{opacity:.7;outline:2px solid #39236c}.desk-chart-tabs{display:flex;gap:6px;flex-wrap:wrap}.desk-chart-tabs button{border:1px solid #e0d9ec;border-radius:9px;background:white;padding:8px 12px;color:#534569}.desk-chart-tabs button[aria-pressed=true]{background:#eee7ff;color:#5125a5}.desk-chart p{font-size:13px;color:#647087}.desk-booking-summary{display:grid;gap:6px;font-size:13px}.desk-booking-summary meter{width:100%;height:14px}.desk-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}@media(max-width:1100px){.desk-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}

[data-desk-metrics].ov-card{padding:16px!important}.desk-metrics{gap:8px}.desk-metrics>div{padding:10px 12px}.desk-metrics strong{font-size:22px}.desk-chart-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:16px;margin-top:14px}.desk-chart-grid .desk-chart{margin:0;padding:0;border:0;min-width:0}.desk-chart-grid h3{font-size:14px;margin:0 0 12px}.desk-chart-grid .ov-heading{display:block}.desk-chart-tabs{margin-bottom:8px}.desk-chart-tabs button{font-size:11px;padding:5px 7px}.desk-chart svg{height:165px;max-height:165px}.desk-mini-chart{border-left:1px solid #e7e2ee;padding-left:16px}.desk-stacked{height:20px;display:flex;border-radius:6px;overflow:hidden;background:#efedf3;margin:18px 0}.desk-chart-key{display:flex;justify-content:space-between;gap:8px;margin:12px 0;font-size:12px}.desk-chart-key i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}.desk-chart-key small{font-weight:400;color:#687184;margin-left:4px}.desk-mini-chart p{font-size:11px;color:#687184;line-height:1.4}[data-desk-metrics]>.ow-fine{font-size:11px;margin-bottom:0}@media(max-width:1000px){.desk-chart-grid{grid-template-columns:1fr 1fr}.desk-chart-grid>.desk-chart{grid-column:1/-1}}@media(max-width:600px){.desk-chart-grid{grid-template-columns:1fr}.desk-mini-chart{border-left:0;padding-left:0}}

/* Front Desk review actions share one compact treatment. */
.ow-root :is(.ov-task [data-ow-resume],.ow-task-actions [data-workflow-task]){display:inline-flex!important;align-items:center;justify-content:center;gap:10px;min-height:42px;min-width:130px;padding:11px 17px!important;border:1px solid #5d42b8!important;border-radius:12px!important;background:linear-gradient(135deg,#6650bf,#42328c)!important;color:#fff!important;font-size:13px!important;font-weight:650!important;box-shadow:0 3px 8px #48328c20;transition:transform .15s,box-shadow .15s,filter .15s;white-space:normal;text-align:center}
.ow-root :is(.ov-task [data-ow-resume],.ow-task-actions [data-workflow-task]):hover:not(:disabled){transform:translateY(-1px);box-shadow:0 5px 12px #48328c33;filter:brightness(1.08)}
.ow-root :is(.ov-task [data-ow-resume],.ow-task-actions [data-workflow-task]):active:not(:disabled){transform:translateY(0);box-shadow:none}
.ow-root :is(.ov-task [data-ow-resume],.ow-task-actions [data-workflow-task],.ow-task-more>summary):focus-visible{outline:3px solid #8cb9ed;outline-offset:3px}
.ow-root :is(.ov-task [data-ow-resume],.ow-task-actions [data-workflow-task]):disabled{opacity:.5;box-shadow:none;cursor:wait}
.ow-root .ow-task-actions{gap:10px!important;align-items:flex-end}.ow-root .ow-task-more{position:relative;margin:0!important;min-width:0!important}
.ow-root .ow-task-more>summary{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;list-style:none;padding:8px 12px!important;border:1px solid #e1dced;border-radius:10px;background:#f6f4fb;color:#625779;font-size:12px!important;font-weight:600;cursor:pointer;transition:background .15s}
.ow-root .ow-task-more>summary::-webkit-details-marker{display:none}.ow-root .ow-task-more>summary:hover,.ow-root .ow-task-more[open]>summary{background:#ebe5fa;color:#45308c}
.ow-root .ow-task-more>div{margin-top:8px!important;padding:12px!important;border:1px solid #e3ddee;border-radius:12px;background:white;box-shadow:0 6px 18px #30234512;min-width:180px}.ow-root .ow-task-more>div button{font-size:12px!important;border-radius:8px!important}
.ow-root .ov-heading [data-ov-filter],.ow-root .ov-card>[data-ow-tab=tasks]{border-radius:10px!important;background:#f3f0fa!important;border:1px solid #e1d9ef!important;color:#56418b!important;font-weight:600;font-size:12px!important;padding:9px 13px!important}
@media(prefers-reduced-motion:reduce){.ow-root :is(.ov-task [data-ow-resume],.ow-task-actions [data-workflow-task]){transition:none!important;transform:none!important}}

.desk-duplicate{max-width:260px;padding:12px;background:#fff7e6;border:1px solid #eed5a1;border-radius:12px;display:grid;gap:7px;font-size:12px}.desk-duplicate small{overflow-wrap:anywhere;color:#706248}.desk-duplicate button{white-space:normal!important;font-size:12px!important;padding:9px!important;border:1px solid #c9b1eb!important;border-radius:9px!important;background:#f0e8fc!important;color:#4e3085!important}

.ow-root .desk-request-group{padding:18px!important;gap:20px!important}.desk-request-group .ow-task-actions{max-width:250px}.desk-request-group .ow-task-actions>small{font-size:11px;color:#72687f;text-align:right;line-height:1.4}.desk-split-action{display:flex;align-items:stretch;position:relative}.desk-split-action>button{border-radius:11px 0 0 11px!important;padding:11px 20px!important;background:#5741ab!important;color:white!important;border:0!important;font-weight:650}.desk-split-action>details>summary{list-style:none;cursor:pointer;padding:11px;background:#5741ab;color:white;border-left:1px solid #ffffff40;border-radius:0 11px 11px 0}.desk-split-action>details>summary::-webkit-details-marker{display:none}.desk-split-action>details>button{position:absolute;right:0;top:100%;z-index:5;margin-top:5px;white-space:nowrap;padding:12px!important;border:1px solid #e2dcec!important;border-radius:10px!important;background:white!important;box-shadow:0 5px 15px #39245f20}.desk-group-details{font-size:12px;margin-top:10px;color:#675979}.desk-group-details label{display:grid;gap:6px;margin-top:10px}.desk-group-details select{max-width:100%;padding:8px;border:1px solid #e1daed;border-radius:8px;background:white}.desk-split-action :is(button,summary):focus-visible{outline:3px solid #91b7e9;outline-offset:2px}

.otto-recommended-appointments{display:grid;gap:10px;margin:12px 0}.otto-recommended-appointment{padding:12px;border:1px solid #cfc3e7;border-radius:12px;background:white}.otto-recommended-appointment>strong{font-size:14px}.otto-recommended-appointment p{font-size:12px!important;margin:6px 0!important;line-height:1.4}.otto-recommended-appointment button{background:#5741ab!important;color:white!important;border:0!important;border-radius:10px!important;padding:10px 14px!important;font-weight:600}

/* Phone conversation: history scrolls above the anchored composer. */
body.review-conversation-active #ottoBookingCoach.otto-conversation{display:flex!important;flex-direction:column!important;overflow:hidden!important;scroll-padding:0}
body.review-conversation-active #ottoBookingCoach.otto-conversation>[data-review-tools]{display:flex!important;flex-direction:column;flex:1 1 0!important;min-height:0!important;overflow:hidden!important;margin:0!important;padding:0!important}
body.review-conversation-active #ottoBookingCoach.otto-conversation .otto-chat-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 2px 6px;display:flex;flex-direction:column}
body.review-conversation-active #ottoBookingCoach.otto-conversation .otto-chat-scroll>*{flex-shrink:0}
body.review-conversation-active #ottoBookingCoach.otto-conversation .otto-chat-scroll>.review-chat-box{margin-top:auto!important}
body.review-conversation-active #ottoBookingCoach.otto-conversation [data-review-tools]>[data-review-chat-form]{flex-shrink:0;margin:8px 0!important}
body.review-conversation-active #ottoBookingCoach.otto-conversation .og-coach-nav{position:relative!important;bottom:auto!important;flex-shrink:0;margin-top:0!important}
body.review-conversation-active #ottoBookingCoach.otto-conversation [data-review-status]:empty{display:none}

.otto-style-control{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:12px 0;padding:12px;background:#f7f4fc;border:1px solid #e3dbee;border-radius:12px}.otto-style-control label{flex:1;min-width:180px;font-size:12px!important;margin:0!important}.otto-style-control label span{font-weight:400;color:#756d83}.otto-style-control input{display:block;width:100%;box-sizing:border-box;padding:10px!important;border:1px solid #dcd4e9;border-radius:9px;background:white;font-size:14px;margin-top:6px}.otto-style-control button{padding:11px 14px!important;border:0;border-radius:9px;background:#5741ab;color:white;font-weight:600}.otto-style-control small:empty{display:none}.otto-style-control small{flex-basis:100%;color:#9a3030}

.customer-bulk-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:12px 0;padding:12px 16px;border:1px solid #e1dced;border-radius:14px;background:#f8f6fc}.customer-bulk-tools label{display:flex;align-items:center;gap:8px;margin:0}.customer-bulk-tools input,.customer-select-row>input{width:18px;height:18px;accent-color:#5540aa}.customer-select-row{display:flex;align-items:center;gap:12px}.customer-select-row>.customer-result-row{flex:1;min-width:0}.customer-delete-one{padding:9px 12px;border:1px solid #e8c9ce;border-radius:10px;color:#a43049;background:#fff8f9}.customer-delete-one:disabled{opacity:.5}

#customerImportStatus.is-error { color: #b42332; }
