.demo-root,
.demo-root * {
  box-sizing: border-box;
}

.demo-root {
  --demo-accent: #dc2751;
  --demo-border: #414141;
  --demo-muted: #c0c0c0;
  color: #fff;
  background: #101010;
  border: 1px solid var(--demo-border);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 28px);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  min-width: 0;
  max-width: 100%;
  color-scheme: dark;
}

.demo-root p,
.demo-root h3,
.demo-root h4 {
  margin: 0;
}

.demo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}

.demo-introduction {
  flex: 1 1 280px;
  min-width: 0;
}

.demo-root .demo-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  margin: 12px 0 8px;
  color: #fff;
}

.demo-description {
  color: var(--demo-muted);
  max-width: 72ch;
}

.demo-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.demo-metric {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 17px;
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  background: #1b1b1b;
  min-width: 0;
  overflow-wrap: anywhere;
}

.demo-metric-label,
.demo-muted {
  color: var(--demo-muted);
  font-size: 13px;
}

.demo-metric-value {
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.demo-panel,
.demo-progress-panel {
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  padding: 18px;
  background: #1b1b1b;
  min-width: 0;
}

.demo-root .demo-subtitle {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 650;
  color: #fff;
}

.demo-toolbar,
.demo-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
}

.demo-root .demo-checkbox {
  appearance: auto;
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--demo-accent);
  flex: 0 0 auto;
}

.demo-root .demo-button,
.demo-root .demo-input,
.demo-root .demo-select {
  font: inherit;
  line-height: 1.35;
  min-height: 44px;
  border-radius: 7px;
  color: #fff;
  margin: 0;
  max-width: 100%;
}

.demo-root .demo-button {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--demo-accent);
  background: var(--demo-accent);
  font-weight: 650;
  text-decoration: none;
  white-space: normal;
  text-align: center;
}

.demo-root .demo-button:hover {
  background: #bc2044;
  border-color: #bc2044;
}

.demo-root .demo-button-secondary {
  background: #252525;
  border-color: #666;
  font-weight: 500;
}

.demo-root .demo-button-secondary:hover {
  background: #353535;
  border-color: #aaa;
}

.demo-root .demo-input,
.demo-root .demo-select {
  background: #101010;
  border: 1px solid #737373;
  padding: 10px 12px;
  width: 100%;
}

.demo-root .demo-select {
  appearance: auto;
  cursor: pointer;
}

.demo-root .demo-input::placeholder {
  color: #a9a9a9;
  opacity: 1;
}

.demo-root :is(button, input, select, [tabindex]):focus-visible {
  outline: 3px solid #ff8ba6;
  outline-offset: 3px;
}

.demo-root .demo-completed:focus {
  outline: 2px solid #ff8ba6;
  outline-offset: 4px;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #666;
  border-radius: 20px;
  background: #252525;
  color: #e1e1e1;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.demo-pill-accent {
  color: #ffd3dd;
  background: #3c1721;
  border-color: #a63b54;
}

.demo-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin-top: 14px;
  border-radius: 6px;
  scrollbar-color: #777 #101010;
  scrollbar-width: thin;
}

.demo-root .demo-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: #fff;
  margin: 0;
}

.demo-root .demo-table th,
.demo-root .demo-table td {
  padding: 12px 10px;
  border: 0;
  border-bottom: 1px solid var(--demo-border);
  text-align: left;
  vertical-align: middle;
  background: transparent;
}

.demo-root .demo-table thead th {
  color: var(--demo-muted);
  font-weight: 500;
  font-size: 12px;
}

.demo-root .demo-table tbody tr:last-child th,
.demo-root .demo-table tbody tr:last-child td {
  border-bottom: 0;
}

.demo-product-name {
  font-weight: 500;
}

.demo-root .demo-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.demo-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--demo-border);
  min-width: 0;
}

.demo-list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.demo-list-details {
  display: grid;
  gap: 5px;
  flex: 1 1 190px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.demo-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 1 330px;
}

.demo-inline-note,
.demo-completed {
  font-size: 12px;
  color: #dedede;
}

.demo-inline-note {
  flex-basis: 100%;
  text-align: right;
}

.demo-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.demo-column {
  background: #1b1b1b;
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  padding: 14px;
  min-width: 0;
}

.demo-root .demo-column .demo-subtitle {
  font-size: 15px;
}

.demo-root .demo-column-total {
  margin: 9px 0 15px;
  color: #ffd3dd;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.demo-opportunity {
  border: 1px solid #4b4b4b;
  background: #101010;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.demo-root .demo-opportunity p {
  margin: 6px 0 10px;
}

.demo-opportunity-name {
  font-size: 14px;
}

.demo-money {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.demo-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.demo-label {
  color: #e1e1e1;
  font-size: 12px;
  font-weight: 500;
}

.demo-list-item > .demo-field {
  flex: 0 0 160px;
}

.demo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  gap: 14px;
  align-items: end;
  margin-top: 16px;
}

.demo-progress-panel {
  display: grid;
  gap: 10px;
}

.demo-progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #414141;
  accent-color: var(--demo-accent);
}

.demo-progress::-webkit-progress-bar {
  background: #414141;
}

.demo-progress::-webkit-progress-value {
  background: var(--demo-accent);
}

.demo-progress::-moz-progress-bar {
  background: var(--demo-accent);
}

.demo-root .demo-note,
.demo-root .demo-status {
  color: var(--demo-muted);
  font-size: 12px;
  line-height: 1.6;
}

.demo-root .demo-status {
  margin-top: 20px;
  border-top: 1px solid var(--demo-border);
  padding-top: 15px;
  min-height: 3em;
}

.demo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1000px) {
  .demo-pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-form {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .demo-form > .demo-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .demo-metrics,
  .demo-pipeline,
  .demo-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-metric {
    padding: 14px;
  }

  .demo-panel,
  .demo-progress-panel {
    padding: 14px;
  }

  .demo-list-item {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .demo-list-details,
  .demo-row-actions,
  .demo-list-item > .demo-field {
    flex: none;
  }

  .demo-row-actions {
    justify-content: flex-start;
  }

  .demo-inline-note {
    text-align: left;
  }

  .demo-form > .demo-button {
    justify-self: stretch;
  }

  .demo-root .demo-input,
  .demo-root .demo-select {
    font-size: 16px;
  }
}
