.work-timer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;margin:0 0 12px;border:1px solid #dce5ed;border-radius:5px;background:#fff;color:#304a60;font-size:13px}
.work-timer[hidden]{display:none!important}.work-timer strong{font-weight:500}.work-timer output{font-variant-numeric:tabular-nums;min-width:64px;font-size:14px}.work-timer button{margin:0!important;min-height:40px;padding:6px 10px;font-size:13px}.work-timer small{flex:1 1 260px;color:#617589;font-size:12px;line-height:1.5}
@media(max-width:900px){.work-timer button{min-height:44px}.work-timer small{flex-basis:100%}}
#workspace .sidebar-content .work-timer button{height:40px!important;min-height:40px!important}
@media(max-width:900px){#workspace .sidebar-content .work-timer button{height:44px!important;min-height:44px!important}}
.work-timer .wt-draft-menu{margin:0!important;flex-shrink:0}.work-timer .wt-draft-menu>summary{margin:0!important}.work-timer .wt-draft-menu[hidden]{display:none!important}
.work-timer .wt-automatic{display:inline-flex;align-items:center;gap:6px;min-height:40px;margin:0}
.work-timer .wt-automatic input{width:16px;height:16px;margin:0;accent-color:#204f79}
@media(max-width:900px){.work-timer .wt-automatic{min-height:44px}}
.work-timer .wt-external{flex:1 1 100%;margin:0;padding:0;border:0;background:transparent}
.work-timer .wt-external[hidden],.wt-external-hint:empty{display:none}
.work-timer .wt-external summary{min-height:44px;align-content:center;margin:0;padding:4px 0;color:#204f79;font-weight:600}
.work-timer .wt-external p{margin:4px 0 8px}
.work-timer .wt-external label{display:inline-flex;align-items:center;gap:8px;margin:0 8px 8px 0}
.work-timer .wt-external select{width:auto;min-height:44px;margin:0}
.work-timer .wt-external button{margin:0 8px 8px 0!important}
.work-timer:has([data-timer-stop]:not([hidden])) small{min-block-size:1.5em}
.work-timer:has([data-timer-stop]:not([hidden])) [data-timer-toggle]{min-inline-size:88px}

/* Keep timer controls in fixed slots when a concept starts or pauses. */
.work-timer [data-timer-toggle]{min-inline-size:88px}
.work-timer small{min-block-size:1.5em}
.work-timer button[data-timer-stop][hidden]{display:inline-block!important;visibility:hidden;pointer-events:none}
.work-timer .wt-draft-menu[hidden]{display:block!important;visibility:hidden;pointer-events:none}

/* Phone: a single stable control row, with the full stop label accessible. */
@media(max-width:600px){
 #workspace .work-timer{display:grid;grid-template-columns:64px minmax(76px,1fr) 44px 44px;grid-template-rows:44px 44px 18px auto;gap:8px;align-items:center}
 #workspace .work-timer>strong{display:none}
 #workspace .work-timer>output{grid-column:1;grid-row:1;min-width:0}
 #workspace .work-timer>[data-timer-toggle]{grid-column:2;grid-row:1;min-inline-size:0;width:100%;padding-inline:6px}
 #workspace .work-timer>[data-timer-stop]{grid-column:3;grid-row:1;width:44px;min-width:44px;max-width:44px;padding:0!important;font-size:0!important}
 #workspace .work-timer>[data-timer-stop]::before{content:'\25A0';font-size:15px}
 #workspace .work-timer>.wt-draft-menu{grid-column:4;grid-row:1;min-width:0}
 #workspace .work-timer>.wt-draft-menu>summary{box-sizing:border-box;width:44px!important;min-width:44px!important;max-width:44px!important;padding:0!important;justify-content:center}
 #workspace .work-timer>.wt-draft-menu>summary>span:first-child{display:none}
 #workspace .work-timer>.wt-automatic{grid-column:1/-1;grid-row:2;min-width:0}
 #workspace .work-timer>small{grid-column:1/-1;grid-row:3;min-width:0;min-height:18px;max-height:18px;line-height:18px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 #workspace .work-timer>.wt-external{grid-column:1/-1;grid-row:4;min-width:0}
}

/* Scope touch sizing to this component even inside the matter workspace. */
#workspace #docsight-work-timer button{height:40px!important;min-height:40px!important}
@media(max-width:900px){#workspace #docsight-work-timer button,#workspace #docsight-work-timer select{height:44px!important;min-height:44px!important}}
@media(max-width:600px){
 #workspace #docsight-work-timer>[data-timer-stop]{padding:0!important;font-size:0!important}
 #workspace #docsight-work-timer>.wt-draft-menu>summary{min-height:44px!important;height:44px!important;width:44px!important;min-width:44px!important;padding:0!important;justify-content:center}
 #workspace #docsight-work-timer select{font-size:16px}
}
