.ui-progress-bar,
.ui-progress-ring,
.ui-progress-segments { --progress-color: var(--accent); --progress-track: color-mix(in srgb,var(--muted) 18%,transparent); }
:is(.ui-progress-bar,.ui-progress-ring,.ui-progress-segments).tone-success { --progress-color: var(--success); }
:is(.ui-progress-bar,.ui-progress-ring,.ui-progress-segments).tone-warning { --progress-color: var(--warning); }
:is(.ui-progress-bar,.ui-progress-ring,.ui-progress-segments).tone-danger { --progress-color: var(--danger); }
:is(.ui-progress-bar,.ui-progress-ring,.ui-progress-segments).tone-muted { --progress-color: var(--muted); }
.ui-progress-bar { display: block; width: 100%; min-width: 0; height: 6px; position: relative; }
.ui-progress-bar > progress,
.ui-progress-empty { display: block; width: 100%; height: 100%; border: 0; border-radius: 3px; background: var(--progress-track); overflow: hidden; appearance: none; }
.ui-progress-bar > progress { accent-color: var(--progress-color); }
.ui-progress-bar > progress::-webkit-progress-bar { background: var(--progress-track); border-radius: 3px; }
.ui-progress-bar > progress::-webkit-progress-value { background: var(--progress-color); border-radius: 3px; }
.ui-progress-bar > progress::-moz-progress-bar { background: var(--progress-color); border-radius: 3px; }
.ui-progress-threshold { display: block; position: absolute; width: 100%; height: 18px; top: -6px; left: 0; pointer-events: none; }
.ui-progress-threshold line { stroke: var(--warning); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ui-progress-ring { display: inline-grid; place-items: center; position: relative; width: 112px; height: 112px; flex: 0 0 112px; vertical-align: middle; }
.ui-progress-ring-chart { width: 100%; height: 100%; display: block; }
.ui-progress-ring-chart circle { fill: none; stroke-width: 7; }
.ui-progress-ring-track { stroke: var(--progress-track); }
.ui-progress-ring-fill { stroke: var(--progress-color); stroke-linecap: round; }
.ui-progress-ring-threshold { stroke: var(--warning); stroke-width: 3; }
.ui-progress-ring-value { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
.ui-progress-ring .ui-progress-ring-value strong { color: var(--ink); font-size: 27px; font-weight: 600; line-height: 1.2; }
.ui-progress-ring .ui-progress-ring-value small { font-size: 12px; color: var(--muted); font-weight: 400; }
.ui-progress-ring.is-unknown .ui-progress-ring-value strong { font-size: 12px; color: var(--muted); }
.ui-progress-ring.is-compact { width: 56px; height: 56px; flex-basis: 56px; }
.ui-progress-ring.is-compact .ui-progress-ring-chart circle { stroke-width: 9; }
.ui-progress-ring.is-compact .ui-progress-ring-value strong { font-size: 12px; }
.ui-progress-segments { display: flex; gap: 5px; width: 100%; height: 7px; }
.ui-progress-segments > span { flex: 1 1 0; min-width: 0; height: 100%; border-radius: 2px; background: var(--progress-track); }
.ui-progress-segments > .is-filled { background: var(--progress-color); }
.daily-note-row.resin > .daily-note-symbol { display: none; }
.daily-note-row.resin { display: block; }
.daily-note-row.resin dt { margin-bottom: 7px; }
.daily-note-resin-overview { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 18px; align-items: center; min-width: 0; }
.daily-note-row.resin .daily-note-resin-overview > dd { margin: 0; font-size: inherit; }
.daily-note-resin-overview .resin-timing,
.console-next .daily-note-resin-overview .resin-timing { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 10px; margin: 0; min-width: 0; }
.daily-note-resin-overview .resin-timing > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.daily-note-resin-overview .resin-timing span { font-size: 11px; }
.daily-note-resin-overview .resin-timing strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.daily-note-resin-overview .resin-countdown { color: var(--accent); }
.daily-note-row.resin > div > p { margin-top: 10px; }
.daily-note-row:not(.resin) .ui-progress-bar,
.daily-note-row .ui-progress-segments { margin: 8px 0 10px; }
.daily-note-row:not(.resin) > div { min-width: 0; width: 100%; }
.schedule-resin-value > .ui-progress-bar { margin: 9px 0; }
.schedule-resin-value > .ui-progress-bar .ui-progress-threshold { display: block; }
[data-resin-compact] .schedule-resin-value > .ui-progress-bar { max-width: 280px; }
.ui-progress-stepper { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; gap: 0; padding: 0; margin: 18px 0 24px; }
.ui-progress-stepper > li,
.habit-wizard-steps.ui-progress-stepper > li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; color: var(--muted); font-size: 12px; text-align: center; min-width: 0; }
.ui-progress-stepper > li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 20px); width: calc(100% - 40px); height: 2px; background: var(--line); }
.ui-progress-stepper > li.complete::after { background: var(--success); }
.ui-progress-stepper .ui-step-marker,
.habit-wizard-steps.ui-progress-stepper > li > .ui-step-marker { display: grid; place-items: center; width: 32px; height: 32px; min-height: 32px; flex: 0 0 32px; border: 0; border-radius: 50%; background: var(--surface-subtle); color: var(--muted); font-variant-numeric: tabular-nums; }
.ui-progress-stepper .ui-step-marker .lucide { width: 16px; height: 16px; }
.habit-wizard-steps.ui-progress-stepper > li > .ui-step-label { display: block; width: auto; height: auto; flex: initial; border: 0; border-radius: 0; background: transparent; color: inherit; }
.habit-wizard-steps.ui-progress-stepper > li.active > .ui-step-label { color: var(--accent); }
.ui-progress-stepper > li.complete { color: var(--success); }
.ui-progress-stepper > li.complete > .ui-step-marker { background: var(--success-soft); color: var(--success); }
.ui-progress-stepper > li.active { color: var(--accent); font-weight: 600; }
.ui-progress-stepper > li.active > .ui-step-marker,
.habit-wizard-steps.ui-progress-stepper > li.active > .ui-step-marker { background: var(--accent-soft); color: var(--accent); }
.ui-progress-stepper > li.warning { color: var(--warning); }
.ui-progress-stepper > li.warning > .ui-step-marker { background: var(--warning-soft); color: var(--warning); }
.ui-progress-stepper > li.danger { color: var(--danger); }
.ui-progress-stepper > li.danger > .ui-step-marker { background: var(--danger-soft); color: var(--danger); }
.ui-job-progress { display: grid; gap: 7px; min-width: 0; margin: 12px 0; }
.ui-job-progress-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ui-job-progress-label strong { color: var(--ink); font-weight: 500; }
.ui-job-progress.is-compact { margin: 4px 0 2px; }
.ui-job-progress.is-compact .ui-job-progress-label { font-size: 11px; }
.ui-batch-progress { margin: 16px 0; padding: 14px 0; border-block: 1px solid var(--line); min-width: 0; }
.ui-batch-progress > .ui-job-progress-label { margin-bottom: 9px; }
.ui-batch-stack { display: block; width: 100%; height: 7px; border-radius: 3px; background: color-mix(in srgb,var(--muted) 18%,transparent); }
.ui-batch-stack .completed { fill: var(--success); }
.ui-batch-stack .failed { fill: var(--danger); }
.ui-batch-stack .cancelled { fill: var(--warning); }
.ui-batch-counts { display: flex; gap: 8px 14px; flex-wrap: wrap; margin-top: 9px; color: var(--muted); font-size: 12px; }
.ui-batch-counts > span { display: inline-flex; gap: 5px; align-items: center; }
.ui-batch-counts .lucide { width: 13px; height: 13px; }
.ui-batch-counts .completed { color: var(--success); }
.ui-batch-counts .failed { color: var(--danger); }
.ui-batch-counts .cancelled { color: var(--warning); }
.next-activity-list .ui-job-progress { max-width: 360px; }
@media (max-width: 600px) {
  .ui-progress-ring:not(.is-compact) { width: 100px; height: 100px; flex-basis: 100px; }
  .ui-progress-ring:not(.is-compact) .ui-progress-ring-value strong { font-size: 24px; }
  .ui-progress-ring.is-unknown:not(.is-compact) .ui-progress-ring-value strong { font-size: 12px; }
  .daily-note-resin-overview { grid-template-columns: 100px minmax(0,1fr); gap: 14px; }
  .daily-note-resin-overview .resin-timing,
  .console-next .daily-note-resin-overview .resin-timing { gap: 10px 8px; }
  .ui-progress-stepper > li,
  .habit-wizard-steps.ui-progress-stepper > li { font-size: 11px; gap: 7px; }
  .ui-job-progress-label { flex-wrap: wrap; }
  .ui-batch-counts { gap: 7px 12px; }
}
@media (max-width: 350px) {
  .daily-note-resin-overview { grid-template-columns: 94px minmax(0,1fr); gap: 10px; }
  .daily-note-resin-overview .ui-progress-ring { width: 94px; height: 94px; }
  .daily-note-resin-overview .resin-timing strong { font-size: 11px; }
}
