/* The workspace keeps its full canvas. Olmi floats above it, without a column. */
.program-stage { position: relative; padding-bottom: 80px; }
.program-window { position: relative; grid-template-columns: 164px minmax(0,1fr); height: 600px; isolation: isolate; }
.program-workspace { overflow: hidden; }
.program-content { padding: 28px 30px 12px; }
.program-content .patient-heading h2 { font-size: 24px; }
.program-content .patient-goal { margin-block: 20px 25px; }
.program-content .routine-grid { gap: 20px; }
.program-content .routine-group { min-height: 170px; }
.program-content .routine-item { min-height: 43px; }
.program-next { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; }
.program-next .next-row + .next-row { border-top: 0; border-left: 1px solid var(--line); }
.program-receipt { min-height: 42px; justify-content: flex-start; gap: 14px; }
.program-receipt button { min-height: 30px; }
.program-footer { margin-inline: 30px; }
.product-sidebar .mini-nav { border: 0; width: 100%; text-align: left; font-family: inherit; background: transparent; }
.product-sidebar .mini-nav.active { background: var(--fill-selected); color: var(--action-hover); }
.product-sidebar .mini-nav:hover { background: var(--fill-hover); }
.product-sidebar .mini-search { display: flex; gap: 7px; margin-bottom: 11px; }
.mini-search input { min-width: 0; width: 100%; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; }
.mini-search input::placeholder { color: var(--text-subtle); }
.mini-search:focus-within { box-shadow: 0 0 0 2px var(--olive-200); border-radius: 5px; }
.mini-search > span { flex-shrink: 0; }
.program-window .nav-label { padding-top: 19px; }
.program-window .join-panel { position: absolute; inset: 50px 0 0 auto; width: min(330px,100%); z-index: 7; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -18px 0 50px #25351b10; }
.product-caption { padding-right: 200px; }
.olmi-float { position: absolute; width: 278px; right: -16px; bottom: 28px; z-index: 8; text-align: left; --in: 0; --out: 0; }
.assistant-content { margin-bottom: 11px; transform-origin: bottom right; animation: float-appear .25s ease-out; }
.assistant-caption { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 9px 8px; color: var(--text-muted); font-size: 10px; }
.assistant-caption > span { padding: 3px 7px; border-radius: 4px; background: #f9faf6c9; backdrop-filter: blur(8px); }
.assistant-caption button { display: grid; place-items: center; height: 23px; width: 23px; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; color: var(--text-muted); box-shadow: 0 2px 7px #2432160d; }
.assistant-caption button .icon { width: 12px; height: 12px; transform: rotate(90deg); }
.olmi-float .action-stage { padding: 0; overflow: visible; flex: none; }
.olmi-float .empty-actions { display: grid; gap: 8px; }
.olmi-float .empty-actions > button { margin: 0; padding: 14px; min-height: 63px; width: 100%; background: #fffffff5; border-color: #e1e5d9; border-radius: 13px; box-shadow: 0 6px 18px #2633180a,0 1px 2px #26331806; backdrop-filter: blur(16px); transition: transform .2s,box-shadow .2s; }
.olmi-float .empty-actions > button:hover { transform: translateX(-4px); box-shadow: 0 7px 24px #26331816; }
.olmi-float .empty-actions > button > span { font-size: 12px; }
.olmi-float .empty-actions small { font-size: 10px; margin-top: 3px; }
.olmi-float .empty-actions > button > .icon { height: 17px; width: 17px; color: var(--action); }
.olmi-float .empty-actions > button > .icon:last-child { width: 14px; }
.assistant-launcher { display: flex; align-items: center; gap: 0; height: 62px; background: #fffffff5; border: 1px solid #dce2d2; border-radius: 40px; box-shadow: 0 12px 38px #29371e1c,0 2px 5px #29371e08; backdrop-filter: blur(20px); padding: 4px 6px 4px 2px; }
.presence-button { display: grid; place-items: center; border: 0; background: transparent; height: 54px; width: 65px; flex-shrink: 0; border-radius: 50%; }
.olmi-float .voice-mark-wrap { display: block; position: relative; margin: 0; width: 64px; height: 58px; transform: scale(calc(1 + var(--out) * .12)); }
.olmi-float .voice-mark-wrap img { width: 64px; height: 58px; display: block; }
.olmi-float .voice-mark-wrap[data-state='listening'], .olmi-float .voice-mark-wrap[data-state='hearing'] { filter: drop-shadow(0 0 calc(3px + var(--in) * 14px) #9eac7a70); }
.olmi-float .voice-mark-wrap[data-state='thinking'] { animation: presence-breathe 1.5s ease-in-out infinite; }
.conversation-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 1; height: 48px; padding: 0 15px 0 2px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; font-weight: 500; border-radius: 28px; }
.conversation-button:hover { color: var(--action); }
.conversation-button .icon { width: 17px; height: 17px; color: var(--action); }
.olmi-float .call-controls { display: flex; align-items: center; gap: 5px; margin: 0; padding-right: 4px; flex: 1; min-width: 0; }
.olmi-float #voice-title { font-size: 10px; flex: 1; line-height: 1.3; color: var(--action-hover); }
.olmi-float #mute-call,.olmi-float #end-call { display: grid; place-items: center; width: 30px; height: 30px; min-width: 30px; border: 1px solid var(--line); border-radius: 50%; padding: 0; background: var(--surface); color: var(--text-muted); font-size: 18px; }
.olmi-float #mute-call .icon { width: 13px; height: 13px; }
.olmi-float #mute-call[aria-pressed='true'] { background: var(--olive-100); color: var(--action); }
.olmi-float #end-call { background: var(--action); color: white; }
.olmi-float .heard-request { margin: 0 0 8px; padding: 12px 15px; background: #f7f9f1f5; border: 1px solid #e0e7d3; border-radius: 12px; box-shadow: 0 5px 18px #2633180a; }
.olmi-float .heard-request p { font-size: 11px; margin-top: 5px; }
.olmi-float .approval-card { background: #fff; padding: 17px; border-radius: 15px; box-shadow: 0 12px 40px #23311720; }
.olmi-float .approval-heading h4 { font-size: 13px; }
.olmi-float .approval-card li { font-size: 11px; }
.olmi-float .approval-actions .button { font-size: 10px; }
.olmi-float .working-card,.olmi-float .action-receipt { background: #fff; padding: 16px; border-radius: 13px; box-shadow: 0 10px 32px #23311714; }
.olmi-float .action-receipt p { font-size: 10px; }
.olmi-float .action-receipt strong { font-size: 12px; }
.olmi-float .voice-response { margin: 0; max-height: 140px; overflow: auto; padding: 15px; border-radius: 12px; background: #fff; box-shadow: 0 7px 26px #26331812; font-size: 11px; line-height: 1.6; }
.next-suggestions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: 9px 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text-muted); font-size: 10px; border-radius: 6px; }
.next-suggestions .icon { width: 12px; height: 12px; }
.olmi-float .demo-error { margin: 8px 0 0; padding: 12px; background: #fff; border: 1px solid #e5dace; border-radius: 10px; font-size: 11px; box-shadow: 0 5px 18px #26331810; }
@keyframes float-appear { from {opacity: 0; transform: translateY(8px);} to {opacity: 1; transform: translateY(0);} }
@keyframes presence-breathe { 50% {opacity: .7; transform: scale(.95);} }
@media (max-width: 1150px) {
  .program-window { grid-template-columns: 148px minmax(0,1fr); }
  .program-content { padding-inline: 25px; }
  .program-content .patient-heading h2 { font-size: 23px; }
  .program-content .routine-item strong { font-size: 10px; }
  .program-content .routine-item p { font-size: 8px; }
  .olmi-float { right: -10px; }
}
@media (max-width: 900px) {
  .program-window { grid-template-columns: 132px minmax(0,1fr); }
  .product-logo { width: 62px; margin-left: 7px; }
  .product-sidebar .clinic { display: flex; }
  .product-sidebar .mini-search { display: flex; }
  .product-sidebar .nav-label { display: block; }
  .product-sidebar .sidebar-profile { display: flex; }
  .product-sidebar .mini-nav { font-size: 9px; padding: 8px; }
  .program-content .patient-heading h2 { font-size: 20px; }
  .olmi-float { width: 255px; right: -5px; }
  .conversation-button { font-size: 11px; padding-right: 10px; }
  .product-caption { padding-right: 240px; }
}
@media (max-width: 700px) {
  .program-stage { padding-bottom: 225px; }
  .program-window { height: 590px; grid-template-columns: 45px minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
  .product-sidebar { grid-row: auto; }
  .product-sidebar .clinic,.product-sidebar .mini-search,.product-sidebar .nav-label,.product-sidebar .sidebar-profile { display: none; }
  .product-sidebar .mini-nav { font-size: 0; padding: 12px 9px !important; }
  .program-workspace { grid-row: auto; }
  .program-content { padding: 20px 14px 12px; }
  .program-content .patient-heading h2 { font-size: 17px; }
  .program-content .routine-grid { gap: 8px; }
  .program-content .routine-item strong { font-size: 9px; }
  .program-content .routine-item p { font-size: 8px; }
  .program-content .routine-group { min-height: 182px; }
  .program-next { display: block; margin-top: 16px; }
  .program-next .next-row + .next-row { border-left: 0; border-top: 1px solid var(--line); }
  .program-footer { margin-inline: 14px; }
  .program-footer #workspace-footnote { font-size: 7px; }
  .olmi-float { right: 0; width: min(278px,100%); bottom: 13px; }
  .assistant-content { max-height: 340px; overflow-y: auto; padding: 3px; margin-inline: -3px; scrollbar-width: thin; }
  .olmi-float .empty-actions > button { min-height: 54px; padding: 11px; }
  .product-caption { justify-content: flex-start; margin-top: 18px; padding-right: 0; max-width: 150px; line-height: 1.5; }
  .program-window .join-panel { width: calc(100% - 45px); inset: 45px 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .assistant-content,.olmi-float .voice-mark-wrap { animation: none !important; } }
