/* September beta fixes: keep current brand and theme tokens. */
.takt-workspace,.protocol-page{min-width:0;max-width:1440px;width:100%;box-sizing:border-box}
.takt-agenda-toolbar{gap:20px;align-items:center;margin-bottom:24px}
.takt-day-meetings{display:flex;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 2px 12px;margin-inline:-2px;scrollbar-width:thin}
.takt-agenda-item,.takt-day-meetings>.takt-plan-card{flex:0 0 calc((100% - 28px)/3);min-width:260px;scroll-snap-align:start;position:relative}
.takt-agenda-item .takt-agenda-card{height:100%;box-sizing:border-box;padding-right:44px}
.takt-day-meetings>.takt-agenda-empty{flex:1;min-width:230px}
.takt-agenda-remove{position:absolute;right:8px;top:8px;width:32px;height:32px;color:var(--muted);background:transparent;border:0}
.takt-agenda-notice{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted);margin:8px 0}
.takt-agenda-notice:empty{display:none}
.takt-created-link{position:relative;max-width:720px}
.takt-created-close{position:absolute;right:12px;top:12px;z-index:1;width:36px;height:36px}
.takt-created-link .created-card h2{padding-right:28px}
.takt-created-link .link-line span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.takt-history-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.takt-recording-cover{aspect-ratio:2.2;max-height:185px}
.takt-history-card-body{padding:16px}.takt-history-card h3{margin-bottom:12px}
.takt-date-input{display:flex;align-items:center;position:relative;min-width:0;gap:4px}
.takt-date-input>input{width:100%;min-width:0;padding-right:42px!important;font-variant-numeric:tabular-nums}
.takt-date-input>.takt-day-picker{position:absolute;right:7px;top:50%;transform:translateY(-50%)}
.takt-date-input .takt-day-trigger{font-size:14px;padding:5px}.takt-date-input .takt-day-trigger>svg{display:none}.takt-date-input .takt-day-trigger span svg{transform:none;width:20px;height:20px}
.takt-date-input .takt-date-popover{left:auto;right:0;transform:none}
.takt-date-input .takt-day-trigger span{display:flex}
.archive-calendar{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.archive-calendar-nav{position:sticky;left:0;min-width:0}
.archive-day-column,.archive-hour-cell,.archive-week-event.movable{touch-action:pan-x pan-y}
.archive-day-view,.archive-day-scroll,.archive-day-body{min-width:0!important}
.takt-day-view .archive-day-body{min-width:0!important;width:100%}
.takt-protocol-tabs{flex-wrap:nowrap;overflow-x:auto;gap:4px}.takt-protocol-tabs button{white-space:nowrap}
.saved-chat-list{max-height:560px;overflow:auto;overflow-wrap:anywhere}
.call-shell,.call-livekit{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.call-shell{height:100dvh;overflow:hidden;isolation:isolate}
.call-shell .call-body,.call-shell .stage{min-width:0;min-height:0}
.call-shell .call-bottom,.call-shell .call-top{flex-shrink:0;box-sizing:border-box}
.call-shell .tile-identity{display:flex;align-items:center;gap:6px;max-width:calc(100% - 24px);box-sizing:border-box;overflow:hidden;font-size:12px}
.takt-tile-mic{display:inline-flex;flex:none;align-items:center}.takt-tile-mic svg{width:15px;height:15px}.takt-tile-mic.muted{color:#efb0b4}
.takt-participant-media{display:flex;align-items:center;gap:3px;flex:none;margin-left:auto}
.takt-participant-media .icon-button,.takt-participant-media .media-state{width:34px;height:38px;display:inline-flex;align-items:center;justify-content:center;padding:6px;flex:none}
.takt-participant-media svg{width:19px;height:19px}.takt-participant-media .media-off{color:#efb0b4}
.call-shell .person-row{gap:8px}.call-shell .person-row>div{min-width:0;flex:1}.call-shell .person-row strong{overflow-wrap:anywhere}
.call-shell .person-row>.avatar{flex:none;width:34px;height:34px}.takt-remove-person{width:28px;flex:none}
.call-shell .takt-share-layout{height:100%;display:flex;flex-direction:column;gap:10px;min-height:0}
.takt-shared-screens{flex:1;min-height:0;display:flex;gap:8px;overflow:hidden}
.takt-shared-screens>.participant-tile{min-width:0;flex:1;height:100%}
.takt-share-filmstrip{display:flex;gap:8px;overflow-x:auto;flex:0 0 112px;min-height:0;scrollbar-width:thin}
.call-shell .takt-share-filmstrip>.participant-tile{width:184px;min-width:184px;height:104px;flex:none}
.call-shell .takt-share-filmstrip .tile-identity{font-size:10px;padding:3px 5px;bottom:5px;left:5px;max-width:calc(100% - 10px)}
.takt-share-filmstrip .tile-hand svg{width:16px!important;height:16px!important;padding:3px!important}
.takt-media-request{position:absolute;top:58px;left:50%;transform:translateX(-50%);z-index:50;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;max-width:calc(100% - 32px);width:420px;box-sizing:border-box;box-shadow:0 8px 30px #0005}
.takt-media-request p{margin:0 0 12px;font-size:14px}.takt-media-request .button+.button{margin-left:8px}
.call-shell .prejoin-content{min-height:0;box-sizing:border-box}
@media(max-width:850px){
 .call-shell .main-controls{flex-wrap:wrap;gap:6px;min-width:0;max-width:100%}
 .call-shell .control-caption{display:none!important}
 .call-shell .control,.call-shell .control.wide{width:44px;height:44px;min-width:44px;padding:10px;flex:none;position:relative}
 .call-shell .control-count{position:absolute;right:0;top:0;font-size:10px;min-width:16px;height:16px}
 .call-shell .control.danger{margin-left:0}.call-shell .control.group-end{margin-right:0}
 .call-shell .call-bottom{padding:8px 12px max(10px,env(safe-area-inset-bottom));min-height:0}
 .call-shell .call-body{padding:0 8px 8px;flex:1;overflow:hidden}
 .call-shell .call-top{padding:0 12px;height:48px;min-height:48px}
 .call-shell .call-title{max-width:calc(100% - 90px);margin:0 auto 0 0;font-size:12px;min-width:0}
 .call-shell #call-clock{right:12px;font-size:12px}
 .call-shell .record-indicator:not([hidden]){left:12px;top:7px;font-size:11px}
 .call-shell .record-indicator:not([hidden])~.call-title{visibility:hidden}
 .call-shell #call-panel{left:8px;right:8px;width:auto;max-width:440px;margin-left:auto;padding:16px;box-sizing:border-box}
 .call-shell .call-error:empty{display:none}.call-shell .call-error{margin:0;padding:4px 12px;font-size:12px}
 .call-shell:has(.prejoin-content){height:auto;min-height:100dvh;overflow:visible}
 .call-shell .prejoin-content{display:flex;flex-direction:column;gap:14px;padding:16px;overflow:visible;flex:none;align-content:stretch}
 .call-shell .preview-camera{aspect-ratio:16/10;flex:none;min-height:220px;width:100%;box-sizing:border-box}
 .call-shell .device-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .call-shell .device-panel section{padding:16px;min-width:0;box-sizing:border-box}
 .call-shell .device-panel select{width:100%;font-size:16px;min-width:0;text-overflow:ellipsis}
 .call-shell .device-panel h2{font-size:15px}.call-shell .device-panel label,.call-shell .device-panel p{font-size:13px}
 .call-shell .device-panel .control{width:44px;height:44px}
 .call-shell .prejoin-bottom{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:16px 16px max(24px,env(safe-area-inset-bottom));box-sizing:border-box;flex:none}
 .call-shell .prejoin-bottom>*{max-width:100%;min-width:0;width:100%;box-sizing:border-box}
 .call-shell .prejoin-bottom input{font-size:16px;width:100%;box-sizing:border-box}.call-shell .join-button{min-width:0;width:100%}
}
@media(max-width:650px){
 .takt-workspace{padding-inline:16px!important}.takt-agenda-toolbar{align-items:stretch;gap:14px}
 .takt-agenda-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.takt-agenda-actions .button{min-width:0;font-size:12px;padding:10px 8px;line-height:1.4;text-align:center}
 .takt-day-meetings{margin-bottom:24px}.takt-agenda-item,.takt-day-meetings>.takt-plan-card{flex-basis:82%;min-width:240px}.takt-plan-card{min-height:128px}
 .takt-recording-cover{display:none}.takt-history-grid{grid-template-columns:1fr;gap:12px}
 .takt-created-link .created-card{padding:20px}.takt-created-link .link-line{font-size:13px;padding:12px}.takt-created-link .link-actions{flex-wrap:wrap}
 .takt-agenda-notice{font-size:12px;flex-wrap:wrap}
 .archive-calendar:not(.takt-day-view) .archive-week-scroll{min-width:700px;overflow-y:auto;overflow-x:hidden}
 .archive-calendar:not(.takt-day-view) .archive-week-body,.archive-calendar:not(.takt-day-view) .archive-week-head{min-width:700px}
 .archive-calendar-nav{width:calc(100vw - 34px);box-sizing:border-box;padding:12px 8px}
 .archive-calendar-nav strong{font-size:13px}
 .archive-month-grid,.archive-month-weekdays{min-width:560px}
 .archive-day-body{grid-template-columns:48px minmax(0,1fr)!important}
 .takt-workspace .archive-heading{align-items:center;gap:8px}.takt-workspace .archive-heading h2{font-size:18px}.mode-seg button{font-size:12px;padding:8px 10px}
 .schedule-dialog{max-height:calc(100dvh - 24px);width:calc(100vw - 24px);box-sizing:border-box;overflow-y:auto}
 .schedule-form-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}.schedule-form-row>label:first-child{grid-column:1/-1}
 .schedule-dialog input,.schedule-dialog select{font-size:16px}.schedule-dialog .takt-date-input .takt-date-popover{right:0;width:270px;max-width:calc(100vw - 60px)}
 .protocol-page{padding-inline:16px!important}.takt-protocol-heading h1{font-size:24px;overflow-wrap:anywhere}
 .takt-protocol-tabs{padding:8px 6px;gap:0}.takt-protocol-tabs button{font-size:12px;padding:10px 8px}
 .call-shell .takt-share-filmstrip{flex-basis:88px}.call-shell .takt-share-filmstrip>.participant-tile{width:132px;min-width:132px;height:80px}
 .call-shell .tile-identity{font-size:11px;bottom:7px;left:7px;max-width:calc(100% - 14px)}
}
@media(max-width:380px){.takt-workspace-tabs{gap:15px}.takt-workspace-tabs button{font-size:13px}.takt-protocol-tabs button{font-size:11px;padding:10px 6px}.call-shell .main-controls{gap:5px}.call-shell .control,.call-shell .control.wide{width:42px;height:42px;min-width:42px}}
@media(max-width:650px){
 .takt-agenda-actions .button{white-space:normal;word-break:normal;justify-content:center}.takt-agenda-actions svg{flex:none;width:16px;height:16px}
 .call-shell .device-panel section{padding:12px}.call-shell .device-panel .section-head{margin:0 0 8px}.call-shell .device-panel h2{margin:0;font-size:14px}.call-shell .device-panel p{margin:8px 0 0;font-size:12px}.call-shell .device-panel .meter{margin:10px 0 0}.call-shell .device-panel .button{margin-top:8px;padding:8px;font-size:13px}
 .call-shell .preview-camera{min-height:0;aspect-ratio:16/9}.call-shell .preview-avatar{width:92px;height:92px;font-size:34px}.call-shell .preview-name{bottom:10px;left:10px}.call-shell .preview-top{left:10px;right:10px;top:10px}
 .call-shell .prejoin-bottom>.muted{font-size:12px;justify-content:center}.call-shell .prejoin-content{gap:12px}.call-shell .device-panel .section-head .control{width:40px;height:40px;min-width:40px}
}

/* Keep the full toolbar inside intermediate laptop widths as well. */
.call-shell .main-controls{flex-wrap:wrap}
@media(min-width:851px) and (max-width:1100px){
 .call-shell .main-controls{justify-content:center;padding:0}.call-shell .main-controls .group-end{margin-right:0}
 .call-shell .control-caption{display:none}.call-shell .control,.call-shell .control.wide{width:48px;height:48px;min-width:48px;padding:10px;position:relative}
 .call-shell .control-count{position:absolute;right:0;top:0}.call-shell .control.danger{margin-left:8px}
}
