:root {
  color-scheme: light;
  --bg: #f4f4f5;
  --panel: #ffffff;
  --panel-soft: #f7f7f8;
  --line: #dedfe3;
  --line-soft: #ececef;
  --text: #0d1117;
  --muted: #687083;
  --muted-2: #9298a5;
  --black: #121318;
  --black-hover: #24262d;
  --disabled: #969696;
  --accent: #19b8b0;
  --danger: #c93636;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 16px 40px rgba(17, 24, 39, 0.05);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 280px),
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-shell {
  width: calc(100% - 48px);
  max-width: 1164px;
  margin: 0 auto;
  padding: 16px 0 42px;
}

.hero {
  display: grid;
  justify-items: center;
  gap: 16px;
  min-width: 0;
  padding: 0 0 54px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  font-size: 15px;
  font-weight: 700;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(34px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 850;
  text-wrap: balance;
}

.hero h1 span {
  white-space: nowrap;
}

.hero p {
  max-width: 860px;
  margin: 0;
  color: #637085;
  font-size: 19px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.steps {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 27px;
  color: #566071;
  white-space: nowrap;
}

.steps i {
  display: block;
  width: 32px;
  height: 1px;
  background: #dfe1e6;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.step span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #677083;
  font-weight: 700;
}

.step strong {
  font-weight: 500;
}

.step.is-active span {
  color: #fff;
  background: var(--black);
}

.step.is-active strong {
  color: var(--text);
  font-weight: 700;
}

.step.is-done span {
  color: #fff;
  background: #6b7280;
}

.workbench {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 32px;
  min-width: 0;
  align-items: start;
}

.left-rail {
  display: grid;
  min-width: 0;
  gap: 20px;
}

.panel,
.result-panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.panel-title-row,
.result-header,
.title-lockup {
  display: flex;
  align-items: flex-start;
}

.panel-title-row {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.title-lockup {
  gap: 12px;
}

.title-lockup h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.title-lockup p {
  margin: 2px 0 0;
  color: #5f687b;
  font-size: 12px;
  line-height: 1.35;
}

.icon-bubble,
.upload-orb,
.empty-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f2f2f4;
  color: #737782;
}

.icon-bubble {
  width: 32px;
  height: 32px;
}

.icon-bubble svg {
  width: 17px;
  height: 17px;
}

.icon-bubble path,
.icon-bubble circle,
.upload-orb path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-count {
  color: #4e586b;
  font-size: 14px;
}

.dropzone {
  display: grid;
  min-width: 0;
  min-height: 132px;
  place-items: center;
  gap: 12px;
  padding: 26px 22px;
  border: 2px dashed #e0e2e8;
  border-radius: 19px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone strong {
  max-width: 245px;
  color: #0f1523;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background: #f2fffd;
  transform: translateY(-1px);
}

.dropzone.is-hidden {
  display: none !important;
}

.upload-orb {
  width: 43px;
  height: 43px;
}

.upload-orb svg {
  width: 20px;
  height: 20px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 106px);
  gap: 12px;
  align-items: start;
}

.preview-grid:empty {
  display: none;
}

.preview-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #f7f7f8;
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 14, 18, 0.7);
  cursor: pointer;
  line-height: 1;
}

.preview-index {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  width: 23px;
  height: 21px;
  place-items: center;
  border-radius: 0 10px 0 0;
  color: #fff;
  background: rgba(12, 14, 18, 0.65);
  font-size: 11px;
  font-weight: 750;
}

.preview-add-card {
  display: grid;
  width: 106px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px dashed #e0e2e8;
  border-radius: 12px;
  color: #6d7280;
  background: #fff;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.preview-add-card:hover {
  border-color: #c9ccd5;
  background: #fafafa;
  color: #111827;
}

.limit-note {
  margin: 10px 0 0;
  color: #9a6a1c;
  font-size: 12px;
}

.controls-panel {
  display: grid;
  gap: 21px;
  padding-top: 24px;
  padding-bottom: 25px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  gap: 8px;
}

.segment {
  min-height: 33px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #0f1724;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease;
}

.segment.is-active {
  color: #fff;
  border-color: var(--black);
  background: var(--black);
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  min-width: 0;
}

.field span {
  color: #667085;
  font-size: 13px;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  color: #111827;
  background: #f5f5f6;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

select {
  min-height: 41px;
  padding: 0 39px 0 13px;
  border-radius: 13px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #7b8089 50%),
    linear-gradient(135deg, #7b8089 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 18px,
    calc(100% - 14px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  font-size: 13px;
}

select:disabled {
  color: #505866;
  cursor: not-allowed;
  opacity: 1;
}

textarea {
  min-height: 120px;
  resize: vertical;
  padding: 14px 12px 42px;
  border-radius: 13px;
  font-size: 14px;
  line-height: 1.55;
}

textarea::placeholder {
  color: #687287;
}

select:focus,
textarea:focus {
  border-color: #a6abb6;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.textarea-wrap {
  position: relative;
  min-width: 0;
}

.helper-btn {
  position: absolute;
  right: 11px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #10141d;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.helper-btn:hover {
  border-color: #c8cbd2;
}

.help-dot {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid #9aa1ae;
  border-radius: 50%;
  color: #626977;
  font-size: 10px;
  line-height: 1;
}

.wand {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
}

.wand::before {
  position: absolute;
  top: 6px;
  left: 1px;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: #10141d;
  transform: rotate(-42deg);
  content: "";
}

.wand::after {
  position: absolute;
  top: 0;
  right: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10141d;
  box-shadow:
    -8px 2px 0 -1px #10141d,
    -3px 9px 0 -1px #10141d;
  content: "";
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px 17px;
}

.generate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border-radius: 14px;
  color: #fff;
  background: var(--black);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.generate-btn:hover:not(:disabled) {
  background: var(--black-hover);
  transform: translateY(-1px);
}

.generate-btn:disabled {
  background: var(--disabled);
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.12);
  cursor: not-allowed;
}

.result-panel {
  display: grid;
  min-height: 568px;
  padding: 26px;
  grid-template-rows: auto 1fr;
}

.result-header {
  justify-content: space-between;
  gap: 18px;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #687083;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.state-pill.is-busy {
  color: #096b67;
  border-color: rgba(25, 184, 176, 0.34);
  background: #effdfb;
}

.state-pill.is-error {
  color: var(--danger);
  border-color: rgba(201, 54, 54, 0.24);
  background: #fff3f3;
}

.state-pill.is-complete {
  color: #175f3d;
  border-color: rgba(31, 130, 82, 0.26);
  background: #f0fbf5;
}

.result-body {
  display: grid;
  min-height: 470px;
}

.state-view {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-view {
  gap: 19px;
  color: #536074;
  font-size: 14px;
  line-height: 1.45;
}

.empty-icon {
  width: 64px;
  height: 64px;
}

.sparkle {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.sparkle::before,
.sparkle::after {
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
  content: "";
}

.sparkle::before {
  width: 15px;
  height: 15px;
  color: currentColor;
}

.sparkle::after {
  right: 0;
  bottom: 0;
  left: auto;
  top: auto;
  width: 7px;
  height: 7px;
}

.sparkle.small {
  width: 15px;
  height: 15px;
}

.sparkle.gray {
  width: 25px;
  height: 25px;
  color: #757982;
}

.loading-view {
  gap: 13px;
  color: #576173;
}

.loading-view h3,
.failed-view h3,
.complete-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.loading-view p,
.failed-view p {
  max-width: 360px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #e7e8ec;
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.progress-track {
  overflow: hidden;
  width: min(100%, 360px);
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: #eceef2;
}

.progress-track span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--black), var(--accent));
  animation: progress 1.8s ease-in-out infinite;
}

.failed-view {
  gap: 12px;
  color: #8a3d3d;
}

.error-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--danger);
  font-size: 24px;
  font-weight: 800;
}

.failed-view button,
.complete-head button {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 10px;
  color: #fff;
  background: var(--black);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.complete-view {
  display: grid;
  gap: 20px;
  padding-top: 33px;
}

.complete-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.complete-head span {
  display: block;
  margin-bottom: 4px;
  color: #178653;
  font-size: 12px;
  font-weight: 800;
}

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

.output-card {
  overflow: hidden;
  border: 1px solid #e1e3e8;
  border-radius: 18px;
  background: #fff;
}

.output-image {
  position: relative;
  display: grid;
  min-height: 160px;
  aspect-ratio: var(--ratio, 3 / 4);
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.88) 0 22%, transparent 23%),
    linear-gradient(135deg, #f4f5f6, #dfe6e9 46%, #f8faf9);
}

.output-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03);
}

