/* =====================================================================
   KONTEKST in device frames — shared by the front page and the KONTEKST page
   (_includes/kontekst-device.html and _includes/kontekst-app/*.html).

   Each app is drawn at its real size and scaled into the screen of the frame, so type,
   spacing and corners keep the app's own proportions:
     phone  360 × 750 CSS px  → the 168 × 350 px screen  (scale 0.4667)
     laptop 1440 × 900 CSS px → the 439 × 275 px screen  (scale 0.3049)
   The values inside come from the apps' source (kontekst-app: packages/shared-ui theme and
   tokens, frontend/, meetings.frontend/, admin.frontend/, studio.frontend/), as of 2.2.0.
   ===================================================================== */

.device-mockup {
  --kx-fir: #025951;
  --kx-ink: #222222;
  --kx-ink-2: #6d6d6d;
  --kx-muted: #707070;
  --kx-mid: #d5d5d5;
  --kx-light: #f8f8f8;
  --kx-border: rgba(0, 0, 0, 0.12);
  --kx-error: #c62828;
  --kx-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.04);
  --kx-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.06), 0 12px 24px rgba(0, 0, 0, 0.1);
  --kx-button-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);

  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  pointer-events: none;
  user-select: none;
}

/* The page's word breaking on narrow screens is not the app's: the mockup is drawn at the
   app's own size */
.device-mockup {
  overflow-wrap: normal;
}

/* Page rules for pictures (max-width, rounded corners) must not reach the mockup's images */
.device-mockup img {
  max-width: none;
  max-height: none;
  border-radius: 0;
}

.device-mockup__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.device-mockup__screen {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  background: #ffffff;
}

.device-mockup--phone {
  width: 220px;
  height: 415px;
}

/* White behind the screen, inside the frame's black bezel, so no gap shows at its corners */
.device-mockup--phone::before {
  content: "";
  position: absolute;
  inset: 22px;
  z-index: 0;
  border-radius: 28px;
  background: #ffffff;
}

.device-mockup--phone .device-mockup__screen {
  top: 39px;
  left: 26px;
  width: 168px;
  height: 350px;
}

/* MacBook PNG: 583 × 361, screen area 439 × 275 */
.device-mockup--laptop {
  width: 583px;
  height: 361px;
}

.device-mockup--laptop .device-mockup__screen {
  top: 43px;
  left: 72px;
  width: 439px;
  height: 275px;
}

.app-canvas {
  transform-origin: 0 0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  color: var(--kx-ink);
  -webkit-font-smoothing: antialiased;
}

.app-canvas *,
.app-canvas *::before,
.app-canvas *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.app-canvas--phone {
  width: 360px;
  height: 750px;
  transform: scale(0.46667);
}

.app-canvas--laptop {
  width: 1440px;
  height: 900px;
  transform: scale(0.30486);
}

/* MUI icons */
.ki {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ---------------------------------------------------------------------
   Shared app chrome: the TopBar brand and icons, headers, buttons, badges
   --------------------------------------------------------------------- */
.kx-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  min-height: 48px;
}

.kx-brand img {
  display: block;
  width: 28px;
  height: 28px;
}

.kx-brand__title {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--kx-fir);
}

.kx-topbar-icons {
  display: flex;
  gap: 4px;
}

.kx-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--kx-fir);
}

.kx-iconbtn .ki {
  width: 26px;
  height: 26px;
}

.kx-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 24px;
}

.kx-h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--kx-ink);
}

.kx-count {
  font-weight: 400;
  color: var(--kx-ink-2);
}

.kx-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.kx-h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--kx-ink);
}

/* MUI contained button (primary) */
.kx-contained {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 6px 16px;
  border-radius: 8px;
  background: var(--kx-fir);
  box-shadow: var(--kx-button-shadow);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.02857em;
  color: #ffffff;
  white-space: nowrap;
}

.kx-contained .ki {
  width: 20px;
  height: 20px;
  margin: 0 8px 0 -4px;
}

