.task-progress-button { display:flex; align-items:center; gap:8px; white-space:nowrap; min-height:40px; }
#photoTasksBadge { color:#61716a; font-weight:600; }
#photoTasksBadge[data-state="running"],#photoTasksBadge[data-state="succeeded"] { color:#176f63; }
#photoTasksBadge[data-state="warning"],#photoTasksBadge[data-state="failed"] { color:#a33718; }
.task-progress { display:flex; align-items:center; gap:16px; padding:10px 24px; background:#e9f5f0; border-bottom:1px solid #cadbd3; font-size:13px; }
.task-progress.hidden { display:none; }
.task-progress progress { width:180px; height:8px; flex-shrink:0; accent-color:#176f63; }
.task-toast { position:fixed; z-index:110; right:20px; top:max(80px,env(safe-area-inset-top)); width:min(380px,calc(100% - 32px)); max-height:calc(100dvh - 100px); overflow:auto; padding:18px; background:white; color:#172b28; border:1px solid #a4c4bb; border-radius:8px; box-shadow:0 8px 32px #0002; }
.task-toast[hidden] { display:none; }
.task-toast p { font-size:14px; line-height:1.6; }
.task-toast div { display:flex; flex-wrap:wrap; gap:10px; }
.task-dialog { width:min(560px,calc(100% - 32px)); max-height:80dvh; padding:20px; border:1px solid #cadbd3; border-radius:8px; color:#172b28; }
.task-dialog::backdrop { background:#0004; }
.task-dialog[open] { display:flex; flex-direction:column; overflow:hidden; }
.task-dialog header,.task-dialog > p,.task-dialog > details { flex-shrink:0; }
#photoTasksList { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.task-dialog [hidden] { display:none !important; }
.task-dialog header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.task-dialog h2 { font-size:20px; margin:0; }
.task-notification-settings { padding:18px 0 0; }
.task-notification-settings summary { cursor:pointer; font-size:13px; color:#61716a; margin-bottom:12px; }
.task-notification-settings p,#photoTasksStatus { font-size:13px; color:#61716a; overflow-wrap:anywhere; }
#photoTasksSummary { font-size:14px; color:#61716a; }
#photoTasksStatus:empty { display:none; }
#photoTasksList h3 { font-size:14px; margin:20px 0 0; }
.task-entry { padding:16px 0; border-bottom:1px solid #dde6e2; }
.task-entry[data-state="failed"] > strong,.task-entry[data-state="warning"] > strong { color:#a33718; }
.task-entry p { font-size:14px; line-height:1.6; }
.task-entry time { display:block; font-size:12px; color:#61716a; }
.task-entry progress { width:100%; height:8px; accent-color:#176f63; }
.task-entry-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
@media(max-width:760px) {
  .topbar { height:auto; min-height:66px; padding-block:10px; flex-wrap:wrap; gap:10px; }
  .task-progress { padding:10px 16px; flex-wrap:wrap; gap:6px; }
  .task-progress progress { width:100%; }
  .topbar-actions { flex-wrap:wrap; }
  .task-progress-button { font-size:12px; padding:6px 10px; }
}