.mock-product {
  display: grid;
  width: min(42%, 130px);
  aspect-ratio: 0.75;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.44)),
    linear-gradient(150deg, #d8e8e5, #ffffff 46%, #efe7de);
  box-shadow: 0 22px 42px rgba(17, 24, 39, 0.13);
}

.mock-product::before {
  display: block;
  width: 54%;
  height: 24%;
  border-radius: 999px;
  background: #121318;
  content: "";
}

.mock-copy {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  gap: 7px;
}

.mock-copy i {
  display: block;
  width: 58px;
  height: 7px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.2);
}

.mock-copy i:first-child {
  width: 84px;
  background: rgba(17, 24, 39, 0.44);
}

.output-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
}

.output-meta strong {
  font-size: 13px;
}

.output-meta span {
  color: #737b89;
  font-size: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes progress {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(280%);
  }
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -18px 0 18px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #1f2433;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.ghost-btn:hover {
  border-color: #c8cbd2;
  background: #fafafa;
}

.ghost-btn.small {
  min-height: 30px;
  padding: 0 11px;
  font-size: 12px;
}

.ghost-btn-icon {
  font-size: 13px;
}

.ghost-btn-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--black);
  font-size: 11px;
  font-weight: 800;
}

.icon-btn {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #1f2433;
  background: #fff;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.icon-btn:hover {
  border-color: #c8cbd2;
  background: #fafafa;
}