.kx-contained.is-disabled {
  background: rgba(0, 0, 0, 0.12);
  box-shadow: none;
  color: rgba(0, 0, 0, 0.26);
}

.kx-text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02857em;
  color: var(--kx-fir);
}

.kx-outlined-sm {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 3px 9px;
  border: 1px solid rgba(2, 89, 81, 0.5);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02857em;
  color: var(--kx-fir);
}

.kx-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kx-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--kx-mid);
  border-radius: 9999px;
  background: var(--kx-light);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--kx-ink);
}

.kx-badge--inherited {
  border-style: dashed;
  background: transparent;
}

.kx-badge--more {
  color: var(--kx-muted);
}

.kx-card {
  border: 1px solid var(--kx-border);
  border-radius: 8px;
  background: #ffffff;
}

/* ---------------------------------------------------------------------
   Translate (phone)
   --------------------------------------------------------------------- */
.t-ui {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
}

.t-ui__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 8px;
}

.t-ui__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: 8px;
}

.t-ui__brand img {
  display: block;
  width: 28px;
  height: 28px;
}

.t-ui__iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--kx-fir);
}

.t-ui__iconbtn .ki {
  width: 26px;
  height: 26px;
}

/* Context indicator: the pill on a green line that runs along the top bar's lower edge */
.t-ui__context {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-top: -14px;
  padding: 0 16px;
}

.t-ui__context::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--kx-fir);
}

.t-ui__context-pill {
  position: relative;
  min-width: 120px;
  height: 28px;
  padding: 0 27px;
  border: 1.5px solid var(--kx-fir);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--kx-shadow-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 25px;
  text-align: center;
  color: var(--kx-ink);
  white-space: nowrap;
}

.t-ui__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 16px 16px 12px;
}

/* Typed text shrinks from 24px with its length; a sentence like these is about 22px */
.t-ui__src {
  padding: 12px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--kx-ink);
}

.t-ui__cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--kx-fir);
  animation: kx-cursor 1s step-end infinite;
}

@keyframes kx-cursor {
  50% { opacity: 0; }
}

.t-ui__divider {
  height: 1px;
  margin: 16px 0;
  background: var(--kx-mid);
}

.t-ui__target {
  display: flex;
  flex-direction: column;
  min-height: 100px;
  padding: 12px;
  border-radius: 12px;
  background: var(--kx-light);
}

.t-ui__tgt {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--kx-fir);
}

.t-ui__target-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  color: var(--kx-ink);
}

.t-ui__smallbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.t-ui__smallbtn .ki {
  width: 18px;
  height: 18px;
}

.t-ui__langs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--kx-mid);
  background: #ffffff;
}

.t-ui__lang-pill {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--kx-mid);
  line-height: 1.05;
  text-align: center;
}

.t-ui__lang-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--kx-ink);
}

.t-ui__lang-native {
  margin-top: 2px;
  font-size: 12px;
  color: var(--kx-ink-2);
  opacity: 0.9;
}

.t-ui__swap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--kx-ink);
}

.t-ui__swap .ki {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1px;
}

.t-ui__swap-top {
  transform: translateX(4px);
}

.t-ui__swap-bottom {
  margin-top: -4px;
  transform: translateX(-4px);
}

.t-ui__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 12px 20px;
}

.t-ui__mic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--kx-fir);
  box-shadow: var(--kx-shadow-lg);
  color: #ffffff;
}

.t-ui__mic .ki {
  width: 36px;
  height: 36px;
}

/* ---------------------------------------------------------------------
   Meetings (laptop): the host's running meeting
   --------------------------------------------------------------------- */
.c-ui,
.s-ui,
.a-ui {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--kx-light);
}

.c-ui__topbar,
.s-ui__topbar,
.a-ui__topbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
  background: #ffffff;
  box-shadow: var(--kx-shadow-sm);
}

