.time-settings{scroll-margin-top:24px}.time-settings h2{font-size:1.45rem}.time-zone-picker{margin:18px 0}.time-zone-picker .secondary{max-width:100%;white-space:normal;text-align:left;margin-bottom:16px;overflow-wrap:anywhere}.time-zone-picker select{width:100%;max-width:100%}.time-group{border:1px solid var(--line);border-radius:16px;padding:18px;margin:22px 0}.time-group legend{font-weight:650;font-size:1rem;padding:0 8px}.time-group details{margin:8px 0 18px}.time-group summary{cursor:pointer;color:var(--purple);font-size:.9375rem}.time-group .check{margin:18px 0 12px}.time-window{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) 36px;gap:10px;align-items:end;padding:14px 0;border-bottom:1px solid var(--line);margin-bottom:12px}.time-window .field{margin:0;min-width:0}.time-window input,.time-window select{min-width:0;padding:10px;width:100%}.time-window .text-button{font-size:24px;min-height:44px;padding:0}.time-settings details.availability-editor{margin:0}.time-settings .form-actions{flex-wrap:wrap}.time-settings input[type=time]{min-width:0}.time-settings .hint{font-size:.9375rem;line-height:1.6}
.chat-local-clock{display:grid;gap:2px;font-size:.875rem;color:var(--purple);line-height:1.5;margin-top:5px}.chat-local-clock:empty{display:none}.chat-local-clock time{font-weight:650}.chat-time-tools{background:#fffdfa;flex-shrink:0;border-bottom:1px solid var(--line);padding:2px 16px}.chat-time-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.chat-time-toolbar .text-button{font-size:.875rem;min-height:40px;padding:6px 0;white-space:normal;text-align:left}.chat-time-tools>p{margin:5px 0 10px;font-size:.875rem}.chat-time-tools [hidden]{display:none}.time-guide summary{font-size:.875rem;color:var(--purple);cursor:pointer;min-height:34px;display:flex;align-items:center}.time-guide p{font-size:.9375rem;line-height:1.6;margin:10px 0}.time-guide button{font-size:.875rem;min-height:40px}.time-guide[open]{max-height:180px;overflow:auto}.chat-peer-header,.chat-time-tools,.connection-nudge{flex-shrink:0}
#modal:has(#schedule-dialog){width:min(740px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:26px;overflow:auto}#schedule-dialog{min-width:0}#schedule-dialog h2{font-size:1.5rem;margin-bottom:10px}#schedule-dialog h3{font-size:1.125rem}#schedule-dialog .form-actions{flex-wrap:wrap;gap:10px}#schedule-dialog .form-actions button{white-space:normal}#schedule-dialog .hint{font-size:.9375rem;line-height:1.6}.schedule-list{display:grid;gap:12px;max-height:320px;overflow:auto;margin:18px 0;padding:2px}.schedule-card{border:1px solid var(--line);border-radius:14px;padding:16px;background:#fffdfa;min-width:0}.schedule-card-heading{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;font-size:.9375rem}.schedule-card-heading>strong{color:var(--purple)}.schedule-time-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.schedule-time-pair>div{display:grid;align-content:start;gap:5px;min-width:0}.schedule-time-pair small{font-size:.875rem;color:var(--muted)}.schedule-time-pair strong{font-size:1rem;line-height:1.5;overflow-wrap:anywhere}.schedule-time-pair .hint{margin:0}.schedule-new{border-top:1px solid var(--line);padding-top:18px;margin-top:24px}.schedule-new>button{max-width:100%;white-space:normal}.schedule-choice{display:flex;align-items:flex-start;gap:10px;margin:16px 0;border:1px solid var(--line);padding:14px;border-radius:12px;cursor:pointer}.schedule-choice>input{width:20px;min-width:20px;height:20px;min-height:20px;accent-color:var(--purple);margin-top:12px}.schedule-choice>span{flex:1;min-width:0}.schedule-choice .schedule-time-pair{margin:6px 0}.schedule-choice:has(input:checked){background:#f5effc;border-color:var(--purple)}#schedule-form>[type=submit]{margin:16px 0}#schedule-suggestion-list{max-height:320px;overflow:auto;margin:12px 0}#schedule-suggestion-list .schedule-card{margin:10px 0}#schedule-form .two-col{margin-top:18px}.schedule-card .text-button,.schedule-card .secondary,.schedule-card .primary{font-size:.9375rem;min-height:44px}
@media(max-width:760px){.chat-peer-header:has(.chat-local-clock:not(:empty)){min-height:110px}.chat-time-toolbar{gap:4px 12px}.chat-time-toolbar .text-button{font-size:.875rem}.chat-time-tools{padding:2px 12px}.chat-local-clock{font-size:.875rem}.chat-peer-header>.chat-peer-actions{max-width:85px}.time-window{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px}.time-window>.field:first-child{grid-column:1/3}.time-window>button{grid-column:3;grid-row:1/3;align-self:center}.schedule-time-pair{grid-template-columns:1fr;gap:14px}.schedule-list{max-height:280px}#modal:has(#schedule-dialog){padding:18px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}#schedule-form .two-col{grid-template-columns:1fr}.time-group{padding:14px}.time-settings .two-col{grid-template-columns:1fr 1fr;gap:10px}.time-settings input[type=time]{font-size:1rem;padding:10px}.schedule-choice{padding:10px}}
/* Keep contextual help compact so mobile users retain room for messages. */
.time-guide{margin:0}.connection-nudge[hidden]{display:none}.chat-peer-header>div:not(.chat-peer-actions)>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
