/* visual-development-toolkit: product styles; shared workspace behavior is versioned separately. */
.toolkit-shell {
  background: #f9f9f6;
  min-height: 100vh;
  padding: 0 20px;
}
.toolkit-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid #333;
}
.toolkit-header > strong {
  font:
    31px Georgia,
    serif;
  letter-spacing: -1.5px;
}
.toolkit-description {
  font:
    16px Georgia,
    serif;
  flex: 1;
}
.toolkit-view {
  display: flex;
  gap: 18px;
  font:
    13px Georgia,
    serif;
}
.toolkit-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #c4c4bd;
  padding: 13px 0;
  font-size: 11px;
}
.toolkit-toolbar > div {
  display: flex;
  gap: 23px;
}
.toolkit-toolbar button {
  min-height: 28px;
}
.toolkit-toolbar button[aria-pressed="true"] {
  text-decoration: none;
  font-weight: 700;
}
.toolkit-search {
  display: flex;
  gap: 16px;
  align-items: center;
}
.toolkit-search input {
  border: 0;
  border-bottom: 1px solid #777;
  border-radius: 0;
  background: transparent;
  padding: 7px 0;
  width: 180px;
  font-size: 12px;
}
.toolkit-count {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  font:
    10px Consolas,
    monospace;
}
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 15px;
  padding: 3px 0 26px;
}
.artifact {
  min-width: 0;
  text-align: left;
  display: block;
}
.artifact:hover .artifact-caption > span:first-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.artifact-preview {
  aspect-ratio: 15 / 14;
  height: auto;
  overflow: hidden;
  background: #eaeae5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artifact-preview img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
.artifact-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.artifact-source {
  width: 100%;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  background: #fff;
  text-align: left;
  font: 9px/1.5 Consolas, monospace;
}
.artifact-source pre {
  flex: 1;
  margin: 14px 0;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.artifact-preview .artifact-source-app,
.artifact-preview .artifact-source-evidence {
  background: #191b17;
  color: #fff;
}
.artifact-preview .artifact-source-plugin {
  background: #e8e6da;
}
.artifact-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  font-size: 10px;
  line-height: 1.2;
}
.artifact-file {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  font:
    8px Consolas,
    monospace;
  color: #585852;
}
.artifact-file span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80%;
}
.artifact-html {
  padding: 14px;
  background: white;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: Georgia, serif;
}
.artifact-html strong {
  font-size: 18px;
  line-height: 1.03;
}
.artifact-html span {
  font-size: 9px;
  line-height: 1.3;
  margin-top: 14px;
}
.artifact-script {
  padding: 16px;
  background: #181a17;
  color: #f3f5ed;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.artifact-script span {
  font:
    9px Consolas,
    monospace;
}
.artifact-script strong {
  font:
    27px/0.95 Georgia,
    serif;
  letter-spacing: -1px;
}
.artifact-chapter {
  background: #e8e5db;
  width: 100%;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.artifact-chapter span,
.artifact-chapter i {
  font:
    9px Consolas,
    monospace;
}
.artifact-chapter strong {
  font:
    28px/0.94 Arial,
    sans-serif;
  letter-spacing: -1px;
}
.artifact-csv {
  background: #fff;
  width: 100%;
  height: 100%;
  padding: 14px;
  font:
    8px/2 Consolas,
    monospace;
  position: relative;
}
.artifact-csv div {
  border-bottom: 1px solid #888;
}
.artifact-csv strong {
  display: block;
  font:
    40px Arial,
    sans-serif;
  letter-spacing: -3px;
  margin-top: 9px;
}
.artifact-hash {
  padding: 14px;
  background: #101010;
  color: #f4f4f1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.artifact-hash strong {
  font:
    58px/0.8 Arial,
    sans-serif;
  font-weight: 700;
  letter-spacing: -5px;
}
.artifact-hash span {
  font:
    7px/1.4 Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.artifact-operations {
  background: #e3e5da;
  width: 100%;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font:
    8px Consolas,
    monospace;
}
.artifact-operations strong {
  font:
    30px Georgia,
    serif;
  margin-top: auto;
}
.artifact-call {
  padding: 13px;
  background: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.artifact-call > span {
  font:
    8px Consolas,
    monospace;
}
.artifact-call strong {
  font:
    19px/1.02 Arial,
    sans-serif;
  letter-spacing: -0.7px;
}
.artifact-props {
  background: #151515;
  color: #eee;
  width: 100%;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.artifact-props strong {
  font:
    34px/0.9 Consolas,
    monospace;
  letter-spacing: -2px;
}
.artifact-props span {
  font:
    8px/1.4 Consolas,
    monospace;
}
.artifact-source {
  background: #eee;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 15px;
}
.artifact-source span {
  font:
    9px Arial,
    sans-serif;
}
.artifact-source strong {
  font:
    36px/0.83 Georgia,
    serif;
}
.artifact-contract {
  padding: 14px;
  background: #333b31;
  color: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.artifact-contract strong {
  font:
    34px/0.95 Georgia,
    serif;
}
.artifact-contract span {
  font:
    8px Consolas,
    monospace;
}
.toolkit-footer {
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  font:
    10px/1.3 Georgia,
    serif;
}
.artifact-grid.as-list {
  display: block;
}
.as-list .artifact {
  width: 100%;
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #bbb;
  padding: 9px 0;
}
.as-list .artifact-preview {
  height: 60px;
}
.as-list .artifact-caption,
.as-list .artifact-file {
  font-size: 12px;
  padding: 0;
  margin: 0;
}
.as-list .artifact-preview > div {
  font-size: 7px;
}
.as-list .artifact-preview strong {
  font-size: 13px;
}
.as-list .artifact-preview span {
  display: none;
}
@media (max-width: 1100px) {
  .artifact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .artifact-preview {
    height: auto;
  }
  .toolkit-description {
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  .toolkit-shell {
    padding: 0 14px;
  }
  .toolkit-header {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 85px;
    padding: 15px 0;
  }
  .toolkit-header > strong {
    font-size: 27px;
  }
  .toolkit-description {
    order: 3;
    flex-basis: 100%;
    font-size: 14px;
  }
  .toolkit-view {
    margin-left: auto;
    font-size: 12px;
    gap: 10px;
  }
  .toolkit-header .lang {
    gap: 4px;
  }
  .toolkit-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 9px 0 12px;
  }
  .toolkit-toolbar > div {
    justify-content: space-between;
    gap: 6px;
    font-size: 10px;
  }
  .toolkit-search {
    justify-content: space-between;
  }
  .toolkit-search input {
    width: 70%;
    padding: 7px;
    font-size: 12px;
  }
  .toolkit-count {
    font-size: 9px;
  }
  .artifact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 12px;
  }
  .artifact-preview {
    height: auto;
  }
  .artifact-caption {
    font-size: 10px;
  }
  .artifact-file {
    font-size: 8px;
    gap: 4px;
  }
  .toolkit-footer {
    font-size: 9px;
    line-height: 1.4;
  }
  .toolkit-footer span:last-child {
    max-width: 52%;
    text-align: right;
  }
  .artifact-grid.as-list .artifact {
    grid-template-columns: 50px 1fr;
    gap: 12px;
  }
  .as-list .artifact-caption {
    font-size: 11px;
  }
  .as-list .artifact-file {
    grid-column: 2;
    font-size: 9px;
    margin-top: -16px;
  }
  .as-list .artifact-preview {
    grid-row: span 2;
    height: 58px;
  }
}
