/* Layout of the orchestrator pages on top of Siemens iX (siemens-ix.css). Colours, spacing,
   shadows and typography come from the iX theme variables, so light and dark follow iX. */

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--theme-color-1);
  color: var(--theme-color-std-text);
  font-family: var(--theme-font-family, 'Siemens Sans', Arial, Helvetica, sans-serif);
}

[hidden] {
  display: none !important;
}

.page {
  box-sizing: border-box;
  height: 100%;
  overflow: auto;
  padding: var(--theme-space-6, 2rem) var(--theme-space-4, 1.5rem);
}

.container {
  margin: 0 auto;
  max-width: 76rem;
}

.stack > * + * {
  margin-top: var(--theme-space-3, 1rem);
}

.muted {
  color: var(--theme-color-soft-text);
}

.row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2, 0.5rem);
}

.spacer {
  flex: 1;
}

/* ---- design of the visitor pages (index.html, class "brand" on <html>) ----
   The palette of the designer's mockup (design/): Siemens deep blue with petrol, set as iX theme
   variables so that the iX components follow it. The selector has to be more specific than the
   one of the iX theme ([data-ix-theme=classic][data-ix-color-schema=dark]). */
html.brand[data-ix-theme][data-ix-color-schema] {
  --brand-bg: #000028;
  --brand-surface: #000033;
  --brand-header: #00183c;
  --brand-field: #00113a;
  --brand-accent: #00cccc;
  --brand-green: #00d7a0;
  --brand-line: rgba(255, 255, 255, 0.08);
  --brand-text: #ccccd4;
  --brand-muted: #9aa0b4;
  --brand-gradient: linear-gradient(#00d7a0, #00bedc);

  --theme-color-1: var(--brand-bg);
  --theme-color-1--hover: #0a1f44;
  --theme-color-1--active: #0f2f5f;
  --theme-color-2: var(--brand-surface);
  --theme-color-3: #0f2f5f;
  --theme-color-primary: var(--brand-accent);
  --theme-color-primary--hover: var(--brand-green);
  --theme-color-primary--active: #00bedc;
  --theme-color-primary--contrast: var(--brand-bg);
  --theme-color-dynamic: var(--brand-accent);
  --theme-color-std-text: #ffffff;
  --theme-color-soft-text: var(--brand-muted);
  --theme-color-weak-text: #6d7a9c;
  --theme-color-std-bdr: #6d7a9c;
  --theme-color-soft-bdr: rgba(255, 255, 255, 0.16);
  --theme-color-weak-bdr: rgba(255, 255, 255, 0.12);
  --theme-color-x-weak-bdr: var(--brand-line);
  --theme-color-ghost--hover: rgba(0, 204, 204, 0.12);
  --theme-color-ghost--selected: rgba(0, 204, 204, 0.15);
  --theme-color-component-1: rgba(109, 122, 156, 0.25);
  --theme-color-success: var(--brand-green);
  --theme-color-warning: #ffd732;
  --theme-color-warning-text: #ffd732;
  --theme-color-alarm: #ef4a5c;
  --theme-input--background: var(--brand-field);
  --theme-input--border-color: #4a5577;
  --theme-app-header--background: var(--brand-header);
  --theme-app-header--border-color: var(--brand-line);
  --theme-btn--border-radius: 0;
  /* the header buttons of the design: cyan text without a background */
  --theme-btn-subtle-primary--background: transparent;
  --theme-btn-subtle-primary--background--hover: rgba(0, 204, 204, 0.12);
  --theme-btn-subtle-primary--background--active: rgba(0, 204, 204, 0.2);
  --theme-btn-subtle-primary--color: var(--brand-accent);
  --theme-btn-subtle-primary--color--hover: var(--brand-accent);
  --theme-btn-subtle-primary--color--active: var(--brand-accent);
}

.brand body {
  color: var(--brand-text);
  font-family: 'Siemens Sans', 'Segoe UI', Arial, sans-serif;
}

/* logo and name in the application header */
.brand .brand {
  align-items: center;
  color: #ffffff;
  display: flex;
  font-size: 1.25rem;
  gap: 0.875rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.brand .brand img {
  height: 32px;
  width: 32px;
}

.brand .brand .brand-name {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand .brand .brand-name em {
  color: var(--brand-accent);
  font-style: normal;
}

/* the address of the site above the hero title, as a pill */
.brand .hero-url {
  align-items: center;
  background: rgba(0, 204, 204, 0.08);
  border: 1px solid rgba(0, 204, 204, 0.45);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 500;
  gap: 0.625rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.375rem;
  padding: 0.375rem 1rem 0.375rem 0.375rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.brand .hero-url:hover {
  background: rgba(0, 204, 204, 0.16);
  border-color: var(--brand-accent);
  color: #ffffff;
}

.hero-url-icon {
  align-items: center;
  background: var(--brand-accent);
  border-radius: 50%;
  color: var(--brand-bg);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.hero-url-tld {
  color: var(--brand-accent);
}

.brand .eyebrow {
  color: var(--brand-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand .muted {
  color: var(--brand-muted);
}

/* ---- landing page ---- */

.hero {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
  padding: 4rem 0 1.5rem;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0.625rem 0 1.25rem;
}

.hero .lead {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
  max-width: 40rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.hero-points li {
  align-items: center;
  color: #ffffff;
  display: flex;
  font-size: 0.95rem;
  gap: 0.375rem;
}

.hero-points ix-icon {
  color: var(--brand-accent);
}

.start-card {
  align-self: start;
  background: var(--brand-surface);
  border: 1px solid rgba(0, 204, 204, 0.35);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.start-card h2 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.start-card p {
  line-height: 1.5;
  margin: 0;
}

#templateSelect,
.start-token,
.start-button {
  width: 100%;
}

.msg-warn {
  align-items: flex-start;
  background: rgba(255, 215, 50, 0.1);
  border-left: 3px solid #ffd732;
  color: #ffe680;
  display: flex;
  font-size: 0.9rem;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
}

.msg-warn ix-icon {
  color: #ffd732;
  flex: none;
  margin-top: 0.1rem;
}

.resume {
  border-top: 1px solid var(--brand-line);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
}

.resume-label {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
}

.resume-row {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.resume-code {
  flex: 1;
  min-width: 0;
}

.chapter {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 600;
  margin: 2.5rem 0 0.375rem;
}

.intro {
  color: var(--brand-muted);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}

.features {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.feature {
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  box-shadow: 0 10px 30px rgba(0, 204, 204, 0.15);
  transform: translateY(-4px);
}

.feature-image {
  aspect-ratio: 600 / 338;
  background: var(--brand-field);
  display: block;
  position: relative;
}

.feature-image svg {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.feature-tag {
  align-items: center;
  background: var(--brand-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--brand-bg);
  color: var(--brand-bg);
  display: flex;
  height: 36px;
  justify-content: center;
  left: 10px;
  position: absolute;
  top: 10px;
  width: 36px;
  z-index: 1;
}

.feature-body {
  padding: 1rem;
}

.feature-body h3 {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.feature-body p {
  line-height: 1.5;
  margin: 0;
}

/* full-width bands of the start page: the page has no side padding, each container has it */
.page.landing {
  padding: 0 0 var(--theme-space-4, 1.5rem);
}

.landing .container {
  box-sizing: border-box;
  max-width: calc(76rem + 3rem);
  padding: 0 1.5rem;
}

.landing .hero-band > .container {
  padding-top: var(--theme-space-4, 1.5rem);
}

/* hero: dot grid fading out to the left, cyan glow at the top right */
.hero-band {
  overflow: hidden;
  position: relative;
}

.hero-band::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px);
  background-size: 26px 26px;
  content: '';
  inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  position: absolute;
}

.hero-band::after {
  background: radial-gradient(circle, rgba(0, 204, 204, 0.14), rgba(0, 204, 204, 0) 62%);
  content: '';
  height: 900px;
  pointer-events: none;
  position: absolute;
  right: -260px;
  top: -380px;
  width: 900px;
}

.hero-band > .container {
  position: relative;
  z-index: 1;
}

.landing .hero {
  padding: 2.5rem 0 4.5rem;
}

.landing .hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 3.9rem);
  letter-spacing: -0.01em;
  line-height: 1.06;
  margin: 1.125rem 0 1.375rem;
}

.notes-link {
  color: var(--brand-accent);
}

/* story band: the video with its chapters */
.stage {
  background: linear-gradient(180deg, #000028 0%, #00113a 18%, #00113a 82%, #000028 100%);
  border-bottom: 1px solid rgba(0, 204, 204, 0.12);
  border-top: 1px solid rgba(0, 204, 204, 0.12);
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  position: relative;
}

.stage::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.2px);
  background-size: 26px 26px;
  content: '';
  inset: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
  position: absolute;
}

.stage::after {
  background: radial-gradient(ellipse at center, rgba(0, 204, 204, 0.16), rgba(0, 204, 204, 0) 65%);
  content: '';
  filter: blur(10px);
  height: 70%;
  left: 8%;
  pointer-events: none;
  position: absolute;
  top: 22%;
  width: 62%;
}

.stage > .container {
  position: relative;
  z-index: 1;
}

.stage-head {
  margin-bottom: 2.25rem;
  max-width: 47.5rem;
}

.eyebrow-play {
  align-items: center;
  color: var(--brand-accent);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 0.375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stage-head h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0.625rem 0 0.75rem;
}

.stage-head p {
  color: #b9c0d4;
  font-size: 1.08rem;
  line-height: 1.5;
  margin: 0;
}

.stage-grid {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.vplayer {
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0, 204, 204, 0.35), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 90px rgba(0, 204, 204, 0.12);
  overflow: hidden;
  position: relative;
}

.vplayer.seen {
  animation: glow-once 2.2s ease-out 0.2s 1;
}

@keyframes glow-once {
  0% { box-shadow: 0 0 0 1px rgba(0, 204, 204, 0.35), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(0, 204, 204, 0.6); }
  55% { box-shadow: 0 0 0 1px rgba(0, 204, 204, 0.8), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 22px rgba(0, 204, 204, 0), 0 0 120px rgba(0, 204, 204, 0.35); }
  100% { box-shadow: 0 0 0 1px rgba(0, 204, 204, 0.35), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 90px rgba(0, 204, 204, 0.12); }
}

.vplayer video {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.vplay {
  align-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 40, 0.1), rgba(0, 0, 40, 0.5));
  border: 0;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  gap: 0.875rem;
  inset: 0;
  justify-content: center;
  position: absolute;
  transition: background 0.25s;
}

.vplay:hover {
  background: linear-gradient(180deg, rgba(0, 0, 40, 0), rgba(0, 0, 40, 0.35));
}

.vplay span {
  align-items: center;
  background: var(--brand-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(0, 204, 204, 0.2), 0 10px 30px rgba(0, 0, 0, 0.4);
  color: var(--brand-bg);
  display: flex;
  height: 88px;
  justify-content: center;
  padding-left: 4px;
  box-sizing: border-box;
  transition: transform 0.25s, box-shadow 0.25s;
  width: 88px;
}

.vplay:hover span {
  box-shadow: 0 0 0 16px rgba(0, 204, 204, 0.16), 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: scale(1.08);
}

.vplay em {
  background: rgba(0, 0, 40, 0.65);
  border-radius: 999px;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.875rem;
}

.vplayer.playing .vplay {
  display: none;
}

.sync-steps {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.sync-steps::before {
  background: linear-gradient(180deg, rgba(0, 204, 204, 0.5), rgba(0, 204, 204, 0.1));
  bottom: 24px;
  content: '';
  left: 29px;
  position: absolute;
  top: 24px;
  width: 2px;
}

.sync-steps li {
  align-items: flex-start;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 0.875rem;
  padding: 0.625rem 0.75rem;
  position: relative;
  transition: opacity 0.3s, background 0.3s, transform 0.3s;
}

.sync-steps li:hover {
  background: rgba(0, 204, 204, 0.07);
}

.sync-steps.live li {
  opacity: 0.5;
}

.sync-steps.live li:hover {
  opacity: 0.85;
}

.sync-steps.live li.on {
  background: rgba(0, 204, 204, 0.11);
  opacity: 1;
  transform: translateX(4px);
}

.step-num {
  align-items: center;
  background: var(--brand-accent);
  border-radius: 50%;
  box-sizing: border-box;
  color: var(--brand-bg);
  display: flex;
  flex: 0 0 36px;
  font-size: 1.1rem;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  position: relative;
  transition: box-shadow 0.3s;
  z-index: 1;
}

.step-num.s0 {
  background: #00113a;
  border: 2px solid var(--brand-accent);
  color: var(--brand-accent);
}

.sync-steps li.on .step-num {
  box-shadow: 0 0 0 5px rgba(0, 204, 204, 0.22);
}

.sync-steps h3 {
  align-items: baseline;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  font-size: 1.02rem;
  font-weight: 700;
  gap: 0.625rem;
  margin: 0.3rem 0 0.125rem;
}

.sync-steps time {
  color: var(--brand-accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.sync-steps p {
  color: #b9c0d4;
  font-size: 0.88rem;
  line-height: 1.4;
  margin: 0;
}

/* terms and privacy notes, collapsed */
.notes-d {
  margin-top: 2.5rem;
}

.notes-d summary {
  align-items: center;
  color: var(--brand-muted);
  cursor: pointer;
  display: inline-flex;
  font-weight: 600;
  gap: 0.5rem;
  list-style: none;
  padding: 0.5rem 0;
}

.notes-d summary::-webkit-details-marker {
  display: none;
}

.notes-d summary:hover {
  color: #ffffff;
}

.notes-d summary > ix-icon:first-child {
  color: var(--brand-accent);
}

.notes-d .chev {
  transition: transform 0.25s;
}

.notes-d[open] .chev {
  transform: rotate(180deg);
}

.notes-d .notes-list {
  font-size: 0.92rem;
  margin-top: 0.625rem;
}

/* entrance of the hero, one element after the other (--d) */
.rise {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--d) * 110ms + 100ms);
  opacity: 0;
  transform: translateY(18px);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .vplayer.seen {
    animation: none;
  }
}

@media (max-width: 900px) {
  .stage-grid {
    gap: 1.5rem;
    grid-template-columns: 1fr;
  }

  .stage {
    padding: 3rem 0;
  }
}

@media (max-width: 600px) {
  .landing .hero {
    padding: 1.5rem 0 3rem;
  }

  .landing .hero h1 {
    font-size: 2.2rem;
  }

  .landing .container {
    padding: 0 1rem;
  }
}

.notes-list {
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  list-style: none;
  margin: 1rem 0 0;
  padding: 1.25rem 1.5rem;
}

.notes-list li {
  display: flex;
  gap: 0.5rem;
  line-height: 1.6;
  margin: 0.375rem 0;
}

.note-icon {
  align-items: center;
  border: 1.5px solid #ffd732;
  border-radius: 50%;
  box-sizing: border-box;
  color: #ffd732;
  display: flex;
  flex: none;
  height: 16px;
  justify-content: center;
  margin-top: 0.25rem;
  width: 16px;
}

.poweruser-card {
  box-sizing: border-box;
  width: 100%;
}

.brand footer {
  border-top: 1px solid var(--brand-line);
  font-size: 0.85rem;
  margin-top: 3rem;
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.section-title {
  margin: var(--theme-space-7, 3rem) 0 var(--theme-space-3, 1rem);
}

/* admin page: header of the saved projects with the actions on the selection */
.saved-head {
  align-items: center;
  flex-wrap: wrap;
}

/* admin page: the checkboxes of a table, a selected row highlighted */
table.data .select-col {
  width: 2rem;
}

table.data tr.selected td {
  background: var(--theme-color-ghost--selected, rgba(0, 204, 204, 0.12));
}

/* ---- session workspace ---- */

.workspace {
  box-sizing: border-box;
  display: grid;
  /* agent | splitter | tabs; --agent-width is set by dragging the splitter (index.html) */
  grid-template-columns: var(--agent-width, clamp(20rem, 28.5%, 36rem)) var(--theme-space-3, 1rem) minmax(0, 1fr);
  height: 100%;
  padding: var(--theme-space-3, 1rem);
}

/* the AI agent hidden: a narrow bar on the left, the tabs get the rest */
.workspace.agent-collapsed {
  grid-template-columns: 2.75rem var(--theme-space-3, 1rem) minmax(0, 1fr);
}

.splitter {
  cursor: col-resize;
  position: relative;
  touch-action: none;
}

.splitter::after {
  background: transparent;
  border-radius: 2px;
  bottom: 0;
  content: "";
  left: calc(50% - 2px);
  position: absolute;
  top: 0;
  transition: background 0.15s;
  width: 4px;
}

.splitter:hover::after,
.splitter:focus-visible::after,
.workspace.resizing .splitter::after {
  background: var(--theme-color-primary);
}

.splitter:focus-visible {
  outline: none;
}

.workspace.agent-collapsed .splitter {
  cursor: default;
  pointer-events: none;
}

/* while dragging: the iframes would take the pointer, no text selection */
.workspace.resizing {
  cursor: col-resize;
  user-select: none;
}

.workspace.resizing iframe {
  pointer-events: none;
}

.agent-rail {
  align-items: center;
  background: none;
  border: 0;
  color: var(--theme-color-primary);
  cursor: pointer;
  display: none;
  flex: 1;
  flex-direction: column;
  font: inherit;
  font-weight: 600;
  gap: var(--theme-space-2, 0.5rem);
  padding: var(--theme-space-3, 1rem) 0;
}

.agent-rail span {
  writing-mode: vertical-rl;
}

.agent-rail:hover {
  background: var(--theme-color-ghost--hover);
}

/* only with two columns (the narrow layout shows the agent above the tabs, never hidden);
   the id selector of #agentPanel (display: flex) needs the same weight */
@media (min-width: 901px) {
  .workspace.agent-collapsed .agent-panel > :not(.agent-rail),
  .workspace.agent-collapsed .agent-panel > #agentPanel {
    display: none;
  }

  .workspace.agent-collapsed .agent-rail {
    display: flex;
  }
}

.panel {
  background: var(--theme-color-2);
  border: 1px solid var(--theme-color-soft-bdr);
  border-radius: var(--theme-default-border-radius, 4px);
  box-shadow: var(--theme-box-shadow-level-1);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.panel-header {
  align-items: center;
  border-bottom: 1px solid var(--theme-color-soft-bdr);
  display: flex;
  gap: var(--theme-space-2, 0.5rem);
  padding: var(--theme-space-2, 0.5rem) var(--theme-space-3, 1rem);
}

.panel-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: var(--theme-space-3, 1rem);
}

.panel-body.flush {
  padding: 0;
}

/* the panels of the design: flush header and tabs (the .panel rule of the admin page below adds
   padding and a gap), rounded, the faint line, no grey shadow */
.brand .workspace .panel {
  border-color: var(--brand-line);
  border-radius: 8px;
  box-shadow: none;
  gap: 0;
  padding: 0;
}

/* ---- chat with the AI agent (assets/chat.js) ---- */

#agentPanel {
  display: flex;
  overflow: hidden;
}

.chat {
  flex: 1;
  height: 100%;
  /* a flex item grows with its content (long tool lines) otherwise */
  min-width: 0;
}

.chat-intro {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-2, 0.5rem);
  margin-top: var(--theme-space-2, 0.5rem);
  text-align: center;
}

.agent-logins {
  align-items: center;
  background: var(--theme-color-ghost--selected);
  border-bottom: 1px solid var(--theme-color-x-weak-bdr);
  border-left: 3px solid var(--theme-color-primary);
  display: flex;
  font-size: 0.8125rem;
  gap: var(--theme-space-2, 0.5rem);
  padding: 0.375rem var(--theme-space-2, 0.5rem) 0.375rem var(--theme-space-3, 1rem);
}

.agent-logins[hidden] {
  display: none;
}

.agent-logins > span {
  flex: 1;
  min-width: 0;
}

.agent-logins b {
  color: var(--theme-color-std-text);
  font-weight: 600;
}

.agent-logins code {
  color: var(--theme-color-primary);
}

.agent-logins > ix-icon {
  color: var(--theme-color-primary);
  flex: none;
}

.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-1, 0.25rem);
  width: 100%;
}

.chat-suggestions ix-button {
  max-width: 100%;
  min-width: 0;
}

/* "/" commands of the chat input */
.chat-commands {
  background: var(--theme-color-1);
  border: 1px solid var(--theme-color-soft-bdr);
  border-radius: var(--theme-default-border-radius, 4px);
  box-sizing: border-box;
  max-height: 14rem;
  overflow-y: auto;
  width: 100%;
}

.chat-command {
  align-items: baseline;
  cursor: pointer;
  display: grid;
  gap: 0 var(--theme-space-2, 0.5rem);
  grid-template-columns: auto 1fr;
  padding: var(--theme-space-1, 0.25rem) var(--theme-space-2, 0.5rem);
}

.chat-command ix-icon {
  align-self: center;
  grid-row: span 2;
}

.chat-command.active,
.chat-command:hover {
  background: var(--theme-color-ghost--hover, rgb(255 255 255 / 8%));
}

.chat-command-name {
  font-family: var(--theme-font-family-mono, monospace);
}

.chat-command-description {
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* example prompts of the agent panel (dialog) */
.prompt-list {
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-2, 0.5rem);
}

.prompt-entry {
  border: 1px solid var(--theme-color-soft-bdr);
  border-radius: var(--theme-default-border-radius, 4px);
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-1, 0.25rem);
  padding: var(--theme-space-2, 0.5rem) var(--theme-space-3, 1rem);
}

/* a long prompt is a box of its own with a scrollbar, the buttons stay visible below it */
.prompt-entry-text {
  background: var(--theme-color-1, transparent);
  border: 1px solid var(--theme-color-soft-bdr);
  border-radius: var(--theme-default-border-radius, 4px);
  max-height: 10rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--theme-space-1, 0.25rem) var(--theme-space-2, 0.5rem);
  white-space: pre-wrap;
}

.prompt-entry .row {
  justify-content: flex-end;
}

.chat-model {
  color: var(--theme-color-soft-text);
}

.chat-answer {
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-2, 0.5rem);
  min-width: 0;
}

/* Markdown of the answers */
.chat-text {
  overflow-wrap: anywhere;
}

.chat-text > :first-child {
  margin-top: 0;
}

.chat-text > :last-child {
  margin-bottom: 0;
}

.chat-text p,
.chat-text ul,
.chat-text ol {
  margin: 0 0 var(--theme-space-2, 0.5rem);
}

.chat-text ul,
.chat-text ol {
  padding-left: 1.25rem;
}

.chat-text code {
  background: var(--theme-color-component-1);
  border-radius: 2px;
  font-size: 0.875em;
  padding: 0 0.25em;
}

.chat-text pre {
  background: var(--theme-color-component-1);
  border-radius: var(--theme-default-border-radius, 4px);
  overflow-x: auto;
  padding: var(--theme-space-2, 0.5rem);
}

.chat-text pre code {
  background: none;
  padding: 0;
}

.chat-text table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.chat-text th,
.chat-text td {
  border: 1px solid var(--theme-color-soft-bdr);
  padding: 0.25rem 0.5rem;
}

.chat-text a {
  color: var(--theme-color-primary);
}

/* tool calls of the agent, details on click */
.chat-tool {
  border: 1px solid var(--theme-color-soft-bdr);
  border-radius: var(--theme-default-border-radius, 4px);
  font-size: 0.875rem;
}

.chat-tool summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: var(--theme-space-1, 0.25rem);
  list-style: none;
  padding: var(--theme-space-1, 0.25rem) var(--theme-space-2, 0.5rem);
}

.chat-tool summary::-webkit-details-marker {
  display: none;
}

.chat-tool-label {
  color: var(--theme-color-soft-text);
  flex: none;
}

.chat-tool-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-tool-output {
  border-top: 1px solid var(--theme-color-soft-bdr);
  font-family: JetBrainsMono, 'Courier New', monospace;
  font-size: 0.8125rem;
  margin: 0;
  max-height: 16rem;
  overflow: auto;
  padding: var(--theme-space-2, 0.5rem);
  white-space: pre-wrap;
  word-break: break-all;
}

.chat-tool p {
  margin: 0;
  padding: var(--theme-space-1, 0.25rem) var(--theme-space-2, 0.5rem);
}

.chat-todos {
  border-top: 1px solid var(--theme-color-soft-bdr);
  list-style: none;
  margin: 0;
  padding: var(--theme-space-1, 0.25rem) var(--theme-space-2, 0.5rem);
}

.chat-todos li {
  align-items: baseline;
  display: flex;
  gap: var(--theme-space-1, 0.25rem);
}

.chat-todos li.completed span,
.chat-todos li.cancelled span {
  color: var(--theme-color-soft-text);
  text-decoration: line-through;
}

.chat-question {
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-1, 0.25rem);
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-2, 0.5rem);
  margin-top: var(--theme-space-1, 0.25rem);
}