/* Meetings and Studio line the top bar up with their 1200px content */
.c-ui__topbar,
.s-ui__topbar {
  padding: 0 120px;
}

.c-ui__topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.c-ui__iconbtn--back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--kx-fir);
}

.c-ui__body {
  flex: 1;
  min-height: 0;
  padding: 12px;
}

.c-ui__page {
  display: flex;
  gap: 24px;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
}

.c-ui__sidebar,
.c-ui__chat {
  border: 1px solid var(--kx-border);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.c-ui__sidebar {
  display: flex;
  flex: 0 0 352px;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.c-ui__join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--kx-border);
}

.c-ui__join-code {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--kx-fir);
}

.c-ui__join-actions {
  display: flex;
  gap: 4px;
}

.c-ui__mutedbtn,
.c-ui__removebtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: rgba(0, 0, 0, 0.54);
}

.c-ui__mutedbtn .ki,
.c-ui__removebtn .ki {
  width: 20px;
  height: 20px;
}

.c-ui__removebtn {
  color: var(--kx-error);
}

.c-ui__heading {
  margin-bottom: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--kx-ink-2);
}

.c-ui__participants {
  display: grid;
  gap: 8px;
}

.c-ui__participants .c-ui__heading {
  margin-bottom: 4px;
}

.c-ui__guest {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--kx-mid);
  border-radius: 8px;
  background: var(--kx-light);
}

.c-ui__guest--host {
  border-color: rgba(2, 89, 81, 0.2);
  background: rgba(2, 89, 81, 0.1);
}

.c-ui__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1e7a55;
}

.c-ui__guest-name {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.c-ui__guest-actions {
  display: flex;
  min-width: 40px;
}

.c-ui__lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 9999px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  color: var(--kx-ink-2);
}

.c-ui__lang .ki {
  width: 14px;
  height: 14px;
}

.c-ui__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1.5px solid var(--kx-fir);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--kx-fir);
}

.c-ui__add .ki {
  width: 20px;
  height: 20px;
}

.c-ui__settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-top: 1px solid var(--kx-border);
  font-size: 16px;
  font-weight: 600;
}

.c-ui__settings .ki {
  color: rgba(0, 0, 0, 0.54);
}

.c-ui__spacer {
  flex: 1;
}

.c-ui__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--kx-border);
}

.c-ui__footer-row {
  display: flex;
  gap: 8px;
}

.c-ui__outlined,
.c-ui__end,
.c-ui__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.02857em;
}

.c-ui__outlined {
  flex: 1;
  padding: 5px 8px;
  border: 1px solid rgba(2, 89, 81, 0.5);
  font-size: 14px;
  color: var(--kx-fir);
}

.c-ui__end {
  flex: 1;
  padding: 6px 16px;
  background: var(--kx-error);
  font-size: 15px;
  color: #ffffff;
}

.c-ui__outlined .ki,
.c-ui__end .ki {
  width: 20px;
  height: 20px;
  margin: 0 8px 0 -4px;
}

.c-ui__clear {
  width: 48px;
  border: 1px solid rgba(2, 89, 81, 0.5);
  color: var(--kx-fir);
}

.c-ui__clear .ki {
  width: 18px;
  height: 18px;
}

.c-ui__chat {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.c-ui__messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 20px 8px 32px;
  overflow: hidden;
  background: #fafaf8;
}

.c-ui__msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.c-ui__msg.is-visible {
  opacity: 1;
  transform: none;
}

.c-ui__msg--sent {
  flex-direction: row-reverse;
}

.c-ui__avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding-top: 2px;
  border-radius: 50%;
  background: #0b6e63;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #ffffff;
}

.c-ui__msg--sent .c-ui__avatar {
  background: var(--kx-fir);
}

.c-ui__bubble {
  max-width: 70%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #edece8;
  font-size: 16px;
  line-height: 1.5;
  color: var(--kx-ink);
}

.c-ui__msg--sent .c-ui__bubble {
  border-color: var(--kx-fir);
  background: var(--kx-fir);
  color: #ffffff;
}

