/* The frame of the dispo app: tab bar and toolbar. Icons there are Lucide (lucide/README.md). */

/* The truck of "Eingang" drives in, to the left; Lucide draws it to the right. */
ion-icon.drives-in {
  transform: scaleX(-1);
}

/* The agent symbol carries a dot: green while a run is going, red when the last run failed, none otherwise. */
ion-button.open-agent {
  position: relative;
}
.agent-dot {
  position: absolute;
  top: 6px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ion-toolbar-background, var(--ion-background-color, #fff));
  pointer-events: none;
}
.agent-dot[data-agent-status="running"] {
  background: #1a7f37;
}
.agent-dot[data-agent-status="error"] {
  background: var(--tone-cost);
}

/* A tab without a badge shows no dot: Ionic draws an empty badge as a dot in md mode, over the hidden attribute. */
ion-tab-button ion-badge[hidden] {
  display: none;
}

/* Production needs attention (login ran out, an area failed): one calm line on top of every tab. */
.live-banner {
  margin: var(--space-2) var(--space-4) 0;
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ion-text-color, #000);
  background: rgba(var(--ion-color-warning-rgb), 0.18);
  border-inline-start: 4px solid var(--tone-soon);
}
.live-banner p {
  margin: 0;
}
.live-banner p + p {
  margin-top: var(--space-1);
}

/* Sign-in (server mode without a session, dispo/signin.js): one centred card instead of the tabs. Both carry their own
   display, so `hidden` needs this rule to win. */
.sign-in[hidden],
ion-tabs[hidden] {
  display: none;
}
.sign-in {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: calc(var(--ion-safe-area-top, 0px) + var(--space-6)) var(--space-6) calc(var(--ion-safe-area-bottom, 0px) + var(--space-6));
  background: var(--ion-background-color, #fff);
}
.sign-in-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.sign-in-icon {
  border-radius: var(--space-4);
}
.sign-in-title {
  margin: var(--space-4) 0 var(--space-2);
  font-size: 28px;
}
.sign-in-text {
  margin: 0 0 var(--space-6);
  color: var(--ion-color-step-600, var(--ion-text-color-step-400, #666));
}
