/* Ultra Factory brand colours, from the original design system
   (library\brand\design-system and library\brand\brand.md).
   Load it after ultrafactory.css (and after login.css on the sign-in pages): the skill
   gives the layout and the components, this file gives them the brand's own colours.
   Light theme only for now; the original system has no dark app theme. */
:root {
  --ink: #08435C;        /* text and structure */
  --ink-2: #334E68;      /* secondary text */
  --ink-3: #4E6B78;      /* muted text and labels */
  --paper: #FFFFFF;      /* white is the base */
  --surface: #FFFFFF;
  --surface-2: #F2F7F9;  /* soft fill: table heads, hover */
  --rule: #D7E3E8;       /* lines */
  --rule-2: #EEF2F5;     /* separators inside a panel */
  --rail: #08435C;
  --rail-ink: #CFE0E3;   /* muted text on teal */
  --signal: #FF5533;     /* highlight only */
  --select: #EDF3F5;
  --live: #16A34A;       /* the live dot */

  /* status: the colour, its light fill, and the darker text that sits on the fill */
  --ok: #1F9D55;   --ok-bg: #E2F4E8;   --ok-ink: #106330;    /* running */
  --bad: #D92D20;  --bad-bg: #FBE3E1;  --bad-ink: #B42318;   /* stopped, alarm */
  --work: #F0A01F; --work-bg: #FEF0D6; --work-ink: #7A4A00;  /* waiting, warning */
  --wait: #F0A01F; --wait-bg: #FEF0D6; --wait-ink: #7A4A00;  /* waiting on something outside (striped) */
  --new: #3567D6;  --new-bg: #E4ECFB;  --new-ink: #1F4FB0;   /* planned, information */
  --plan: #3567D6; --plan-bg: #E4ECFB; --plan-ink: #1F4FB0;
  --off: #94A3B3;  --off-bg: #E3E9EF;  --off-ink: #334E68;   /* offline, no data */

  --series-1: #08435C; --series-2: #3A8FA8; --series-3: #93C6D3; --series-4: #6B7A8F;
  --shadow: 0 24px 60px rgba(4, 32, 44, .22), 0 2px 8px rgba(4, 32, 44, .08);
}
.t-ok { --tone-ink: var(--ok-ink); }
.t-bad { --tone-ink: var(--bad-ink); }
.t-work { --tone-ink: var(--work-ink); }
.t-wait { --tone-ink: var(--wait-ink); }
.t-new { --tone-ink: var(--new-ink); }
.t-plan { --tone-ink: var(--plan-ink); }
.t-off { --tone-ink: var(--off-ink); }

/* Words on a light status fill use the darker text, so they stay readable. */
.pill, .tile-ref,
.note.t-bad, .note.t-plan, .note.t-new, .note.t-work { color: var(--tone-ink); }
.tile.t-ok > .tile-state { color: var(--ok-ink); }
.tile.t-off > .tile-state { color: var(--off-ink); }
.tile.t-work > .tile-state, .tile.t-wait > .tile-state { color: #04202C; }  /* white is too faint on amber */
.tab-n { background: var(--new-bg); color: var(--new-ink); }
.kpi-delta.up { color: var(--ok-ink); } .kpi-delta.down { color: var(--bad-ink); }
.caps { color: var(--work-ink); }
.live { color: var(--ok-ink); } .live::before { background: var(--live); }
.live.is-stale { color: var(--work-ink); } .live.is-stale::before { background: var(--work); }

/* Side menu and the pop-up behind dialogs */
.rail-item.is-locked { color: rgba(207, 224, 227, .5); }
.scrim { background: rgba(4, 32, 44, .45); }
