/* Controls float above the work; text and media stay on quiet, readable surfaces. */
.topbar{background:linear-gradient(145deg,#ffffff68,#f5f8ff24 56%,#e5eef845);border:1px solid #ffffffe8;box-shadow:inset 0 1.5px 1px #fff,inset 1px 0 2px #ffffffb8,inset 0 -1px 1.5px #8ba0b84d,0 5px 20px #31456312;backdrop-filter:blur(10px) saturate(1.65);-webkit-backdrop-filter:blur(10px) saturate(1.65)}
.topbar::after{background:radial-gradient(ellipse at var(--glass-x,28%) var(--glass-y,0%),#ffffff8f,transparent 64%),linear-gradient(115deg,transparent 20%,#ffffff36 42%,transparent 65%);box-shadow:inset 2px 2px 3px #ffffffc2,inset -1px -2px 3px #5d77912b;border-color:#ffffff96}
.btn:not(.ghost):not(.primary):not(.dark){background:radial-gradient(ellipse at var(--glass-x,25%) 0%,#ffffffe0,transparent 70%),linear-gradient(150deg,#ffffff80,#edf4fb45);border-color:#ffffffe6;box-shadow:inset 0 1.5px 1px #fff,inset 0 -1px 1px #879cb433,0 3px 10px #30476a14;backdrop-filter:blur(8px) saturate(1.5);-webkit-backdrop-filter:blur(8px) saturate(1.5)}
[data-glass-segments]::before{background:radial-gradient(ellipse at 28% 0%,#ffffffdd,transparent 68%),linear-gradient(160deg,#ffffff55,#dceaff20);border-color:#fff;box-shadow:inset 1px 2px 2px #fff,inset -1px -2px 2px #7795b647,0 3px 9px #29476e24}
@supports (backdrop-filter:url('#workroom-glass-lens')) and (not (-webkit-touch-callout:none)){
 .topbar{backdrop-filter:blur(3px) var(--glass-lens,url('#workroom-glass-lens')) saturate(1.6)}
 [data-glass-segments]::before{backdrop-filter:blur(1px) var(--glass-lens,url('#workroom-glass-lens')) saturate(1.5)}
}
.day-heading-date{display:block;width:auto;height:auto;min-height:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;transform:none;font-size:13px;font-weight:550;letter-spacing:.015em;color:#687991;margin:0 2px 13px}.morning-hero{grid-template-columns:1fr;min-height:0}.morning-intro{max-width:none}.morning-intro h2{margin-top:0}.morning-date{display:none}.overview-heading{margin-bottom:22px}
.todo-actions{display:flex;gap:8px;flex:none}.todo-actions [data-action=todo-delete]{color:#d4383f!important;background:#fff0f1!important;border-color:#f6c8cc!important}.todo-check:disabled{opacity:.45;cursor:default}
.pipeline-stage-actions{justify-content:flex-end;align-items:center;flex-wrap:wrap}.pipeline-stage-actions .pipeline-next{order:2;margin-left:auto;min-height:36px;padding:8px 15px;font-size:12px}.pipeline-stage-actions:empty{display:none}.pipeline-stage-control{padding-bottom:7px}
.pipeline-conversation{background:#f4f7fc8c;border-color:#e4ebf4;border-radius:22px;padding:18px;align-self:start}.pipeline-conversation>header h3{font-size:16px;margin:0 0 7px}.pipeline-conversation>header p{font-size:11px;line-height:1.5;color:#7c8ca2}.pipeline-chat-people{display:flex;margin:12px 0 4px;padding-left:3px}.pipeline-chat-people>span{margin-left:-3px}.pipeline-chat-people .avatar{width:27px;height:27px;border:2px solid #fff;font-size:9px}.pipeline-conversation .task-message-list{padding:16px 0;max-height:420px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.pipeline-conversation .task-message-list article{display:flex;align-items:flex-start;gap:8px;margin:0 0 16px;border:0;padding:0}.pipeline-conversation .task-message-list article>.avatar{width:26px;height:26px;flex:none;font-size:9px}.pipeline-conversation .task-message-list article>div{min-width:0;flex:1}.pipeline-conversation .task-message-list article header{display:block;margin:0 0 6px}.pipeline-conversation .task-message-list article strong{font-size:11px;display:block}.pipeline-conversation .task-message-list article time{display:block;color:#8d9aae;font-size:9px;margin-top:3px}.pipeline-conversation .task-message-list article p{padding:11px 13px;border-radius:4px 16px 16px;background:#fff;box-shadow:0 2px 6px #273e5e07;font-size:12px;line-height:1.6;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.pipeline-conversation .task-message-list article.is-mine p{background:#e4efff;color:#234b79;border-radius:16px 4px 16px 16px}.pipeline-conversation form{border-top:1px solid #e0e8f2;padding-top:14px}.pipeline-conversation form textarea{min-height:76px;border-radius:15px;border-color:#d9e2ee;background:#ffffffca;padding:12px;font-size:13px;line-height:1.6}.pipeline-conversation form>div{margin-top:8px;display:flex;justify-content:flex-end}
/* Imported appointments are compact rows. Posts keep visual covers; busy days shrink them. */
.calendar-event-compact{display:flex;align-items:center;gap:6px;min-height:0!important;padding:7px 8px!important;border-radius:8px!important;background:#fff4d873!important;border:0!important;border-left:2px solid #ceab56!important;box-shadow:none!important;margin:0!important}.calendar-event-compact .calendar-event-icon{display:none}.calendar-event-compact>span:last-child{display:flex;flex-wrap:wrap;gap:3px 7px;min-width:0;align-items:baseline;width:100%}.calendar-event-compact small:first-child{display:none}.calendar-event-compact strong{font-size:11px;line-height:1.3;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;flex:1 1 65%;margin:0}.calendar-event-compact small:last-child{font-size:10px;margin:0;white-space:nowrap;color:#947335}.visual-day.is-busy .calendar-post-compact{grid-template-columns:40px minmax(0,1fr);gap:7px;padding:7px}.visual-day.is-busy .calendar-post-compact .calendar-thumb{width:40px;height:52px;min-height:0;aspect-ratio:auto}.visual-day.is-busy .calendar-caption,.visual-day.is-busy .calendar-zone{display:none}.visual-day.is-busy .calendar-post strong{font-size:11px;-webkit-line-clamp:1}.visual-day.is-busy .calendar-state{font-size:9px}.calendar-day-items{gap:6px}.calendar-agenda .private-calendar-event{padding:12px 15px;min-height:0;box-shadow:none}.calendar-agenda .calendar-event-icon{height:28px;width:28px;font-size:15px}.week-event.meeting,.week-event.call,.week-event.personal,.week-event.other,.week-event.trip{padding:8px 9px;min-height:0;background:#fff5dc80;box-shadow:none}.week-event:is(.meeting,.call,.personal,.other,.trip) strong{font-size:11px;line-height:1.4}.week-event:is(.meeting,.call,.personal,.other,.trip) small{display:none}
@media(max-width:700px){.todo-actions{gap:4px}.todo-actions .btn{padding:8px;font-size:11px}.pipeline-conversation{padding:16px}.pipeline-conversation form textarea{font-size:16px}.pipeline-stage-actions .pipeline-next{min-height:40px;font-size:11px}.pipeline-stage-actions .btn:not(.pipeline-next){font-size:10px}.day-heading-date{font-size:12px}.calendar-event-compact{padding:6px!important}.calendar-event-compact strong{font-size:10px}.pipeline-conversation .task-message-list{max-height:340px}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.topbar{background:#f4f7fc!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.topbar::after{display:none}[data-glass-segments]::before,.btn:not(.ghost):not(.primary):not(.dark){background:#fff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}

.visual-day{min-height:112px}.visual-day.outside{min-height:80px}
/* Keep the full touch target when a toolbar wraps or a view is reconciled. */
.visual-calendar-toolbar .tabs.glass-segmented{display:inline-flex;position:relative;isolation:isolate;flex:none;gap:2px;padding:4px;border:1px solid #ffffffa8;border-radius:999px;background:#b7c7dc2e;box-shadow:inset 0 1px 3px #3147670a;min-height:44px;overflow:visible}
.visual-calendar-toolbar .tabs.glass-segmented .tab{position:relative;z-index:1;min-width:64px;min-height:36px;flex:0 0 auto;padding:9px 13px;margin:0;border:0!important;border-radius:999px;background:transparent;box-shadow:none;color:#687b93;font:500 12px/1.35 var(--sans,system-ui)}
.visual-calendar-toolbar .tabs.glass-segmented .tab[aria-selected=true]{color:#215a94;font-weight:650}
.visual-calendar-toolbar .tabs.glass-segmented::before{content:'';position:absolute;z-index:0;top:0;left:0;transform:translate(var(--segment-x,4px),var(--segment-y,4px));width:var(--segment-width,64px);height:var(--segment-height,36px);border:1px solid #fff;box-sizing:border-box;border-radius:999px;pointer-events:none;background:linear-gradient(150deg,#ffffffc4,#f2f8ff49);box-shadow:inset 0 1px 2px #fff,inset 0 -1px 2px #7e95ad38,0 3px 8px #203e6421;transition:transform .32s cubic-bezier(.2,.8,.2,1),width .32s;backdrop-filter:blur(5px) saturate(1.5);-webkit-backdrop-filter:blur(5px) saturate(1.5)}
@media(max-width:700px){.visual-calendar-toolbar>.button-row:last-child{width:100%;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}.visual-calendar-toolbar .tabs.glass-segmented .tab{min-height:40px}.visual-calendar-toolbar select{max-width:140px}}
@media(prefers-reduced-motion:reduce){.visual-calendar-toolbar .tabs.glass-segmented::before{transition:none!important}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.visual-calendar-toolbar .tabs.glass-segmented::before{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}}
