/* Touch affordances also apply to tablets; layouts below are phone-only. */
.planning-grip{display:none}
.mobile-task-action{display:none}
.phone-player-options{display:none}
.phone-nav,.phone-status-tabs,.phone-week-strip{display:none}
.phone-filters>summary{display:none}
.phone-filters>.planning-filters{display:flex}
.phone-filters:not([open])>.planning-filters{display:flex}
@media(pointer:coarse){
 .task-grip,.planning-grip,.gantt-resize,.event-resize{touch-action:none}
 .task-card,.gantt-bar,.calendar-event{touch-action:pan-x pan-y}
 .task-grip{min-width:44px;min-height:44px}
 .gantt-bar .planning-grip{display:flex;align-items:center;justify-content:center;width:44px;position:absolute;left:0;top:0;bottom:0}
 .time-day .calendar-event:not(.event-compact) .planning-grip{display:flex;align-items:center;justify-content:center;position:absolute;right:0;top:0;width:44px;height:44px}
 .time-day .calendar-event:not(.event-compact){padding-right:46px}
 .gantt-resize{width:44px}
 .event-resize{height:26px}
}

@media(max-width:760px),(max-height:500px) and (pointer:coarse){
 .main{min-width:0}
 .sidebar{position:fixed;left:0;top:0;bottom:0;width:min(300px,calc(100vw - 44px));z-index:21;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.menu-toggle{display:flex}
 .topbar{padding:12px 12px 10px;gap:8px;flex-shrink:0}
 .topbar-title{min-width:0;flex:1}.topbar-title h1{font-size:26px;overflow-wrap:anywhere;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.topbar-title p{display:none}
 .topbar .page-actions .icon-button,.topbar .page-actions button,.menu-toggle{min-width:44px;width:44px;min-height:44px;height:44px}
 .topbar .page-actions .button-label,.topbar .page-actions .action-text{display:none}
 .topbar-title h1{white-space:normal;text-overflow:clip}
 .main[data-page=project] .topbar [data-action=rename],.main[data-page=project] .topbar [data-action=export-all]{display:none}
 .page-content{padding:0 12px 14px;overscroll-behavior-y:contain;scroll-padding-bottom:16px}
 .back-top,.main:not([data-page=project]) .back-top{bottom:20px;right:16px;width:44px;min-height:44px}
 .main[data-page=project] .back-top{bottom:145px}
 .calendar-shell,.tasks-shell{padding:0;background:transparent;border:0;box-shadow:none;border-radius:0;min-width:0}
 .planning-toolbar{gap:8px;margin-bottom:8px}
 .tabs button{min-height:46px;font-size:14px;padding:8px 12px;white-space:nowrap}
 .calendar-views,.task-views{width:100%;display:flex}.calendar-views button,.task-views button{flex:1;min-width:0}
 .phone-filters{margin:0 0 10px;width:100%}
 .phone-filters>summary{display:flex;align-items:center;gap:9px;min-height:46px;padding:8px 12px;font-size:14px;background:white;border-radius:10px;list-style:none;cursor:pointer}.phone-filters>summary::-webkit-details-marker{display:none}.phone-filters>summary svg{width:20px}.phone-filter-count{margin-left:auto;font-weight:700}
 .phone-filters:not([open])>.planning-filters{display:none}
 .phone-filters>.planning-filters{display:grid;grid-template-columns:1fr;gap:10px;padding:10px 0;margin:0}.planning-filters input,.planning-filters .select-control{width:100%;min-width:0;grid-column:1}
 .phone-status-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px;position:sticky;top:0;background:var(--canvas);padding:4px 0;z-index:4}
 .phone-status-tabs button{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:10px 12px;font-size:14px;background:white}.phone-status-tabs button.active{background:var(--dark);color:white}.phone-status-tabs span{opacity:.8;font-size:13px}
 .phone-status-tabs .drop-target{background:var(--accent);color:var(--ink);outline:2px solid var(--accent-ink)}
 .kanban-board{display:block;overflow:visible;width:100%;min-width:0}.kanban-column{display:none;min-height:160px;padding:0;background:transparent;border:0}.kanban-column.phone-selected{display:block}.kanban-column>header{padding:4px 0 10px}.kanban-column h2{font-size:23px}.kanban-column>header>span{display:none}.kanban-cards{gap:10px;min-height:100px}
 .task-card{padding:14px;border-radius:14px;min-width:0;touch-action:pan-y;text-align:left}.task-card>strong{font-size:16px;line-height:1.5;overflow-wrap:anywhere}.task-card>small{font-size:13px;line-height:1.4}.task-card-top{align-items:center;gap:6px;min-height:44px}.task-card-top .task-grip{margin-left:auto;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;background:var(--soft);border-radius:9px;touch-action:none}.task-card-top .task-grip svg{width:22px;height:22px}.mobile-task-action{display:grid;place-items:center;width:44px;min-width:44px;height:44px;cursor:pointer;border-radius:9px;background:var(--soft)}.mobile-task-action svg{width:22px}.task-card-top .task-priority{font-size:12px}.task-card-top .auto-plan-label,.task-card-top .review-label{font-size:11px;max-width:86px}
 .task-card-bottom{margin-top:10px;gap:10px;font-size:13px}.task-card .planning-avatars .avatar{width:26px;height:26px;min-width:26px}.task-card .planning-names{font-size:13px}
 .phone-move-menu strong{display:block;padding:10px 12px}.phone-move-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;font-size:15px;margin-bottom:5px}
 .date-navigation{display:grid;grid-template-columns:44px 44px 1fr;gap:6px}.date-navigation .icon-button{width:44px;height:44px;min-height:44px}.date-navigation #calendar-today{justify-self:end;min-height:44px;font-size:14px}.date-navigation h2{grid-column:1/-1;font-size:22px;margin:4px 0;text-transform:none}
 .phone-week-strip{display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));gap:2px;overflow-x:auto;flex-shrink:0;margin:0 0 8px}.phone-week-strip button{min-width:0;padding:5px 1px;min-height:64px;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;background:white;font-size:12px;border-radius:9px}.phone-week-strip strong{font-size:16px}.phone-week-strip i{width:4px;height:4px;border-radius:50%;background:transparent}.phone-week-strip i.has-events{background:currentColor}.phone-week-strip button.active{background:var(--dark);color:white}
 #calendar-grid{min-height:140px;flex:1;overflow:hidden}.time-calendar{min-height:140px}.time-grid-scroll{min-height:140px;max-height:none;overscroll-behavior:contain}.time-grid,.time-header,.all-day-row{min-width:0;grid-template-columns:48px repeat(var(--days),minmax(0,1fr))}.hour-labels span{font-size:11px;left:3px}.day-heading{font-size:13px;min-height:46px;flex-direction:row;gap:8px}.day-heading strong{font-size:17px}.all-day-row>span{font-size:10px;line-height:1.5;padding:8px 2px}.all-day-cell{min-height:48px}.all-day-row .calendar-event{min-height:44px;padding:8px;font-size:14px}.all-day-row .calendar-event .planning-people{display:none}
 .time-day>.calendar-event{font-size:13px;padding:7px 46px 7px 8px;border:0;border-radius:9px;touch-action:pan-y}.time-day>.calendar-event strong{font-size:13px;line-height:1.3}.time-day>.calendar-event small{display:block;font-size:11px}.time-day>.calendar-event .planning-people{display:none}.time-day>.calendar-event.phone-short-event{padding:4px 8px;align-items:center}.phone-short-event .planning-grip,.phone-short-event .event-resize{display:none}.time-day>.calendar-event .event-resize{height:26px;bottom:0;border-radius:0 0 9px 9px}.time-day>.calendar-event:not(.phone-short-event) .planning-grip{display:grid;place-items:center;position:absolute;top:0;right:0;width:44px;height:44px;touch-action:none}.planning-grip svg{width:22px}
 .time-grid-scroll>.time-header,.time-grid-scroll>.all-day-row,.time-grid-scroll>.time-grid{min-width:0}
 .editor-step input[type=checkbox]{min-height:20px;height:20px;width:20px}
 .date-picker-grid button,.date-picker-head button,.time-choices button,.picker-footer button{min-height:44px;font-size:14px}
 .calendar-shell .planning-filters{grid-template-columns:1fr}.planning-filters .select-control{max-width:none;min-width:0}.planning-filters .select-trigger{min-height:48px;font-size:15px}
 .month-cell{min-height:65px;padding:3px}.month-cell .day-number{min-width:34px;min-height:44px;font-size:14px}.month-cell .more-events{display:none}
 .phone-project-tools{margin:8px 0 14px}.phone-project-tools>summary{min-height:44px;display:flex;align-items:center;font-size:14px;color:var(--muted);cursor:pointer}.phone-project-tools>summary:after{content:'+';margin-left:auto;font-size:20px}.phone-project-tools[open]>summary:after{content:'−'}.phone-project-tools .project-utilities{margin:0;padding-top:6px}
 .service-player .player-rate,.service-player .player-volume{display:none}.service-player .phone-player-options{display:grid;order:2}.service-player .follow-audio{order:2;margin:0;min-height:44px;font-size:13px;padding:8px 12px}.service-player .player-skip{margin-left:0}.phone-audio-settings{display:grid;gap:12px}.phone-audio-settings button{min-width:44px;min-height:44px}.phone-audio-settings label{font-size:14px}.phone-audio-settings input{min-height:44px}
 .phone-gantt-toolbar{display:flex;align-items:center;gap:6px;margin-bottom:10px}.phone-gantt-toolbar .icon-button{min-width:44px;min-height:44px}.phone-gantt-toolbar #phone-gantt-range{flex:1;min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:14px}.phone-gantt-toolbar strong{font:600 14px Manrope,sans-serif}
 .phone-gantt-scroll{max-height:none;min-height:0;width:100%;overflow:auto;overscroll-behavior-x:contain;scrollbar-width:thin;background:white;border-radius:12px;touch-action:pan-x pan-y}.phone-gantt{min-width:100%;position:relative}.phone-gantt-dates{height:58px;display:flex;background:white;border-bottom:1px solid var(--line)}.phone-gantt-dates>span{width:var(--day-width);flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.phone-gantt-dates small{font-size:12px}.phone-gantt-dates strong{font:700 16px Manrope,sans-serif}.phone-gantt-dates .weekend{background:#f2eff7}.phone-gantt-dates .today{color:var(--accent-ink);box-shadow:inset 0 -3px var(--accent-ink)}
 .phone-gantt-row{border-bottom:1px solid var(--line);padding-top:6px}.phone-gantt-title{position:sticky;left:0;display:flex;flex-direction:column;align-items:stretch;gap:5px;background:white;border:0;border-radius:0;width:calc(min(100vw - 24px, 760px));padding:10px 12px;text-align:left;min-height:68px;max-width:100%}.phone-gantt-title>strong{font-size:15px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}.phone-gantt-title>span{display:flex;justify-content:space-between;gap:10px;align-items:center}.phone-gantt-title small{font-size:11px;flex-shrink:0;color:var(--muted)}.phone-gantt-title .planning-names{font-size:12px}
 .phone-gantt-track{height:64px;position:relative;background-image:linear-gradient(to right,var(--line) 1px,transparent 1px);background-size:var(--day-width) 100%}.phone-gantt-track .gantt-bar{top:4px;min-height:48px;height:48px;max-width:none;display:flex;align-items:center;justify-content:center;border-radius:8px;padding:4px 44px;font-size:12px;touch-action:pan-x pan-y}.phone-gantt-track .gantt-bar>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.phone-gantt-track .planning-grip{display:grid;place-items:center;width:44px;height:48px;position:absolute;left:0;top:0;touch-action:none}.phone-gantt-track .gantt-resize{display:block;width:44px;height:48px;right:0;top:0;touch-action:none;cursor:ew-resize}.phone-gantt-track .gantt-resize:after{content:'';position:absolute;right:12px;top:15px;width:4px;height:18px;border-radius:2px;background:currentColor;opacity:.7}.phone-outside{position:sticky;left:0;font-size:13px;min-height:48px;margin-left:10px;color:var(--muted)}.phone-gantt-options label{display:block;margin-bottom:12px}.phone-gantt-options .date-control,.phone-gantt-options .select-control{display:flex;width:100%}
 .workload-header{gap:8px}.workload-header h2{font-size:22px}.workload-header .row{width:100%;justify-content:space-between}.workload-header .icon-button{min-width:44px;min-height:44px}.workload-row{display:grid;grid-template-columns:40px 1fr auto;gap:10px;padding:14px;background:white;border-radius:12px}.workload-person{min-width:0}.workload-person h3{font-size:16px}.workload-person small{font-size:12px}.workload-row>.workload-bar{grid-column:1/3;width:auto;min-width:0}.workload-row>strong{font-size:13px;grid-column:3;grid-row:2;align-self:center}.workload-row>button{grid-column:1/-1;width:100%;margin:0;min-height:44px}
 button,.icon-button{min-height:44px}.check{min-height:44px;padding-block:8px;gap:10px;font-size:14px}input:not(.native-value):not([type=checkbox]):not([type=range]),textarea{font-size:16px}.select-trigger,.date-trigger{min-height:48px;font-size:15px}
 .control-popup{max-height:70dvh;overscroll-behavior:contain}.choice-list button{min-height:48px;font-size:15px}.date-days button{min-height:44px}.date-time button{min-height:44px}
 dialog#modal{width:100%;max-width:100%;max-height:100dvh;height:auto;margin:auto 0 0;padding:16px 14px max(14px,env(safe-area-inset-bottom));border-radius:16px 16px 0 0}.modal-head{gap:8px;margin-bottom:12px}.modal-head h2{font-size:27px}.modal-head .icon-button{width:44px;min-width:44px}.modal-body,#modal-body{max-height:calc(100dvh - 90px);overflow-y:auto;overscroll-behavior:contain}.editor-steps button{min-height:44px;font-size:13px}.editor-footer{gap:6px;padding-top:10px;bottom:0}.editor-footer button{font-size:14px;min-height:48px}.editor-footer .editor-next{font-size:14px}.editor-footer .primary{margin-left:auto;padding:10px 14px}.editor-footer .icon-button{width:44px;min-width:44px}.editor-step{min-height:0}.editor-step .pair{grid-template-columns:1fr;gap:12px}.editor-step label{font-size:14px}.editor-step input{min-height:48px}.editor-step textarea{min-height:96px}
 .bubble p,.result-content{font-size:15px;line-height:1.7}.bubble{padding:14px}.bubble-heading{flex-wrap:wrap;gap:4px}.speaker-name{font-size:13px;max-width:100%;min-height:44px}.timestamp{font-size:11px;min-height:44px}.bubble-actions{display:flex;gap:5px;flex-wrap:wrap}.bubble-actions button,.result-actions button{min-height:44px;font-size:13px;padding:7px 9px}.result-actions{flex-wrap:wrap;gap:6px}.preset-row button{min-height:46px;font-size:14px}.result-header small{font-size:11px}.speaker-chip{min-height:48px}.speaker-strip{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;align-items:center}.speaker-chip{flex-shrink:0;max-width:240px}.transcript-search input{min-height:44px}.content-toolbar .tabs button{font-size:14px;min-height:46px}.project-utilities{flex-wrap:wrap}.project-utilities button{font-size:13px;min-height:44px}.composer{padding:8px 12px max(8px,env(safe-area-inset-bottom))}.composer>small{display:none}.composer textarea{font-size:16px}.service-player .player-track{min-width:0}.service-player .player-rate,.service-player .player-volume,.service-player .player-skip{min-width:44px;min-height:44px;font-size:14px}
 .section-heading{flex-wrap:wrap}.section-heading>button{min-height:44px;font-size:14px}.main[data-page=voices] .page-actions{padding-left:0}.voice-card .row{flex-wrap:wrap}.settings-layout{min-width:0}.surface{padding:16px}.admin-row>.row{padding-left:0;gap:6px;flex-wrap:wrap}.admin-row button{font-size:13px}.toast{bottom:86px;max-width:calc(100vw - 24px);font-size:14px}.planning-note summary,.source-evidence summary,.undated-tasks summary{min-height:44px;padding:10px 6px;font-size:14px}
}
@media(max-height:500px) and (pointer:coarse){.main[data-page=calendar] .page-content{overflow-y:auto;display:block}.phone-nav{display:none}.topbar{padding:6px 12px}.topbar-title h1{font-size:23px}.date-navigation{grid-template-columns:44px 44px auto 1fr}.date-navigation h2{grid-column:auto;font-size:18px}.calendar-views,.task-views{width:auto}.phone-week-strip button{min-height:48px;flex-direction:row;flex-wrap:wrap}.phone-week-strip i{display:none}.time-header .day-heading{min-height:36px}.calendar-shell{display:block;height:auto;overflow:visible}.calendar-shell #calendar-grid{min-height:220px;height:220px}.phone-gantt-title{width:calc(100vw - 24px)}.phone-status-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.phone-status-tabs button{font-size:13px}.editor-footer{position:sticky}}
@media(prefers-reduced-motion:reduce){.phone-nav *,.phone-status-tabs *{transition:none}}

@media(max-width:760px),(max-height:500px) and (pointer:coarse){.phone-gantt-track .gantt-bar.phone-narrow-bar>span:first-child{visibility:hidden}.phone-gantt-track .gantt-bar.phone-tiny-bar .gantt-resize{display:none}.phone-gantt-track .gantt-bar.phone-tiny-bar{padding:0}.phone-gantt-track .gantt-bar.phone-tiny-bar .planning-grip{width:100%}}

@media(max-width:760px),(max-height:500px) and (pointer:coarse){.time-day>.calendar-event:not(.phone-short-event) .planning-people{display:flex;margin-top:4px}.time-day>.calendar-event .planning-names{display:none}.time-day>.calendar-event .planning-avatars .avatar{width:20px;height:20px;min-width:20px}}

/* Text entry stays quiet; keyboard focus on buttons remains visible. */
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus,
textarea:focus{outline:none;box-shadow:none;border-color:var(--control-border)}
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus-visible,
textarea:focus-visible{outline:none;box-shadow:none}
.transcript-search:focus-within,.composer form:focus-within,.sidebar-search:focus-within,.turn-text:focus-visible{outline:none;box-shadow:none}
.transcript-search input:focus,.composer textarea:focus,.sidebar-search input:focus{border-color:transparent}
.turn .bubble{position:relative;isolation:isolate;overflow:hidden;--utterance-progress:0}
.turn.active .bubble{outline:none;outline-offset:0;box-shadow:inset 0 0 0 3px var(--speaker-ink);border:1px solid transparent;padding:13px 16px}
.turn .bubble:before{content:'';position:absolute;inset:3px;border-radius:11px;background:var(--speaker-ink);opacity:0;transform:scaleX(var(--utterance-progress));transform-origin:left;pointer-events:none;z-index:-1}
.turn.active .bubble:before{opacity:.08}
.utterance-progress{position:absolute;left:12px;right:12px;bottom:5px;height:3px;border-radius:3px;background:color-mix(in srgb,var(--speaker-ink) 15%,transparent);overflow:hidden;pointer-events:none;opacity:0}
.turn.active .utterance-progress{opacity:1}
.utterance-progress i{display:block;width:100%;height:100%;background:var(--speaker-ink);transform:scaleX(var(--utterance-progress));transform-origin:left}
.reading-controls{position:absolute;right:30px;bottom:98px;z-index:15;display:flex;flex-direction:column;gap:8px}
.main:not([data-page=project]) .reading-controls{bottom:24px}
.main[data-page=project] .reading-controls{bottom:var(--reading-bottom,98px)}
.reading-controls .back-top,.reading-controls .follow-toggle{position:static;right:auto;bottom:auto;width:44px;min-width:44px;min-height:44px;height:44px;padding:0;background:var(--dark);color:white;border:0;box-shadow:none}
.reading-controls .follow-toggle[aria-pressed=true]{background:var(--accent-ink)}
.reading-controls .floating-audio{position:static;width:44px;min-width:44px;min-height:44px;height:44px;padding:0;background:var(--dark);color:white;border:0;box-shadow:none}
.reading-controls button:hover{background:var(--accent-ink)}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
 .reading-controls{right:16px;bottom:93px}.main:not([data-page=project]) .reading-controls{bottom:max(20px,env(safe-area-inset-bottom))}
 .turn .bubble,.turn.active .bubble{padding:14px}
 .reading-controls .back-top,.reading-controls .follow-toggle{width:44px;min-width:44px;min-height:44px;height:44px}
}
/* Both follow controls drive one mode. Highlighting remains inside the card. */
.page-content{position:relative}
.turn.active{content-visibility:visible}
.turn.active .bubble{box-shadow:none}
.turn .bubble:after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 3px var(--speaker-ink);opacity:0;pointer-events:none;transition:opacity 180ms ease}
.follow-enabled .turn.active:not(.follow-arriving) .bubble:after{opacity:1}
.turn.follow-departing .bubble:after{opacity:0;transition:none}
.turn .bubble:before{transition:opacity 180ms ease}
.utterance-progress{transition:opacity 180ms ease}
.utterance-progress i,.turn .bubble:before{transition:opacity 180ms ease,transform 70ms linear}
.page-content:not(.follow-enabled) .turn .bubble:before,.page-content:not(.follow-enabled) .utterance-progress{opacity:0}
.follow-frame{position:absolute;pointer-events:none;z-index:10;border:3px solid;transform-origin:0 0;box-sizing:border-box}
.follow-audio{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.follow-switch{display:block;width:34px;height:20px;padding:3px;border-radius:20px;background:#8c8599;transition:background 160ms ease}
.follow-switch i{display:block;width:14px;height:14px;border-radius:50%;background:white;transform:translateX(0);transition:transform 160ms ease}
.follow-audio[aria-checked=true]{background:var(--accent);color:var(--accent-ink)}
.follow-audio[aria-checked=true] .follow-switch{background:var(--accent-ink)}
.follow-audio[aria-checked=true] .follow-switch i{transform:translateX(14px)}
@media(prefers-reduced-motion:reduce){.turn .bubble:after,.turn .bubble:before,.utterance-progress,.utterance-progress i,.follow-switch,.follow-switch i{transition:none}}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
 .sidebar{padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}.sidebar-nav button{min-height:44px;font-size:14px}.sidebar-nav{flex-shrink:0}.sidebar-user{flex-shrink:0}.project-list{min-height:90px}.main:not([data-page=project]) .page-content{padding-bottom:max(14px,env(safe-area-inset-bottom))}
 #calendar-grid.phone-calendar-overview{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-padding-top:10px;min-height:160px;margin-top:4px;padding-bottom:12px}
 .phone-period-summary{font-size:13px;color:var(--muted);padding:8px 2px 14px}
 .phone-agenda-day{margin-bottom:20px}.phone-agenda-day>header{display:flex;align-items:center;gap:8px;padding:6px 0 10px;min-height:62px;border-bottom:1px solid var(--line);margin-bottom:8px}
 .phone-agenda-date{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;flex:1;min-width:0;padding:2px 0;background:transparent;text-align:left;min-height:48px}
 .phone-agenda-date strong{font:600 21px Oswald,sans-serif;line-height:1.3}.phone-agenda-date span{font-size:12px;font-weight:400;text-transform:capitalize;color:var(--muted)}.phone-agenda-day.today .phone-agenda-date strong{color:var(--accent-ink)}
 .phone-agenda-load{text-align:right;font-size:12px;flex-shrink:0}.phone-agenda-load small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
 .phone-agenda-events{display:grid;gap:8px}.phone-agenda-event.calendar-event{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr) 44px;align-items:start;gap:8px;padding:12px 8px 12px 12px;border:0;border-radius:12px;min-height:78px;touch-action:pan-y;line-height:1.5;overflow:hidden;background:#e8e0f7;color:#392456;text-align:left;user-select:none}
 .phone-agenda-event.color-green{background:#e0efe7;color:#215540}.phone-agenda-event.color-orange{background:#f5e7d9;color:#6d421e}.phone-agenda-event.color-pink{background:#f3e0eb;color:#772b51}.phone-agenda-event.color-gray{background:#e9e6ee;color:#494253}
 .phone-agenda-event strong{display:block;overflow-wrap:anywhere;white-space:normal;-webkit-line-clamp:unset;padding:0;font-size:14px;font-weight:600}.phone-agenda-event small{display:block;font-size:12px;margin-top:3px;line-height:1.4;white-space:normal}.phone-agenda-time{font-variant-numeric:tabular-nums;padding-top:1px}.phone-agenda-time>strong{font-size:14px}.phone-agenda-time>small{font-size:12px;color:inherit;opacity:.8}
 .phone-agenda-content{min-width:0}.phone-agenda-content .planning-people{display:flex;margin-top:8px;gap:6px}.phone-agenda-content .planning-names{font-size:12px;color:inherit;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block;min-width:0}.phone-agenda-content .planning-avatars .avatar{width:22px;height:22px;min-width:22px}
 .phone-agenda-event .planning-grip{position:static;display:grid;place-items:center;width:44px;height:44px;touch-action:none;border-radius:8px;background:#ffffff65}.phone-agenda-event:not(:has(.planning-grip)){grid-template-columns:64px minmax(0,1fr)}
 .phone-free-day{width:100%;text-align:left;min-height:48px;padding:10px 12px;background:white;font-size:14px;color:var(--muted)}
 .phone-month-matrix{background:white;border-radius:14px;padding:8px 6px;overflow:hidden}.phone-month-weekdays,.phone-month-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.phone-month-weekdays{margin-bottom:5px}.phone-month-weekdays span{text-align:center;font-size:11px;color:var(--muted);padding:4px 0}
 .phone-month-date{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;min-width:0;padding:6px 0;min-height:66px;position:relative;background:transparent;border-radius:8px;color:var(--ink);font-weight:400;border:1px solid transparent}.phone-month-date strong{font:600 16px Manrope,sans-serif}.phone-month-date span{font-size:10px;line-height:1.3;white-space:nowrap}.phone-month-date i{height:3px;width:calc(100% - 10px);background:linear-gradient(to right,var(--accent-ink) var(--busy),var(--line) var(--busy));border-radius:3px}
 .phone-month-date.outside{opacity:.55}.phone-month-date.today{border-color:var(--accent-ink)}.phone-month-date.selected{background:var(--dark);color:white;opacity:1}.phone-month-date.selected i{background:linear-gradient(to right,var(--accent) var(--busy),#55505e var(--busy))}.phone-month-date.drop-target{background:var(--accent);color:var(--ink)}
 .phone-month-agenda{scroll-margin-top:8px}.phone-month-back{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;font-size:14px;margin-top:10px;background:white}.phone-month-back svg{width:18px}
}

.phone-project-tools{margin:8px 0 18px;border:1px solid #c1b1df;border-radius:12px;background:#f5f1fc;overflow:hidden}
.phone-project-tools>summary{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 14px;background:var(--accent);color:#30244e;cursor:pointer;list-style:none}
.phone-project-tools>summary::-webkit-details-marker{display:none}
.phone-project-tools>summary:before,.phone-project-tools>summary:after{display:none}
.project-tools-symbol{display:grid;place-items:center;flex-shrink:0;color:#433373}.project-tools-symbol svg{width:24px;height:24px}
.project-tools-title{display:grid;gap:2px;flex:1;min-width:0}.project-tools-title strong{font:700 15px Manrope,sans-serif}.project-tools-title small{font:400 12px/1.4 Manrope,sans-serif;color:#51416c}
.project-tools-chevron{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#171719;color:white;flex-shrink:0}.project-tools-chevron svg{width:18px;height:18px;transition:transform 160ms ease}.phone-project-tools[open] .project-tools-chevron svg{transform:rotate(180deg)}
.phone-project-tools .project-utilities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;margin:0}
.phone-project-tools .project-tool{display:flex;align-items:center;gap:10px;min-width:0;min-height:76px;padding:12px;background:white;text-align:left;border-radius:8px;color:var(--ink)}
.project-tool .button-icon{align-self:center;color:var(--accent-ink);flex-shrink:0}.project-tool .button-icon svg{width:20px;height:20px}.project-tool .project-tool-copy{display:grid;gap:4px;flex:1;min-width:0}.project-tool-copy strong{font:600 14px/1.4 Manrope,sans-serif;overflow-wrap:anywhere}.project-tool-copy small{font:400 12px/1.5 Manrope,sans-serif;color:#514b5b}.project-tool>svg{width:16px;height:16px;color:#625b6b}
.phone-project-tools .project-tool:hover{background:#eae2f8}
@media(max-width:1000px){.phone-project-tools .project-utilities{grid-template-columns:1fr}}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){.phone-project-tools>summary{min-height:64px;padding:12px}.phone-project-tools .project-utilities{grid-template-columns:1fr;padding:8px}.phone-project-tools .project-tool{min-height:72px}.project-tool-copy strong{font-size:15px}.project-tool-copy small{font-size:13px}}
@media(prefers-reduced-motion:reduce){.project-tools-chevron svg{transition:none}}

/* Every sheet remains inside the screen area above the software keyboard. */
@media(max-width:760px),(pointer:coarse){
 .app-shell{height:var(--ui-visible-height,100dvh)}
 dialog#modal{position:fixed;top:auto;bottom:calc(var(--ui-keyboard-bottom,0px) + 8px);left:0;right:0;margin:0 auto;width:min(660px,calc(100% - 16px));max-width:calc(100% - 16px);height:auto;max-height:calc(var(--ui-visible-height,100dvh) - 16px);padding:16px 14px max(14px,env(safe-area-inset-bottom));border-radius:16px;overflow:clip}
 dialog#modal[open]{display:flex;flex-direction:column}
 #modal .modal-head{flex-shrink:0;padding-bottom:12px;margin-bottom:12px;gap:12px;min-width:0}
 #modal .modal-head h2{font-size:26px;line-height:1.25;overflow-wrap:anywhere}
 #modal .modal-head .icon-button{flex-shrink:0}
 #modal-body{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scroll-padding:16px 0 80px;-webkit-overflow-scrolling:touch}
 #modal input:not(.native-value),#modal textarea,.control-popup input,.speaker-popover input{font-size:16px}
 .control-popup,.speaker-popover{overscroll-behavior:contain;scroll-padding:12px 0 64px;-webkit-overflow-scrolling:touch}
 .control-popup .choice-search{position:sticky;top:0;z-index:3;background:var(--soft)}
 .control-popup .picker-footer{position:sticky;bottom:-10px;background:#fff;z-index:3;padding-top:10px;padding-bottom:8px;margin-bottom:-10px}
 .speaker-popover .speaker-create>input{position:sticky;top:0;z-index:3;background:var(--soft)}
 .keyboard-open #modal .modal-head{padding-bottom:8px;margin-bottom:10px}
 .keyboard-open #modal .modal-head h2{font-size:23px}
 .keyboard-open #modal{padding-bottom:10px}
 .keyboard-compact #modal .editor-steps{display:none}
 .keyboard-open .reading-controls{display:none}
 .keyboard-open .control-popup:has([data-time]:focus) .date-picker-grid{display:none}
 .keyboard-open .control-popup:has([data-time]:focus) .time-choices{display:none}
}