.c-ui__sender {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
}

.c-ui__content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.c-ui__speaker {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--kx-fir);
}

.c-ui__speaker .ki {
  width: 20px;
  height: 20px;
}

.c-ui__time {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--kx-muted);
}

.c-ui__msg--sent .c-ui__time {
  color: rgba(255, 255, 255, 0.7);
}

.c-ui__time .ki {
  width: 14px;
  height: 14px;
}

.c-ui__input-row {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--kx-light);
  box-shadow: 0 -1px 0 rgba(34, 34, 34, 0.06);
}

.c-ui__mic {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--kx-fir);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #ffffff;
  transition: background-color 200ms ease;
}

.c-ui__mic .ki {
  width: 32px;
  height: 32px;
}

.c-ui__mic-stop,
.c-ui__meter,
.c-ui__spinner,
.c-ui__cancel {
  display: none;
}

/* Recording: red with a pulsing ring, a level meter, and a cancel button beside it */
.c-ui__mic.is-recording {
  background: var(--kx-error);
  animation: kx-rec 1.2s ease-in-out infinite;
}

.c-ui__mic.is-recording .c-ui__mic-icon {
  display: none;
}

.c-ui__mic.is-recording .c-ui__meter {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}

.c-ui__meter i {
  width: 4px;
  height: 28px;
  border-radius: 9999px;
  background: #ffffff;
  animation: kx-meter 0.9s ease-in-out infinite;
}

.c-ui__meter i:nth-child(1),
.c-ui__meter i:nth-child(5) { transform: scaleY(0.55); animation-delay: -0.3s; }
.c-ui__meter i:nth-child(2),
.c-ui__meter i:nth-child(4) { transform: scaleY(0.85); animation-delay: -0.15s; }

.c-ui__mic.is-recording + .c-ui__cancel {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--kx-border);
  border-radius: 50%;
  background: #ffffff;
  color: var(--kx-ink-2);
}

/* Transcribing: grey with a spinner */
.c-ui__mic.is-processing {
  background: var(--kx-muted);
}

.c-ui__mic.is-processing .c-ui__mic-icon {
  display: none;
}

.c-ui__mic.is-processing .c-ui__spinner {
  display: block;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: kx-spin 0.8s linear infinite;
}

@keyframes kx-rec {
  0%, 100% { box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(198, 40, 40, 0.1); }
}

@keyframes kx-meter {
  50% { transform: scaleY(0.3); }
}

@keyframes kx-spin {
  to { transform: rotate(360deg); }
}

.c-ui__field {
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid var(--kx-border);
  border-radius: 24px;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
}

.c-ui__placeholder {
  color: var(--kx-muted);
}

.c-ui__typed:not(:empty) {
  color: var(--kx-ink);
}

.c-ui__typed:not(:empty) ~ .c-ui__placeholder,
.c-ui__field.has-text .c-ui__placeholder {
  display: none;
}

/* ---------------------------------------------------------------------
   Admin (laptop): the users page, as a municipality's administrator sees it
   --------------------------------------------------------------------- */
.a-ui__topbar {
  padding: 0 16px;
}

.a-ui__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.a-ui__nav {
  display: flex;
  flex: 0 0 220px;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  border-right: 1px solid rgba(34, 34, 34, 0.08);
  background: #ffffff;
}

.a-ui__nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--kx-ink-2);
}

.a-ui__nav-item .ki {
  width: 20px;
  height: 20px;
}

.a-ui__nav-item.is-active {
  background: rgba(2, 89, 81, 0.08);
  font-weight: 600;
  color: var(--kx-fir);
}

.a-ui__nav-item.is-active::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 0;
  width: 3px;
  height: 60%;
  border-radius: 0 4px 4px 0;
  background: var(--kx-fir);
}

.a-ui__external {
  width: 16px !important;
  height: 16px !important;
  margin-left: auto;
  color: var(--kx-muted);
}

