/*
 * Stellar Design System tokens — taken verbatim from
 * projects/stellar/src/styles/partials/properties.css, with the type families
 * swapped from Bull/Bull Text to the new Red Bull family.
 * Component styles follow rb-button, rb-fileupload, rb-appbar and the
 * stellar-demo e2e reference renders.
 */

@font-face {
  font-family: 'Red Bull';
  src: url('/fonts/RedBull-Regular.ttf?v=1.006') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Red Bull';
  src: url('/fonts/RedBull-Bold.ttf?v=1.006') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Red Bull Condensed';
  src: url('/fonts/RedBull-Condensed.ttf?v=1.006') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* The app's type is Stellar's (Red Bull's design system for apps; docs/FONTS.md): Bull Bold for
   headings, Bull Text for everything else, from Red Bull's Stellar font server, declared as
   Stellar's own fonts.css does. The Red Bull faces above stay for page titles, the menus' section
   labels and anything that draws a slide: PowerPoint is Red Bull only. */
@font-face { font-display: swap; font-family: 'Bull'; font-style: normal; font-weight: 700;
  src: url('https://stellar-resources.redbull.com/fonts/Bull/v1/Bull-Bold.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Bull Text'; font-style: normal; font-weight: 400;
  src: url('https://stellar-resources.redbull.com/fonts/BullText/v1/BullText-Regular.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Bull Text'; font-style: normal; font-weight: 500;
  src: url('https://stellar-resources.redbull.com/fonts/BullText/v1/BullText-Medium.woff2') format('woff2'); }
@font-face { font-display: swap; font-family: 'Bull Text'; font-style: normal; font-weight: 700;
  src: url('https://stellar-resources.redbull.com/fonts/BullText/v1/BullText-Bold.woff2') format('woff2'); }

:root {
  /* SPACING */
  --rb-3-x-tight: 2px;
  --rb-2-x-tight: 4px;
  --rb-x-tight: 8px;
  --rb-tight: 12px;
  --rb-normal: 16px;
  --rb-loose: 24px;
  --rb-x-loose: 32px;
  --rb-2-x-loose: 40px;
  --rb-3-x-loose: 48px;

  /* COLOR PRIMITIVES */
  --rb-color-yellow-lightest: #fff4e5;
  --rb-color-yellow: #ff9000;
  --rb-color-yellow-darker: #9f530d;

  --rb-color-red-lightest: #fbe7ec;
  --rb-color-red-lighter: #f50b48;
  --rb-color-red: #db0a40;
  --rb-color-red-darker: #c3093b;

  --rb-color-sky-lightest: #e8f0fd;
  --rb-color-sky-lighter: #3279f0;
  --rb-color-sky: #1b6aee;
  --rb-color-sky-darker: #175aca;

  --rb-color-blue-lighter: #001c39;
  --rb-color-blue: #00162b;
  --rb-color-blue-darker: #000f1e;

  --rb-color-green-lightest: #e8f5ed;
  --rb-color-green: #12873f;
  --rb-color-green-darker: #0f6e33;

  --rb-color-white: #fff;
  --rb-color-grey-1: #f8f8f8;
  --rb-color-grey-2: #efefef;

  --rb-color-glass-dark-05: #000f1e0d;
  --rb-color-glass-dark-10: #000f1e1a;
  --rb-color-glass-dark-20: #000f1e33;
  --rb-color-glass-dark-40: #000f1e66;
  --rb-color-glass-dark-60: #000f1e99;

  --rb-color-glass-light-05: #ffffff0d;
  --rb-color-glass-light-10: #ffffff1a;
  --rb-color-glass-light-20: #ffffff33;
  --rb-color-glass-light-40: #ffffff66;
  --rb-color-glass-light-60: #ffffff99;

  /* SEMANTIC */
  --rb-color-surface-dark-lighter: var(--rb-color-blue-lighter);
  --rb-color-surface-dark: var(--rb-color-blue);
  --rb-color-surface-dark-darker: var(--rb-color-blue-darker);
  --rb-color-surface-light-lighter: var(--rb-color-white);
  --rb-color-surface-light: var(--rb-color-grey-1);
  --rb-color-surface-light-darker: var(--rb-color-grey-2);

  --rb-color-text-dark-primary: var(--rb-color-blue-darker);
  --rb-color-text-dark-secondary: var(--rb-color-glass-dark-60);
  --rb-color-text-dark-disabled: var(--rb-color-glass-dark-40);
  --rb-color-text-light-primary: var(--rb-color-white);
  --rb-color-text-light-secondary: var(--rb-color-glass-light-60);
  --rb-color-text-light-disabled: var(--rb-color-glass-light-40);

  --rb-color-primary-lightest: var(--rb-color-sky-lightest);
  --rb-color-primary-lighter: var(--rb-color-sky-lighter);
  --rb-color-primary: var(--rb-color-sky);
  --rb-color-primary-darker: var(--rb-color-sky-darker);

  --rb-color-accent-negative-lightest: var(--rb-color-red-lightest);
  --rb-color-accent-negative-lighter: var(--rb-color-red-lighter);
  --rb-color-accent-negative: var(--rb-color-red);
  --rb-color-accent-negative-darker: var(--rb-color-red-darker);
  --rb-color-accent-positive-lightest: var(--rb-color-green-lightest);
  --rb-color-accent-positive: var(--rb-color-green);
  --rb-color-accent-positive-darker: var(--rb-color-green-darker);
  --rb-color-accent-info-lightest: var(--rb-color-yellow-lightest);
  --rb-color-accent-info: var(--rb-color-yellow);
  --rb-color-accent-info-darker: var(--rb-color-yellow-darker);

  /* ELEVATION */
  --rb-elevation-1-above: 0 0.2rem 0.4rem 0 rgba(0, 15, 30, 0.02), 0 0.8rem 1.2rem 0 rgba(0, 15, 30, 0.04);
  --rb-elevation-2-above: 0 1.6rem 2.4rem 0 rgba(0, 15, 30, 0.06), 0 0.4rem 0.8rem 0 rgba(0, 15, 30, 0.02);

  /* FOCUS */
  --rb-focus-outline: 2px solid var(--rb-color-primary);
  --rb-focus-outline-offset: 2px;

  /* ANIMATION */
  --rb-ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);

  /* TYPOGRAPHY — Red Bull family replaces Bull / Bull Text */
  --rb-font-family-heading: 'Bull', Helvetica, sans-serif;
  --rb-font-family-default: 'Bull Text', 'BullText', Helvetica, sans-serif;
  /* kept on the Red Bull fonts by decision (docs/FONTS.md): page titles, the menus' section labels */
  --dk-font-title: 'Red Bull Condensed', 'Red Bull', Helvetica, sans-serif;
  --dk-font-label: 'Red Bull', Helvetica, sans-serif;   /* the header bar: its section buttons and its menus' section labels */
  /* anything that draws a slide is PowerPoint: Red Bull only, never the app's type */
  --dk-font-deck-heading: 'Red Bull Condensed', 'Red Bull', Helvetica, sans-serif;
  --dk-font-deck-body: 'Red Bull', Helvetica, sans-serif;
  --rb-font-family-monospace: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;

  --rb-font-size-large: 1.8rem;
  --rb-font-size-default: 1.6rem;
  --rb-font-size-small: 1.4rem;
  --rb-font-size-x-small: 1.2rem;
  --rb-line-height-large: 2.2rem;
  --rb-line-height-default: 2rem;
  --rb-line-height-small: 2rem;
  --rb-line-height-x-small: 1.6rem;
  --rb-font-weight-bold: 700;
  --rb-font-weight-medium: 500;
  --rb-font-weight-regular: 400;

  /* BORDER */
  --rb-border-radius-x-small: 2px;
  --rb-border-radius-small: 4px;
  --rb-border-radius-medium: 6px;
  --rb-border-radius-large: 8px;
  --rb-border-radius-full: 999px;
  --rb-border-width: 1px;
  --rb-border-color: var(--rb-color-glass-dark-05);
  --rb-border-color-dark: var(--rb-color-glass-dark-20);

  /* FORMS */
  --rb-input-height-big: 3.4rem;
  --rb-input-border: var(--rb-border-width) solid var(--rb-border-color-dark);
  --rb-input-border-radius: var(--rb-border-radius-medium);

  /* HEADER */
  --rb-header-height: 6rem;
  --rb-appbar-z-index: 550;
}

/* ---- base -------------------------------------------------------------- */

* { box-sizing: border-box; }

html { font-size: 62.5%; }

body {
  margin: 0;
  font-family: var(--rb-font-family-default);
  font-size: var(--rb-font-size-small);
  line-height: 1.5;
  color: var(--rb-color-text-dark-primary);
  background: var(--rb-color-surface-light);
}

/* browsers give controls their own font (Arial) unless told: every control uses the page's */
button, input, select, textarea { font-family: inherit; }

h1, h2, h3 {
  font-family: var(--rb-font-family-heading);
  font-weight: var(--rb-font-weight-bold);
  font-feature-settings: 'clig' off, 'liga' off;
  margin: 0 0 var(--rb-normal);
}
h1 { font-size: 2.4rem; line-height: 3rem; }
h1.page-title {
  font-family: var(--dk-font-title);
  font-size: 3.2rem;
  line-height: 3.6rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h2 { font-size: 1.8rem; line-height: 2.2rem; }
h3 { font-size: 1.6rem; line-height: 2rem; }

a { color: var(--rb-color-primary); text-decoration: none; }
a:hover { color: var(--rb-color-primary-darker); text-decoration: underline; }
:focus-visible { outline: var(--rb-focus-outline); outline-offset: var(--rb-focus-outline-offset); }

/* ---- appbar (rb-appbar) ------------------------------------------------ */

.app-header {
  height: var(--rb-header-height);
  /* the brand texture runs the full width of the top row; navy underneath
     so nothing flashes before the image lands */
  background: var(--rb-color-surface-dark-lighter) url("/static/img/header-texture.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  gap: var(--rb-loose);
  padding: 0 var(--rb-loose);
  position: sticky;
  top: 0;
  z-index: var(--rb-appbar-z-index);
}

.app-header .brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--rb-color-text-light-primary);
}
.app-header .brand:hover { text-decoration: none; color: var(--rb-color-text-light-primary); }
.app-header .brand img.brand-logo { height: 2rem; display: block; }
.app-header .brand img.brand-mark { width: 5.4rem; height: 5.4rem; object-fit: contain; display: block; flex: 0 0 auto; }   /* nearly the full 6rem header */
.app-header .brand img.brand-wordmark { height: 5.6rem; width: auto; display: block; margin: 0 0 0 -0.4rem; }   /* the board, nearly the full header, centred */
.app-header .brand .brand-word {
  font-family: var(--rb-font-family-default);
  font-weight: 700;
  font-size: 2.3rem;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.app-header .brand .brand-sub {
  font-size: var(--rb-font-size-small);
  color: var(--rb-color-text-light-secondary);
  border-left: 1px solid var(--rb-color-glass-light-20);
  padding-left: var(--rb-tight);
  white-space: nowrap;
  /* the wordmark art has a little bottom bearing, so a plain flex row sits the
     subtitle slightly low against it; centre it optically */
  display: flex;
  align-items: center;
  align-self: stretch;
}

.app-header nav { display: flex; gap: var(--rb-2-x-tight); margin-left: auto; align-items: center; }
/* the header bar keeps the Red Bull face (decided 2026-10-31): the brand's own chrome, like the logo */
.app-header nav > a, .app-header nav .dk-menu > .dk-navbtn { font-family: var(--dk-font-label); }
.app-header nav a {
  color: var(--rb-color-text-light-primary);
  padding: var(--rb-x-tight) var(--rb-normal);
  border-radius: var(--rb-border-radius-medium);
  font-size: var(--rb-font-size-small);
  line-height: var(--rb-line-height-small);
}
.app-header nav a:hover {
  background: var(--rb-color-glass-light-10);
  color: var(--rb-color-text-light-primary);
  text-decoration: none;
}
.app-header nav a.active {
  background: var(--rb-color-glass-light-20);
  font-weight: var(--rb-font-weight-medium);
}

.user-chip { color: var(--rb-color-text-light-secondary); font-size: var(--rb-font-size-x-small); padding: 0 var(--rb-x-tight); }
.user-chip b { color: var(--rb-color-text-light-primary); font-weight: var(--rb-font-weight-medium); }

/* ---- layout ------------------------------------------------------------ */

.container { max-width: 1115px; margin: 0 auto; padding: var(--rb-x-loose) var(--rb-loose); }
.container--wide { max-width: 1920px; }

.card {
  background: var(--rb-color-surface-light-lighter);
  border: var(--rb-border-width) solid var(--rb-border-color);
  border-radius: var(--rb-border-radius-large);
  box-shadow: var(--rb-elevation-1-above);
  padding: var(--rb-loose);
  margin-bottom: var(--rb-loose);
}

/* ---- buttons (rb-button, medium) --------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--rb-border-width) solid transparent;
  border-radius: var(--rb-border-radius-full);
  padding: var(--rb-x-tight) var(--rb-normal);
  font-family: var(--rb-font-family-default);
  font-size: var(--rb-font-size-default);
  font-weight: var(--rb-font-weight-medium);
  line-height: 2.2rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition:
    border-color 120ms var(--rb-ease-out-cubic),
    background-color 120ms var(--rb-ease-out-cubic),
    color 120ms var(--rb-ease-out-cubic);
  background-color: var(--rb-color-primary);
  color: var(--rb-color-text-light-primary);
}
.btn:hover {
  border-color: var(--rb-color-primary-lighter);
  background-color: var(--rb-color-primary-lighter);
  color: var(--rb-color-text-light-primary);
  text-decoration: none;
}
.btn:active {
  border-color: var(--rb-color-primary-darker);
  background-color: var(--rb-color-primary-darker);
}
.btn:disabled {
  border-color: var(--rb-color-surface-light-darker);
  background-color: var(--rb-color-surface-light-darker);
  color: var(--rb-color-text-dark-disabled);
  cursor: not-allowed;
}

.btn--secondary {
  border-color: var(--rb-color-glass-dark-20);
  background-color: transparent;
  color: var(--rb-color-text-dark-primary);
}
.btn--secondary:hover {
  border-color: var(--rb-color-glass-dark-20);
  background-color: var(--rb-color-glass-dark-05);
  color: var(--rb-color-text-dark-primary);
}
.btn--secondary:active {
  border-color: var(--rb-color-glass-dark-40);
  background-color: var(--rb-color-glass-dark-10);
}

.btn--danger {
  border-color: var(--rb-color-accent-negative);
  background-color: var(--rb-color-accent-negative);
}
.btn--danger:hover {
  border-color: var(--rb-color-accent-negative-lighter);
  background-color: var(--rb-color-accent-negative-lighter);
}

.btn--block { width: 100%; }
.btn:focus:not(:focus-visible) { outline: none; }
.btn:focus-visible { outline: var(--rb-focus-outline); outline-offset: 2px; }

/* One button scale for the whole product (pages, islands, the add-in): primary (.btn),
   secondary (outlined), quiet (text), danger; .btn--sm for rows and toolbars. */
.btn { gap: 0.8rem; }
.btn svg { width: 1.8rem; height: 1.8rem; flex: 0 0 auto; }
.btn--sm { padding: 0.5rem 1.4rem; font-size: 1.3rem; line-height: 1.8rem; }
.btn--sm svg { width: 1.6rem; height: 1.6rem; }
.btn--quiet { border-color: transparent; background-color: transparent; color: var(--rb-color-primary); }
.btn--quiet:hover { border-color: transparent; background-color: var(--rb-color-primary-lightest); color: var(--rb-color-primary-darker); }
.btn--quiet:active { border-color: transparent; background-color: var(--rb-color-glass-dark-10); }
.btn--secondary.btn--danger, .btn--pill-sm.is-secondary.btn--danger { background-color: transparent; color: var(--rb-color-accent-negative); border-color: currentColor; }
.btn--secondary.btn--danger:hover, .btn--pill-sm.is-secondary.btn--danger:hover { background-color: var(--rb-color-accent-negative-lightest); color: var(--rb-color-accent-negative-darker); border-color: currentColor; }
.btn--secondary.is-on, .btn--secondary[aria-pressed="true"] { background-color: var(--rb-color-surface-dark); border-color: var(--rb-color-surface-dark); color: var(--rb-color-text-light-primary); }
.btn--secondary:disabled { background-color: transparent; border-color: var(--rb-color-glass-dark-10); color: var(--rb-color-text-dark-disabled); }

/* subtle text button on dark appbar (rb-button is-light is-subtle) */
.btn--appbar-subtle {
  background: none;
  border: none;
  border-radius: var(--rb-border-radius-full);
  color: var(--rb-color-text-light-secondary);
  font-family: var(--rb-font-family-default);
  font-size: var(--rb-font-size-small);
  padding: var(--rb-x-tight) var(--rb-normal);
  cursor: pointer;
}
.btn--appbar-subtle:hover { background: var(--rb-color-glass-light-05); color: var(--rb-color-text-light-primary); }

/* ---- forms ------------------------------------------------------------- */

label {
  display: block;
  font-size: var(--rb-font-size-x-small);
  line-height: var(--rb-line-height-x-small);
  color: var(--rb-color-text-dark-secondary);
  margin-bottom: var(--rb-2-x-tight);
}

input[type='text'], input[type='email'], input[type='password'], select {
  width: 100%;
  height: var(--rb-input-height-big);
  padding: var(--rb-x-tight);
  font-family: var(--rb-font-family-default);
  font-size: var(--rb-font-size-small);
  color: var(--rb-color-text-dark-primary);
  background: var(--rb-color-white);
  border: var(--rb-input-border);
  border-radius: var(--rb-input-border-radius);
  margin-bottom: var(--rb-normal);
}
input:focus, select:focus { outline: none; box-shadow: var(--rb-elevation-1-above); border-color: var(--rb-color-glass-dark-40); }
::placeholder { color: var(--rb-color-text-dark-disabled); }

/* ---- messages ---------------------------------------------------------- */

.alert {
  padding: var(--rb-tight) var(--rb-normal);
  border-radius: var(--rb-border-radius-medium);
  margin-bottom: var(--rb-normal);
  font-size: var(--rb-font-size-small);
}
.alert--error { background: var(--rb-color-accent-negative-lightest); color: var(--rb-color-accent-negative-darker); }
.alert--success { background: var(--rb-color-accent-positive-lightest); color: var(--rb-color-accent-positive-darker); }

/* ---- drop zone (rb-fileupload dragzone) -------------------------------- */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rb-tight);
  padding: calc(var(--rb-loose) * 1.4) var(--rb-loose);
  border: 2px dashed #9a9aa6;
  border-radius: var(--rb-border-radius-large);
  background: var(--rb-color-surface-light-lighter);
  cursor: pointer;
  text-align: center;
  transition: border-color 120ms var(--rb-ease-out-cubic), background-color 120ms var(--rb-ease-out-cubic),
              transform 120ms var(--rb-ease-out-cubic), box-shadow 120ms var(--rb-ease-out-cubic);
}
.dropzone:hover { border-color: var(--rb-color-primary); background: var(--rb-color-sky-lightest); }
/* a file is being dragged over the page: make the target impossible to miss */
.dropzone.is-dragover, .dropzone.is-page-drag {
  border-color: var(--rb-color-primary);
  border-style: solid;
  background: var(--rb-color-sky-lightest);
  box-shadow: 0 0 0 4px rgba(219, 10, 64, .12);
}
.dropzone.is-dragover { transform: scale(1.01); }
.dropzone.is-dragover .dz-title::after { content: " — release to add them"; color: var(--rb-color-primary); }
.dropzone .dz-icon { width: 4.4rem; height: 4.4rem; color: var(--rb-color-primary); margin-bottom: .2rem; }
.dropzone .dz-or { color: var(--rb-color-text-dark-secondary); font-size: var(--rb-font-size-small); }
.dropzone .dz-title {
  font-size: var(--rb-font-size-default);
  line-height: var(--rb-line-height-default);
  font-weight: var(--rb-font-weight-medium);
  color: var(--rb-color-text-dark-primary);
}
.dropzone .dz-button {
  display: inline-flex;
  padding: var(--rb-x-tight) var(--rb-normal);
  border: var(--rb-border-width) solid var(--rb-color-glass-dark-20);
  border-radius: var(--rb-border-radius-full);
  color: var(--rb-color-text-dark-primary);
  font-size: var(--rb-font-size-default);
  font-weight: var(--rb-font-weight-medium);
  line-height: 2.4rem;
}
.dropzone:hover .dz-button { background-color: var(--rb-color-glass-dark-05); }
.dropzone .allowed-files {
  color: var(--rb-color-text-dark-secondary);
  font-size: var(--rb-font-size-x-small);
  line-height: var(--rb-line-height-x-small);
}
.dropzone input[type='file'] { display: none; }

/* client upload queue */
.upload-queue { display: flex; flex-direction: column; gap: var(--rb-2-x-tight); margin-top: var(--rb-tight); }
.uq-item {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center; gap: var(--rb-normal);
  background: var(--rb-color-surface-light-lighter);
  border: 1px solid var(--rb-color-glass-dark-05);
  border-radius: var(--rb-border-radius-large);
  padding: var(--rb-x-tight) var(--rb-normal);
  font-size: var(--rb-font-size-small);
}
.uq-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: transparent; }
.uq-bar > i { display: block; height: 100%; width: 0; background: var(--rb-color-primary); transition: width 200ms var(--rb-ease-out-cubic); }
.uq-item--ok .uq-bar > i { background: var(--rb-color-accent-positive); }
.uq-name, .uq-status { position: relative; }
.uq-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uq-status { white-space: nowrap; color: var(--rb-color-text-dark-secondary); font-size: var(--rb-font-size-x-small); }
.uq-item--busy { border-color: var(--rb-color-primary); }
.uq-item--busy .uq-status { color: var(--rb-color-primary-darker); }
.uq-item--ok { border-color: var(--rb-color-accent-positive-lightest); background: var(--rb-color-accent-positive-lightest); }
.uq-item--ok .uq-status { color: var(--rb-color-accent-positive-darker); }
.uq-item--err { border-color: var(--rb-color-accent-negative-lightest); background: var(--rb-color-accent-negative-lightest); }
.uq-item--err .uq-status { color: var(--rb-color-accent-negative-darker); }

/* upload/conversion progress state */
.dropzone .dz-busy { display: none; flex-direction: column; align-items: center; gap: var(--rb-tight); }
.dropzone.is-busy { cursor: progress; border-style: solid; border-color: var(--rb-color-primary); }
.dropzone.is-busy .dz-idle { display: none; }
.dropzone.is-busy .dz-busy { display: flex; }
.dz-spinner {
  width: 3.2rem; height: 3.2rem;
  border: 3px solid var(--rb-color-sky-lightest);
  border-top-color: var(--rb-color-primary);
  border-radius: var(--rb-border-radius-full);
  animation: dz-spin 0.8s linear infinite;
}
@keyframes dz-spin { to { transform: rotate(360deg); } }
.dropzone .dz-idle { display: flex; flex-direction: column; align-items: center; gap: var(--rb-tight); }

/* ---- tables ------------------------------------------------------------ */

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--rb-font-size-small);
}
table.data th {
  text-align: left;
  font-size: var(--rb-font-size-x-small);
  line-height: var(--rb-line-height-x-small);
  font-weight: var(--rb-font-weight-medium);
  color: var(--rb-color-text-dark-secondary);
  border-bottom: var(--rb-border-width) solid var(--rb-color-glass-dark-20);
  padding: var(--rb-tight);
}
table.data td {
  padding: var(--rb-tight);
  border-bottom: var(--rb-border-width) solid var(--rb-color-glass-dark-05);
  vertical-align: middle;
}
table.data tr:hover td { background: var(--rb-color-surface-light); }
/* an archived workspace in the administrators' lists (#542): still listed, out of use */
table.data tr.is-archived td { color: var(--rb-color-text-dark-secondary); background: var(--rb-color-glass-dark-05); }
table.data tr.is-archived td > *:not(.btn):not(form) { opacity: .55; }
td.num, th.num { text-align: right; }

