/* "Heute" in the agent sheet: one status line with a dot, small bars for the write ceilings, the runs of the day. */

.agent-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) var(--space-4) var(--space-1);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ion-text-color, #000);
}
.agent-status-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.agent-status-dot.green {
  background: var(--ion-color-success, #2dd55b);
}
.agent-status-dot.grey {
  background: var(--ion-color-medium, #808080);
}
.agent-status-dot.red {
  background: var(--ion-color-danger, #c5000f);
}
/* The feed is older than 10 minutes at the page's Stand: the agent has not been heard of. */
.agent-silent {
  margin: var(--space-4) var(--space-4) 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ion-color-danger, #c5000f);
}

.agent-limits {
  display: grid;
  gap: var(--space-3);
  margin: 0 var(--space-4);
}
.agent-limit {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: var(--space-1);
  font-size: 15px;
  color: var(--ion-text-color, #000);
}
.agent-limit-count {
  font-variant-numeric: tabular-nums;
  color: var(--ion-color-step-650, #595959);
}
.agent-limit ion-progress-bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 3px;
}

.agent-schedules {
  display: grid;
  gap: var(--space-1);
  margin: 0 var(--space-4);
  padding: 0;
  list-style: none;
  font-size: 15px;
  /* Ionic 8's dark palette sets only --ion-text-color-step-*: #acacac on #121212 there, #595959 on white in light. */
  color: var(--ion-text-color-step-350, var(--ion-color-step-650, #595959));
}

.agent-timeline {
  margin: 0 var(--space-4) var(--space-6);
}
.agent-run {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--ion-color-step-150, rgba(127, 127, 127, 0.25));
}
.agent-run-head {
  margin: 0 0 var(--space-2);
  font-size: 15px;
  font-weight: 700;
  color: var(--ion-text-color, #000);
}
.agent-run.error .agent-run-head {
  color: var(--ion-color-danger, #c5000f);
}
/* Open, but the instance is not running it (stopped during the run): grey, never "läuft". */
.agent-run.paused .agent-run-head {
  color: var(--ion-color-step-650, #595959);
}
.agent-run.going .agent-run-head::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: var(--space-2);
  border-radius: 50%;
  background: var(--ion-color-success, #2dd55b);
  vertical-align: 1px;
}

.agent-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ion-text-color, #000);
}
.agent-line {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-1) 0;
}
.agent-line.read {
  padding-inline-start: var(--space-6);
  font-size: 13px;
  color: var(--ion-color-step-650, #595959);
}
.agent-glyph {
  flex: none;
  width: 14px;
  font-weight: 700;
  text-align: center;
}
.agent-line.write .agent-glyph {
  color: var(--ion-color-success-shade, #28bb50);
}
.agent-line.handoff .agent-glyph {
  color: var(--ion-color-primary, #0054e9);
}
.agent-line.error {
  color: var(--ion-color-danger, #c5000f);
}
.agent-text {
  flex: 1;
}
.agent-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* A line that leads to its case: the whole row is the button, at least 44px high to hit with a thumb. */
.agent-jump {
  display: flex;
  flex: 1;
  gap: var(--space-2);
  align-items: flex-start;
  min-height: 44px;
  margin: calc(-1 * var(--space-1)) 0;
  padding: var(--space-1) 0;
  border: 0;
  font: inherit;
  text-align: start;
  color: inherit;
  background: none;
  cursor: pointer;
}
.agent-jump:focus-visible {
  outline: 2px solid var(--ion-color-primary, #0054e9);
  outline-offset: 2px;
  border-radius: 4px;
}
.agent-chevron {
  flex: none;
  font-size: 20px;
  line-height: 1;
  color: var(--ion-color-step-500, #808080);
}

.agent-quiet {
  margin: 0;
  padding: var(--space-2) 0;
  border-top: 1px solid var(--ion-color-step-150, rgba(127, 127, 127, 0.25));
  font-size: 13px;
  color: var(--ion-color-step-650, #595959);
}