.chat-option {
  max-width: 100%;
}

.chat-own-answer {
  width: 100%;
}

.chat-permission {
  border: 1px solid var(--theme-color-warning);
  border-radius: var(--theme-default-border-radius, 4px);
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-2, 0.5rem);
  padding: var(--theme-space-2, 0.5rem) var(--theme-space-3, 1rem);
}

/* tabs of the workspace with the reload button of the dashboard on the right */
.tabs-row {
  display: flex;
}

/* the tabs keep their own width: when they could shrink, ix-tabs found them overflowing after a
   resize, showed its own "…" menu, whose button took the space and kept them overflowing (a
   second "…" next to the expert tools); below 720 px only icons are shown, so they fit */
.tabs-row ix-tabs {
  flex: 0 0 auto;
}

/* the three dots of the expert tools (GEDI, Logs, Broker) right after the tabs; marked like a
   selected tab while one of them is shown */
.more-tabs {
  align-items: center;
  box-shadow: inset 0 calc(-1 * var(--theme-tab-indicator--height, 1px)) 0 var(--theme-tab-indicator--background);
  display: flex;
  gap: var(--theme-space-1, 0.25rem);
  padding: 0 var(--theme-space-1, 0.25rem);
}

.more-tabs.active {
  box-shadow: inset 0 -2px 0 var(--theme-color-primary);
}

