apps/operator-dashboard/src/pages/beauty-generator-lab.css

CSS · 8,792 source bytes · SHA-256 1609566b0a58d6a6f4a8116e8981bc105967b4637606a1c1d69d658c7ed3cee2
.beauty-lab {
  --lab-panel: #0b162b;
  --lab-panel-soft: #111f38;
  --lab-line: #263957;
  --lab-cyan: #5fe1d2;
  --lab-violet: #9f8cff;
}

.beauty-lab__layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.beauty-lab__controls {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.beauty-lab__controls .panel {
  padding: 16px;
  background: linear-gradient(180deg, rgba(17, 31, 56, 0.96), rgba(9, 20, 40, 0.98));
}

.beauty-lab__controls .panel__header {
  margin-bottom: 14px;
}

.lab-field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.lab-field:last-child {
  margin-bottom: 0;
}

.lab-field > span {
  color: #bdc9dd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lab-field select,
.lab-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--lab-line);
  border-radius: 8px;
  background: #071224;
  color: #f6f8ff;
}

.lab-field select {
  padding: 0 34px 0 11px;
}

.lab-field input {
  padding: 0 10px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.lab-field input[aria-invalid="true"] {
  border-color: var(--red);
}

.lab-help {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid #587091;
  border-radius: 50%;
  color: #9eb0ce;
  cursor: help;
  font-size: 10px;
}

.lab-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
}

.lab-seed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
}

.lab-seed input {
  border-radius: 8px 0 0 8px;
}

.lab-seed button {
  min-width: 42px;
  border: 1px solid var(--lab-line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #142744;
  color: var(--lab-cyan);
}

.lab-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  cursor: pointer;
}

.lab-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.lab-check span {
  display: grid;
  gap: 2px;
  font-size: 13px;
  font-weight: 700;
}

.lab-check small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.lab-wide-button {
  width: 100%;
  justify-content: center;
}

.beauty-lab__workspace {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.lab-error,
.lab-loading {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--lab-line);
  border-radius: 10px;
  background: var(--lab-panel);
}

.lab-error {
  flex-wrap: wrap;
  border-color: #6d3040;
  background: #241424;
}

.lab-error span {
  flex: 1 1 260px;
  color: #e4b5c0;
}

.lab-error button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #fff;
}

.lab-loading svg {
  color: var(--lab-cyan);
}

.lab-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.lab-preview-grid.is-comparing {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lab-preview-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  background: var(--lab-panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.lab-preview-card > header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}

.lab-preview-card > header > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lab-preview-card > header span:first-child {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.lab-preview-card > header strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-browser {
  overflow: hidden;
  border-top: 1px solid var(--lab-line);
  background: #eef0ef;
}

.lab-browser__chrome {
  display: flex;
  height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  background: #111a29;
}

.lab-browser__chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #53647e;
}

.lab-browser__chrome i:first-child {
  background: #f0736e;
}

.lab-browser__chrome i:nth-child(2) {
  background: #e8ba57;
}

.lab-browser__chrome i:nth-child(3) {
  background: #62c69a;
}

.lab-browser__chrome span {
  min-width: 0;
  margin-left: 4px;
  overflow: hidden;
  color: #8292aa;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-browser iframe {
  display: block;
  width: 100%;
  height: min(72vh, 780px);
  border: 0;
  background: #fff;
}

.lab-fingerprint {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  overflow: hidden;
  border: 1px solid var(--lab-line);
  border-radius: 10px;
  background: var(--lab-panel);
}

.lab-fingerprint > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  padding: 13px 14px;
  border-right: 1px solid var(--lab-line);
}

.lab-fingerprint > div:last-child {
  border-right: 0;
}

.lab-fingerprint svg {
  grid-row: span 2;
  color: var(--lab-cyan);
}

.lab-fingerprint span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.lab-fingerprint strong {
  overflow: hidden;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-inspector {
  overflow: hidden;
}

.lab-tabs {
  display: flex;
  gap: 6px;
  padding: 0 14px 12px;
  overflow-x: auto;
}

.lab-tabs button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--lab-line);
  border-radius: 8px;
  background: #09162b;
  color: var(--muted);
  white-space: nowrap;
}

.lab-tabs button.is-active {
  border-color: #5267aa;
  background: #172b52;
  color: #fff;
}

.lab-code-header {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-block: 1px solid var(--lab-line);
  background: #071225;
  color: var(--muted);
  font-size: 11px;
}

.lab-code-header button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.lab-inspector pre {
  max-height: 520px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  background: #050d1b;
  color: #c8d7eb;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.lab-seed-grid {
  padding: 16px;
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  background: var(--lab-panel);
}

.lab-seed-grid > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.lab-seed-grid > header span {
  color: var(--lab-cyan);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.lab-seed-grid h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.lab-seed-grid > header button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.lab-seed-grid > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lab-seed-grid article {
  overflow: hidden;
  border: 1px solid var(--lab-line);
  border-radius: 8px;
  background: #071225;
}

.lab-seed-grid iframe {
  display: block;
  width: 300%;
  height: 580px;
  border: 0;
  transform: scale(0.3334);
  transform-origin: top left;
  background: #fff;
}

.lab-seed-grid article {
  height: 258px;
}

.lab-seed-grid article footer {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-height: 64px;
  margin-top: -386px;
  padding: 10px;
  border-top: 1px solid var(--lab-line);
  background: #071225;
}

.lab-seed-grid article footer strong {
  font-size: 11px;
}

.lab-seed-grid article footer span {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 1180px) {
  .beauty-lab__layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .lab-preview-grid.is-comparing {
    grid-template-columns: 1fr;
  }

  .lab-seed-grid > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .beauty-lab__layout {
    grid-template-columns: 1fr;
  }

  .beauty-lab__controls {
    position: static;
  }

  .lab-browser iframe {
    height: 660px;
  }
}

@media (max-width: 560px) {
  .lab-field-grid,
  .lab-fingerprint,
  .lab-seed-grid > div {
    grid-template-columns: 1fr;
  }

  .lab-fingerprint > div {
    border-right: 0;
    border-bottom: 1px solid var(--lab-line);
  }

  .lab-fingerprint > div:last-child {
    border-bottom: 0;
  }

  .lab-preview-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .lab-tabs {
    padding-inline: 10px;
  }
}