.history-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 17, 22, 0.36);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.18s ease;
}

.history-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 61;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100%);
  height: 100vh;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 40px rgba(15, 17, 22, 0.14);
  animation: drawerIn 0.22s ease;
}

.history-drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.history-drawer-head h3 {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.history-list {
  overflow-y: auto;
  padding: 10px 14px 18px;
}

.history-empty {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.history-item {
  display: grid;
  width: 100%;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.history-item:hover {
  border-color: #c8cbd2;
  background: #fafafa;
  transform: translateY(-1px);
}

.history-item.is-active {
  border-color: var(--black);
  background: #f4f5f7;
}

.history-thumb {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f2f4;
  color: #9298a5;
  font-size: 11px;
}

.history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.history-title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-status {
  flex: 0 0 auto;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.history-status.is-completed {
  color: #175f3d;
  background: #effaf3;
}

.history-status.is-failed {
  color: var(--danger);
  background: #fff3f3;
}

.history-status.is-generating {
  color: #096b67;
  background: #effdfb;
}

.history-prompt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #4d5667;
  font-size: 12px;
  line-height: 1.45;
}

.history-info {
  color: var(--muted-2);
  font-size: 11px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 14, 0.88);
  animation: fadeIn 0.18s ease;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  background: #1c1f26;
  object-fit: contain;
}

.lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #d4d8e2;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.lightbox-meta a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.output-image {
  cursor: zoom-in;
}

.output-image.is-empty {
  cursor: default;
}

.output-meta {
  flex-wrap: wrap;
  row-gap: 4px;
}

.output-meta-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.output-meta-info strong {
  font-size: 13px;
}

.output-meta-info span {
  color: #737b89;
  font-size: 12px;
}

.output-meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.output-meta-actions a,
.output-meta-actions button {
  font-size: 12px;
  font-weight: 700;
  color: #1f2433;
  text-decoration: none;
}

.output-meta-actions a:hover,
.output-meta-actions button:hover {
  color: #000;
  text-decoration: underline;
}

.output-meta-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.elapsed {
  margin-top: 6px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawerIn {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 980px) {
  .page-shell {
    width: calc(100% - 32px);
    max-width: 760px;
  }

  .hero {
    padding-bottom: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .steps {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .workbench {
    grid-template-columns: 1fr;
  }

  .result-panel {
    min-height: 520px;
  }

  .toolbar {
    margin: -8px 0 14px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 24px);
    max-width: 440px;
    padding-top: 12px;
  }

  .hero h1 {
    font-size: 31px;
    line-height: 1.16;
    max-width: 10.5em;
  }

  .hero h1 span {
    display: block;
  }

  .hero p {
    font-size: 14px;
  }

  .steps i {
    width: 18px;
  }

  .panel,
  .result-panel {
    border-radius: 17px;
  }

  .panel,
  .result-panel {
    padding: 18px;
  }

  .form-grid,
  .output-grid {
    grid-template-columns: 1fr;
  }

  .complete-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