/* ---- badges (rb-badge / tag) ------------------------------------------- */

.badge {
  display: inline-block;
  font-size: var(--rb-font-size-x-small);
  line-height: 1;
  font-weight: var(--rb-font-weight-medium);
  padding: var(--rb-2-x-tight) var(--rb-x-tight);
  border-radius: var(--rb-border-radius-full);
  white-space: nowrap;
}
.badge--uploaded { background: var(--rb-color-sky-lightest); color: var(--rb-color-primary-darker); }
.badge--processing { background: var(--rb-color-accent-info-lightest); color: var(--rb-color-accent-info-darker); }
.badge--converted { background: var(--rb-color-accent-positive-lightest); color: var(--rb-color-accent-positive-darker); }
.badge--quarantined { background: var(--rb-color-accent-info-lightest); color: var(--rb-color-accent-negative-darker); }
.badge--failed { background: var(--rb-color-accent-negative-lightest); color: var(--rb-color-accent-negative-darker); }
.badge--admin { background: var(--rb-color-surface-dark); color: var(--rb-color-text-light-primary); }

.btn--pill-sm {
    display: inline-flex; align-items: center; justify-content: center;
    border: var(--rb-border-width) solid transparent;
    border-radius: var(--rb-border-radius-full);
    padding: 0.5rem 1.4rem;
    font-family: var(--rb-font-family-default);
    font-size: 1.3rem; font-weight: var(--rb-font-weight-medium); line-height: 1.8rem;
    cursor: pointer; white-space: nowrap;
    background: var(--rb-color-primary); color: var(--rb-color-text-light-primary);
    transition: background-color 120ms var(--rb-ease-out-cubic);
  }
