/* visual-development-toolkit: product styles; shared workspace behavior is versioned separately. */
button[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
}
button:not(:disabled):active {
  transform: translateY(1px);
}
input,
select,
textarea {
  color: inherit;
}
button,
select,
input[type="checkbox"] {
  min-height: 32px;
}
input,
select,
textarea {
  border-radius: 0;
}
.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.action-row button {
  min-height: 40px;
}
.access-button {
  font:
    11px Arial,
    sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
  min-height: 38px;
}
.work-tabs {
  display: flex;
  gap: 0;
  padding: 0 32px;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  background: #f8f8f4;
}
.work-tabs button {
  padding: 14px 24px 14px 0;
  margin-right: 28px;
  font-size: 12px;
  text-align: left;
}
.work-tabs button[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 7px;
}
.work-tabs button:hover {
  color: #465b25;
}
.empty h2 {
  font-size: 25px;
  margin-bottom: 10px;
}
.empty p {
  font-size: 15px;
  line-height: 1.5;
}
.empty button {
  margin-top: 18px;
}
.package-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #ccc;
  font:
    11px Arial,
    sans-serif;
}
.package-toolbar select {
  font-size: 11px;
  background: transparent;
  padding: 5px;
  border: 1px solid #999;
}
.package-toolbar label {
  display: flex;
  gap: 7px;
  align-items: center;
}
.package-toolbar button {
  font-size: 11px;
}
.package-toolbar .solid {
  padding: 10px 14px;
}
.artifact-item {
  position: relative;
  min-width: 0;
}
.artifact-select {
  position: absolute;
  z-index: 1;
  top: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  background: #fffffff0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.artifact-select input {
  width: 18px;
  min-height: 18px;
  accent-color: #151515;
}
.artifact-item.is-selected .artifact-preview {
  outline: 2px solid #151515;
  outline-offset: -2px;
}
.artifact-item .artifact {
  width: 100%;
}
.artifact-grid.as-list {
  display: block;
}
.artifact-grid.as-list .artifact-item {
  display: flex;
  align-items: center;
  border-top: 1px solid #bbb;
}
.artifact-grid.as-list .artifact-select {
  position: static;
  flex-shrink: 0;
  margin-right: 15px;
}
.artifact-grid.as-list .artifact {
  flex: 1;
  border: 0;
  width: auto;
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 25px;
  align-items: center;
  padding: 10px 0;
}
.artifact-grid.as-list .artifact-preview {
  height: 64px;
  width: 90px;
}
.artifact-grid.as-list .artifact-preview strong {
  font-size: 16px;
  letter-spacing: 0;
}
.artifact-grid.as-list .artifact-preview span {
  display: none;
}
.artifact-grid.as-list .artifact-preview > div {
  padding: 6px;
}
.artifact-grid.as-list .artifact-caption,
.artifact-grid.as-list .artifact-file {
  font-size: 12px;
  margin: 0;
  padding: 0;
}
.artifact-grid.as-list .artifact-file {
  font-size: 10px;
}
.artifact-grid.as-list .artifact-preview img {
  max-width: 90px;
  max-height: 64px;
}
.package-result {
  border-top: 1px solid #555;
  padding: 18px 0;
  font:
    12px/1.5 Arial,
    sans-serif;
}
.file-details {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 8px;
  font:
    12px/1.5 Arial,
    sans-serif;
  margin: 20px 0;
}
.file-details dd {
  overflow-wrap: anywhere;
}
.file-details .mono {
  font-size: 10px;
}
.artifact-preview strong {
  overflow-wrap: anywhere;
}
.dialog-head h2 {
  font:
    20px/1.2 Georgia,
    serif;
  margin: 0;
}
.dialog-body .action-row {
  margin-top: 20px;
}
.dialog-body > p + p {
  margin-top: 15px;
}
#auth-message {
  font:
    14px/1.5 Arial,
    sans-serif;
  color: #363e28;
  margin-top: 20px;
}
#notice.error {
  background: #7b2424;
  color: #fff;
}
.workspace-status {
  font-weight: 700;
}
.workspace-recovery {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #bbb;
}
.workspace-recovery h3 {
  font:
    22px Georgia,
    serif;
}
.workspace-recovery p {
  font:
    14px/1.5 Arial,
    sans-serif;
  margin: 10px 0;
}
.restore-file {
  font:
    12px Arial,
    sans-serif;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.restore-file input {
  font-size: 12px;
  max-width: 280px;
}
.workspace-recovery [role="status"] {
  color: #723333;
}
@media (max-width: 1050px) {
  .package-toolbar {
    align-items: flex-start;
  }
  .package-toolbar .action-row {
    justify-content: flex-end;
  }
}
@media (max-width: 700px) {
  button,
  select {
    min-height: 40px;
  }
  .access-button {
    font-size: 10px;
  }
  .work-tabs {
    padding: 0 20px;
    justify-content: space-between;
  }
  .work-tabs button {
    margin: 0;
    padding: 14px 10px 14px 0;
    font-size: 11px;
  }
  .toolkit-header {
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .toolkit-header > strong {
    font-size: 30px;
  }
  .toolkit-header .access-button {
    order: 4;
    margin-left: 0;
    min-height: 28px;
  }
  .toolkit-description {
    display: block;
    line-height: 1.4;
  }
  .toolkit-view {
    font-size: 12px;
    gap: 12px;
  }
  .toolkit-toolbar {
    gap: 15px;
    align-items: stretch;
  }
  .toolkit-toolbar > div {
    gap: 8px;
    flex-wrap: wrap;
  }
  .toolkit-toolbar button {
    font-size: 10px;
  }
  .toolkit-search input {
    width: 100%;
  }
  .package-toolbar {
    display: block;
  }
  .package-toolbar > .action-row {
    margin-top: 12px;
    justify-content: space-between;
    gap: 8px;
  }
  .package-toolbar .action-row > a,
  .package-toolbar .action-row > [data-recorded-run] {
    flex-basis: 100%;
    text-align: left;
    line-height: 1.5;
  }
  .toolkit-footer {
    flex-wrap: wrap;
  }
  .package-toolbar button,
  .package-toolbar select {
    font-size: 10px;
  }
  .package-toolbar label {
    width: 100%;
    justify-content: space-between;
  }
  .package-toolbar select {
    width: 70%;
  }
  .artifact-select {
    width: 32px;
    height: 32px;
  }
  .artifact-select input {
    width: 20px;
    height: 20px;
  }
  .artifact-preview strong {
    font-size: 25px;
  }
  .artifact-grid.as-list .artifact {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 15px 0;
  }
  .artifact-grid.as-list .artifact-preview {
    display: none;
  }
  .artifact-grid.as-list .artifact-caption {
    font-size: 12px;
  }
  .artifact-grid.as-list .artifact-file {
    font-size: 10px;
  }
  dialog .dialog-body {
    padding: 20px;
  }
  .file-details {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .file-details dd {
    margin-bottom: 10px;
  }
}
