/* Compact voice composer; inherits the active color palette. */
.dictation-shell{position:relative;min-width:0;width:100%;flex:1 1 auto;box-sizing:border-box}
.dictation-shell>input,.dictation-shell>textarea{box-sizing:border-box;width:100%;margin:0}
html body .dictation-shell.dictation-single>input{padding-right:46px!important}
html body .dictation-shell.dictation-multiline>textarea,html body .dictation-shell .ql-editor{padding-bottom:46px!important;min-height:96px!important}
.dictation-inline{position:absolute;right:6px;bottom:6px;display:flex;align-items:center;gap:8px;max-width:calc(100% - 12px);min-height:32px;box-sizing:border-box;color:var(--ink);border-radius:20px;padding:0;line-height:1}
.dictation-single .dictation-inline{bottom:auto;top:50%;transform:translateY(-50%)}
.dictation-inline [hidden],.dictation-feedback[hidden]{display:none!important}
html body .dictation-inline button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;margin:0;border:0;border-radius:50%;box-shadow:none;background:transparent;color:var(--muted);line-height:1;transition:background .16s,color .16s}
html body .dictation-inline button:hover{background:var(--line);color:var(--ink)}
html body .dictation-inline button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.dictation-inline svg{display:block;width:19px;height:19px;pointer-events:none}
.dictation-inline-status{font-size:12px;line-height:1.25;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dictation-inline-status:empty{display:none}
.dictation-inline[data-phase=recording] .dictation-inline-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.dictation-busy .dictation-inline{background:transparent;box-shadow:none;padding:0;gap:8px}
html body .dictation-inline[data-phase=recording] .dictation-trigger{background:var(--green);color:var(--surface)}
.dictation-wave{display:flex;align-items:center;justify-content:center;gap:3px;height:24px;min-width:0;flex:1 1 62px;overflow:hidden}
.dictation-wave i{display:block;flex:0 0 2px;height:3px;border-radius:4px;background:var(--green);transition:height .1s linear}
.dictation-time{font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}
.dictation-inline[data-phase=preparing] .dictation-inline-status:before{content:'';display:inline-block;width:10px;height:10px;margin-right:7px;border:1.5px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:dictation-spin .8s linear infinite}
.dictation-inline[data-phase=processing] .dictation-trigger{position:relative}
.dictation-inline[data-phase=processing] .dictation-trigger:after{content:'';position:absolute;inset:1px;border:2px solid var(--line);border-top-color:var(--green);border-radius:50%;animation:dictation-spin .8s linear infinite;pointer-events:none}
.dictation-inline[data-phase=processing] .dictation-inline-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.dictation-feedback{padding:8px 0 2px;font-size:12px;line-height:1.45;color:var(--ink)}
.dictation-feedback p{margin:0 0 5px}.dictation-feedback textarea{width:100%;box-sizing:border-box;margin:6px 0}.dictation-feedback button{font-size:12px}
.dictation-single:has(>.dictation-feedback:not([hidden])) .dictation-inline{top:4px;transform:none}
.dictation-multiline:has(>.dictation-feedback:not([hidden])) .dictation-inline{bottom:auto;top:6px}
@keyframes dictation-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.dictation-inline *{animation:none!important;transition:none!important}}
.dictation-shell:not(:hover):not(:focus-within):not(.dictation-busy):not(:has(.dictation-feedback:not([hidden]))) .dictation-inline{opacity:.72}
.account-actions [data-dictation-toggle]{display:flex;align-items:center;gap:10px;width:100%;text-align:left}
.account-actions [data-dictation-toggle]>svg{width:19px;height:19px;flex:none;color:var(--muted)}
.dictation-pref-switch{position:relative;width:30px;height:18px;flex:0 0 30px;border-radius:12px;background:var(--line-strong,var(--line));margin-left:auto}
.dictation-pref-switch:after{content:'';position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:var(--surface);box-shadow:0 1px 3px #0002}
[data-dictation-toggle][aria-checked=true] .dictation-pref-switch{background:var(--green)}
[data-dictation-toggle][aria-checked=true] .dictation-pref-switch:after{left:15px}
@media(hover:none){.dictation-shell .dictation-inline{opacity:1!important;pointer-events:auto!important}}
/* Native arrows, steppers and reference-picker controls keep their own space. */
.dictation-rail{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:start;column-gap:6px}
.dictation-rail>input,.dictation-rail>select,.dictation-rail>.reference-combobox{grid-column:1;min-width:0;width:100%}
html body .dictation-shell.dictation-rail>input{padding-right:12px!important}
.dictation-rail>.dictation-inline{position:relative;grid-column:2;grid-row:1;top:auto;right:auto;bottom:auto;transform:none;align-self:center;max-width:100%}
.dictation-rail>.dictation-feedback{grid-column:1/-1}
/* Single-line controls stay in their original slot throughout recording. */
.dictation-single .dictation-wave,.dictation-single .dictation-time,.dictation-single .dictation-cancel{display:none!important}
.dictation-single .dictation-inline-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.dictation-single .dictation-inline[data-phase=recording] .dictation-trigger{box-shadow:none}
.dictation-single .dictation-inline[data-phase=preparing] .dictation-trigger{opacity:.5}
.dictation-form-tools{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;margin:0 0 8px;padding:2px;min-width:0;box-sizing:border-box;overflow:visible}
html body .dictation-form-tools [data-dictation-toggle]{display:inline-flex;align-items:center;gap:8px;flex:0 1 auto;max-width:100%;min-height:34px;margin:0;padding:6px 10px;box-sizing:border-box;border:1px solid transparent;border-radius:10px;background:var(--surface);color:var(--subtle);font-size:12px;line-height:1.3;box-shadow:inset 0 0 0 1px var(--line-strong)}
.dictation-form-tools svg{width:15px;height:15px;flex:none}
.dictation-form-tools [aria-checked=true]{color:var(--green)}
.dictation-form-tools button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.voice-plan-launch,.voice-plan-tools button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.voice-plan-entry{display:inline-flex;align-items:stretch;margin-inline-start:auto;max-width:100%}
.voice-plan-entry>button{margin:0;min-width:0;font-size:12px}
.voice-plan-entry>button:first-child{border-start-end-radius:0;border-end-end-radius:0}
.voice-plan-entry>.voice-plan-launch{border-start-start-radius:0;border-end-start-radius:0;margin-inline-start:-1px;padding-inline:9px}
.voice-plan-entry>button:focus-visible{position:relative;z-index:1}
.voice-plan-launch svg{width:17px;height:17px;flex:none}
.office-today .office-section-head>div{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
html body .dictation-single .dictation-inline button{width:26px;height:26px;min-width:26px;min-height:26px;flex-basis:26px}
.dictation-single .dictation-inline{min-height:26px}
.dictation-single .dictation-inline svg{width:16px;height:16px}
html body .dictation-inline[data-phase=recording] .dictation-trigger{background:color-mix(in srgb,var(--green) 12%,transparent);color:var(--green)}
@media(pointer:coarse){html body .dictation-single .dictation-inline button{width:32px;height:32px;min-width:32px;min-height:32px;flex-basis:32px}}
.voice-plan-heading,.voice-plan-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.voice-plan-heading>span,.voice-plan-hint{font-size:12px;color:var(--muted);line-height:1.5}
.voice-plan-tools{justify-content:flex-end;margin:10px 0}
.voice-plan-form>label{display:block}.voice-plan-form textarea{width:100%;box-sizing:border-box}
.voice-plan-rows{display:grid;gap:12px;margin:16px 0}
.voice-plan-row{display:grid;grid-template-columns:minmax(110px,1fr) 1fr 1fr 32px;gap:10px;min-width:0;border:1px solid var(--line);border-radius:12px;padding:12px}
.voice-plan-row legend{font-size:12px;color:var(--muted);padding:0 5px}
.voice-plan-row>label:first-of-type{grid-column:1/4}
.voice-plan-row>label{min-width:0}.voice-plan-row input{min-width:0;width:100%;box-sizing:border-box}
.voice-plan-row>[data-plan-remove]{grid-column:4;grid-row:1;align-self:end;padding:0;min-width:32px;width:32px;height:36px}
.voice-plan-saved{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}
.voice-plan-inline{margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff);min-width:0}
.voice-plan-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.voice-plan-top>button{padding:0;width:30px;height:30px;min-height:30px}
.voice-plan-top>strong{margin-right:auto}
.voice-plan-top:has([data-plan-clear]){display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}
.voice-plan-top:has([data-plan-clear])>strong{min-width:0;overflow-wrap:anywhere}
.voice-plan-top>[data-plan-clear]{width:auto;padding:0 8px;font-size:.857143rem;white-space:nowrap}
@media(max-width:359px){.voice-plan-top:has([data-plan-clear]){grid-template-columns:minmax(0,1fr) auto}.voice-plan-top:has([data-plan-clear])>strong{grid-column:1/-1}.voice-plan-top>[data-plan-clear]{justify-self:end}}
.voice-plan-again svg{width:16px;height:16px;vertical-align:middle}
.voice-plan-inline [hidden],.office-plan-now[hidden],.office-plan-now-line[hidden]{display:none!important}
[data-plan-questions]{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
[data-plan-questions]:empty{display:none}
[data-plan-questions] button{font-size:12px;padding:8px 10px}
[data-event-category=rest]{--event-color:#287b54;--event-surface:var(--event-rest-surface);--event-ink:var(--event-rest-ink)}
[data-event-category=meeting]{--event-color:#b74e58;--event-surface:var(--event-meeting-surface);--event-ink:var(--event-meeting-ink)}
[data-event-category=documents]{--event-color:#9b740e;--event-surface:var(--event-documents-surface);--event-ink:var(--event-documents-ink)}
[data-event-category=work]{--event-color:#3c73ac;--event-surface:var(--event-work-surface);--event-ink:var(--event-work-ink)}
[data-event-category=personal]{--event-color:#8052aa;--event-surface:var(--event-personal-surface);--event-ink:var(--event-personal-ink)}
[data-event-category=other]{--event-color:#69776f;--event-surface:var(--event-other-surface);--event-ink:var(--event-other-ink)}
html body .office-timed-event[data-event-category]:not([data-event-category=""]),html body .calendar-event[data-event-category]:not([data-event-category=""]){background:var(--event-surface,color-mix(in srgb,var(--event-color) 10%,var(--surface,#fff)));border-left:3px solid var(--event-color);color:var(--ink,#253330)}
html body .office-timed-event[data-event-category]:not([data-event-category=""]) time,html body .office-timed-event[data-event-category]:not([data-event-category=""]) .record-link,html body .calendar-event[data-event-category]:not([data-event-category=""]) strong{color:var(--event-ink,var(--event-color))}
html body .office-timed-event[data-event-category]:not([data-event-category=""]) :is(.dashboard-event,.record-link){background-color:transparent}
html[data-theme=dark] [data-event-category=rest]{--event-color:#80cda4}
html[data-theme=dark] [data-event-category=meeting]{--event-color:#eb939b}
html[data-theme=dark] [data-event-category=documents]{--event-color:#e1bd61}
html[data-theme=dark] [data-event-category=work]{--event-color:#92bbed}
html[data-theme=dark] [data-event-category=personal]{--event-color:#c5a0e7}
.voice-plan-inline .voice-plan-transcript{font-size:12px;color:var(--muted)}
.voice-plan-inline textarea{min-height:70px;max-height:150px;resize:vertical}
.voice-plan-inline .voice-plan-hint{margin:6px 0;font-size:11px}
.voice-plan-inline [data-plan-status],.voice-plan-inline [data-plan-error]{font-size:12px;margin:8px 0}
.voice-plan-inline [data-plan-error]:empty,.voice-plan-inline [data-plan-status]:empty{display:none}
.voice-plan-inline .voice-plan-row{grid-template-columns:repeat(3,minmax(0,1fr)) 28px;padding:10px;gap:8px}
.voice-plan-inline .voice-plan-row input{font-size:12px;padding:7px 6px}
.voice-plan-inline .voice-plan-row>[data-plan-remove]{min-width:28px;width:28px}
.voice-plan-conflict{grid-column:1/-1;font-size:12px;color:var(--green);line-height:1.5}
.voice-plan-conflict:empty{display:none}
.voice-plan-conflict button{font-size:12px;margin-top:6px}
.voice-plan-saved small{display:block;color:var(--muted);margin-top:4px;font-size:11px}
.voice-plan-saved strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.voice-plan-saved>span:last-child{display:flex;gap:6px;flex-wrap:wrap}
.voice-plan-saved button{font-size:11px;padding:5px 8px;min-height:30px}
@media(max-width:520px){.voice-plan-inline .voice-plan-row{grid-template-columns:minmax(0,1fr) 28px}.voice-plan-inline .voice-plan-row>label{grid-column:1/-1}.voice-plan-inline .voice-plan-row>label:first-of-type{grid-column:1}.voice-plan-inline .voice-plan-row>[data-plan-remove]{grid-column:2}.voice-plan-inline{padding:10px}.voice-plan-saved{align-items:start;flex-direction:column}}
@media(max-width:520px){.voice-plan-row{grid-template-columns:minmax(0,1fr) 32px}.voice-plan-row>label:first-of-type{grid-column:1}.voice-plan-row>[data-plan-remove]{grid-column:2}.voice-plan-row>label:nth-of-type(n+2){grid-column:1/-1}.voice-plan-heading{align-items:end}.voice-plan-saved{align-items:start;flex-direction:column}}

html body .office-timed-event[data-event-category] .dashboard-event small{color:var(--muted)}

/* Keep long transcripts quiet in the milk, light and dark palettes. */
.dictation-shell>textarea,.voice-plan-inline textarea,.dictation-shell .ql-editor{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--muted) 45%,var(--surface)) transparent;scrollbar-gutter:stable;overscroll-behavior:contain}
.dictation-shell>textarea:hover,.voice-plan-inline textarea:hover,.dictation-shell .ql-editor:hover{scrollbar-color:color-mix(in srgb,var(--muted) 65%,var(--surface)) transparent}
.dictation-shell>textarea::-webkit-scrollbar,.voice-plan-inline textarea::-webkit-scrollbar,.dictation-shell .ql-editor::-webkit-scrollbar{width:6px;height:6px}
.dictation-shell>textarea::-webkit-scrollbar-track,.voice-plan-inline textarea::-webkit-scrollbar-track,.dictation-shell .ql-editor::-webkit-scrollbar-track{background:transparent;margin:10px 0 40px}
.dictation-shell>textarea::-webkit-scrollbar-thumb,.voice-plan-inline textarea::-webkit-scrollbar-thumb,.dictation-shell .ql-editor::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 45%,var(--surface));border-radius:10px}
.dictation-shell>textarea::-webkit-scrollbar-button,.voice-plan-inline textarea::-webkit-scrollbar-button,.dictation-shell .ql-editor::-webkit-scrollbar-button{display:none;width:0;height:0}
.dictation-shell>textarea::-webkit-scrollbar-corner,.voice-plan-inline textarea::-webkit-scrollbar-corner{background:transparent}
.dictation-multiline .dictation-inline{right:14px}
@supports selector(::-webkit-scrollbar){
 .dictation-shell>textarea,.voice-plan-inline textarea,.dictation-shell .ql-editor{scrollbar-width:auto;scrollbar-color:auto}
 .dictation-shell>textarea:hover::-webkit-scrollbar-thumb,.voice-plan-inline textarea:hover::-webkit-scrollbar-thumb,.dictation-shell .ql-editor:hover::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 65%,var(--surface))}
}

/* Shared day accents for the compact, desktop and mobile calendars. */
:root{--calendar-rest:#b54c53;--calendar-rest-soft:color-mix(in srgb,var(--calendar-rest) 9%,transparent)}
html[data-theme=dark]{--calendar-rest:#ed969e}
#dashboard-calendar .dashboard-weekday:nth-child(6),#dashboard-calendar .dashboard-weekday:nth-child(7),.calendar-mobile-weekdays>span:nth-child(n+6){color:var(--calendar-rest)}
html body #dashboard-calendar .dashboard-calendar-grid>.calendar-red-day,html body .calendar-mobile-dates>.calendar-red-day{color:var(--calendar-rest);background:transparent;border:1px solid color-mix(in srgb,var(--calendar-rest) 40%,transparent)}
html body #dashboard-calendar .dashboard-calendar-grid>.calendar-red-day[aria-pressed=true],html body #dashboard-calendar .dashboard-calendar-grid>.calendar-red-day[aria-current=date],html body .calendar-mobile-dates>.calendar-red-day[aria-pressed=true],html body .calendar-mobile-dates>.calendar-red-day.today{border-color:var(--calendar-rest);color:var(--calendar-rest);background:transparent;box-shadow:inset 0 0 0 1px var(--calendar-rest)}
html body #dashboard-calendar .dashboard-calendar-grid>.calendar-red-day:hover,html body .calendar-mobile-dates>.calendar-red-day:hover{background:transparent;border-color:var(--calendar-rest)}
html body #dashboard-calendar .dashboard-calendar-grid>.calendar-red-day>small{background:var(--calendar-rest);color:#fff}
html body .calendar-day.calendar-red-day>h3{color:var(--calendar-rest);background:transparent;border:1px solid color-mix(in srgb,var(--calendar-rest) 40%,transparent)}
html body .calendar-day.calendar-red-day.today{border-color:var(--calendar-rest)}

.dictation-form-tools [data-dictation-toggle]>span:not(.dictation-pref-switch){min-width:0;overflow-wrap:anywhere}.dictation-form-tools .dictation-pref-switch{margin-left:2px}.dictation-form-tools button:focus-visible{outline-offset:-3px}

.voice-plan-clarification{padding:10px 0;border-top:1px solid var(--line);min-width:0;font-size:12px}
.voice-plan-clarification-head{display:flex;align-items:start;justify-content:space-between;gap:8px;margin-bottom:8px}
.voice-plan-clarification-head span{min-width:0;overflow-wrap:anywhere}.voice-plan-clarification-head small{display:block;color:var(--muted);margin-top:3px}
.voice-plan-clarification-head button{width:28px;min-width:28px;height:28px;padding:0}
.voice-plan-time-choices{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.voice-plan-time-choices button{padding:4px 10px;font-size:12px;font-variant-numeric:tabular-nums}
.voice-plan-clarification label{display:block;line-height:1.5}.voice-plan-inline .voice-plan-clarification textarea{width:100%;min-height:64px;height:64px;margin-top:6px;box-sizing:border-box;font-size:13px}
.voice-plan-clarification>[data-plan-answer]{display:block;margin:6px 0 0 auto;padding:6px 12px;font-size:12px}

html body .voice-plan-inline .voice-plan-clarification .dictation-shell>textarea{min-height:72px!important;height:72px;padding-bottom:32px!important}

.voice-plan-chat{display:flex;flex-direction:column;gap:8px;max-height:min(42vh,360px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px 4px 6px}
.voice-plan-chat:empty{display:none}
.voice-plan-message{width:fit-content;max-width:88%;box-sizing:border-box;padding:8px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--line);overflow-wrap:anywhere;white-space:pre-line;font-size:13px}
.voice-plan-message small{display:block;color:var(--muted);font-size:10px;margin-bottom:3px}
.voice-plan-message.from-user{align-self:flex-end;background:color-mix(in srgb,var(--accent) 8%,var(--surface));border-bottom-right-radius:4px}
.voice-plan-message.from-assistant{border-bottom-left-radius:4px}
.voice-plan-chat .voice-plan-saved{padding:6px 10px}
.voice-plan-form>[data-chat-send]{display:block;margin-inline-start:auto}
.voice-plan-form.awaiting-clarification:has([data-plan-reply])>.voice-plan-transcript,.voice-plan-form.awaiting-clarification:has([data-plan-reply])>.voice-plan-hint,.voice-plan-form.awaiting-clarification:has([data-plan-reply])>[data-chat-send]{display:none}
