/* A deliberately bounded demo, with no styles leaking into the portfolio. */
.board-demo-root {
  margin-top: 36px;
  scroll-margin-top: 112px;
}
.demo-pending {
  min-height: 700px;
}
.demo-pending > figure + figure {
  display: none;
}
.demo-tabs {
  position: relative;
  isolation: isolate;
  display: flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  gap: 4px;
  background: #ededee;
  border-radius: 999px;
}
.demo-tab {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #57575c;
  padding: 12px 24px;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition:
    background-color 250ms,
    color 250ms,
    box-shadow 250ms;
}
.demo-tab[aria-selected="true"] {
  color: #0a0a0a;
}
.demo-tab-indicator {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px #0000000c;
}
.indicator-ready .demo-tab-indicator {
  transition:
    transform 400ms cubic-bezier(0.22, 1.18, 0.36, 1),
    width 400ms cubic-bezier(0.22, 1.18, 0.36, 1),
    height 250ms ease;
}
.demo-description {
  font-size: 15px;
  margin: 18px 0 24px;
  color: var(--muted);
  height: 3.3em;
}
.demo-frame {
  height: clamp(560px, 62.5vw, 738px);
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  background: #151515;
  color: #fff;
  color-scheme: dark;
}
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: #191919;
  flex-shrink: 0;
}
.demo-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.demo-reset,
.demo-post {
  font: inherit;
  font-size: 14px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  background: #303030;
  color: #fff;
  transition: background-color 250ms;
}
.demo-reset:hover,
.demo-post:hover {
  background: #6b3457;
}
.demo-view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.demo-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 100%;
}
.demo-column {
  background: #212121;
  border-radius: 20px;
  padding: 16px;
}
.demo-column h4,
.demo-task-heading h4,
.demo-discussion-title {
  color: #fff;
  font-size: 18px;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.demo-task {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 18px;
  margin-bottom: 14px;
  text-align: left;
  font: inherit;
  border: 0;
  background: #2c2c2c;
  color: #fff;
  border-radius: 16px;
  cursor: pointer;
  transition:
    background-color 250ms,
    transform 250ms;
}
.demo-task:hover {
  background: #363036;
  transform: translateY(-2px);
}
.demo-task-title {
  font-size: 16px;
  color: #fff;
}
.demo-task-copy {
  font-size: 14px;
  line-height: 1.5;
  color: #c3c3c3;
}
.demo-task-progress {
  font-size: 12px;
  color: #bbb;
}
.demo-task-open {
  font-size: 13px;
  color: #eaa6d3;
}
.demo-task-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.demo-task-heading h4 {
  font-size: 24px;
  margin: 0;
}
.demo-badge {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #eaa6d3;
  white-space: nowrap;
}
.demo-task-intro {
  font-size: 15px;
  color: #ccc;
  margin: 16px 0 24px;
}
.demo-checklist {
  padding: 16px;
  border-radius: 18px;
  background: #242424;
}
.demo-check-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  column-gap: 16px;
  align-items: center;
  padding: 6px 0;
}
.demo-check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  cursor: pointer;
}
.demo-check-label input {
  accent-color: #228440;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.demo-check-label > span {
  flex: 1;
  padding: 10px 16px;
  border-radius: 22px;
  background: #333;
}
.demo-check-label > .demo-completed {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  background: #207f3d;
  color: #fff;
}
.demo-owner select {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: #383838;
  color: #fff;
  width: 100%;
}
.demo-dependency {
  grid-column: 1 / -1;
  color: #aaa;
  font-size: 12px;
  margin: 8px 0 0 32px;
}
.demo-discussion-title {
  margin-top: 28px;
}
.demo-comment {
  padding: 16px;
  background: #262626;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.demo-comment strong {
  color: #fff;
  font-size: 14px;
}
.demo-comment p {
  color: #ccc;
  font-size: 14px;
  margin: 8px 0 0;
  white-space: pre-wrap;
}
.demo-comment-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.demo-comment-form label {
  font-size: 14px;
}
.demo-comment-form textarea {
  box-sizing: border-box;
  width: 100%;
  resize: vertical;
  max-height: 180px;
  min-height: 80px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  padding: 14px;
  color: #fff;
  border: 1px solid #484848;
  border-radius: 14px;
  background: #202020;
}
.demo-comment-form small {
  font-size: 12px;
  color: #aaa;
}
.demo-post {
  justify-self: start;
  background: #763558;
}
.demo-post:disabled {
  opacity: 0.5;
  cursor: default;
}
.demo-notice {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 0;
}
.board-demo :is(button, select, textarea, .demo-view):focus-visible {
  outline: 2px solid #d366ac;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .demo-tabs {
    width: 100%;
  }
  .demo-tab {
    flex: 1;
    padding: 12px;
    font-size: 14px;
  }
  .demo-description {
    height: 5em;
  }
  .demo-frame {
    height: 600px;
    border-radius: 22px;
  }
  .demo-bar {
    padding: 16px;
    gap: 8px;
  }
  .demo-brand {
    font-size: 20px;
  }
  .demo-reset {
    padding: 10px 12px;
    font-size: 12px;
  }
  .demo-view {
    padding: 16px;
  }
  .demo-columns {
    grid-template-columns: 1fr;
  }
  .demo-check-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .demo-task-heading {
    align-items: start;
    flex-direction: column;
  }
  .demo-owner {
    margin-left: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .board-demo *,
  .board-demo *::before {
    animation: none !important;
    transition: none !important;
  }
  .demo-task:hover {
    transform: none;
  }
}