/* a narrow panel (small window, wide AI agent): the tabs show only their icons, so they fit and
   ix-tabs does not add its own overflow menu (a second "…" next to the expert tools) */
.tabs-panel {
  container-type: inline-size;
}

@container (max-width: 720px) {
  .tab-label,
  .more-tabs-label {
    display: none;
  }

  /* ix-tab-item pads itself 1.5rem on each side (:host), too wide for icons only */
  .tabs-row ix-tab-item {
    padding: 0.0625rem 0.875rem;
  }
}

/* Pinned expert tools stay compact in a typical workspace; their tooltips carry the full name. */
@container (max-width: 1200px) {
  .expert-tab-label {
    display: none;
  }

  .tabs-row ix-tab-item[data-expert-tab] {
    padding: 0.0625rem 0.875rem;
  }
}

@container (max-width: 480px) {
  .tabs-row ix-tab-item {
    padding: 0.0625rem 0.5rem;
  }

  .tabs-tools {
    gap: 0;
    padding-right: var(--theme-space-1, 0.25rem);
  }
}

.expert-pin {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--theme-color-std-text);
  cursor: pointer;
  display: flex;
  height: 1.75rem;
  justify-content: center;
  margin-left: var(--theme-space-2, 0.5rem);
  margin-right: calc(-1 * var(--theme-space-1, 0.25rem));
  padding: 0;
  width: 1.75rem;
}

