.tnx-multiple-schedule{display:block;min-width:0;max-width:100%}
.tnx-schedule-readonly{display:block;min-width:0;max-width:100%;text-align:start;font-weight:normal}
.tnx-schedule-summary-link{display:block;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:uppercase;color:var(--link-color);line-height:1.4}
.tnx-schedule-trigger,.tnx-schedule-preview{text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.tnx-schedule-trigger{box-sizing:border-box;width:100%;min-height:36px;line-height:1.4;caret-color:transparent;user-select:none;cursor: var(--tnx-cursor-default, default)}
.tnx-schedule-trigger[data-schedule-editable="1"],.tnx-schedule-preview{cursor: var(--tnx-cursor-pointer, pointer)}
.tnx-schedule-trigger[data-schedule-editable="1"]:not(:disabled):hover{filter:opacity(.8)}
.tnx-schedule-trigger[data-schedule-editable="1"]:focus{border-color:var(--primary-color);outline:none;box-shadow:none}
/* As wide as its text, like every other field note, so its hover card opens beside the words. */
.tnx-schedule-note{display:block;width:fit-content;max-width:100%;opacity:.65;margin-top:4px;font-size:.8em}
.tnx-schedule-note[hidden]{display:none}
.tnx-symbol-picker-panel.tnx-schedule-dialog{width:min(720px,calc(100vw - 32px));height:min(760px,calc(100dvh - 32px));color:var(--text-color)}
.tnx-schedule-occurrences{min-height:0;padding:0 4px}
.tnx-schedule-heading{display:flex;align-items:flex-start;gap:12px;padding:.6rem .9rem;border-bottom:1px solid var(--border-color);flex-shrink:0}
.tnx-schedule-heading.has-progress{border-bottom:0}
.tnx-schedule-popup-progress{flex-shrink:0;padding:0 .9rem}
.tnx-schedule-popup-progress[hidden]{display:none}
.tnx-schedule-overview{font-size:.9rem;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tnx-schedule-details-toggle,.tnx-schedule-summary-toggle{text-decoration:none;flex-shrink:0}
.tnx-schedule-notes{grid-column:1/-1}
.tnx-schedule-occurrence[data-schedule-range="false"]>:is(label,.tnx-schedule-touch-field){grid-column:1/-1}
.tnx-schedule-notes[hidden]{display:none!important}
.tnx-schedule-past{opacity:.8}
.tnx-schedule-active:not(fieldset){color:var(--accent-color)}
.tnx-schedule-trigger.tnx-schedule-all-done{color:color-mix(in srgb,var(--text-color) 80%,transparent)}
.tnx-schedule-hover{display:flex;flex-direction:column;max-height:min(calc(100dvh - 48px),var(--tnx-hover-content-height,100dvh));white-space:normal;text-align:start;min-width:0}
.tnx-schedule-hover>strong{display:block;flex-shrink:0;text-align:center;line-height:1.4}
.tnx-schedule-completion{font-weight:normal}
.tnx-schedule-scroll-box{box-sizing:border-box;min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid var(--border-color);border-radius:6px;background:color-mix(in srgb,var(--border-color) 12%,transparent);padding:.55rem}
.tnx-schedule-scroll-box[hidden]{display:none}
.tnx-schedule-dialog>.tnx-schedule-scroll-box{border-radius:6px}
.tnx-schedule-hover-events{max-height:min(24rem,45dvh);flex:1 1 auto}
.tnx-schedule-resource-scroll{max-height:min(8rem,22dvh);flex:0 1 auto;margin-top:2px;font-weight:normal}
.tnx-schedule-resource-summary{display:grid;grid-template-columns:minmax(0,1fr) fit-content(7em) max-content fit-content(8em) max-content;gap:.3em 0;font-weight:normal;font-variant-numeric:tabular-nums;line-height:1.45;text-align:start}
.tnx-schedule-resource-row{display:contents}
.tnx-schedule-wrong-role{color:red}
.tnx-schedule-wrong-role>a{opacity:.5}
.tnx-schedule-resource-row>.tnx-percentage-pair{margin-inline-start:5px;column-gap:.4em;text-align:end}
.tnx-schedule-resource-name,.tnx-schedule-resource-name>a{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tnx-schedule-hover-events>div+div{margin-top:.4rem}
.tnx-schedule-hover-events .tnx-schedule-active{font-weight:bold}
.tnx-schedule-event-text{display:block;padding-inline-start:1.5rem;text-indent:-1.5rem;font-variant-numeric:tabular-nums;line-height:1.45;overflow-wrap:anywhere}
.tnx-schedule-event-start>span,.tnx-schedule-event-end>span{display:inline-block;text-indent:0;white-space:nowrap}
.tnx-schedule-event-duration{font-size:.9em}
.tnx-schedule-event-text>span:empty{display:none}
/* Hover and read-only details cards share compact, aligned columns. */
.tnx-schedule-hover-events .tnx-schedule-event-text{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,max-content) minmax(3.5em,max-content);column-gap:.5em;row-gap:.15em;padding-inline-start:0;text-indent:0}
.tnx-schedule-event-start{grid-column:1;grid-row:1}
.tnx-schedule-event-end{grid-column:2;grid-row:1}
.tnx-schedule-event-duration{grid-column:3;grid-row:1}
.tnx-schedule-hover-events :is(.tnx-schedule-event-resources,.tnx-schedule-event-notes){grid-column:1/-1;min-width:0;padding-inline-start:1.5rem;overflow-wrap:anywhere}
.tnx-schedule-event-resources{grid-row:2}
.tnx-schedule-hover-events{container-type:inline-size}
@container(max-width:360px){.tnx-schedule-hover-events .tnx-schedule-event-text{grid-template-columns:minmax(0,max-content) minmax(0,max-content)}.tnx-schedule-hover-events .tnx-schedule-event-duration{grid-column:1/-1;grid-row:2;padding-inline-start:1.5rem}.tnx-schedule-hover-events .tnx-schedule-event-resources{grid-row:3}}
/* Share column widths so the bold current event does not shift its end date or duration. */
@supports(grid-template-columns:subgrid){
    .tnx-schedule-hover-events{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,max-content) minmax(0,max-content);column-gap:.5em;align-content:start}
    .tnx-schedule-hover-events>div{display:grid;grid-column:1/-1;grid-template-columns:subgrid}
    .tnx-schedule-hover-events .tnx-schedule-event-text{grid-column:1/-1;grid-template-columns:subgrid}
}
.tnx-temporal-progress.tnx-schedule-progress{position:relative;display:block;overflow:visible;width:100%;margin:.7rem 0;background:transparent;box-shadow:none;flex-shrink:0}
.tnx-schedule-popup-progress .tnx-schedule-progress{margin:0}
.tnx-schedule-progress-details{display:grid;grid-template-columns:minmax(0,max-content) max-content minmax(0,max-content) max-content;gap:.25em .8em;text-align:start;font-weight:normal;font-variant-numeric:tabular-nums}
.tnx-schedule-progress-details>div{display:grid;grid-column:1/-1;grid-template-columns:subgrid;gap:.2em .8em}
.tnx-schedule-progress-columns>span{grid-column:span 2}
.tnx-schedule-progress-work{font-weight:bold}
.tnx-schedule-progress-timeline{opacity:.5}
.tnx-schedule-progress-range{grid-column:1/-1;overflow-wrap:anywhere}
.tnx-schedule-progress-segment{position:absolute;top:0;bottom:0;background:var(--input-bg);box-shadow:0 0 0 1px var(--border-color);box-sizing:border-box;overflow:hidden}
.tnx-schedule-progress-segment.tnx-schedule-segment-start{border-top-left-radius:999px;border-bottom-left-radius:999px}
.tnx-schedule-progress-segment.tnx-schedule-segment-end{border-top-right-radius:999px;border-bottom-right-radius:999px}
.tnx-schedule-progress-segment>.tnx-temporal-progress__fill{animation:none;border-radius:inherit}
.tnx-schedule-overview p{margin:0}
.tnx-schedule-overview p+p{margin-top:4px}
.tnx-schedule-dialog>.tnx-symbol-picker-panel-inner{width:auto;margin:.6rem .9rem 0;padding:.6rem}
.tnx-schedule-dialog>.tnx-schedule-resource-scroll{margin:2px .9rem 0;flex-shrink:0;font-size:.9rem}
.tnx-schedule-dialog--readonly>.tnx-schedule-hover{flex:1;min-height:0;max-height:none;padding:.6rem .9rem 0}
.tnx-schedule-dialog--readonly .tnx-schedule-hover-events{max-height:none}
.tnx-schedule-dialog>[role=alert]{flex-shrink:0;margin:0 .9rem .6rem}
.tnx-schedule-occurrence{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0;margin:0 0 12px;padding:12px;border:1px solid var(--border-color,#ddd);border-radius:10px}
.tnx-schedule-occurrence legend{width:100%;box-sizing:border-box;display:flex;align-items:center;gap:6px;padding:0 6px}
.tnx-schedule-occurrence legend::after{content:"";order:1;flex:1;border-top:1px solid var(--border-color,#ddd)}
.tnx-schedule-occurrence.tnx-schedule-active,.tnx-schedule-occurrence.tnx-schedule-active legend::after{border-color:var(--accent-color)}
.tnx-schedule-occurrence legend>span{opacity:.65}
.tnx-schedule-occurrence:is(.tnx-schedule-active,.tnx-schedule-assigned-self) legend>span{color:var(--accent-color)}
.tnx-schedule-occurrence .tnx-schedule-remove{order:2;flex:none;width:auto;margin:0;padding:.25rem .4rem;border:0;background:transparent;color:var(--link-color);font:inherit;font-size:.8rem;opacity:.5;touch-action:manipulation}
@media(any-pointer:coarse){.tnx-schedule-occurrence .tnx-schedule-remove{min-height:44px}}
.tnx-schedule-occurrence .tnx-schedule-remove:hover{background:transparent;filter:none;opacity:.4}
.tnx-schedule-occurrence .tnx-schedule-remove[hidden]{display:none}
.tnx-schedule-occurrence label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:.85rem}
.tnx-schedule-occurrence>label:only-of-type{grid-column:1/-1}
.tnx-schedule-touch-field{position:relative;min-width:0}
.tnx-schedule-touch-field>.tnx-schedule-picker-touch{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;opacity:0}
.tnx-schedule-occurrence input[data-part]{box-sizing:border-box;width:100%;min-height:38px;min-width:0}
.tnx-schedule-resources{grid-column:1/-1;min-width:0}
.tnx-schedule-resources>span{display:block;font-size:.85rem;margin-bottom:5px}
.tnx-schedule-dialog button{cursor: var(--tnx-cursor-pointer, pointer)}
.tnx-schedule-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem}
.tnx-schedule-footer>button{box-sizing:border-box;flex:1 1 14rem;width:100%;max-width:min(100%,var(--tnx-action-button-width,300px));min-width:0;margin:0}
.tnx-schedule-footer>.tnx-schedule-add[hidden]{display:none}
.tnx-schedule-footer.tnx-schedule-can-add>.tnx-schedule-add[hidden]{display:block!important;visibility:hidden;pointer-events:none}
.tnx-schedule-add{opacity:.5}
.tnx-schedule-add:hover{opacity:.4;filter:none}
.tnx-schedule-dialog [role=alert]{color:var(--error-color,#b22)}
@media(max-width:540px){.tnx-schedule-occurrence{grid-template-columns:1fr;gap:10px}.tnx-schedule-resources{grid-column:1}}