.btn--pill-sm:hover { background: var(--rb-color-primary-lighter); }
.btn--pill-sm.is-secondary {
    background: transparent; color: var(--rb-color-text-dark-primary);
    border-color: var(--rb-color-glass-dark-20);
  }
.btn--pill-sm.is-secondary:hover { background: var(--rb-color-glass-dark-05); }

/* subtle round delete button — red only on hover */
.sg-delete {
  background: none; border: none; cursor: pointer;
  width: 2.8rem; height: 2.8rem; border-radius: var(--rb-border-radius-full);
  color: var(--rb-color-text-dark-disabled); font-size: 1.6rem; line-height: 1;
  transition: background-color 120ms var(--rb-ease-out-cubic), color 120ms var(--rb-ease-out-cubic);
}
.sg-delete:hover { background: var(--rb-color-accent-negative-lightest); color: var(--rb-color-accent-negative-darker); }

.muted { color: var(--rb-color-text-dark-secondary); }
.mono { font-family: var(--rb-font-family-monospace); font-size: var(--rb-font-size-x-small); }

.pagination { display: flex; gap: var(--rb-tight); align-items: center; margin-top: var(--rb-normal); font-size: var(--rb-font-size-x-small); }

.empty {
  text-align: center;
  color: var(--rb-color-text-dark-disabled);
  padding: var(--rb-x-loose) 0;
}