.expert-pin:hover,
.expert-pin:focus-visible {
  background: var(--theme-color-ghost--hover);
  outline: none;
}

.expert-item-copy {
  align-items: center;
  display: flex;
  gap: var(--theme-space-2, 0.5rem);
  min-width: 0;
}

.expert-item-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-tabs-label {
  color: var(--theme-color-primary);
  font-weight: 700;
  padding-right: var(--theme-space-1, 0.25rem);
}

/* buttons right of the tabs: they continue the line of ix-tabs with its own height and colour
   (a border of the whole row lay on top of the semi-transparent line of the tabs and made it
   look stronger there than under the buttons) */
.tabs-tools {
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  box-shadow: inset 0 calc(-1 * var(--theme-tab-indicator--height, 1px)) 0 var(--theme-tab-indicator--background);
  display: flex;
  gap: var(--theme-space-1, 0.25rem);
  padding-right: var(--theme-space-2, 0.5rem);
}

/* ---- log viewer (assets/logs.js) ---- */

.logs {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  height: 100%;
}

.logs-sidebar {
  border-right: 1px solid var(--theme-color-soft-bdr);
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-2, 0.5rem);
  min-height: 0;
  padding: var(--theme-space-2, 0.5rem);
}

.logs-input {
  width: 100%;
}

.logs-files {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.logs-group + .logs-group {
  margin-top: var(--theme-space-2, 0.5rem);
}

.logs-group-label {
  color: var(--theme-color-soft-text);
  padding: var(--theme-space-1, 0.25rem) var(--theme-space-1, 0.25rem);
}

.logs-file {
  align-items: baseline;
  background: none;
  border: 0;
  border-radius: var(--theme-default-border-radius, 4px);
  color: var(--theme-color-std-text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 0.875rem;
  gap: var(--theme-space-1, 0.25rem);
  padding: 0.3rem var(--theme-space-1, 0.25rem);
  text-align: left;
  width: 100%;
}

.logs-file:hover {
  background: var(--theme-color-ghost--hover);
}

.logs-file.selected {
  background: var(--theme-color-ghost--selected);
  color: var(--theme-color-primary);
}

.logs-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logs-file-size {
  color: var(--theme-color-soft-text);
  flex: none;
  font-size: 0.75rem;
}

.logs-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.logs-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--theme-color-soft-bdr);
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2, 0.5rem);
  padding: var(--theme-space-1, 0.25rem) var(--theme-space-2, 0.5rem);
}

.logs-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logs-search {
  max-width: 18rem;
}

.filter-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2, 0.5rem);
  margin-bottom: var(--theme-space-2, 0.5rem);
}

.filter-bar .filter-name {
  width: 18rem;
}

.filter-bar .filter-select {
  width: 14rem;
}

.logs-levels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-1, 0.25rem);
}