.a-ui__main {
  flex: 1;
  min-width: 0;
  padding: 24px 16px;
}

.a-ui__tabs {
  display: flex;
  min-height: 48px;
  margin-bottom: 20px;
}

.a-ui__tabs span {
  flex: 1;
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--kx-ink-2);
}

.a-ui__tabs .is-active {
  border-bottom-color: var(--kx-fir);
  color: var(--kx-fir);
}

.a-ui__search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 400px;
  height: 39px;
  margin-bottom: 16px;
  padding: 8px 16px 8px 32px;
  border: 1px solid var(--kx-mid);
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  color: var(--kx-muted);
}

.a-ui__search .ki {
  position: absolute;
  left: 10px;
  width: 18px;
  height: 18px;
}

.a-ui__table {
  width: 100%;
  border: 1px solid var(--kx-border);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #ffffff;
}

.a-ui__table th,
.a-ui__table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--kx-border);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
}

.a-ui__table tr:last-child td {
  border-bottom: 0;
}

.a-ui__table th {
  background: var(--kx-light);
  font-weight: 600;
  color: var(--kx-ink-2);
}

.a-ui__table th i {
  font-size: 12px;
  font-style: normal;
  color: var(--kx-muted);
}

.a-ui__table th i.is-sorted {
  color: var(--kx-fir);
}

.a-ui__table td {
  color: var(--kx-ink);
}

.a-ui__actions {
  width: 1%;
  color: rgba(0, 0, 0, 0.54);
}

.a-ui__actions .ki {
  margin: 0 0 0 auto;
}

/* ---------------------------------------------------------------------
   Studio (laptop): editing the "Jobcenter" context and its fagtermer
   --------------------------------------------------------------------- */
.s-ui__viewport {
  flex: 1;
  min-height: 0;
  padding: 24px;
  overflow: hidden;
}

/* Scrolled down to the instruction text, so the fagtermer are in view */
.s-ui__column {
  max-width: 680px;
  margin: -430px auto 0;
}

.s-ui__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
  padding: 24px;
}

.kx-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 16.5px 14px;
  border: 1px solid rgba(0, 0, 0, 0.23);
  border-radius: 8px;
  font-size: 16px;
  line-height: 23px;
}

.kx-field--multiline {
  align-items: flex-start;
  min-height: 171px;
}

.kx-field__label {
  position: absolute;
  top: -9px;
  left: 9px;
  padding: 0 5px;
  background: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.6);
}

.kx-field__value {
  flex: 1;
}

.kx-field__arrow {
  color: rgba(0, 0, 0, 0.54);
}

.kx-helper {
  margin: 3px 14px 0;
  font-size: 12px;
  line-height: 1.66;
  color: rgba(0, 0, 0, 0.6);
}

.kx-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 13px;
}

.s-ui__form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.kx-divider {
  height: 1px;
  background: var(--kx-border);
}

.s-ui__owner {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: 1.43;
  color: var(--kx-ink-2);
}

.s-ui__terms {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.s-ui__term {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 60px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.s-ui__term b {
  font-weight: 500;
  color: var(--kx-ink);
}

.s-ui__def {
  margin-left: 8px;
  color: var(--kx-ink-2);
}

.s-ui__term .ki {
  margin: 12px;
  color: rgba(0, 0, 0, 0.54);
}

.s-ui__term--global b {
  color: var(--kx-ink-2);
}

.s-ui__term--global .s-ui__def {
  margin-left: 4px;
  color: rgba(0, 0, 0, 0.38);
}

.s-ui__global {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--kx-ink-2);
}

.s-ui__global::before,
.s-ui__global::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--kx-border);
}

@media (prefers-reduced-motion: reduce) {
  .t-ui__cursor,
  .c-ui__mic.is-recording,
  .c-ui__meter i,
  .c-ui__spinner {
    animation: none;
  }

  .c-ui__msg {
    transition: none;
  }
}