/* ---- auth window (dark Stellar surface) -------------------------------- */

body.auth-page {
  /* signed out, the Red Bull fonts are not served (routers/fonts.py: licensed, signed-in only):
     the sign-in page sets its titles and labels in Bull, Stellar's public face */
  --dk-font-title: 'Bull', Helvetica, sans-serif;
  --dk-font-label: 'Bull Text', 'BullText', Helvetica, sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* the house sign-in backdrop: slate navy, lit from the top */
  background: radial-gradient(120% 80% at 50% 0%, #27405f 0%, #1b2d47 45%, #13223a 100%);
  padding: var(--rb-loose);
}

.auth-card {
  width: 100%;
  max-width: 44rem;
  background: #1e2f47;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 3.2rem 3rem 2.4rem;
  color: #fff;
  text-align: center;
}
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}
.auth-brand .auth-name {
  margin: 0.6rem 0 0;
  font-family: var(--dk-font-title);   /* the app's name is a title: Red Bull Condensed, like page titles */
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: #fff;
}
.auth-brand .auth-tagline { margin: 0; font-size: 1.5rem; color: rgba(255, 255, 255, 0.62); }

.auth-card .auth-alt {
  margin: 1.6rem 0 0;
  font-size: var(--rb-font-size-x-small);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* the message box: light blue for information, light red for a problem */
.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  background: #e8f1fb;
  color: #17304d;
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.6rem;
  font-size: 1.5rem;
  line-height: 1.4;
}
.auth-note .auth-note-i {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%; margin-top: 0.1rem;
  background: #2f6de1; color: #fff; font-weight: 700; font-size: 1.2rem; line-height: 2rem; text-align: center;
}
.auth-note--error { background: #fdeaee; color: #6d1020; }
.auth-note--error .auth-note-i { background: #db0a40; }

/* the house sign-in button: a dark pill with a thin light edge */
.auth-card .btn--employees {
  display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem;
  height: 6rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff; font-weight: 700; font-size: 1.9rem;
}
.auth-card .btn--employees:hover { background: rgba(255, 255, 255, 0.10); color: #fff; text-decoration: none; }
.auth-card .btn--employees:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.auth-card .ms-logo { width: 2rem; height: 2rem; display: block; }

.auth-logout { margin-top: 1.4rem; text-align: center; }
.auth-logout button { background: none; border: 0; padding: 0.4rem 0.8rem; cursor: pointer; font: inherit; font-size: var(--rb-font-size-small); color: rgba(255, 255, 255, 0.7); text-decoration: underline; }
.auth-logout button:hover { color: #fff; }
.auth-foot { margin-top: 2.2rem; font-size: var(--rb-font-size-x-small); color: rgba(255, 255, 255, 0.55); }
.auth-foot a { color: rgba(255, 255, 255, 0.8); }

/* ---- searchable/scrollable tables (Conversion Schema, report, logs) ----- */

.scroll-table {
  max-height: 60vh;
  overflow: auto;
  border: 1px solid var(--rb-color-glass-dark-10);
  border-radius: var(--rb-border-radius-large);
}

.scroll-table thead th {
  position: sticky;
  top: 0;
  background: var(--rb-color-surface-light-lighter);
  z-index: 2;
  box-shadow: 0 1px 0 var(--rb-color-glass-dark-10);
}

.table-search {
  max-width: 420px;
  font-size: 1.4rem;
  height: 3.8rem;
  padding: 0 1.2rem;
  border-radius: var(--rb-border-radius-large);
  margin-bottom: 1rem;
}

.search-row {
  display: flex;
  align-items: center;
  gap: var(--rb-tight);
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.search-row .table-search { margin-bottom: 0; }

.search-count {
  font-size: 1.3rem;
  color: var(--rb-color-text-dark-secondary);
}

mark.hit {
  background: var(--rb-color-yellow, #ffdd00);
  color: inherit;
  padding: 0 0.2em;
  border-radius: 2px;
}

/* ---- Deckster additions: sign-in form on the dark card ------------------ */

.auth-card .auth-divider {
  display: flex; align-items: center; gap: var(--rb-tight);
  margin: var(--rb-normal) 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--rb-font-size-x-small);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.auth-card .auth-divider::before,
.auth-card .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.15); }

.auth-card .auth-form { text-align: left; }
.auth-card .auth-form label { color: rgba(255, 255, 255, 0.75); }
.auth-card .auth-form .auth-hint { color: rgba(255, 255, 255, 0.45); font-weight: 400; }
.auth-card .auth-form input {
  background: rgba(255, 255, 255, 0.06); color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.auth-card .auth-form input:focus { border-color: #fff; outline: none; }
.auth-card .auth-form .btn--secondary {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28);
}
.auth-card .auth-form .btn--secondary:hover { background: rgba(255, 255, 255, 0.10); color: #fff; }
.auth-card .auth-note { margin-top: var(--rb-normal); }

/* ==== Deckster theme (docs/THEME.md) ===================================================
   A thin layer on Stellar: the brand's navy for titles, selections, tags and the primary button,
   for primary actions, pale-blue search and switches, white pages. Every rule below overrides
   a Stellar default on purpose; change the tokens, not the rules. Issue #11. */
:root {
  --dk-navy: #153b8b;            /* the master's blue: titles, selections, tags */
  --dk-navy-dark: #0f2b66;
  --dk-blue: #487ae3;            /* the master's lighter blue: the primary button under the mouse, avatar hover */
  --dk-tint: #e9eef8;            /* pale blue: search fields, switch tracks, tags */
  --dk-tint-text: #4a5b85;       /* text on the tint */
  --dk-line: #e4e8f2;            /* card and panel borders */
  --dk-primary-hover: #1e4aa6;   /* the primary button under the mouse: a touch lighter than navy */
  --dk-control: 3.8rem;          /* one height for every toolbar control */
  --dk-focus: 0 0 0 3px rgba(21, 59, 139, 0.15);
  --dk-hover: var(--rb-color-primary);   /* the light blue a card's border turns under the mouse */
  --dk-lift: 0 10px 26px rgba(0, 15, 30, 0.12);
  /* the type scale (docs/THEME.md "Type"): the root is 10 px, so 1.4rem is 14 px; each size has its line */
  --dk-text-xs: 1.2rem;      --dk-lh-xs: 1.6rem;      /* captions, by-lines, badges, hints */
  --dk-text-sm: 1.3rem;      --dk-lh-sm: 1.8rem;      /* labels, small buttons, a card's meta line */
  --dk-text-md: 1.4rem;      --dk-lh-md: 2rem;        /* body, chips, lists, a thumbnail's caption */
  --dk-text-lg: 1.6rem;      --dk-lh-lg: 2.2rem;      /* buttons, h3, link titles, a card's title */
  --dk-text-xl: 1.8rem;      --dk-lh-xl: 2.4rem;      /* h2 */
  --dk-text-2xl: 2.4rem;     --dk-lh-2xl: 2.8rem;     /* a dialog's or panel's title */
  --dk-text-display: 3.2rem; --dk-lh-display: 3.6rem; /* h1, Red Bull Condensed */
  /* the page frame (docs/THEME.md "Layout and window sizes") */
  --dk-header: 6rem;             /* the header bar */
  --dk-page: 1115px;             /* the content column, centred */
  --dk-gutter: 2.4rem;           /* the side gutter at every width */
}
body { background: #fff; }
/* page titles: the brand's condensed face, in navy (kept on Red Bull Condensed by decision) */
h1 { font-family: var(--dk-font-title); font-size: var(--dk-text-display); line-height: var(--dk-lh-display); letter-spacing: 0.01em; color: var(--dk-navy); }
h2 { font-size: var(--dk-text-xl); line-height: var(--dk-lh-xl); }
h3 { font-size: var(--dk-text-lg); line-height: var(--dk-lh-lg); }
h1 .h1-sub { font-family: var(--rb-font-family-default); font-size: var(--dk-text-md); letter-spacing: 0; color: var(--rb-color-text-dark-secondary); font-weight: 400; margin-left: .8rem; }
.card { border-color: var(--dk-line); box-shadow: 0 1px 2px rgba(21, 59, 139, 0.06); }
label { color: var(--dk-navy); font-weight: 700; font-size: var(--dk-text-sm); line-height: var(--dk-lh-sm); letter-spacing: 0.02em; }
/* fields: boxes with 10 px corners; navy when focused */
input[type='text'], input[type='email'], input[type='password'], input[type='search'], input[type='number'], textarea, select,
input.ui-input, select.ui-select, textarea.ui-textarea {
  font-family: var(--rb-font-family-default); font-weight: 400;
  border: 1px solid rgba(21, 59, 139, 0.3); border-radius: 10px; color: var(--rb-color-text-dark-primary);
}
input:focus, select:focus, textarea:focus, input.ui-input:focus, select.ui-select:focus, textarea.ui-textarea:focus {
  outline: none; border-color: var(--dk-navy); box-shadow: var(--dk-focus);
}
select, select.ui-select {
  appearance: none; -webkit-appearance: none; height: var(--dk-control); padding: 0 3.2rem 0 1.2rem; line-height: normal; font-weight: 400;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23153b8b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 4.5 6 8l3.5-3.5'/></svg>") no-repeat right 1.2rem center;
}
select:disabled { color: var(--rb-color-text-dark-disabled); border-color: var(--dk-line); background-color: #f8f9fb; }
/* buttons: solid navy for the one primary action, outlined navy for the rest; one height; no gradients */
.btn {
  height: var(--dk-control); padding: 0 1.6rem; line-height: 1; font-weight: 500;
  border-color: transparent; background: var(--dk-navy); color: #fff; box-shadow: none;
}
.btn:hover { border-color: transparent; background: var(--dk-primary-hover); color: #fff; box-shadow: none; }
.btn:active { border-color: transparent; background: var(--dk-navy-dark); box-shadow: none; }
.btn:disabled { background: var(--dk-tint); color: var(--rb-color-text-dark-disabled); box-shadow: none; border-color: transparent; }
/* small buttons sit in rows and tables */
.btn--sm { height: 3.2rem; padding: 0 1.3rem; font-size: var(--dk-text-sm); }
/* a sub-heading that is a link (a workspace's or folder's name in a list): the brand's light blue */
.dk-link-title, .data td > a > b, .data td > a.dk-link-title { color: var(--rb-color-primary); font-weight: 700; font-size: var(--dk-text-lg); text-decoration: none; }
.dk-link-title:hover, .data td > a:hover > b { text-decoration: underline; }
.btn--secondary, .btn--secondary:hover, .btn--secondary:active { background: #fff; color: var(--dk-navy); border-color: var(--dk-navy); box-shadow: none; }
.btn--secondary:hover { background: var(--dk-tint); }
.btn--secondary:active { background: #dbe3f5; }
.btn--secondary:disabled { background: #fff; color: var(--rb-color-text-dark-disabled); border-color: var(--dk-line); }
.btn--secondary.is-on, .btn--secondary[aria-pressed="true"] { background: var(--dk-navy); border-color: var(--dk-navy); color: #fff; }
.btn--quiet, .btn--quiet:hover { background: transparent; color: var(--dk-navy); box-shadow: none; border-color: transparent; }
.btn--quiet:hover { background: var(--dk-tint); }
.btn--danger, .btn--danger:hover { background: var(--rb-color-accent-negative); border-color: var(--rb-color-accent-negative); color: #fff; box-shadow: none; }
.btn--secondary.btn--danger { background: #fff; color: var(--rb-color-accent-negative); border-color: currentColor; }
/* the "add" button: every New deck / New skill / Add images / New user is this one style; the plus
   is drawn here (change it once, it changes everywhere); while its panel is open it shows a minus */
.btn--add, .btn--add:hover, .btn--add:active { background: #fff; color: var(--dk-navy); border-color: var(--dk-navy); box-shadow: none; }
.btn--add:hover { background: var(--dk-tint); }
.btn--add:active { background: #dbe3f5; }
.btn--add:disabled { background: #fff; color: var(--rb-color-text-dark-disabled); border-color: var(--dk-line); }
.btn--secondary:disabled, .btn--secondary.btn--danger:disabled { background: #fff; color: var(--rb-color-text-dark-disabled); border-color: var(--dk-line); box-shadow: none; cursor: not-allowed; }   /* a disabled outlined button, danger included, reads as off */
.btn--add::before { content: "+"; font-weight: 700; font-size: 1.7rem; line-height: 1; margin-right: .6rem; }
.btn--add[aria-expanded="true"]::before { content: "−"; }
.btn.btn--add[aria-expanded="true"] { background: var(--dk-navy); border-color: var(--dk-navy); color: #fff; }   /* its panel is open */
/* tags */
.badge { background: var(--dk-tint); color: var(--dk-navy); font-weight: 500; }
.badge--uploaded { background: var(--dk-tint); color: var(--dk-navy); }
/* alerts in the same family */
.alert--success { border-left: 4px solid #157a3a; }
/* the admin pages' section rows (Admin, Overview; My settings): icon, title, a line, a chevron */
.dk-rows { display: flex; flex-direction: column; }
.dk-row { display: flex; align-items: center; gap: 1.6rem; padding: 1.6rem 0.6rem; border-top: 1px solid var(--dk-line); color: inherit; text-decoration: none; }
.dk-row:first-child { border-top: 0; }
.dk-row:hover { background: #f6f8fc; text-decoration: none; }
.dk-row__ico { flex: 0 0 4rem; width: 4rem; height: 4rem; border-radius: 10px; background: var(--dk-tint); color: var(--dk-navy); display: flex; align-items: center; justify-content: center; }
.dk-row__ico svg { width: 2rem; height: 2rem; }
.dk-row__text { flex: 1; min-width: 0; }
.dk-row__text b { display: block; font-size: 1.6rem; color: var(--dk-navy); }
.dk-row__text span { display: block; font-size: 1.35rem; color: var(--rb-color-text-dark-secondary); margin-top: .2rem; }
.dk-row__chev { flex: 0 0 auto; color: var(--dk-tint-text); }

/* ==== motion: the board does a kickflip under the mouse =====================================
   One full turn around the board's own long axis (it sits at -6°, so the axis is (cos 6°, -sin 6°)),
   with a small hop at the top, the way a real kickflip goes; never a spin in the plane.
   Put .dk-kickflip on the element that holds the board picture (the brand link, the pane's home
   button); the picture itself is the <img>. The only animation on the brand. */
.dk-kickflip { perspective: 520px; }
.dk-kickflip img { transform-origin: 50% 50%; backface-visibility: visible; }
.dk-kickflip:hover img, .dk-kickflip:focus-visible img { animation: dk-kickflip .8s cubic-bezier(.35, .05, .25, 1) 1; }
@keyframes dk-kickflip {
  0%   { transform: translateY(0) rotate3d(.9945, -.1045, 0, 0deg); }
  50%  { transform: translateY(-5px) rotate3d(.9945, -.1045, 0, 180deg); }
  100% { transform: translateY(0) rotate3d(.9945, -.1045, 0, 360deg); }
}
@media (prefers-reduced-motion: reduce) { .dk-kickflip:hover img, .dk-kickflip:focus-visible img { animation: none; } }

/* the page veil (docs/THEME.md, Motion): a form or link marked data-slow shows the loading board over the
   page until the next page arrives (sign-in, a template import, a backup, a new deck) */
.dk-veil { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(2px); perspective: 520px; }
.dk-veil[hidden] { display: none; }
.auth-page .dk-veil { background: #fff; backdrop-filter: none; }   /* on the login page the board stands alone: nothing of the card shows through */
.dk-veil img { height: 7.2rem; width: auto; transform-origin: 50% 50%; animation: dk-kickflip 1.15s cubic-bezier(.35, .05, .25, 1) infinite; }
@media (prefers-reduced-motion: reduce) { .dk-veil img { animation: none; } }

/* ---- uploads (docs/THEME.md, Uploads; static/js/dk-upload.js) ------------------------------------
   A drop zone, then a queue: one file at a time, progress per file, a button to use it when the page
   needs one. The older .dropzone (the Images upload) takes the same look. */
.dk-upload { display: flex; flex-direction: column; gap: 1.2rem; }
.dk-drop, .dropzone { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  width: 100%; min-height: 15rem; padding: 2.4rem; border: 2px dashed rgba(21, 59, 139, 0.28); border-radius: 12px; background: var(--dk-tint);
  color: var(--dk-tint-text); text-align: center; cursor: pointer; transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease; }
.dk-drop:hover, .dk-drop:focus-visible, .dropzone:hover { border-color: var(--dk-navy); background: #dfe7f6; }
.dk-drop.is-page-drag, .dropzone.is-page-drag { border-color: var(--dk-navy); border-style: solid; }
.dk-drop.is-dragover, .dropzone.is-dragover { border-color: var(--dk-navy); border-style: solid; background: #fff; box-shadow: var(--dk-focus); transform: none; }
.dropzone.is-dragover .dz-title::after { color: var(--dk-navy); }
.dk-drop__icon svg, .dropzone .dz-icon { width: 3.6rem; height: 3.6rem; color: var(--dk-navy); }
.dk-drop__title, .dropzone .dz-title { font-size: var(--dk-text-lg); line-height: var(--dk-lh-lg); font-weight: 700; color: var(--dk-navy); }
.dk-drop__hint, .dropzone .dz-or { font-size: var(--dk-text-sm); line-height: var(--dk-lh-sm); color: var(--dk-tint-text); }
.dk-drop.is-dragover .dk-drop__title::after { content: " to add it"; }
.dk-queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.dk-queue:empty { display: none; }
.dk-queue__item { display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem 1.4rem; border: 1px solid var(--dk-line); border-radius: 12px; background: #fff; }
.dk-queue__head { display: flex; align-items: baseline; gap: 1rem; min-width: 0; }
.dk-queue__name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--dk-text-md); }
.dk-queue__size { font-size: var(--dk-text-sm); color: var(--dk-tint-text); }
.dk-queue__state { margin-left: auto; font-size: var(--dk-text-sm); font-weight: 700; color: var(--dk-tint-text); white-space: nowrap; }
.dk-queue__bar { height: .6rem; border-radius: 999px; background: var(--dk-tint); overflow: hidden; }
.dk-queue__bar span { display: block; height: 100%; width: 0; background: var(--dk-navy); border-radius: 999px; transition: width 200ms ease; }
.dk-queue__item.is-ready .dk-queue__bar span, .dk-queue__item.is-done .dk-queue__bar span { width: 100%; }
.dk-queue__item.is-done .dk-queue__state { color: var(--rb-color-accent-positive); }
/* the file is up and the server is working on it: a moving bar and a pulsing state, never "Done" */
.dk-queue__item.is-working .dk-queue__bar span { width: 100%; background: repeating-linear-gradient(-45deg, var(--dk-navy) 0 10px, #2f56a8 10px 20px); background-size: 28px 28px; animation: dk-queue-move 900ms linear infinite; }
.dk-queue__item.is-working .dk-queue__state { color: var(--dk-navy); animation: dk-pulse 1.4s ease-in-out infinite; }
@keyframes dk-queue-move { to { background-position: 28px 0; } }
@keyframes dk-pulse { 50% { opacity: .45; } }
/* a job's state at a glance (Activity, reports): running pulses, queued waits, done and failed are still */
.dk-status { display: inline-flex; align-items: center; gap: .5rem; padding: .2rem .9rem; border-radius: 999px; font-size: var(--dk-text-xs); line-height: var(--dk-lh-xs); font-weight: 700; background: var(--dk-tint); color: var(--dk-tint-text); }
.dk-status::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: currentColor; }
.dk-status--running { background: var(--dk-navy); color: #fff; }
.dk-status--running::before { background: #fff; animation: dk-pulse-dot 1.1s ease-in-out infinite; }
.dk-status--queued::before { background: transparent; border: 2px solid currentColor; width: .5rem; height: .5rem; }
.dk-status--done { background: var(--rb-color-accent-positive-lightest); color: var(--rb-color-accent-positive-darker); }
.dk-status--failed { background: var(--rb-color-accent-negative-lightest); color: var(--rb-color-accent-negative); }
@keyframes dk-pulse-dot { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.2); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dk-queue__item.is-working .dk-queue__bar span, .dk-queue__item.is-working .dk-queue__state, .dk-status--running::before { animation: none; } }
.dk-queue__item.is-done .dk-queue__bar span { background: var(--rb-color-accent-positive); }
.dk-queue__item.is-failed { border-color: rgba(219, 10, 64, .35); }
.dk-queue__item.is-failed .dk-queue__state, .dk-queue__item.is-failed .dk-queue__msg { color: var(--rb-color-accent-negative); }
.dk-queue__item.is-failed .dk-queue__bar { display: none; }
.dk-queue__extra { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.dk-queue__extra:empty { display: none; }
.dk-queue__msg { font-size: var(--dk-text-sm); color: var(--dk-tint-text); flex: 1 1 20rem; }
.dk-queue__field { display: flex; flex-direction: column; gap: .3rem; flex: 1 1 22rem; margin: 0; }
.dk-queue__field input { margin: 0; }
.dk-queue__check { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; font-weight: 400; color: var(--rb-color-text-dark-primary); letter-spacing: 0; font-size: var(--dk-text-md); }
.dk-queue__check input { width: auto; margin: 0; accent-color: var(--dk-navy); }
@media (prefers-reduced-motion: reduce) { .dk-queue__bar span { transition: none; } }

/* ---- Assignment lists (an identity tool's view): a profile's workspaces and roles, a role's people.
   Assigned rows are blue, the rest white; tick rows to assign several at once. Style guide: Assignments. */
.dk-idp { display: grid; grid-template-columns: minmax(26rem, 34rem) 1fr; gap: var(--rb-normal, 1.6rem); align-items: start; }
@media (max-width: 960px) { .dk-idp { grid-template-columns: 1fr; } }
.dk-idp__card { background: #fff; border: 1px solid var(--rb-color-glass-dark-10); border-radius: 12px; padding: 2rem; }
.dk-idp__avatar { width: 7.2rem; height: 7.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--rb-color-primary);
  color: #fff; font-weight: 700; font-size: 2.6rem; margin-bottom: 1rem; }
.dk-idp__pills { display: flex; gap: .4rem; flex-wrap: wrap; margin: .6rem 0 1.2rem; }
.dk-idp__facts { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.2rem; margin: 0; font-size: var(--rb-font-size-small); }
.dk-idp__facts dt { color: var(--rb-color-text-dark-secondary); }
.dk-idp__facts dd { margin: 0; overflow-wrap: anywhere; }
.dk-idp__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.6rem; }
.dk-tabs { display: flex; gap: 2.4rem; border-bottom: 1px solid var(--rb-color-glass-dark-10); margin: -.4rem 0 1.6rem; }
.dk-tabs a { padding: .8rem 0; color: var(--rb-color-text-dark-secondary); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.dk-tabs a.is-on { color: var(--rb-color-primary); border-color: var(--rb-color-primary); }
.dk-assign__bar { display: flex; gap: .8rem 1.2rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.dk-assign__bar .ui-input { flex: 1 1 22rem; margin: 0; }
.dk-assign__chip { border: 1px solid var(--rb-color-glass-dark-10); background: #fff; border-radius: 999px; padding: .4rem 1rem; font: inherit;
  font-size: 1.3rem; cursor: pointer; }
.dk-assign__chip[aria-pressed="true"] { background: var(--rb-color-primary); border-color: var(--rb-color-primary); color: #fff; }
.dk-assign__sel { display: flex; gap: 1.2rem; align-items: center; margin-left: auto; font-size: 1.3rem; }
.dk-assign__sel button { background: none; border: 0; padding: 0; color: var(--rb-color-primary); font: inherit; font-weight: 500; cursor: pointer; }
.dk-assign__sel button:disabled { color: var(--rb-color-text-dark-secondary); cursor: default; }
.dk-assign__go { display: flex; gap: .6rem; align-items: center; }
.dk-assign__go select { width: auto; margin: 0; }
.dk-assign__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rb-color-glass-dark-10); }
.dk-assign__row { display: grid; grid-template-columns: 2.4rem 1fr auto; gap: 1.2rem; align-items: center; padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--rb-color-glass-dark-10); border-left: 4px solid transparent; }
.dk-assign__row.is-on { background: var(--rb-color-sky-lightest); border-left-color: var(--rb-color-primary); }
.dk-assign__row b { display: block; }
.dk-assign__row .muted { font-size: 1.25rem; }
.dk-assign__row input[type=checkbox] { width: 1.8rem; height: 1.8rem; margin: 0; }
.dk-assign__act { display: flex; gap: .6rem; align-items: center; }
.dk-assign__act form { margin: 0; }
.dk-assign__act select { width: auto; margin: 0; }
.dk-assign__state { font-size: 1.2rem; font-weight: 700; color: var(--rb-color-primary); text-transform: uppercase; letter-spacing: .02em; }
.dk-history { list-style: none; margin: 0; padding: 0; font-size: 1.3rem; }
.dk-history li { padding: .8rem 0; border-bottom: 1px solid var(--rb-color-glass-dark-10); }
.dk-history time { color: var(--rb-color-text-dark-secondary); margin-right: .8rem; }
.dk-assign__row[hidden] { display: none; }
.dk-assign__bar input[type=search] { height: 4rem; padding: 0 1.4rem; border: 1px solid var(--rb-color-glass-dark-10); border-radius: 999px;
  background: var(--rb-color-surface-light, #eef1f6); font: inherit; font-size: 1.4rem; }
.dk-assign__bar input[type=search]:focus { outline: none; border-color: var(--rb-color-primary); background: #fff; box-shadow: 0 0 0 2px rgba(31, 61, 139, .15); }
/* forms on the identity pages: labels small and secondary, what you type in plain weight */
.dk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.6rem; max-width: 64rem; }
.dk-form label { display: flex; flex-direction: column; gap: .4rem; font-size: 1.3rem; font-weight: 700; color: var(--rb-color-text-dark-secondary); }
.dk-form input { margin: 0; height: 4rem; padding: 0 1.2rem; border: 1px solid var(--rb-color-glass-dark-10); border-radius: 10px;
  font: inherit; font-size: 1.5rem; font-weight: 400; color: var(--rb-color-text-dark-primary); background: #fff; }
.dk-form input:focus { outline: none; border-color: var(--rb-color-primary); box-shadow: 0 0 0 2px rgba(31, 61, 139, .15); }
.dk-form__wide { grid-column: 1 / -1; }
.dk-form__actions { display: flex; align-items: center; gap: 1.2rem; margin: .4rem 0 0; }
.dk-form__actions .muted { font-size: 1.25rem; }
@media (max-width: 640px) { .dk-form { grid-template-columns: 1fr; } }
.dk-danger { display: flex; justify-content: space-between; align-items: center; gap: 1.6rem; margin-top: 2.4rem; padding: 1.4rem 1.6rem;
  border: 1px solid var(--rb-color-accent-negative-lightest, #fbe9ee); border-radius: 12px; background: #fffafb; }
.dk-danger b { display: block; } .dk-danger .muted { font-size: 1.25rem; } .dk-danger form { margin: 0; flex: 0 0 auto; }

/* The standard wait for something that takes time inside a page (a list loading from another service, a
   job running): the Deckster board kickflipping beside one line saying what is happening. The whole-page
   wait is the veil (.dk-veil). Style guide: Motion. */
.dk-loading { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 0; color: var(--rb-color-text-dark-secondary); font-size: 1.4rem; perspective: 520px; }
.dk-loading[hidden] { display: none; }
.dk-loading img { height: 3.2rem; width: auto; transform-origin: 50% 50%; animation: dk-kickflip 1.15s cubic-bezier(.35, .05, .25, 1) infinite; }
@media (prefers-reduced-motion: reduce) { .dk-loading img { animation: dk-pulse 1.6s ease-in-out infinite; } }
/* A long list in a box: about ten rows show, the rest scroll; the header stays put. */
.dk-scrollbox { max-height: 52rem; overflow: auto; border: 1px solid var(--rb-color-glass-dark-10); border-radius: 12px; }
.dk-scrollbox[hidden] { display: none; }
.dk-scrollbox table { margin: 0; }
.dk-scrollbox thead th { position: sticky; top: 0; background: #fff; z-index: 1; box-shadow: inset 0 -1px 0 var(--rb-color-glass-dark-10); }
.dk-scrollbox__note { margin: .6rem 0 0; font-size: 1.25rem; }

/* the database is behind the code (main._check_migrations): administrators see it on every page */
.dk-schema-alert { background: var(--rb-color-accent-negative, #db0a40); color: #fff; padding: 10px 24px; font-size: 14px; line-height: 1.4; }
.dk-schema-alert code, .dk-schema-alert b { color: #fff; }