.logs-output {
  flex: 1;
  font-family: JetBrainsMono, 'Courier New', monospace;
  font-size: 0.8125rem;
  line-height: 1.45;
  min-height: 0;
  overflow: auto;
  padding: var(--theme-space-1, 0.25rem) 0;
}

.logs-output > ix-empty-state,
.logs-main > ix-empty-state {
  margin: auto;
}

.log-line {
  border-left: 3px solid transparent;
  display: grid;
  gap: var(--theme-space-2, 0.5rem);
  grid-template-columns: 7.5rem 4.5rem 11rem minmax(0, 1fr);
  padding: 0 var(--theme-space-2, 0.5rem);
  white-space: pre;
}

.log-line.plain {
  grid-template-columns: minmax(0, 1fr);
}

.log-line:hover {
  background: var(--theme-color-ghost--hover);
}

.log-line.error {
  background: color-mix(in srgb, var(--theme-color-alarm) 10%, transparent);
  border-left-color: var(--theme-color-alarm);
}

.log-line.warning {
  border-left-color: var(--theme-color-warning);
}

.log-line.continued {
  color: var(--theme-color-soft-text);
}

.log-time,
.log-manager {
  color: var(--theme-color-soft-text);
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-level {
  font-weight: 700;
}

.log-line.error .log-level {
  color: var(--theme-color-alarm);
}

.log-line.warning .log-level {
  color: var(--theme-color-warning);
}

.log-line.info .log-level {
  color: var(--theme-color-soft-text);
}

.log-message {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* without wrapping the lines keep their full length and the output scrolls sideways: one
   column as wide as the longest line (at least the panel), so all lines have the same width */
.logs-output:not(.wrap) {
  align-content: start;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr);
}

.logs-output:not(.wrap) .log-line {
  grid-template-columns: 7.5rem 4.5rem 11rem max-content;
}

.logs-output:not(.wrap) .log-line.plain {
  grid-template-columns: max-content;
}

.logs-output:not(.wrap) .log-message {
  overflow: visible;
}

.logs-output.wrap .log-line {
  white-space: pre-wrap;
}

.logs-output.wrap .log-message {
  overflow-wrap: anywhere;
}

.log-line mark {
  background: var(--theme-color-warning);
  border-radius: 2px;
  color: var(--theme-color-warning--contrast, #000);
}

.logs-status {
  border-top: 1px solid var(--theme-color-soft-bdr);
  padding: var(--theme-space-1, 0.25rem) var(--theme-space-2, 0.5rem);
}

/* the Dashboard tab until webserver.js answers (loadDashboard in index.html) */
#dashboardPanel {
  position: relative;
}

.dashboard-wait {
  align-items: center;
  background: var(--theme-color-2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  inset: 0;
  justify-content: center;
  padding: 1.5rem;
  position: absolute;
  text-align: center;
}

.dashboard-wait-title {
  color: var(--theme-color-std-text);
  font-size: 1.25rem;
  font-weight: 600;
}

.ring.ring-small {
  height: 72px;
  margin: 0 0 0.75rem;
  width: 72px;
}

.ring.ring-small img {
  width: 28px;
}

.dashboard-frame {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

@media (max-width: 600px) {
  .hero {
    padding-top: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .chapter {
    font-size: 1.6rem;
  }
}

/* ---- progress view: start, reset, download, end (index.html) ---- */

#starting {
  align-items: center;
  display: flex;
  justify-content: center;
}

.load {
  margin: auto;
  max-width: 35rem;
  text-align: center;
  width: 100%;
}

/* the ring around the WinCC OA logo */
.ring {
  height: 132px;
  margin: 0 auto 1.75rem;
  position: relative;
  width: 132px;
}

.ring-track {
  animation: ring-spin 1.4s linear infinite;
  inset: 0;
  position: absolute;
}

.ring-bg {
  stroke: #0f2f5f;
}

.ring-arc {
  stroke: var(--brand-accent);
}

.ring img {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
}

.ring.failed .ring-track {
  animation: none;
}

.ring.failed .ring-arc {
  stroke: #ef4a5c;
  stroke-dasharray: none;
}

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

.load-title {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 600;
  margin: 0.5rem 0 0.375rem;
}

.load-sub {
  color: var(--brand-muted);
  margin: 0;
}

.load-bar {
  background: #3a4462;
  height: 4px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.load-bar > div {
  background: linear-gradient(90deg, #00bedc, #00d7a0);
  height: 4px;
  transition: width 0.6s ease;
  width: 0;
}

.load-bar.failed > div {
  background: #ef4a5c;
}

.steps {
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.steps li {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.steps li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.step-icon {
  align-items: center;
  border-radius: 50%;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 26px;
  height: 26px;
  justify-content: center;
}

.steps li.done {
  color: #ffffff;
}

.steps li.done .step-icon {
  background: var(--brand-green);
  color: var(--brand-bg);
}

.steps li.active {
  color: #ffffff;
  font-weight: 600;
}

.steps li.active .step-icon {
  border: 2px solid var(--brand-accent);
  color: var(--brand-accent);
}

.steps li.active .step-icon ix-icon {
  animation: step-pulse 1.2s ease-in-out infinite;
}

@keyframes step-pulse {
  50% { opacity: 0.3; }
}

.steps li.pending {
  color: #6d7a9c;
}

.steps li.pending .step-icon {
  border: 2px solid #4a5577;
}

.steps li.failed {
  color: #ffffff;
}

.steps li.failed .step-icon {
  background: #ef4a5c;
  color: var(--brand-bg);
}

.load-time {
  color: var(--brand-muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  margin-top: 0.875rem;
}

.msg-err {
  background: rgba(239, 74, 92, 0.12);
  border-left: 3px solid #ef4a5c;
  color: #ffd0d6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0.75rem 0.875rem;
  text-align: left;
}

.msg-err-text {
  display: flex;
  gap: 0.5rem;
  overflow-wrap: anywhere;
}

.msg-err-text ix-icon {
  color: #ef4a5c;
  flex: none;
  margin-top: 0.15rem;
}

.load-hint {
  align-items: center;
  color: var(--brand-muted);
  display: flex;
  font-size: 0.85rem;
  gap: 0.375rem;
  justify-content: center;
  margin-top: 1.375rem;
}

.load-hint ix-icon {
  color: var(--brand-accent);
}

@media (prefers-reduced-motion: reduce) {
  .ring-track,
  .steps li.active .step-icon ix-icon {
    animation: none;
  }
}

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

.table-wrap {
  overflow-x: auto;
}

table.data {
  border-collapse: collapse;
  width: 100%;
}

table.data td.actions {
  padding-block: 0;
  padding-right: 0;
}

table.data th {
  color: var(--theme-color-soft-text);
  font-weight: 700;
  text-align: left;
}

table.data th,
table.data td {
  border-bottom: 1px solid var(--theme-color-soft-bdr);
  padding: var(--theme-space-2, 0.5rem) var(--theme-space-2, 0.5rem);
  white-space: nowrap;
}

table.data tbody tr:hover {
  background: var(--theme-color-ghost--hover, var(--theme-color-ghost));
}

table.data .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

code,
table.data code {
  font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
  font-size: 0.85em;
}

.nowrap {
  flex-wrap: nowrap;
}

/* ---- KPI row (admin) ---- */

.kpis {
  display: grid;
  gap: var(--theme-space-3, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin-bottom: var(--theme-space-5, 1.5rem);
}

.kpis ix-kpi {
  min-width: 0;
}

.settings {
  margin-bottom: var(--theme-space-5, 1.5rem);
}

.settings-grid {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  gap: var(--theme-space-2, 0.5rem) var(--theme-space-5, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.setting-label {
  color: var(--theme-color-soft-text);
}

.login {
  margin: var(--theme-space-7, 3rem) auto;
  max-width: 26rem;
}

.login ix-input {
  width: 100%;
}

.login ix-card-content {
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-3, 1rem);
}

/* ---- saved projects: continue on the start page, the code in the session ---- */

.code-block {
  align-items: center;
  display: flex;
  gap: var(--theme-space-2, 0.5rem);
  margin: var(--theme-space-2, 0.5rem) 0 var(--theme-space-3, 1rem);
}

.project-code {
  background: var(--theme-color-1);
  border: 1px solid var(--theme-color-soft-bdr);
  border-radius: var(--theme-default-border-radius, 4px);
  flex: 1;
  font-size: 0.8125rem;
  min-width: 0;
  padding: var(--theme-space-2, 0.5rem);
  user-select: all;
  white-space: nowrap;
}

/* ---- tour of the workspace (assets/tour.js) ---- */

.tour-backdrop {
  inset: 0;
  position: fixed;
  /* the levels of iX dialogs: above the application header (sticky + 1) */
  z-index: var(--theme-z-index-modal-backdrop, 1040);
}

/* the shadow darkens everything but the highlighted element */
.tour-highlight {
  border-radius: var(--theme-default-border-radius, 4px);
  box-shadow: 0 0 0 2px var(--theme-color-primary), 0 0 0 100vmax rgb(0 0 0 / 55%);
  pointer-events: none;
  position: fixed;
  transition: left 0.2s, top 0.2s, width 0.2s, height 0.2s;
  z-index: calc(var(--theme-z-index-modal-backdrop, 1040) + 1);
}

.tour-card {
  background: var(--theme-color-2);
  border: 1px solid var(--theme-color-soft-bdr);
  border-radius: var(--theme-default-border-radius, 4px);
  box-shadow: var(--theme-box-shadow-level-4);
  color: var(--theme-color-std-text);
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-2, 0.5rem);
  max-width: calc(100vw - 2rem);
  padding: var(--theme-space-3, 1rem);
  position: fixed;
  transition: left 0.2s, top 0.2s;
  width: 24rem;
  z-index: var(--theme-z-index-modal, 1050);
}

.tour-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.tour-text {
  margin: 0;
}

.tour-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-1, 0.25rem);
}

@media (prefers-reduced-motion: reduce) {
  .tour-highlight,
  .tour-card {
    transition: none;
  }
}

/* ---- confirm dialog ---- */

dialog.confirm {
  background: var(--theme-color-2);
  border: 1px solid var(--theme-color-soft-bdr);
  border-radius: var(--theme-default-border-radius, 4px);
  box-shadow: var(--theme-box-shadow-level-4);
  color: var(--theme-color-std-text);
  max-width: 28rem;
  padding: var(--theme-space-4, 1.5rem);
}

/* project code and MQTT address: wide enough for the address in one line */
dialog.confirm.code-dialog {
  max-width: min(44rem, calc(100vw - 2rem));
  width: 100%;
}

dialog.code-dialog .project-code {
  overflow-wrap: anywhere;
  white-space: normal;
}

dialog.confirm::backdrop {
  background: rgb(0 0 0 / 50%);
}

/* details of a session (admin page) */
dialog.confirm.details {
  max-width: min(48rem, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
  width: 100%;
  padding: var(--theme-space-3, 1rem) var(--theme-space-4, 1.5rem) var(--theme-space-4, 1.5rem);
}

dialog.details[open] {
  display: flex;
  flex-direction: column;
}

dialog.details .details-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

dialog.details .details-title {
  margin: var(--theme-space-3, 1rem) 0 var(--theme-space-1, 0.25rem);
}

.details-list {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: 0.25rem 1rem;
  margin: 0;
}

.details-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.client-cell code {
  white-space: nowrap;
}

/* help of the workspace */
dialog.help-dialog .help-section {
  margin-top: var(--theme-space-3, 1rem);
}

dialog.help-dialog .help-section > .typography-label {
  color: var(--theme-color-primary);
  font-weight: 600;
}

dialog.help-dialog .help-section p {
  margin: var(--theme-space-1, 0.25rem) 0 0;
}

dialog.help-dialog .help-section .details-list {
  margin-top: var(--theme-space-1, 0.25rem);
}

dialog.help-dialog code:not(.project-code) {
  background: var(--theme-color-1);
  color: var(--theme-color-primary);
  padding: 0 0.25rem;
  overflow-wrap: anywhere;
}

/* reset: the project is deleted, so the warning must be impossible to miss */
dialog.confirm.reset-dialog {
  border: 2px solid var(--theme-color-alarm);
  max-width: min(36rem, calc(100vw - 2rem));
  outline: none;
}

dialog.reset-dialog .reset-title {
  align-items: center;
  color: var(--theme-color-alarm);
  display: flex;
  gap: var(--theme-space-2, 0.5rem);
}

dialog.reset-dialog .reset-warning {
  background: color-mix(in srgb, var(--theme-color-alarm) 18%, transparent);
  border-left: 4px solid var(--theme-color-alarm);
  margin: var(--theme-space-3, 1rem) 0;
  padding: var(--theme-space-2, 0.5rem) var(--theme-space-3, 1rem);
}

dialog.reset-dialog p {
  margin: var(--theme-space-2, 0.5rem) 0 0;
}

dialog.reset-dialog .reset-list {
  margin: var(--theme-space-1, 0.25rem) 0 0;
  padding-left: 1.25rem;
}

dialog.reset-dialog ix-checkbox {
  display: block;
  margin-top: var(--theme-space-3, 1rem);
}

dialog.confirm .row {
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: var(--theme-space-4, 1.5rem);
}

@media (max-width: 900px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace,
  .workspace.agent-collapsed {
    gap: var(--theme-space-3, 1rem);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(16rem, auto) minmax(30rem, 1fr);
    height: auto;
  }

  /* one column: no splitter, no hiding */
  .splitter,
  #agentCollapse {
    display: none;
  }
}

/* ---- admin page: MCP servers ---- */

.mcp-form {
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-2, 0.5rem);
}

.mcp-grid {
  display: grid;
  gap: var(--theme-space-2, 0.5rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.mcp-grid ix-input,
.mcp-grid ix-textarea,
.mcp-grid ix-select,
.mcp-grid ix-number-input,
.mcp-form > ix-textarea {
  width: 100%;
}

.mcp-form ix-button {
  align-self: flex-start;
}

/* admin page: prompt log, the whole prompt with its line breaks, long ones scroll */
table.data .prompt-log-text {
  max-height: 12rem;
  max-width: 48rem;
  overflow-wrap: anywhere;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* admin page: an entry of the prompt log window of a project */
.prompt-log-entry {
  border-bottom: 1px solid var(--theme-color-soft-bdr);
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-1, 0.25rem);
  padding: var(--theme-space-2, 0.5rem) 0;
}

.prompt-log-entry .prompt-log-text {
  max-height: 12rem;
  overflow-wrap: anywhere;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* admin page: the label of an access code, changed in place */
table.data .code-label {
  min-width: 14rem;
}

/* admin page: example prompts, the text in two lines at most */
table.data .prompt-text {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  max-width: 36rem;
  overflow: hidden;
}

/* summary of the project and the meters of disk and memory next to each other in the header */
#headerStatus {
  align-items: center;
  display: inline-flex;
  gap: var(--theme-space-2, 0.5rem);
}

/* header of the workspace: less used buttons only with their icon (and tooltip) when narrow */
@media (max-width: 1600px) {
  .header-label.wide { display: none; }
  /* iX gives every ix-button min-width 5rem (:host), page styles win over it */
  ix-button:has(> .header-label.wide) { min-width: 2rem; }
}

@media (max-width: 1300px) {
  .header-label.mid { display: none; }
  ix-button:has(> .header-label.mid) { min-width: 2rem; }
}

/* meters of disk and memory: one compact block, Disk above RAM, each a label, a thin bar with the
   share of the limit and the percent (the numbers in the tooltip) */
.usage-meters {
  display: inline-grid;
  gap: 0.125rem;
  line-height: 1;
}

.usage-meter {
  --usage-color: var(--theme-color-success);
  align-items: center;
  color: var(--theme-color-soft-text);
  cursor: default;
  display: grid;
  font-size: 0.6875rem;
  gap: 0.375rem;
  grid-template-columns: 1.75rem 3rem 2rem;
  white-space: nowrap;
}

.usage-meter.warning { --usage-color: var(--theme-color-warning); }
.usage-meter.alarm { --usage-color: var(--theme-color-alarm); }

.usage-meter .usage-bar {
  background: rgb(255 255 255 / 15%);
  border-radius: 2px;
  height: 0.3125rem;
  overflow: hidden;
}

.usage-meter .usage-bar > span {
  background: var(--usage-color);
  display: block;
  height: 100%;
}

.usage-meter .usage-value {
  color: var(--theme-color-std-text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.usage-meter.warning .usage-value,
.usage-meter.alarm .usage-value {
  color: var(--usage-color);
  font-weight: 600;
}


/* ---- admin page: layout with the iX menu ---- */

ix-content.admin {
  height: 100%;
}

.view {
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-4, 1.5rem);
}

.view .kpis {
  margin-bottom: 0;
}

.panel {
  background: var(--theme-color-2);
  border: 1px solid var(--theme-color-soft-bdr);
  border-radius: var(--theme-default-border-radius, 4px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-3, 1rem);
  min-width: 0;
  padding: var(--theme-space-3, 1rem) var(--theme-space-4, 1.5rem);
}

.panel.table-wrap {
  padding: var(--theme-space-1, 0.25rem) var(--theme-space-2, 0.5rem);
}

.panel-head {
  align-items: center;
  display: flex;
  gap: var(--theme-space-2, 0.5rem);
  min-height: 2rem;
}

.panel-head ix-icon {
  color: var(--theme-color-primary);
}

.tiles {
  display: grid;
  gap: var(--theme-space-4, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.state-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2, 0.5rem) var(--theme-space-5, 1.5rem);
}

table.data th.bar-col,
table.data td.bar-col {
  min-width: 10rem;
  width: 30%;
}

.settings-fields {
  display: grid;
  gap: var(--theme-space-4, 1.5rem);
}

/* the models of the chat: one full-width panel with a compact table */
.settings-wide {
  grid-column: 1 / -1;
}

table.model-slots td {
  vertical-align: middle;
}

table.model-slots .slot-col {
  white-space: nowrap;
  width: 1%;
}

table.model-slots ix-input,
table.model-slots ix-select {
  width: 100%;
}

table.model-slots td:nth-child(2) {
  width: 50%;
}

table.model-slots td:nth-child(3) {
  width: 25%;
}

.setting {
  display: grid;
  gap: var(--theme-space-1, 0.25rem);
}

.setting ix-input,
.setting ix-select,
.setting ix-number-input {
  width: 100%;
}

.setting-toggle {
  align-items: center;
  display: grid;
  gap: var(--theme-space-1, 0.25rem) var(--theme-space-3, 1rem);
  grid-template-columns: 1fr auto;
}

.setting-toggle > .muted {
  grid-column: 1 / -1;
}

.bar {
  background: var(--theme-color-primary);
  border-radius: 2px;
  height: 0.5rem;
  min-width: 2px;
}

.login-head {
  align-items: center;
  display: flex;
  gap: var(--theme-space-3, 1rem);
}

.login-head ix-icon {
  color: var(--theme-color-primary);
}

/* model, skill, tools and documents above the chat input */
.chat-toolbar {
  align-items: center;
  display: flex;
  gap: var(--theme-space-1, 0.25rem);
  min-width: 0;
  width: 100%;
}

.chat-toolbar > * {
  flex: none;
}

.chat-toolbar .spacer {
  flex: 1 1 0;
  min-width: 0;
}

/* the agent is working: a line at the end of the chat */
.chat-working {
  align-items: center;
  color: var(--theme-color-soft-text);
  display: flex;
  font-size: 0.875rem;
  gap: var(--theme-space-2, 0.5rem);
  min-width: 0;
  padding: var(--theme-space-1, 0.25rem) 0;
}

.chat-working-icon {
  animation: chat-working-pulse 1.6s ease-in-out infinite;
  color: var(--theme-color-primary);
  flex: none;
}

.chat-working-text {
  animation: chat-working-shimmer 2s linear infinite;
  background: linear-gradient(90deg, var(--theme-color-soft-text) 0%, var(--theme-color-std-text) 50%, var(--theme-color-soft-text) 100%);
  background-clip: text;
  background-size: 200% 100%;
  color: transparent;
  -webkit-background-clip: text;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-working-text::after {
  animation: chat-working-dots 1.4s steps(4, end) infinite;
  content: '';
  display: inline-block;
  width: 1.2em;
}

.chat-working-time {
  flex: none;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

@keyframes chat-working-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.12) rotate(18deg); }
}

@keyframes chat-working-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes chat-working-dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-working-icon, .chat-working-text, .chat-working-text::after { animation: none; }
  .chat-working-text { color: var(--theme-color-soft-text); }
}

/* messages undone with /undo (until the next message removes them or /redo restores them) */
.chat-reverted {
  display: none !important;
}

.chat-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px dashed var(--theme-color-soft-bdr);
  border-radius: var(--theme-default-border-radius);
  color: var(--theme-color-soft-text);
}

.chat-notice span {
  flex: 1;
}


/* start page: login dialog and the list of the power-user sessions */
.login-dialog ix-input,
.login-dialog ix-textarea { display: block; width: 100%; margin-bottom: 12px; }
.poweruser-table { width: 100%; margin-top: 12px; }
.poweruser-table .note-col { width: 40%; }
.poweruser-table .session-note { max-width: none; }
#poweruserSection .row { align-items: flex-end; }

/* admin page: the code of a saved project */
.project-code { display: block; margin: 8px 0 16px; padding: 8px 12px; user-select: all; font-size: 15px;
  background: var(--theme-color-component-1, #23232d); border-radius: 4px; }

/* notes of power-user sessions: start page list and admin page */
.session-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.session-note { max-width: 260px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- OPC UA browser (assets/opcua.js): tree left, the selected node right ---- */

#opcuaPanel:not([hidden]),
#datamodelPanel:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.opcua-bar {
  align-items: center;
  border-bottom: 1px solid var(--theme-color-x-weak-bdr);
  display: flex;
  gap: var(--theme-space-2, 0.5rem);
  padding: var(--theme-space-1, 0.25rem) var(--theme-space-2, 0.5rem) var(--theme-space-1, 0.25rem) var(--theme-space-3, 1rem);
}

.opcua-bar > ix-icon,
.opcua-bar code {
  color: var(--theme-color-primary);
}

.opcua-intro {
  border-bottom: 1px solid var(--theme-color-x-weak-bdr);
  padding-bottom: var(--theme-space-2, 0.5rem);
}

.opcua-intro .opcua-bar {
  border-bottom: 0;
}

.opcua-note {
  margin: 0;
  max-width: 60rem;
  padding: 0 var(--theme-space-3, 1rem) var(--theme-space-1, 0.25rem);
}

.opcua-intro .code-block {
  margin: 0 var(--theme-space-3, 1rem);
  max-width: 28rem;
}

.opcua-body {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
  min-height: 0;
}

.opcua-tree-wrap {
  border-right: 1px solid var(--theme-color-x-weak-bdr);
  overflow: auto;
  padding: var(--theme-space-2, 0.5rem) 0;
}

.opcua-tree,
.opcua-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.opcua-tree ul {
  padding-left: 1rem;
}

.opcua-tree li > .muted,
.opcua-tree li.muted,
.opcua-tree li.opcua-error {
  padding: 0.25rem 1rem;
}

.opcua-tree li[aria-expanded="false"] > ul {
  display: none;
}

.opcua-row {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.25rem;
  padding: 0.125rem var(--theme-space-2, 0.5rem);
  white-space: nowrap;
}

.opcua-row:hover {
  background: var(--theme-color-ghost--hover);
}

.opcua-row.selected {
  background: var(--theme-color-ghost--selected);
  box-shadow: inset 2px 0 0 var(--theme-color-primary);
}

.opcua-toggle {
  align-items: center;
  background: none;
  border: 0;
  color: var(--theme-color-soft-text);
  cursor: pointer;
  display: inline-flex;
  height: 1.25rem;
  justify-content: center;
  padding: 0;
  width: 1.25rem;
}

.opcua-tree li[aria-expanded="true"] > .opcua-row .opcua-toggle ix-icon {
  transform: rotate(90deg);
}

.opcua-icon.opcua-Object {
  color: var(--theme-color-primary);
}

.opcua-icon.opcua-Variable {
  color: var(--theme-color-success);
}

.opcua-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.opcua-detail {
  overflow: auto;
  padding: var(--theme-space-3, 1rem);
}

.opcua-head {
  align-items: center;
  display: flex;
  gap: var(--theme-space-2, 0.5rem);
  margin-bottom: var(--theme-space-3, 1rem);
}

.opcua-head code {
  color: var(--theme-color-soft-text);
}

.opcua-table td {
  white-space: nowrap;
}

/* long values (arrays, structures) cut, the whole value as tooltip */
.opcua-table td.opcua-value {
  max-width: 24rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opcua-attributes dd {
  overflow-wrap: anywhere;
}

.opcua-table .opcua-value,
.opcua-attributes dd:nth-of-type(4) {
  color: var(--theme-color-std-text);
  font-family: var(--theme-font-family-monospace, monospace);
}

.opcua-table a {
  color: var(--theme-color-primary);
  text-decoration: none;
}

.opcua-table a:hover {
  text-decoration: underline;
}

.opcua-ok {
  color: var(--theme-color-success);
}

.opcua-error,
.opcua-bad {
  color: var(--theme-color-alarm);
}

@media (max-width: 900px) {
  .opcua-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(10rem, 40%) 1fr;
  }

  .opcua-tree-wrap {
    border-bottom: 1px solid var(--theme-color-x-weak-bdr);
    border-right: 0;
  }
}

/* ---- download dialog: the WinCC OA project, later a container and an Edge app ---- */
dialog.download-dialog {
  max-width: 40rem;
  width: calc(100vw - 2rem);
}

.download-options {
  display: grid;
  gap: var(--theme-space-2, 0.5rem);
  margin: var(--theme-space-3, 1rem) 0;
}

.download-option {
  align-items: center;
  border: 1px solid var(--theme-color-soft-bdr);
  display: grid;
  gap: var(--theme-space-3, 1rem);
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: var(--theme-space-3, 1rem);
}

.download-option > ix-icon {
  color: var(--theme-color-primary);
}

.download-option.disabled > ix-icon,
.download-option.disabled .typography-label {
  color: var(--theme-color-weak-text);
}

.download-option.disabled > ix-button {
  opacity: 0.45;
}

.download-option-text p {
  margin: var(--theme-space-1, 0.25rem) 0 0;
}

@media (max-width: 560px) {
  .download-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .download-option > ix-button {
    grid-column: 1 / -1;
  }
}

/* ---- data model viewer (assets/datamodel.js; tree, tables and details of the OPC UA view) ---- */
.dm-side {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.dm-tools {
  border-bottom: 1px solid var(--theme-color-x-weak-bdr);
  display: grid;
  gap: var(--theme-space-1, 0.25rem);
  padding: var(--theme-space-2, 0.5rem);
}

.dm-modes {
  display: flex;
  gap: var(--theme-space-1, 0.25rem);
}

.dm-search {
  width: 100%;
}

.dm-tree-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: var(--theme-space-1, 0.25rem) 0;
}

.dm-count {
  background: var(--theme-color-component-1);
  border-radius: 0.625rem;
  color: var(--theme-color-soft-text);
  font-size: 0.75rem;
  margin-left: auto;
  padding: 0 0.4rem;
}

.dm-type {
  font-size: 0.75rem;
  margin-left: auto;
  padding-left: 0.5rem;
}

.dm-section {
  margin: var(--theme-space-3, 1rem) 0 var(--theme-space-1, 0.25rem);
}

.dm-path {
  display: inline-block;
}

.dm-node {
  color: var(--theme-color-soft-text);
  font-weight: 700;
}

.dm-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-1, 0.25rem) var(--theme-space-3, 1rem);
}

.dm-links a,
.opcua-head a {
  color: var(--theme-color-primary);
  text-decoration: none;
}

.dm-links a:hover,
.opcua-head a:hover {
  text-decoration: underline;
}

.dm-element:not(:empty) {
  border-top: 1px solid var(--theme-color-x-weak-bdr);
  margin-top: var(--theme-space-3, 1rem);
  padding-top: var(--theme-space-2, 0.5rem);
}

.dm-element-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.dm-config {
  margin-bottom: var(--theme-space-2, 0.5rem);
}

.dm-config-name {
  align-items: baseline;
  display: flex;
  font-weight: 700;
  gap: var(--theme-space-2, 0.5rem);
}

.dm-config-name code {
  color: var(--theme-color-soft-text);
  font-weight: 400;
}

@media (max-width: 1300px) {
  .dm-hint {
    display: none;
  }
}

/* Local devices (assets/link.js) */
#devicesPanel:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.link-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--theme-space-3, 1rem);
  overflow: auto;
  padding: var(--theme-space-3, 1rem);
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-3, 1rem);
  max-width: 52rem;
}

.link-status {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2, 0.5rem);
}

.link-status p {
  flex-basis: 100%;
  margin: 0;
}

.link-section {
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-2, 0.5rem);
  /* a flex item would grow with the table: the table scrolls in its own box on a phone */
  min-width: 0;
}

.link-section .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.link-body .code-block {
  max-width: 100%;
}

.link-body .code-block code {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.link-section p {
  margin: 0;
}

.link-step {
  margin-top: var(--theme-space-2, 0.5rem);
}

.link-buttons {
  align-items: center;
  flex-wrap: wrap;
  gap: var(--theme-space-2, 0.5rem);
}

.link-buttons .spacer {
  flex: 1;
}

.link-footer {
  border-top: 1px solid var(--theme-color-x-weak-bdr);
  padding-top: var(--theme-space-3, 1rem);
}

.link-devices td {
  vertical-align: top;
}

.link-input {
  background: var(--theme-color-component-1, transparent);
  border: 1px solid var(--theme-color-soft-bdr);
  border-radius: var(--theme-input--border-radius, 0);
  color: var(--theme-color-std-text);
  font: inherit;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
}

.link-input:focus {
  border-color: var(--theme-color-primary);
  outline: none;
}

.link-warn {
  color: var(--theme-color-warning-text, var(--theme-color-warning));
}

.link-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-2, 0.5rem);
}

.link-download {
  align-items: center;
  border: 1px solid var(--theme-color-soft-bdr);
  color: var(--theme-color-std-text);
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  text-decoration: none;
}

.link-download.primary {
  border-color: var(--theme-color-primary);
  color: var(--theme-color-primary);
}

.link-download:hover {
  background: var(--theme-color-ghost--hover);
}
