/* the example board's page (views/example.ts): the project page's layout, read-only */
.ex-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--rule, rgba(127, 127, 127, 0.3));
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2, inherit);
}
.ex-badge svg {
  width: 14px;
  height: 14px;
}
/* no attachments: nothing is sent from here */
.ex-ws [data-attach],
.ex-ws [data-file-input] {
  display: none;
}
.ex-viewer,
.ex-viewer .viewer3d {
  height: 100%;
}
.ex-ws .panel {
  overflow: auto;
}

/* "Edit in KiCad": the project page's menu, as a disclosure */
.ex-kmenu {
  position: relative;
}
.ex-kmenu > summary {
  list-style: none;
  cursor: pointer;
}
.ex-kmenu > summary::-webkit-details-marker {
  display: none;
}
.ex-kmenu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: 320px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  /* the app's own surface and text (app.css): readable in both themes */
  background: var(--bg-1);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.ex-kitem {
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.ex-kitem:hover,
.ex-kitem:focus-visible {
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.ex-kitem .ki svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.ex-kitem .kt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.ex-kitem .kt span {
  opacity: 0.7;
}
.ex-kfoot {
  margin: 4px 10px 6px;
  font-size: 12px;
  opacity: 0.65;
}

/* "Open in KiCad": KiCad's mark (Simple Icons, views/logos.ts) on a button in its blue - the page's main action */
.ex-kicad {
  gap: 8px;
  background: #314cb0;
  border-color: #314cb0;
  color: #fff;
  font-weight: 600;
}
.ex-kicad:hover {
  background: #3d5bd0;
  border-color: #3d5bd0;
}
.btn.ex-kicad .ex-kicad-logo {
  /* the mark is a wordmark (the view box cropped to it): as tall as the label's capitals and a bit more */
  width: 45px;
  height: 18px;
  fill: #fff;
}
.ex-kicad > svg:last-child {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

/* the agent's steps in the example's conversation */
.ex-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #4fb06a 16%, transparent);
  color: #6fcf8a;
  font-size: 11.5px;
  font-weight: 600;
}
.ex-tag svg {
  width: 12px;
  height: 12px;
}

/* the chat before anything is asked */
.ex-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  opacity: 0.6;
}
.ex-empty svg {
  width: 26px;
  height: 26px;
}

/* the first visit's tour (example.js tour()): a frame round one part of the page, a card beside it */
.ex-tour-frame {
  position: fixed;
  z-index: 60;
  border: 2px solid #4fb06a;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(5, 8, 12, 0.55);
  pointer-events: none;
  transition: left 0.35s ease, top 0.35s ease, width 0.35s ease, height 0.35s ease;
}
.ex-tour-card {
  position: fixed;
  z-index: 61;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  /* the app's own surface and text (app.css): readable in both themes */
  background: var(--bg-1);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  transition: left 0.35s ease, top 0.35s ease;
}
.ex-tour-card h3 {
  margin: 2px 0 6px;
  font-size: 16px;
}
.ex-tour-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.85;
}
.ex-tour-card .ex-tour-n {
  font-size: 12px;
  opacity: 0.6;
}
.ex-tour-act {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
