
/* /src/components/figeditor/workspace-tools.css */
/* Shared styles for the workspace tools: SVG converter, SVG editor,
 * colony counter and paper-to-poster. */

.wt-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.wt-head {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 28px;
  text-align: center;
}

.wt-head-left {
  justify-items: start;
  text-align: left;
}

.wt-head h1 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 500;
}

.wt-head p {
  margin: 0;
  color: var(--fp-muted);
  font-size: 15px;
}

.wt-note {
  margin: 14px 0 0;
  color: var(--fp-faint);
  font-size: 12px;
  line-height: 1.6;
}

.fp-app .wt-primary,
.fp-app .wt-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
}

.fp-app .wt-primary {
  border: 0;
  background: var(--fp-cta);
  color: #fff;
}

.fp-app .wt-ghost {
  border: 1px solid var(--fp-hairline);
  background: #fff;
  color: var(--fp-text);
}

.fp-app .wt-primary:disabled,
.fp-app .wt-ghost:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.wt-primary svg,
.wt-ghost svg {
  width: 16px;
  height: 16px;
}

.wt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.wt-card {
  display: flex;
  min-height: 460px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--fp-line);
  border-radius: 20px;
  background: #fafbfc;
  box-shadow: 0 20px 50px rgb(1 1 32 / 6%);
}

.wt-card > footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--fp-line);
  background: #fff;
}

.wt-drop.dragging {
  border-color: var(--fp-ink);
}

.fp-app .wt-drop-area {
  display: grid;
  flex: 1;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.wt-drop-area img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.wt-drop-area strong {
  color: #3b5bdb;
  font-size: 22px;
  font-style: italic;
}

.wt-files {
  display: flex;
}

.wt-files i {
  display: grid;
  width: 76px;
  height: 96px;
  place-items: end center;
  margin: 0 -10px;
  padding-bottom: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgb(1 1 32 / 10%);
  color: #4c6ef5;
  font-size: 13px;
  font-style: normal;
  transform: rotate(-8deg);
}

.wt-files i:nth-child(2) {
  z-index: 1;
  transform: translateY(-12px);
}

.wt-files i:nth-child(3) {
  transform: rotate(8deg);
}

.wt-presets {
  display: flex;
  margin-right: auto;
  padding: 3px;
  border-radius: 999px;
  background: var(--fp-mist);
}

.wt-presets button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fp-muted);
  font-size: 12px;
  cursor: pointer;
}

.wt-presets button[aria-pressed="true"] {
  background: #fff;
  color: var(--fp-ink);
  box-shadow: 0 1px 3px rgb(1 1 32 / 8%);
}

.wt-result-image {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 20px;
  background:
    repeating-conic-gradient(#f1f1f3 0 25%, #fff 0 50%) 0 0 / 16px 16px;
}

.wt-result-image img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.wt-result footer span {
  margin-right: auto;
  color: var(--fp-faint);
  font-size: 12px;
}

.wt-waiting {
  display: grid;
  flex: 1;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.wt-waiting span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #eef0f3;
  color: var(--fp-muted);
}

.wt-waiting strong {
  font-size: 18px;
}

.wt-waiting p {
  max-width: 300px;
  margin: 0;
  color: var(--fp-faint);
  font-size: 13px;
}

.wt-steps {
  margin-top: 64px;
}

.wt-steps h2 {
  margin: 0 0 24px;
  font-size: 26px;
  font-weight: 500;
  text-align: center;
}

.wt-steps ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wt-steps li {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
}

.wt-steps b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--fp-ink);
  color: #fff;
  font-size: 13px;
}

.wt-steps p {
  margin: 0;
  color: var(--fp-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* SVG editor landing */

.se-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.fp-app .se-new {
  display: grid;
  min-height: 220px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  border: 2px dashed #93b4f5;
  border-radius: 12px;
  background: #f5f8ff;
  cursor: pointer;
}

.se-new.dragging {
  border-color: var(--fp-ink);
}

.se-new span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #dfe8fd;
  color: #3b5bdb;
}

.se-new small {
  color: var(--fp-faint);
  font-size: 12px;
}

.fp-app .se-blank {
  border-color: var(--fp-hairline);
  background: #fafafa;
}

.se-project {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  background: #fff;
}

.se-project a {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
}

.se-project img {
  width: 100%;
  height: 150px;
  border-bottom: 1px solid var(--fp-line);
  background: #fafafa;
  object-fit: contain;
}

.se-project strong,
.se-project small {
  padding: 0 12px;
}

.se-project small {
  color: var(--fp-faint);
  font-size: 12px;
}

.fp-app .se-project button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 90%);
  cursor: pointer;
  opacity: 0;
}

.se-project:hover button {
  opacity: 1;
}

.se-project button svg {
  width: 16px;
  height: 16px;
}

/* SVG editor canvas */

.se-editor {
  display: flex;
  height: calc(100vh - 16px);
  flex-direction: column;
}

.se-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--fp-line);
}

.fp-app .se-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fp-text);
  cursor: pointer;
}

.fp-app .se-icon:hover:not(:disabled) {
  background: var(--fp-mist);
}

.fp-app .se-icon:disabled {
  opacity: 0.35;
  cursor: default;
}

.se-icon svg {
  width: 18px;
  height: 18px;
}

.se-name {
  width: 200px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
}

.se-name:hover,
.se-name:focus {
  border-color: var(--fp-hairline);
  outline: none;
}

.se-sep {
  width: 1px;
  height: 20px;
  margin: 0 6px;
  background: var(--fp-line);
}

.fp-app .se-zoom {
  min-width: 56px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-family: var(--fp-mono);
  font-size: 12px;
  cursor: pointer;
}

.se-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 8px 0 auto;
  color: var(--fp-faint);
  font-size: 12px;
}

.se-status svg {
  width: 14px;
  height: 14px;
}

.se-body {
  display: grid;
  flex: 1;
  grid-template-columns: 52px minmax(0, 1fr) 240px;
  min-height: 0;
}

.se-tools {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px 8px;
  border-right: 1px solid var(--fp-line);
}

.se-tools button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.se-tools button[aria-pressed="true"] {
  background: #e7edff;
  color: #3b5bdb;
}

.se-tools svg {
  width: 19px;
  height: 19px;
}

.se-canvas {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #ededf0;
}

.se-canvas.hand {
  cursor: grab;
}

.se-props {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  border-left: 1px solid var(--fp-line);
}

.se-props h2 {
  margin: 6px 0 0;
  color: var(--fp-muted);
  font-size: 12px;
  font-weight: 500;
}

.se-swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.se-swatches button,
.se-swatches input {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--fp-hairline);
  border-radius: 50%;
  cursor: pointer;
}

.se-swatches button[aria-pressed="true"] {
  outline: 2px solid #3b5bdb;
  outline-offset: 1px;
}

.se-swatches .none {
  background: linear-gradient(135deg, #fff 45%, #e11d48 45% 55%, #fff 55%);
}

.se-range {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  color: var(--fp-muted);
  font-size: 12px;
}

.se-range b {
  color: var(--fp-ink);
  font-weight: 500;
}

.se-range input {
  grid-column: 1 / -1;
  width: 100%;
}

.se-arrange {
  display: grid;
  gap: 6px;
}

.se-arrange button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--fp-line);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.se-arrange svg {
  width: 16px;
  height: 16px;
}

.se-hint {
  margin: 0;
  color: var(--fp-faint);
  font-size: 13px;
  line-height: 1.6;
}

/* Colony counter */

.cc-upload {
  display: grid;
  gap: 14px;
  width: min(640px, 100%);
  margin: 0 auto;
}

.fp-app .cc-drop {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 48px 24px;
  border: 2px dashed var(--fp-hairline);
  border-radius: 16px;
  background: #fafafa;
  cursor: pointer;
}

.cc-drop.dragging,
.cc-drop:hover {
  border-color: var(--fp-ink);
}

.cc-drop svg {
  width: 36px;
  height: 36px;
  color: var(--fp-muted);
}

.cc-drop strong {
  font-size: 18px;
}

.cc-drop span,
.cc-drop small {
  color: var(--fp-faint);
  font-size: 13px;
}

.fp-app .cc-sample {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.cc-sample img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.cc-sample span {
  display: grid;
  gap: 2px;
}

.cc-sample strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cc-sample strong svg {
  width: 16px;
  height: 16px;
}

.cc-sample small {
  color: var(--fp-faint);
  font-size: 12px;
}

.cc-page {
  width: min(1240px, calc(100% - 32px));
}

.cc-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  overflow: hidden;
  border: 1px solid var(--fp-line);
  border-radius: 16px;
}

.cc-stage-wrap {
  position: relative;
  min-height: 620px;
  background: #f1f3f6;
}

.cc-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
}

.cc-stage {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  touch-action: none;
}

.cc-stage.mode-pan {
  cursor: grab;
}

.cc-stage.mode-add {
  cursor: crosshair;
}

.cc-stage.mode-remove .cc-mark {
  cursor: not-allowed;
}

.cc-canvas {
  position: relative;
  width: min(90%, 560px);
  transform-origin: center;
}

.cc-canvas img {
  display: block;
  width: 100%;
  user-select: none;
}

.cc-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cc-mark rect {
  fill: transparent;
  stroke: #00e5c7;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.cc-mark.manual rect {
  stroke: #ff5fa2;
}

.cc-mark.merged rect {
  stroke: #ffd400;
}

.cc-mark text {
  fill: #ffd400;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.cc-busy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 55%);
  font-size: 15px;
}

.cc-toolbar {
  position: absolute;
  bottom: 56px;
  left: 50%;
  display: flex;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(1 1 32 / 10%);
  transform: translateX(-50%);
}

.cc-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.cc-toolbar button[aria-pressed="true"] {
  background: #e8f1fb;
}

.cc-toolbar button:disabled {
  opacity: 0.35;
  cursor: default;
}

.cc-toolbar svg {
  width: 18px;
  height: 18px;
}

.cc-zoom {
  position: absolute;
  right: 16px;
  bottom: 12px;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
}

.cc-zoom button {
  min-width: 30px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fp-muted);
  font-size: 12px;
  cursor: pointer;
}

.cc-hint {
  position: absolute;
  bottom: 16px;
  left: 16px;
  margin: 0;
  color: var(--fp-faint);
  font-size: 11px;
}

.cc-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border-left: 1px solid var(--fp-line);
  background: #fff;
}

.cc-panel h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.cc-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--fp-faint);
  font-size: 13px;
}

.cc-total strong {
  color: #1f3a5f;
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.fp-app .cc-wide {
  width: 100%;
  height: 42px;
  border-radius: 8px;
}

.fp-app .cc-panel .wt-primary {
  background: #1f3a5f;
}

.cc-stats {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--fp-line);
  border-bottom: 1px solid var(--fp-line);
}

.cc-stats div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.cc-stats dt {
  color: var(--fp-faint);
}

.cc-stats dd {
  margin: 0;
  font-weight: 600;
}

.cc-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

/* Paper to poster */

.pp-composer {
  width: min(880px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--fp-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(1 1 32 / 6%);
}

.pp-composer textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 18px 20px;
  border: 0;
  outline: none;
  resize: vertical;
  font-size: 15px;
}

.pp-file {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 20px;
  padding: 12px 14px;
  border: 1px solid var(--fp-line);
  border-radius: 10px;
  background: var(--fp-fog);
}

.pp-file span {
  display: grid;
  flex: 1;
}

.pp-file small {
  color: var(--fp-faint);
  font-size: 12px;
}

.pp-file button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pp-composer footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.fp-app .pp-attach {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--fp-hairline);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.pp-attach svg {
  width: 18px;
  height: 18px;
}

.pp-stage {
  flex: 1;
  color: var(--fp-muted);
  font-size: 13px;
}

.pp-credits {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff6e0;
  color: #6b4d00;
  font-size: 13px;
}

.pp-credits svg {
  width: 14px;
  height: 14px;
}

.fp-app .pp-send {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--fp-cta);
  color: #fff;
  cursor: pointer;
}

.fp-app .pp-send:disabled {
  background: #a3a3a8;
}

.pp-error {
  width: min(880px, 100%);
  margin: 12px auto 0;
}

.pp-templates {
  width: min(880px, 100%);
  margin: 40px auto 0;
}

.pp-templates h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}

.pp-templates > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fp-app .pp-templates button {
  display: grid;
  gap: 4px;
  padding: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.fp-app .pp-templates button.on {
  border-color: var(--fp-ink);
  box-shadow: 0 0 0 1px var(--fp-ink);
}

.pp-preview {
  position: relative;
  display: block;
  height: 170px;
  margin-bottom: 8px;
  background: var(--fp-fog);
}

.pp-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pp-preview em {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 70%);
  color: #fff;
  font-size: 12px;
  font-style: normal;
}

.pp-preview em svg {
  width: 13px;
  height: 13px;
}

.pp-templates strong {
  padding: 0 14px;
  font-size: 15px;
}

.pp-templates small {
  padding: 0 14px;
  overflow: hidden;
  color: var(--fp-faint);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .wt-split,
  .cc-work {
    grid-template-columns: 1fr;
  }

  .cc-panel {
    border-top: 1px solid var(--fp-line);
    border-left: 0;
  }

  .se-body {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .se-props {
    display: none;
  }

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

/* Generate figure: templates and credit chip */

.st-credits {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff6e0;
  color: #6b4d00;
  font-size: 13px;
  white-space: nowrap;
}

.st-credits svg {
  width: 14px;
  height: 14px;
}

.st-templates {
  width: min(880px, 100%);
  margin: 40px auto 0;
}

.st-templates > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.st-templates h2 {
  margin: 0;
  color: var(--fp-muted);
  font-size: 13px;
  font-weight: 500;
}

.st-templates header div {
  display: flex;
  gap: 6px;
}

.st-templates header button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--fp-hairline);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.st-templates header button:disabled {
  opacity: 0.4;
  cursor: default;
}

.st-templates header svg {
  width: 16px;
  height: 16px;
}

.st-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.st-categories button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--fp-hairline);
  border-radius: 2px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.st-categories button.on {
  border-color: var(--fp-ink);
  background: var(--fp-ink);
  color: #fff;
}

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

.fp-app .st-grid button {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.st-grid span {
  position: relative;
  display: block;
  height: 156px;
  overflow: hidden;
  border: 1px solid var(--fp-line);
  background: #fff;
}

.st-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.st-grid em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 45%);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.st-grid button:hover em,
.st-grid button:focus-visible em {
  opacity: 1;
}

.st-grid strong {
  font-size: 13px;
  font-weight: 500;
}

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


/* /src/components/figeditor/figeditor.css */
@font-face {
  font-family: "Instrument Sans";
  src: url("/reference-assets/349184094a2e9c7c-s.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 499;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/reference-assets/df2a691d23ccc21f-s.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 599;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/reference-assets/e08e708e5f2034fb-s.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

.fe-app {
  --fe-blue: #000000;
  --fe-blue-dark: #000000;
  --fe-ink: #1a1a28;
  --fe-text: #313131;
  --fe-muted: #767676;
  --fe-border: #e9e9eb;
  --fe-soft: #f6f6f8;
  min-height: 100vh;
  background: #fff;
  color: var(--fe-text);
  font-family: "Instrument Sans", Arial, sans-serif;
}

.fe-app *,
.fe-app *::before,
.fe-app *::after {
  box-sizing: border-box;
}

.fe-app a {
  color: inherit;
  text-decoration: none;
}

.fe-app button,
.fe-app input,
.fe-app textarea,
.fe-app select {
  font: inherit;
}

.fe-content {
  min-height: 100vh;
  padding-top: 69px;
  padding-left: 77px;
}

.fe-no-rail .fe-content {
  padding-left: 0;
}

.fe-full-bleed .fe-content {
  padding-left: 0;
}

.fe-rail-collapsed:not(.fe-full-bleed) .fe-content {
  padding-left: 0;
}

.fe-header {
  position: fixed;
  inset: 0 0 auto 77px;
  z-index: 60;
  height: 69px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(330px, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--fe-border);
  background: rgb(255 255 255 / 94%);
  padding: 0 6.3vw;
  backdrop-filter: blur(16px);
}

.fe-no-rail .fe-header {
  left: 0;
}

.fe-full-bleed .fe-header {
  left: 0;
}

.fe-rail-collapsed:not(.fe-full-bleed) .fe-header {
  left: 0;
  padding-left: max(76px, 6.3vw);
}

.fe-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  color: #282828;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.fe-logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--fe-border);
  border-radius: 12px;
  background: #fff;
}

.fe-logo-mark img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.fe-main-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 34px;
  color: #525252;
  font-size: 14px;
}

.fe-main-nav > button,
.fe-main-nav > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.fe-main-nav svg {
  width: 13px;
  height: 13px;
}

.fe-mega-menu {
  position: absolute;
  top: 43px;
  left: 50%;
  width: 680px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 20px 60px rgb(26 26 40 / 14%);
}

.fe-resources-menu {
  position: absolute;
  top: 43px;
  left: 50%;
  min-width: 190px;
  display: grid;
  gap: 4px;
  transform: translateX(-10%);
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 20px 60px rgb(26 26 40 / 14%);
}

.fe-resources-menu a {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 550;
}

.fe-resources-menu a:hover {
  background: #f8f8fa;
}

.fe-mega-menu > div {
  padding: 20px 24px;
}

.fe-mega-menu > div + div {
  border-left: 1px solid var(--fe-border);
}

.fe-mega-menu p,
.fe-drawer-label,
.fe-drawer-group > span {
  margin: 0 0 10px;
  color: #747474;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fe-mega-menu a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 12px;
  padding: 6px;
  color: #2b2b2b;
  font-weight: 550;
}

.fe-mega-menu a:hover {
  background: #f8f8fa;
}

.fe-mega-menu img,
.fe-mega-menu a > svg {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  padding: 6px;
  background: #fafafc;
}

.fe-header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}

.fe-language-menu {
  position: relative;
}

.fe-language-menu > summary {
  list-style: none;
}

.fe-language-menu > summary::-webkit-details-marker {
  display: none;
}

.fe-language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 150px;
  overflow: hidden;
  border: 1px solid var(--fe-border);
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 16px 42px rgb(26 26 40 / 16%);
}

.fe-language-options a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 9px 10px;
  color: var(--fe-ink);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.fe-language-options a:hover,
.fe-language-options a[aria-current="page"] {
  background: #f6f6f8;
}

.fe-language-options a[aria-current="page"] {
  cursor: default;
}

.fe-language,
.fe-credit-pill,
.fe-outline-button,
.fe-primary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 22px;
  padding: 0 18px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.fe-language {
  border: 1px solid #e5e5e5;
  background: #f6f6f8;
  color: #000000;
}

.fe-language svg,
.fe-credit-pill svg {
  width: 18px;
  height: 18px;
}

.fe-credit-pill,
.fe-outline-button {
  border: 1px solid var(--fe-border);
  background: #fff;
}

.fe-credit-pill {
  padding: 0 13px;
  color: #000000;
}

.fe-primary-button {
  border: 1px solid var(--fe-blue);
  background: var(--fe-blue);
  color: #fff !important;
  box-shadow: 0 6px 14px rgb(0 0 0 / 16%);
}

.fe-avatar,
.fe-rail-user {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--fe-border);
  border-radius: 14px;
  background: #f4f4f6;
  color: #1a1a28;
  font-size: 13px;
  font-weight: 700;
}

.fe-avatar {
  width: 44px;
  height: 44px;
}

.fe-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fe-side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: 77px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-right: 1px solid var(--fe-border);
  background: #fcfcfe;
  padding: 23px 11px 12px;
}

.fe-rail-restore {
  position: fixed;
  z-index: 75;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fe-border);
  border-radius: 12px;
  background: #fff;
  color: #6a6a6a;
  cursor: pointer;
  box-shadow: 0 8px 24px rgb(26 26 40 / 12%);
}

.fe-rail-restore svg {
  width: 21px;
  height: 21px;
  transform: rotate(180deg);
}

.fe-side-rail a,
.fe-side-rail button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #6a6a6a;
  cursor: pointer;
}

.fe-side-rail a:hover,
.fe-side-rail button:hover,
.fe-side-rail .active {
  background: #f4f4f6;
  color: #000000;
}

.fe-side-rail svg,
.fe-side-rail img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.fe-side-separator {
  width: 28px;
  height: 1px;
  margin: 3px 0;
  background: #f0f0f2;
}

.fe-rail-spacer {
  flex: 1;
}

.fe-rail-user {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: var(--fe-blue) !important;
  color: #fff !important;
}

.fe-mobile-toggle,
.fe-mobile-drawer {
  display: none;
}

.fe-page {
  overflow: hidden;
}

.fe-section {
  padding: 104px max(32px, 6vw);
}

.fe-section-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.fe-eyebrow {
  margin: 0 0 16px;
  color: var(--fe-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fe-section-heading {
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: center;
}

.fe-section-heading h2 {
  margin: 0;
  color: var(--fe-ink);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.fe-section-heading p:not(.fe-eyebrow) {
  max-width: 720px;
  margin: 20px auto 0;
  color: #727272;
  font-size: 18px;
  line-height: 1.65;
}

@keyframes fe-aurora {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.55;
  }
  33% {
    transform: translate(30px, -40px) scale(1.1);
    opacity: 0.75;
  }
  66% {
    transform: translate(-25px, 20px) scale(0.95);
    opacity: 0.6;
  }
}

@keyframes fe-aurora-slow {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.45;
  }
  50% {
    transform: translate(-35px, -25px) scale(1.15) rotate(180deg);
    opacity: 0.65;
  }
}

@keyframes fe-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.fe-hero {
  position: relative;
  min-height: 1040px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    #f8f8fa url("/reference-assets/hero-scientific-light-v3-1600.webp") center /
    cover no-repeat;
  padding: 96px 42px 80px;
}

.fe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgb(251 251 253 / 0.32) 52%,
    rgb(248 248 250 / 0.58) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.fe-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 30%,
    rgb(0 0 0 / 0.08) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* Aurora Light Glow Elements */
.fe-aurora-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.fe-aurora-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.fe-aurora-blob-1 {
  top: 15%;
  left: 20%;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgb(198 198 198 / 0.6) 0%,
    rgb(227 227 227 / 0) 70%
  );
  animation: fe-aurora 14s ease-in-out infinite alternate;
}

.fe-aurora-blob-2 {
  top: 25%;
  right: 18%;
  width: 580px;
  height: 580px;
  background: radial-gradient(
    circle,
    rgb(215 215 215 / 0.5) 0%,
    rgb(240 240 242 / 0) 70%
  );
  animation: fe-aurora-slow 18s ease-in-out infinite alternate;
}

.fe-aurora-blob-3 {
  bottom: 20%;
  left: 35%;
  width: 480px;
  height: 480px;
  background: radial-gradient(
    circle,
    rgb(220 220 220 / 0.45) 0%,
    rgb(242 242 244 / 0) 70%
  );
  animation: fe-aurora 16s ease-in-out infinite alternate-reverse;
}

.fe-hero-content {
  position: relative;
  z-index: 1;
  width: min(1152px, 100%);
  text-align: center;
}

@media (min-width: 901px) {
  .fe-hero-content {
    transform: translateY(28px);
  }
}

.fe-hero h1 {
  margin: 24px auto 22px;
  color: var(--fe-ink);
  font-size: clamp(58px, 5.15vw, 84px);
  font-weight: 620;
  letter-spacing: -0.058em;
  line-height: 0.98;
}

.fe-hero-description {
  max-width: 850px;
  margin: 0 auto;
  color: #4c4c4c;
  font-size: 18px;
  line-height: 1.72;
}

.fe-prompt-box {
  width: min(1024px, 100%);
  min-height: 252px;
  display: flex;
  flex-direction: column;
  margin: 30px auto 0;
  overflow: hidden;
  border: 1.5px solid rgb(0 0 0 / 0.45);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 20px 70px rgb(26 26 40 / 0.08),
    0 0 0 1px rgb(0 0 0 / 0.2);
  text-align: left;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.fe-prompt-box:focus-within {
  border-color: var(--fe-blue);
  box-shadow:
    0 24px 80px rgb(26 26 40 / 0.14),
    0 0 0 2px rgb(0 0 0 / 0.35);
}

.fe-prompt-label {
  margin: 23px 25px 4px;
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fe-prompt-box textarea {
  width: 100%;
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 4px 25px 18px;
  color: var(--fe-ink);
  font-size: 16px;
  line-height: 1.5;
}

.fe-prompt-actions {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid rgb(237 237 239 / 0.8);
  background: rgba(255, 255, 255, 0.6);
  padding: 12px 18px;
}

.fe-prompt-actions button,
.fe-soft-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--fe-border);
  border-radius: 22px;
  background: #fff;
  padding: 0 16px;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease;
}

.fe-prompt-actions button:hover,
.fe-soft-button:hover {
  background: #fafafc;
  border-color: #d6d6d6;
  transform: translateY(-1px);
}

.fe-prompt-actions button svg {
  width: 18px;
  height: 18px;
  color: #000000;
}

.fe-prompt-error {
  margin: -4px 22px 10px;
  color: #b42318;
  font-size: 13px;
}

.fe-prompt-submit {
  margin-left: auto;
  border-color: var(--fe-blue) !important;
  background: var(--fe-blue) !important;
  color: #fff !important;
  padding: 0 20px !important;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.3);
}

.fe-prompt-submit:hover {
  background: var(--fe-blue-dark) !important;
  border-color: var(--fe-blue-dark) !important;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.4);
}

.fe-hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: #767676;
  font-size: 13px;
}

.fe-hero-tags span:not(:first-child) {
  border: 1px solid #f0f0f2;
  border-radius: 18px;
  background: rgb(255 255 255 / 78%);
  padding: 7px 12px;
  backdrop-filter: blur(8px);
}

/* Institutions Marquee */
.fe-institutions {
  padding: 60px 0 32px;
  background: #fff;
  text-align: center;
  overflow: hidden;
}

.fe-institutions h2 {
  margin: 0 0 32px;
  color: #363636;
  font-size: 16px;
  font-weight: 550;
  padding: 0 24px;
}

.fe-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 12%,
    black 88%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 12%,
    black 88%,
    transparent
  );
}

.fe-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 48px;
  animation: fe-marquee 38s linear infinite;
}

.fe-marquee-track:hover {
  animation-play-state: paused;
}

.fe-marquee-group {
  display: flex;
  align-items: center;
  gap: 48px;
}

.fe-marquee-group img {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.52;
  transition:
    opacity 0.25s ease,
    filter 0.25s ease;
}

.fe-marquee-group img:hover {
  filter: grayscale(0);
  opacity: 0.9;
}

.fe-disclaimer {
  margin-top: 28px;
  color: #939393;
  font-size: 11px;
  padding: 0 24px;
}

.fe-gallery-section {
  background: #fbfbfa;
}

.fe-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.fe-filter-row button,
.fe-mode-tabs button,
.fe-mode-tabs a {
  border: 1px solid #e0e0e0;
  border-radius: 22px;
  background: #fff;
  padding: 10px 18px;
  color: #5e5e5e;
  font-size: 14px;
  cursor: pointer;
}

.fe-filter-row .active,
.fe-mode-tabs .active {
  border-color: var(--fe-ink);
  background: var(--fe-ink);
  color: #fff;
}

.fe-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.fe-gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fe-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(26 26 40 / 5%);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.fe-gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgb(0 0 0 / 0.32);
  box-shadow: 0 16px 36px rgb(26 26 40 / 0.09);
}

.fe-gallery-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f6;
}

.fe-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.fe-gallery-card:hover img {
  transform: scale(1.035);
}

.fe-gallery-overlay {
  position: absolute;
  inset: auto 12px 12px;
  display: flex;
  gap: 7px;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.fe-gallery-card:hover .fe-gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.fe-gallery-overlay button {
  flex: 1;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 10px;
  background: rgb(26 26 40 / 88%);
  padding: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.fe-gallery-overlay button:hover {
  background: var(--fe-blue);
  border-color: var(--fe-blue);
}

.fe-gallery-copy {
  padding: 16px;
}

.fe-gallery-copy p {
  min-height: 42px;
  margin: 10px 0 0;
  color: var(--fe-ink);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.35;
}

.fe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fe-badge {
  border-radius: 12px;
  background: #f4f4f6;
  padding: 5px 8px;
  color: #646464;
  font-size: 10px;
  font-weight: 650;
}

.fe-product-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.fe-product-group > h3 {
  margin: 0 0 18px;
  color: #767676;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fe-product-card {
  position: relative;
  display: grid;
  grid-template-columns: 155px 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 150px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--fe-border);
  border-radius: 18px;
  background: #fff;
  padding: 14px 18px 14px 14px;
}

.fe-product-card img {
  width: 155px;
  height: 118px;
  border-radius: 12px;
  object-fit: cover;
}

.fe-product-card h4 {
  margin: 0 0 8px;
  color: var(--fe-ink);
  font-size: 18px;
}

.fe-product-card p {
  margin: 0;
  color: #7a7a7a;
  font-size: 14px;
  line-height: 1.5;
}

.fe-product-card > span {
  color: #000000;
  font-size: 22px;
}

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

.fe-feature-card {
  display: grid;
  grid-template-columns: minmax(240px, 44%) 1fr;
  overflow: hidden;
  border: 1px solid var(--fe-border);
  border-radius: 22px;
  background: #fff;
  min-height: 350px;
}

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

.fe-feature-copy {
  align-self: center;
  padding: 30px;
}

.fe-feature-copy > span {
  color: #000000;
  font-size: 12px;
  font-weight: 650;
}

.fe-feature-copy h3 {
  margin: 13px 0;
  color: var(--fe-ink);
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.fe-feature-copy p {
  color: #757575;
  font-size: 15px;
  line-height: 1.6;
}

.fe-feature-copy a {
  display: inline-block;
  margin-top: 10px;
  color: #000000;
  font-weight: 620;
}

.fe-workflow-section {
  background: #f8f8fa;
}

.fe-workflow-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 80px;
}

.fe-workflow-steps {
  display: grid;
  gap: 12px;
}

.fe-workflow-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  border: 1px solid var(--fe-border);
  border-radius: 16px;
  background: #fff;
  padding: 22px;
}

.fe-workflow-step > span {
  color: #000000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fe-workflow-step h3 {
  margin: 0 0 8px;
  color: var(--fe-ink);
  font-size: 20px;
}

.fe-workflow-step p {
  margin: 0;
  color: #787878;
  line-height: 1.55;
}

.fe-workflow-image {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgb(26 26 40 / 12%);
}

.fe-pricing-section {
  background: #fff;
}

.fe-billing-toggle {
  width: max-content;
  display: flex;
  gap: 4px;
  margin: -18px auto 38px;
  border: 1px solid var(--fe-border);
  border-radius: 26px;
  background: #fafafc;
  padding: 4px;
}

.fe-billing-toggle button {
  border: 0;
  border-radius: 22px;
  background: transparent;
  padding: 10px 17px;
  color: #747474;
  font-size: 13px;
  cursor: pointer;
}

.fe-billing-toggle .active {
  background: #fff;
  color: var(--fe-ink);
  box-shadow: 0 2px 10px rgb(26 26 40 / 8%);
}

.fe-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.fe-price-card {
  position: relative;
  border: 1px solid var(--fe-border);
  border-radius: 22px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 14px 42px rgb(26 26 40 / 5%);
}

.fe-price-card.popular {
  transform: translateY(-12px);
  border-color: #bbbbbb;
  box-shadow: 0 24px 60px rgb(0 0 0 / 12%);
}

.fe-popular-label {
  position: absolute;
  top: 15px;
  right: 17px;
  border-radius: 13px;
  background: #f4f4f6;
  padding: 5px 9px;
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.fe-price-card h3 {
  margin: 0 0 24px;
  color: var(--fe-ink);
  font-size: 20px;
}

.fe-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.fe-old-price {
  color: #939393;
  text-decoration: line-through;
}

.fe-price {
  color: var(--fe-ink);
  font-size: 42px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.fe-price-card > p {
  min-height: 72px;
  color: #747474;
  font-size: 14px;
  line-height: 1.55;
}

.fe-price-card .fe-primary-button {
  width: 100%;
  margin: 18px 0;
}

.fe-price-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: #5a5a5a;
  font-size: 13px;
}

.fe-price-list li::before {
  content: "✓";
  margin-right: 8px;
  color: #16856b;
  font-weight: 700;
}

.fe-faqs {
  max-width: 920px;
  margin: 0 auto;
}

.fe-faq {
  border-bottom: 1px solid var(--fe-border);
}

.fe-faq button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: transparent;
  padding: 22px 0;
  color: var(--fe-ink);
  text-align: left;
  font-size: 17px;
  font-weight: 620;
  cursor: pointer;
}

.fe-faq summary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  padding: 22px 0;
  color: var(--fe-ink);
  font-size: 17px;
  font-weight: 620;
  list-style: none;
}

.fe-faq summary::-webkit-details-marker {
  display: none;
}

.fe-detail-hero {
  width: min(1240px, calc(100% - 64px));
  min-height: 650px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 72px;
  margin: 0 auto;
  padding: 82px 0;
}

.fe-detail-hero h1,
.fe-catalog-hero h1,
.fe-page-header h1 {
  margin: 0;
  color: var(--fe-ink);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1;
}

.fe-detail-hero > div > p:not(.fe-eyebrow),
.fe-catalog-hero > p:not(.fe-eyebrow),
.fe-page-header p {
  color: #747474;
  font-size: 18px;
  line-height: 1.65;
}

.fe-detail-hero > img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgb(26 26 40 / 14%);
}

.fe-detail-hero.is-paper-banana {
  grid-template-columns: 1fr;
  gap: 48px;
  padding-top: 98px;
  text-align: center;
}

.fe-detail-hero.is-paper-banana > div {
  max-width: 860px;
  margin: 0 auto;
}

.fe-detail-hero.is-paper-banana .fe-detail-actions {
  justify-content: center;
}

.fe-detail-hero.is-paper-banana > img {
  width: min(920px, 100%);
  max-height: 620px;
  margin: 0 auto;
  object-fit: cover;
  object-position: top;
}

.fe-detail-actions,
.fe-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.fe-deep-detail-page > .fe-breadcrumb {
  width: min(1240px, calc(100% - 64px));
  margin: 28px auto -36px;
}

.fe-detail-generator {
  width: min(1120px, calc(100% - 64px));
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  margin: 0 auto 100px;
  border: 1px solid #e8e8ea;
  border-radius: 26px;
  background: #fcfcfe;
  padding: 34px;
  box-shadow: 0 24px 70px rgb(26 26 40 / 10%);
}

.fe-detail-generator > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fe-detail-generator h2 {
  margin: 4px 0 26px;
  color: var(--fe-ink);
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -0.04em;
}

.fe-detail-generator label {
  margin-bottom: 8px;
  color: var(--fe-ink);
  font-size: 13px;
  font-weight: 700;
}

.fe-detail-generator textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid #d8d8d8;
  border-radius: 15px;
  background: #fff;
  padding: 18px;
  color: var(--fe-ink);
  font: inherit;
  line-height: 1.55;
  outline: none;
}

.fe-detail-generator textarea:focus {
  border-color: var(--fe-blue);
  box-shadow: 0 0 0 3px rgb(0 0 0 / 10%);
}

.fe-detail-example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}

.fe-detail-example-chips button {
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  color: #626262;
  font-size: 12px;
  cursor: pointer;
}

.fe-detail-generator > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border-radius: 20px;
  object-fit: cover;
}

.fe-detail-research-gallery,
.fe-detail-agent-section,
.fe-detail-use-cases,
.fe-detail-benchmark {
  width: min(1120px, calc(100% - 64px));
  margin: 110px auto;
}

.fe-detail-research-gallery > header,
.fe-detail-agent-section > header {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.fe-detail-research-gallery h2,
.fe-detail-agent-section h2,
.fe-detail-use-cases h2,
.fe-detail-benchmark h2 {
  margin: 8px 0 15px;
  color: var(--fe-ink);
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.fe-detail-research-gallery header > p:last-child,
.fe-detail-agent-section header > p:last-child,
.fe-detail-use-cases p,
.fe-detail-benchmark p {
  color: #777777;
  line-height: 1.65;
}

.fe-detail-research-gallery > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fe-detail-research-gallery button {
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 19px;
  background: #fff;
  padding: 0 0 20px;
  text-align: left;
  cursor: pointer;
}

.fe-detail-research-gallery img {
  width: 100%;
  height: 270px;
  display: block;
  object-fit: cover;
}

.fe-detail-research-gallery span,
.fe-detail-research-gallery strong,
.fe-detail-research-gallery small {
  display: block;
  margin-right: 18px;
  margin-left: 18px;
}

.fe-detail-research-gallery span {
  margin-top: 17px;
  color: var(--fe-blue);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.fe-detail-research-gallery strong {
  min-height: 46px;
  margin-top: 7px;
  color: var(--fe-ink);
  font-size: 17px;
  line-height: 1.35;
}

.fe-detail-research-gallery small {
  margin-top: 12px;
  color: #848484;
}

.fe-detail-agent-section > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.fe-detail-agent-section article {
  min-height: 280px;
  border: 1px solid #e6e6e8;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfbfd);
  padding: 24px;
}

.fe-detail-agent-section article > span {
  color: #a3a3a3;
  font-size: 11px;
}

.fe-detail-agent-section article > svg {
  width: 25px;
  height: 25px;
  display: block;
  margin-top: 42px;
  border-radius: 50%;
  background: #f4f4f6;
  padding: 5px;
  color: var(--fe-blue);
}

.fe-detail-agent-section article > img {
  width: calc(100% + 48px);
  height: 125px;
  display: block;
  margin: 16px -24px 0;
  object-fit: cover;
}

.fe-detail-agent-section h3 {
  margin: 18px 0 9px;
  color: var(--fe-ink);
}

.fe-detail-agent-section article p {
  margin: 0;
  color: #808080;
  font-size: 13px;
  line-height: 1.6;
}

.fe-detail-use-cases,
.fe-detail-benchmark {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 70px;
  border-radius: 28px;
  background: #fbfbfd;
  padding: 58px;
}

.fe-detail-use-cases > img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgb(26 26 40 / 12%);
}

.fe-detail-benchmark dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.fe-detail-benchmark dl > div {
  border: 1px solid #e6e6e6;
  border-radius: 17px;
  background: #fff;
  padding: 24px;
}

.fe-detail-benchmark dt {
  color: var(--fe-blue);
  font-size: 27px;
  font-weight: 700;
}

.fe-detail-benchmark dd {
  margin: 7px 0 0;
  color: #7e7e7e;
  font-size: 12px;
}

.fe-info-card {
  min-height: 220px;
  border: 1px solid var(--fe-border);
  border-radius: 20px;
  background: #fff;
  padding: 30px;
}

.fe-info-card > img {
  width: calc(100% + 60px);
  height: 180px;
  display: block;
  margin: -30px -30px 24px;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
}

.fe-info-card > span {
  color: var(--fe-blue);
  font-size: 12px;
  font-weight: 700;
}
.fe-info-card h3 {
  margin: 24px 0 10px;
  color: var(--fe-ink);
  font-size: 22px;
}
.fe-info-card p {
  margin: 0;
  color: #767676;
  line-height: 1.6;
}

.fe-catalog-icon {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
}

.fe-spin {
  animation: fe-spin 1s linear infinite;
}
@keyframes fe-spin {
  to {
    transform: rotate(360deg);
  }
}

.fe-faq p {
  margin: -5px 0 22px;
  color: #767676;
  line-height: 1.65;
}

.fe-footer-cta {
  margin: 0 6vw 48px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f4f4f6, #fbfbfd 54%, #f1efff);
  padding: 76px 30px;
  text-align: center;
}

.fe-footer-cta h2 {
  margin: 0 0 17px;
  color: var(--fe-ink);
  font-size: clamp(40px, 4vw, 62px);
  letter-spacing: -0.05em;
}

.fe-footer-cta p {
  max-width: 650px;
  margin: 0 auto 28px;
  color: #707070;
  font-size: 17px;
}

.fe-footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 60px;
  padding: 48px 7vw 30px;
  border-top: 1px solid var(--fe-border);
}

.fe-footer p {
  max-width: 360px;
  color: #787878;
  line-height: 1.6;
}

.fe-footer h3 {
  margin: 5px 0 18px;
  color: var(--fe-ink);
  font-size: 14px;
}

.fe-footer ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #757575;
  font-size: 13px;
}

.fe-footer-bottom {
  display: flex;
  justify-content: space-between;
  margin: 0 7vw;
  border-top: 1px solid var(--fe-border);
  padding: 23px 0 32px;
  color: #888888;
  font-size: 12px;
}

/* Studio */
.fe-login-card {
  width: 448px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 28px;
  background: #fff;
  padding: 30px 24px 22px;
  color: #1a1a28;
  box-shadow: 0 22px 55px rgb(0 0 0 / 0.11);
}

.fe-login-brand {
  text-align: center;
}

.fe-login-brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2b2b2b;
  font-size: 18px;
  text-decoration: none;
}

.fe-login-brand img {
  width: 34px;
  height: 34px;
}

.fe-login-brand p {
  margin: 18px 0 24px;
  color: #767676;
  font-size: 14px;
}

.fe-login-credit {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  border: 1px solid #e3e3e3;
  border-radius: 20px;
  background: linear-gradient(105deg, #fffdf6, #fffaf0);
  padding: 15px 16px;
}

.fe-login-credit > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: #f6f6f8;
  color: #000000;
}

.fe-login-credit svg {
  width: 21px;
  height: 21px;
}

.fe-login-credit strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.fe-login-credit p {
  margin: 3px 0 0;
  color: #767676;
  font-size: 13px;
  line-height: 1.45;
}

.fe-login-card > div > button {
  height: 52px;
  border-radius: 11px;
  font-size: 15px;
}

.fe-login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #8a8a8a;
  font-size: 12px;
}

.fe-login-divider span {
  height: 1px;
  background: #e8e8ea;
}

.fe-login-divider em {
  font-style: normal;
}

.fe-email-login-toggle {
  width: 100%;
  height: 48px;
  border-color: #e0e0e0;
  border-radius: 999px;
  background: #fff;
  color: #353535;
  font-weight: 600;
}

.fe-email-login-toggle svg {
  width: 18px;
  height: 18px;
}

.fe-email-login-form {
  border-radius: 16px;
  background: #fcfcfe;
  padding: 18px;
}

.fe-login-auto-register,
.fe-login-terms {
  margin: 18px 0 0;
  color: #888888;
  text-align: center;
  font-size: 11px;
  line-height: 1.55;
}

.fe-login-terms {
  margin-top: 14px;
}

.fe-login-terms a {
  color: #484848;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fe-login-signup {
  display: block;
  margin: 24px -24px -22px;
  border-top: 1px solid #f0f0f2;
  padding: 20px 24px;
  color: #767676;
  text-align: center;
  font-size: 13px;
  text-decoration: none;
}

.fe-login-signup:hover {
  color: #000000;
}

.fe-studio-page {
  min-height: calc(100vh - 69px);
  background:
    radial-gradient(circle at 50% 13%, rgb(240 240 242 / 92%), transparent 32%),
    linear-gradient(180deg, #fcfcfe, #f8f8fa);
  padding: 42px 30px 80px;
}

.fe-studio-wrap {
  width: 100%;
  margin: 0 auto;
}

.fe-studio-heading {
  text-align: center;
}

.fe-studio-heading h1 {
  margin: 0;
  color: var(--fe-ink);
  font-size: clamp(28px, 2.2vw, 34px);
  font-weight: 620;
  letter-spacing: -0.04em;
}

.fe-studio-heading p {
  margin: 8px 0 23px;
  color: #767676;
  font-size: 13px;
}

.fe-mode-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 23px;
}

.fe-mode-tabs button {
  width: 126px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
}

.fe-mode-tabs svg {
  width: 15px;
  height: 15px;
}

.fe-studio-composer {
  position: relative;
  max-width: 765px;
  min-height: 147px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  border: 1px solid #dedede;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 70px rgb(0 0 0 / 10%);
}

.fe-studio-composer textarea {
  min-height: 94px;
  resize: none;
  border: 0;
  outline: 0;
  padding: 18px 20px 8px;
  color: var(--fe-ink);
  line-height: 1.5;
}

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

.fe-reference-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 4px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafc;
  padding: 7px 9px;
  color: #656565;
  font-size: 12px;
}

.fe-reference-preview img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.fe-reference-preview span {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fe-reference-preview button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #737373;
  cursor: pointer;
}

.fe-composer-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid #f3f3f5;
  padding: 8px 11px 10px;
}

.fe-toolbar-button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0 8px;
  color: #565656;
  font-size: 12px;
  cursor: pointer;
}

.fe-toolbar-action svg,
.fe-toolbar-button svg {
  width: 15px;
  height: 15px;
}

.fe-toolbar-button:hover {
  background: #f5f5f7;
}

.fe-toolbar-spacer {
  flex: 1;
}

.fe-icon-toolbar {
  width: 36px;
  justify-content: center;
  padding: 0;
}

.fe-model-icon-button {
  width: 34px;
  justify-content: center;
  padding: 0;
}

.fe-model-icon-button img {
  width: 21px;
  height: 21px;
}

.fe-generate-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--fe-blue);
  color: #fff;
  cursor: pointer;
}

.fe-flowchart-generate-button {
  min-width: 220px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--fe-blue);
  padding: 0 22px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.fe-flowchart-generate-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.fe-flowchart-templates {
  margin-top: 76px;
}

.fe-flowchart-templates > header h2 {
  margin: 0;
  color: var(--fe-ink);
  font-size: 32px;
  letter-spacing: -0.03em;
}

.fe-flowchart-templates > header p {
  margin: 8px 0 24px;
  color: #787878;
}

.fe-flowchart-categories {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0;
  border: 0;
  padding-bottom: 10px;
  padding-left: 0;
}

.fe-flowchart-categories button {
  flex: 0 0 auto;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
  padding: 9px 15px;
  color: #646464;
  font-size: 12px;
  cursor: pointer;
}

.fe-flowchart-categories button.active {
  border-color: #d4d4d4;
  background: #f6f6f8;
  color: var(--fe-blue);
}

.fe-flowchart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.fe-flowchart-grid > button {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8e8ea;
  border-radius: 17px;
  background: #fff;
  padding: 0 0 18px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.fe-flowchart-grid > button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgb(26 26 40 / 12%);
}

.fe-flowchart-grid img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid #ececee;
}

.fe-flowchart-grid span {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  padding: 6px 10px;
  color: var(--fe-blue);
  font-size: 11px;
  font-weight: 700;
}

.fe-flowchart-grid strong,
.fe-flowchart-grid small {
  display: block;
  padding: 0 16px;
}

.fe-flowchart-grid strong {
  margin-top: 16px;
  color: var(--fe-ink);
  font-size: 15px;
  line-height: 1.35;
}

.fe-flowchart-grid small {
  margin-top: 7px;
  color: #838383;
}

.fe-generate-button:disabled {
  background: #f0f0f2;
  color: #cccccc;
  cursor: not-allowed;
}

.fe-popover-menu {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: -12px;
  width: 285px;
  transform: translateY(100%);
  border: 1px solid var(--fe-border);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 20px 55px rgb(26 26 40 / 15%);
}

.fe-popover-menu p {
  margin: 5px 8px 9px;
  color: #808080;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.fe-popover-menu button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px;
  color: #404040;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}

.fe-popover-menu button:hover,
.fe-popover-menu .active {
  background: #f4f4f6;
}

.fe-template-button {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--fe-ink);
  border-radius: 22px;
  background: #fff;
  padding: 9px 20px;
  font-size: 12px;
  color: var(--fe-ink);
  font-weight: 620;
  cursor: pointer;
}

.fe-studio-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.fe-recent-section {
  margin-top: 28px;
}

.fe-recent-section h2 {
  margin: 0 0 17px;
  color: var(--fe-ink);
  font-size: 17px;
}

.fe-recent-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fe-recent-placeholder-grid article {
  overflow: hidden;
  min-height: 242px;
  border: 1px solid #e7e7e9;
  border-radius: 13px;
  background: #fff;
}

.fe-recent-placeholder-grid article > div {
  height: 190px;
  background: #f2f2f4;
}

.fe-recent-placeholder-grid span,
.fe-recent-placeholder-grid i {
  display: block;
  height: 7px;
  margin: 14px 14px 0;
  border-radius: 999px;
  background: #f1f1f3;
}

.fe-recent-placeholder-grid i {
  width: 48%;
  margin-top: 8px;
}

.fe-empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #e2e2e2;
  border-radius: 14px;
  background: rgb(255 255 255 / 45%);
  color: #8a8a8a;
  text-align: center;
}

.fe-empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: #4a4a4a;
}

.fe-generation-result {
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  margin: 28px auto 0;
  border: 1px solid var(--fe-border);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 18px 50px rgb(26 26 40 / 9%);
}

.fe-studio-generation-stage {
  width: min(100%, 560px);
  min-height: 316px;
  display: grid;
  place-items: center;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid #e3e3e3;
  border-radius: 18px;
  background-color: #fff;
  background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: 0 18px 50px rgb(26 26 40 / 9%);
}

.fe-generation-progress {
  width: min(88%, 430px);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e8e8ea;
  border-radius: 16px;
  background: rgb(255 255 255 / 96%);
  padding: 30px 34px;
  text-align: center;
  box-shadow: 0 14px 38px rgb(63 63 63 / 12%);
}

.fe-generation-progress-spinner {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #f6f6f8;
  color: #000000;
}

.fe-generation-progress-spinner svg {
  width: 23px;
  animation: fe-spin 900ms linear infinite;
}

.fe-generation-progress small {
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fe-generation-progress strong {
  margin-top: 8px;
  color: #323232;
  font-size: 18px;
}

.fe-generation-progress p {
  max-width: 340px;
  margin: 8px 0 0;
  color: #7e7e7e;
  font-size: 12px;
  line-height: 1.55;
}

.fe-generation-progress time {
  margin-top: 15px;
  color: #929292;
  font-size: 11px;
}

.fe-generation-error {
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px auto 0;
  border: 1px solid #f1cccc;
  border-radius: 12px;
  background: #fff7f7;
  padding: 12px 14px;
  color: #a93f3f;
  font-size: 12px;
}

.fe-generation-error button,
.fe-editor-retry {
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: #fff;
  padding: 6px 10px;
  color: inherit;
  font-weight: 650;
  cursor: pointer;
}

.fe-generation-result img {
  width: 100%;
  border-radius: 12px;
}

.fe-result-copy {
  align-self: center;
}

.fe-result-copy h3 {
  margin: 0 0 10px;
  color: var(--fe-ink);
}

.fe-result-copy p {
  color: #757575;
  font-size: 13px;
  line-height: 1.55;
}

.fe-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fe-error {
  max-width: 800px;
  margin: 18px auto 0;
  border: 1px solid #f0bcbc;
  border-radius: 12px;
  background: #fff3f3;
  padding: 12px 16px;
  color: #9d3434;
  font-size: 13px;
}

.fe-project-page {
  min-height: calc(100vh - 69px);
  background: #fbfbfd;
  padding: 58px 6vw;
}

.fe-project-page > .fe-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.fe-project-page > .fe-page-header h1 {
  font-size: 30px;
}

.fe-page-header h1 {
  margin: 0;
  color: var(--fe-ink);
  font-size: 42px;
  letter-spacing: -0.04em;
}

.fe-page-header p {
  margin: 10px 0 30px;
  color: #787878;
}

.fe-project-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 24px;
}

.fe-project-toolbar label {
  display: grid;
  gap: 5px;
  color: #757575;
  font-size: 12px;
}

.fe-project-toolbar input,
.fe-project-toolbar button,
.fe-project-toolbar select {
  height: 40px;
  border: 1px solid var(--fe-border);
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
}

.fe-project-toolbar .spacer {
  flex: 1;
}

.fe-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fe-project-grid.is-list {
  grid-template-columns: 1fr;
}

.fe-project-grid.is-list .fe-project-card {
  display: grid;
  grid-template-columns: 190px 1fr;
}

.fe-project-grid.is-list .fe-project-card img {
  height: 100%;
  aspect-ratio: 4 / 3;
}

.fe-project-card {
  overflow: hidden;
  border: 1px solid var(--fe-border);
  border-radius: 16px;
  background: #fff;
}

.fe-project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fe-project-card div {
  padding: 16px;
}

.fe-project-card h3 {
  margin: 0 0 7px;
  color: var(--fe-ink);
  font-size: 15px;
}

.fe-project-card p {
  margin: 0;
  color: #828282;
  font-size: 12px;
}

.fe-project-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--fe-ink);
  font-size: 14px;
}

.fe-project-card > div > span {
  color: #828282;
  font-size: 12px;
}

.fe-project-card .fe-project-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
}

.fe-project-card .fe-project-toolbar button,
.fe-project-card .fe-project-toolbar a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fe-border);
  border-radius: 9px;
  background: #fff;
  color: #686868;
  cursor: pointer;
}

.fe-project-card .fe-project-toolbar .active {
  border-color: #cecece;
  background: #f6f6f8;
  color: #000000;
}

.fe-project-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.fe-project-filters label {
  display: grid;
  gap: 6px;
  color: #737373;
  font-size: 0;
}

.fe-project-filters input,
.fe-project-filters button,
.fe-sort-button {
  height: 40px;
  border: 1px solid var(--fe-border);
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  color: #464646;
}

.fe-project-filters input {
  width: 112px;
  font-size: 12px;
}

.fe-layout-toggle {
  display: flex;
  gap: 4px;
  margin-left: auto;
  border: 1px solid var(--fe-border);
  border-radius: 10px;
  background: #fff;
  padding: 3px;
}

.fe-layout-toggle button {
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  padding: 0;
}

.fe-layout-toggle button[aria-pressed="true"] {
  background: #f3f3f5;
  color: #000000;
}

.fe-creation-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 28px;
  padding-bottom: 2px;
}

.fe-creation-tabs button {
  flex: none;
  border: 1px solid var(--fe-border);
  border-radius: 20px;
  background: #fff;
  padding: 9px 15px;
  color: #606060;
}

.fe-creation-tabs .active {
  border-color: #000000;
  background: #1a1a28;
  color: #fff;
}

.fe-library-heading {
  margin-bottom: 20px;
}

.fe-library-heading h2,
.fe-library-heading p {
  margin: 0;
}

.fe-library-heading p {
  margin-top: 5px;
  color: #868686;
  font-size: 13px;
}

/* Project editor */
.fe-editor-page {
  min-height: calc(100vh - 69px);
  background: #f3f3f5;
}

.fe-editor-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e3e3e3;
  background: #fff;
  padding: 9px 22px;
}

.fe-editor-header > a,
.fe-editor-header > button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--fe-border);
  border-radius: 10px;
  background: #fff;
  padding: 0 13px;
  color: #404040;
}

.fe-editor-header > div {
  min-width: 0;
  display: grid;
  flex: 1;
}

.fe-editor-header > div strong {
  overflow: hidden;
  color: #1a1a28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fe-editor-header > div span {
  color: #868686;
  font-size: 11px;
}

.fe-editor-header .active {
  border-color: #cecece;
  background: #f6f6f8;
  color: #000000;
}

.fe-editor-workspace {
  min-height: calc(100vh - 137px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.fe-editor-stage {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 40px;
}

.fe-editable-image {
  position: relative;
  max-width: min(100%, 900px);
  max-height: calc(100vh - 240px);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgb(26 26 40 / 16%);
  cursor: crosshair;
  touch-action: none;
}

.fe-editable-image img {
  width: 100%;
  max-height: calc(100vh - 240px);
  display: block;
  object-fit: contain;
  user-select: none;
}

.fe-region-selection {
  position: absolute;
  border: 2px solid #000000;
  background: rgb(0 0 0 / 14%);
  box-shadow: 0 0 0 9999px rgb(26 26 40 / 25%);
  pointer-events: none;
}

.fe-editor-stage > p {
  margin: 0;
  color: #767676;
  font-size: 13px;
}

.fe-editor-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid #e3e3e3;
  background: #fff;
  padding: 26px;
}

.fe-editor-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fe-editor-panel-title > div {
  display: grid;
  gap: 4px;
}

.fe-editor-panel-title span,
.fe-editor-panel label {
  color: #848484;
  font-size: 12px;
}

.fe-editor-panel-title button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fe-border);
  border-radius: 9px;
  background: #fff;
}

.fe-editor-panel textarea {
  min-height: 210px;
  resize: vertical;
  border: 1px solid var(--fe-border);
  border-radius: 12px;
  padding: 14px;
  color: #333333;
  line-height: 1.5;
}

.fe-editor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fe-editor-meta span {
  border-radius: 14px;
  background: #f4f4f6;
  padding: 6px 10px;
  color: #6d6d6d;
  font-size: 11px;
}

.fe-editor-panel .fe-primary-button {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  border: 0;
}

/* Evidence-based project workspace */
.fe-project-editor {
  --fe-chat-width: 420px;
  position: relative;
  min-height: calc(100dvh - 69px);
  height: calc(100dvh - 69px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: #f2f2f4;
  color: #333333;
}

.fe-project-editor.is-chat-open {
  grid-template-columns: minmax(0, 1fr) 12px var(--fe-chat-width);
}

.fe-project-mobile-switch {
  display: none;
  margin: 0;
  border: 0;
}

.fe-project-canvas {
  position: relative;
  min-width: 0;
  margin: 24px 12px 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 28px;
  background-color: #f3f3f5;
  background-image: radial-gradient(#d7d7d7 1px, transparent 1px);
  background-size: 24px 24px;
  touch-action: none;
}

.fe-project-canvas::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 12%, rgb(255 255 255 / 74%), transparent 28%),
    linear-gradient(135deg, rgb(240 240 242 / 25%), rgb(243 243 245 / 72%));
  content: "";
  pointer-events: none;
}

.fe-canvas-tools,
.fe-canvas-zoom,
.fe-selected-image-toolbar,
.fe-quick-edit,
.fe-inpaint-tools {
  display: flex;
  align-items: center;
  border: 1px solid #e3e3e3;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 10px 26px rgb(76 76 76 / 12%);
}

.fe-canvas-tools {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 12;
  height: 48px;
  gap: 4px;
  transform: translateX(-50%);
  border-radius: 15px;
  padding: 5px;
}

.fe-canvas-tools > span,
.fe-selected-image-toolbar > span {
  width: 1px;
  height: 24px;
  flex: 0 0 1px;
  margin: 0 3px;
  background: #e6e6e8;
}

.fe-canvas-tools button,
.fe-canvas-tools label,
.fe-canvas-zoom button {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #616161;
  cursor: pointer;
}

.fe-canvas-tools button:hover,
.fe-canvas-tools button.active,
.fe-canvas-tools label:hover,
.fe-canvas-zoom button:hover {
  background: #f4f4f6;
  color: #000000;
}

.fe-canvas-tools svg,
.fe-canvas-zoom svg {
  width: 19px;
  height: 19px;
}

.fe-canvas-tools input,
.fe-agent-composer input[type="file"] {
  display: none;
}

.fe-canvas-viewport {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: min(
    calc(64% * var(--fe-image-scale, 1)),
    calc(760px * var(--fe-image-scale, 1)),
    calc(var(--fe-canvas-max-width, 920px) * var(--fe-image-scale, 1))
  );
  transform-origin: 0 0;
  transition: transform 150ms ease;
}

.fe-canvas-image-object {
  position: relative;
  z-index: 1;
  transform: translate(-50%, -50%);
  border: 0;
  outline: 2px solid #000000;
  background: #fff;
  box-shadow: 0 10px 36px rgb(72 72 72 / 14%);
  user-select: none;
}

.fe-canvas-generation-overlay {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: rgb(255 255 255 / 96%);
  background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
  background-size: 18px 18px;
}

.fe-generation-progress.is-compact {
  width: min(90%, 420px);
  padding: 24px;
}

.fe-canvas-image-object img {
  width: 100%;
  display: block;
  pointer-events: none;
}

.fe-canvas-image-object > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fe-canvas-image-object.is-inpainting {
  cursor: crosshair;
}

.fe-canvas-image-object .handle {
  position: absolute;
  z-index: 5;
  width: 13px;
  height: 13px;
  border: 3px solid #000000;
  border-radius: 2px;
  background: #fff;
}

.fe-canvas-image-object .top-left {
  top: -7px;
  left: -7px;
}
.fe-canvas-image-object .top-right {
  top: -7px;
  right: -7px;
}
.fe-canvas-image-object .bottom-left {
  bottom: -7px;
  left: -7px;
}
.fe-canvas-image-object .bottom-right {
  right: -7px;
  bottom: -7px;
}

.fe-canvas-image-object .connector {
  position: absolute;
  z-index: 8;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 2px solid #000000;
  border-radius: 50%;
  background: #fff;
  color: #000000;
  box-shadow: 0 2px 8px rgb(26 26 40 / 16%);
}
.fe-canvas-image-object .connector svg {
  width: 14px;
}
.fe-canvas-image-object .connector.top {
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}
.fe-canvas-image-object .connector.right {
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
}
.fe-canvas-image-object .connector.bottom {
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
}
.fe-canvas-image-object .connector.left {
  top: 50%;
  left: -14px;
  transform: translateY(-50%);
}

.fe-canvas-image-title {
  position: absolute;
  top: calc(50% - 2px);
  bottom: auto;
  left: 0;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transform: translateX(-50%);
  border: 1px solid #e7e7e9;
  border-top: 0;
  background: #fff;
  padding: 0 10px;
  white-space: nowrap;
}

.fe-canvas-image-title button {
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #363636;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fe-canvas-image-title svg {
  width: 13px;
}
.fe-canvas-image-title span {
  border-radius: 10px;
  background: #eaeaec;
  padding: 3px 8px;
  color: #757575;
  font-size: 10px;
}

.fe-selected-image-toolbar {
  position: absolute;
  top: calc(-50% - 60px);
  bottom: auto;
  left: 0;
  z-index: 18;
  min-width: max-content;
  transform: translateX(-50%);
  border-radius: 17px;
  padding: 6px 7px;
}

.fe-selected-image-toolbar button {
  height: 39px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  padding: 0 10px;
  color: #444444;
  font-size: 12px;
  white-space: nowrap;
}

.fe-selected-image-toolbar button:hover,
.fe-selected-image-toolbar button.active {
  background: #f6f6f8;
  color: #000000;
}

.fe-selected-image-toolbar button.primary {
  background: #000000;
  color: #fff;
}

.fe-selected-image-toolbar svg {
  width: 18px;
  height: 18px;
}
.fe-selected-image-toolbar button > svg:last-child {
  width: 13px;
}
.fe-selected-image-toolbar i,
.fe-quick-edit i,
.fe-inpaint-workspace form i {
  display: none;
  border-radius: 999px;
  background: #f3f3f5;
  padding: 2px 5px;
  color: #000000;
  font-size: 9px;
  font-style: normal;
}

.fe-selected-image-toolbar button:hover i,
.fe-quick-edit button[type="submit"] i,
.fe-inpaint-workspace form button i {
  display: inline-flex;
}

.fe-editor-popup {
  position: absolute;
  top: calc(-50% + 12px);
  bottom: auto;
  left: 50%;
  z-index: 30;
  transform: translateX(-50%);
  border: 1px solid #e3e3e3;
  border-radius: 15px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 18px 50px rgb(58 58 58 / 18%);
}

.fe-aspect-popup {
  width: 410px;
}
.fe-aspect-popup > strong,
.fe-palette-popup > strong {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
}
.fe-aspect-popup > div {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.fe-aspect-popup button {
  display: grid;
  place-items: center;
  gap: 7px;
  border: 1px solid #e7e7e9;
  border-radius: 10px;
  background: #fff;
  padding: 9px 4px;
  color: #656565;
  font-size: 10px;
}
.fe-aspect-popup button:hover {
  border-color: #000000;
  color: #000000;
}
.fe-aspect-popup .ratio {
  width: 22px;
  height: 17px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 2px;
}
.fe-aspect-popup .ratio-16-9 {
  height: 13px;
}
.fe-aspect-popup .ratio-1-1 {
  width: 17px;
}
.fe-aspect-popup .ratio-2-3,
.fe-aspect-popup .ratio-3-4 {
  width: 13px;
  height: 19px;
}
.fe-aspect-popup small,
.fe-palette-popup small {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 12px;
  color: #7e7e7e;
  font-size: 10px;
}
.fe-aspect-popup small svg,
.fe-palette-popup small svg {
  width: 12px;
}

.fe-palette-popup {
  width: min(640px, 78vw);
}
.fe-palette-popup > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  max-height: 320px;
  overflow: auto;
}
.fe-palette-popup button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e8e8ea;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  color: #5e5e5e;
  font-size: 10px;
  text-align: left;
}
.fe-palette-popup button > span {
  width: 34px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    hsl(calc(var(--palette-index) * 27deg) 65% 68%),
    hsl(calc(var(--palette-index) * 27deg + 75deg) 58% 82%)
  );
}
.fe-palette-popup > strong:last-of-type {
  margin: 14px 0 0;
  color: #7e7e7e;
}

.fe-export-popup {
  top: calc(-50% + 12px);
  right: auto;
  left: 0;
  width: 320px;
  transform: translateX(-8%);
  padding: 7px;
}
.fe-export-popup > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  padding: 11px;
  text-align: left;
}
.fe-export-popup > button:hover {
  background: #f6f6f8;
}
.fe-export-popup svg {
  width: 20px;
  color: #000000;
}
.fe-export-popup span {
  display: grid;
  gap: 2px;
}
.fe-export-popup small {
  color: #878787;
  font-size: 9px;
}

.fe-quick-edit {
  position: absolute;
  top: calc(-50% - 61px);
  bottom: auto;
  left: 0;
  z-index: 28;
  width: min(620px, 72vw);
  gap: 8px;
  transform: translateX(-50%);
  border-radius: 15px;
  padding: 7px 8px 7px 13px;
}
.fe-quick-edit > svg {
  width: 19px;
  color: #000000;
}
.fe-quick-edit input {
  min-width: 0;
  height: 38px;
  flex: 1;
  border: 0;
  outline: 0;
}
.fe-quick-edit button {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 10px;
  background: #f3f3f5;
  padding: 0 10px;
}
.fe-quick-edit button[type="submit"] {
  background: #000000;
  color: #fff;
}

.fe-inpaint-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  pointer-events: none;
  overflow: hidden;
}
.fe-canvas-image-object.is-inpainting {
  touch-action: none;
}
.fe-canvas-image-object.is-inpainting .fe-canvas-object,
.fe-canvas-image-object.is-inpainting .handle,
.fe-canvas-image-object.is-inpainting .connector {
  pointer-events: none;
}
.fe-project-canvas.is-inpaint-mode {
  background-image: none;
}
.fe-project-canvas.is-inpaint-mode .fe-selected-image-toolbar,
.fe-project-canvas.is-inpaint-mode .fe-canvas-tools,
.fe-project-canvas.is-inpaint-mode .fe-canvas-image-title,
.fe-project-canvas.is-inpaint-mode .fe-canvas-zoom,
.fe-project-canvas.is-inpaint-mode .fe-canvas-hint,
.fe-project-canvas.is-inpaint-mode .handle,
.fe-project-canvas.is-inpaint-mode .connector {
  display: none;
}
.fe-project-canvas.is-inpaint-mode .fe-canvas-viewport {
  width: min(calc(100% - 48px), var(--fe-inpaint-max-width));
}
.fe-project-canvas.is-inpaint-mode .fe-canvas-image-object {
  border: 0;
  outline: 0;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}
.fe-inpaint-workspace {
  position: absolute;
  inset: 14px 12px 12px;
  z-index: 24;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.fe-inpaint-workspace > * {
  pointer-events: auto;
}
.fe-inpaint-tools {
  width: min(760px, 100%);
  flex-shrink: 0;
  overflow-x: auto;
  min-width: 0;
  height: 48px;
  gap: 4px;
  border-radius: 14px;
  padding: 5px;
}
.fe-inpaint-tools strong,
.fe-inpaint-tools button {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 0 9px;
  color: #5f5f5f;
  font-size: 10px;
}
.fe-inpaint-tools strong {
  color: #363636;
}
.fe-inpaint-tools button.active {
  background: #f4f4f6;
  color: #000000;
}
.fe-inpaint-tools > span {
  flex: 1;
}
.fe-inpaint-tools i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #000000;
}
.fe-inpaint-tools svg {
  width: 16px;
}
.fe-inpaint-workspace form {
  width: min(680px, 100%);
  display: flex;
  gap: 7px;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  background: #fff;
  padding: 7px;
  box-shadow: 0 14px 40px rgb(59 59 59 / 18%);
}
.fe-inpaint-tools button {
  flex-shrink: 0;
}
.fe-inpaint-tools button:disabled,
.fe-inpaint-workspace form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fe-inpaint-workspace form input {
  min-width: 0;
  height: 38px;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 10px;
}
.fe-inpaint-workspace form button {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 9px;
  background: #000000;
  padding: 0 13px;
  color: #fff;
}

.fe-canvas-object {
  position: absolute;
  z-index: 7;
  border: 0;
  background: transparent;
  color: #303030;
  transform: translate(-50%, -50%);
  cursor: move;
  touch-action: none;
}
.fe-canvas-object.selected {
  filter: drop-shadow(0 0 3px rgb(0 0 0 / 42%));
}
.fe-object-selection {
  position: absolute;
  inset: -7px;
  border: 1px solid #000000;
  border-radius: 4px;
  pointer-events: none;
}
.fe-canvas-object.object-text {
  border: 1px dashed #000000;
  background: rgb(255 255 255 / 86%);
  padding: 4px 8px;
  font-size: 18px;
  font-weight: 650;
}
.fe-canvas-object.object-rectangle {
  width: 120px;
  height: 72px;
  border: 3px solid #000000;
}
.fe-canvas-object.object-arrow {
  width: 120px;
  height: 3px;
  background: #000000;
  transform: rotate(-18deg);
}
.fe-canvas-object.object-arrow::after {
  position: absolute;
  top: -5px;
  right: -2px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-top: 3px solid #000000;
  border-right: 3px solid #000000;
  content: "";
}

.fe-canvas-hint {
  position: absolute;
  top: calc(50% + 52px);
  left: 0;
  transform: translateX(-50%);
  color: #7e7e7e;
  font-size: 10px;
  white-space: nowrap;
}
.fe-canvas-zoom {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 12;
  height: 44px;
  gap: 2px;
  border-radius: 14px;
  padding: 4px;
}
.fe-canvas-zoom button:first-child {
  width: 58px;
  color: #505050;
  font-size: 11px;
}

.fe-chat-resizer {
  position: relative;
  z-index: 18;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  cursor: col-resize;
  background: #eeeef0;
}
.fe-chat-resizer::after {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 4px;
  height: 44px;
  transform: translateY(-50%);
  border-radius: 4px;
  background: #c7c7c7;
  content: "";
}
.fe-project-chat {
  min-width: 0;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) auto;
  overflow: hidden;
  border-left: 1px solid #e2e2e2;
  background: #fff;
}
.fe-project-chat > header {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #e8e8ea;
  padding: 8px 10px;
}
.fe-project-chat > header > a,
.fe-project-chat > header nav button {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #626262;
}
.fe-project-chat > header > a:hover,
.fe-project-chat > header nav button:hover {
  background: #f4f4f6;
  color: #000000;
}
.fe-project-chat > header svg {
  width: 17px;
}
.fe-chat-title {
  min-width: 0;
  height: 38px;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #373737;
  font-weight: 650;
}
.fe-chat-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fe-chat-title svg {
  flex: 0 0 auto;
  color: #8e8e8e;
}
.fe-project-chat > header nav {
  display: flex;
  flex: 0 0 auto;
  margin-left: auto;
}
.fe-chat-title-edit {
  min-width: 0;
  display: flex;
  flex: 1;
  gap: 3px;
}
.fe-chat-title-edit input {
  min-width: 0;
  flex: 1;
  border: 1px solid #dadada;
  border-radius: 8px;
  padding: 0 8px;
}
.fe-chat-title-edit button {
  width: 32px;
  border: 0;
  border-radius: 8px;
  background: #f4f4f6;
  color: #000000;
}

.fe-chat-scroll {
  overflow-y: auto;
  padding: 18px 18px 24px;
}
.fe-user-message {
  max-width: 91%;
  margin-left: auto;
  border-radius: 16px 16px 5px 16px;
  background: #f4f4f6;
  padding: 13px;
}
.fe-user-message p {
  margin: 0;
  color: #444444;
  font-size: 12px;
  line-height: 1.55;
}
.fe-user-message footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #929292;
  font-size: 9px;
}
.fe-user-message button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
}
.fe-user-message svg {
  width: 13px;
}

.fe-generation-card {
  margin-top: 16px;
  border: 1px solid #e6e6e8;
  border-radius: 15px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 7px 22px rgb(60 60 60 / 7%);
}
.fe-generation-card > header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.fe-generation-card > header strong {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #000000;
  font-size: 10px;
}
.fe-generation-card > header strong svg {
  width: 13px;
}
.fe-generation-card > header span,
.fe-generation-card > header em {
  border-radius: 10px;
  background: #f3f3f5;
  padding: 4px 7px;
  color: #747474;
  font-size: 8px;
  font-style: normal;
}
.fe-generation-card > header em {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  background: #f4f4f6;
  color: #000000;
}
.fe-generation-card > header em svg {
  width: 10px;
}
.fe-image-analyzer {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0;
  border: 0;
  border-radius: 8px;
  background: #f8f8fa;
  padding: 0 9px;
  color: #656565;
  font-size: 9px;
}
.fe-image-analyzer svg {
  width: 14px;
}
.fe-image-analyzer svg:last-child {
  margin-left: auto;
}
.fe-image-analysis {
  display: grid;
  gap: 5px;
  margin: -4px 0 10px;
  border: 1px solid #ececee;
  border-radius: 9px;
  background: #fdfdff;
  padding: 9px;
  color: #727272;
  font-size: 9px;
}
.fe-image-analysis strong {
  color: #363636;
}
.fe-image-analysis p {
  margin: 2px 0 0;
  line-height: 1.45;
}
.fe-chat-result {
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #f2f2f4;
  padding: 0;
}
.fe-chat-result img {
  width: 100%;
  max-height: 310px;
  display: block;
  object-fit: contain;
}
.fe-generation-card > footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3px;
  margin-top: 8px;
}
.fe-generation-card > footer > div {
  grid-column: 1 / -1;
  display: flex;
  gap: 2px;
}
.fe-generation-card > footer button {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #787878;
}
.fe-generation-card > footer button:hover {
  background: #f4f4f6;
  color: #000000;
}
.fe-generation-card > footer button.active {
  background: #f3f3f5;
  color: #000000;
}
.fe-generation-card > footer svg {
  width: 14px;
}
.fe-generation-card > footer small,
.fe-generation-card > footer time {
  color: #929292;
  font-size: 8px;
}

.fe-agent-composer {
  margin: 10px;
  border: 1px solid #dbdbdb;
  border-radius: 17px;
  background: #fff;
  padding: 9px;
  box-shadow: 0 10px 30px rgb(65 65 65 / 10%);
}
.fe-agent-composer > p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 6px;
  color: #808080;
  font-size: 9px;
}
.fe-agent-composer > p svg {
  width: 12px;
}
.fe-agent-composer textarea {
  width: 100%;
  min-height: 76px;
  resize: none;
  border: 0;
  outline: 0;
  padding: 6px 5px;
  color: #434343;
  font-size: 11px;
  line-height: 1.5;
}
.fe-composer-reference {
  display: grid;
  grid-template-columns: 46px 1fr 28px;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  border-radius: 11px;
  background: #f5f5f7;
  padding: 6px;
  border: 0;
}
.fe-composer-reference img {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
}
.fe-composer-reference span {
  display: grid;
  gap: 2px;
  font-size: 9px;
}
.fe-composer-reference small {
  color: #878787;
}
.fe-composer-reference button {
  border: 0;
  background: transparent;
  color: #727272;
}
.fe-composer-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  border-top: 1px solid #eaeaec;
  padding-top: 7px;
}
.fe-composer-actions > span {
  flex: 1;
}
.fe-composer-actions button,
.fe-composer-actions label {
  min-width: 31px;
  height: 31px;
  display: flex;
  place-items: center;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0 6px;
  color: #6f6f6f;
  font-size: 9px;
}
.fe-composer-actions button:hover,
.fe-composer-actions label:hover {
  background: #f5f5f7;
  color: #000000;
}
.fe-composer-actions button[type="submit"] {
  background: #000000;
  color: #fff;
}
.fe-composer-actions svg {
  width: 15px;
}

.fe-chat-reopen {
  position: absolute;
  top: 28px;
  right: 18px;
  bottom: auto;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dedede;
  border-radius: 21px;
  background: #fff;
  padding: 10px 15px;
  color: #000000;
  box-shadow: 0 10px 25px rgb(60 60 60 / 14%);
}
.fe-chat-reopen svg {
  width: 17px;
}

.fe-editor-mode-overlay {
  position: fixed;
  inset: 69px 0 0 72px;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgb(26 26 40 / 48%);
  backdrop-filter: blur(3px);
}
.fe-prompt-detail,
.fe-history-dialog,
.fe-share-dialog,
.fe-export-paywall,
.fe-rename-dialog {
  border: 1px solid #e2e2e2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px rgb(26 26 40 / 28%);
}
.fe-prompt-detail {
  width: min(900px, 90vw);
  max-height: 86vh;
  overflow: auto;
  padding: 22px;
}
.fe-prompt-detail > header,
.fe-history-dialog > header,
.fe-share-dialog > header,
.fe-export-paywall > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fe-prompt-detail > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fe-prompt-detail > header span {
  border-radius: 12px;
  background: #f0f0f2;
  padding: 4px 8px;
  color: #727272;
  font-size: 10px;
}
.fe-prompt-detail button,
.fe-history-dialog header button,
.fe-share-dialog header button,
.fe-export-paywall header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #f2f2f4;
  color: #6c6c6c;
}
.fe-prompt-detail section {
  margin-top: 18px;
}
.fe-prompt-detail section > strong {
  color: #606060;
  font-size: 11px;
}
.fe-prompt-detail pre {
  overflow: visible;
  white-space: pre-wrap;
  margin: 8px 0 0;
  border: 1px solid #e7e7e9;
  border-radius: 12px;
  background: #fafafc;
  padding: 14px;
  color: #434343;
  font:
    11px / 1.6 ui-monospace,
    monospace;
}

.fe-history-dialog {
  width: min(470px, 88vw);
  padding: 20px;
}
.fe-history-dialog label {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 0 10px;
}
.fe-history-dialog label svg {
  width: 17px;
  color: #888888;
}
.fe-history-dialog input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
}
.fe-history-dialog ul {
  max-height: 340px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fe-history-dialog a {
  display: block;
  overflow: hidden;
  border-radius: 9px;
  padding: 11px;
  color: #464646;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fe-history-dialog a:hover {
  background: #f5f5f7;
  color: #000000;
}

.fe-share-dialog {
  width: 320px;
  padding: 20px;
}
.fe-share-popover-layer {
  position: absolute;
  z-index: 75;
  top: 61px;
  right: 16px;
}
.fe-share-popover-layer .fe-share-dialog {
  max-height: calc(100dvh - 154px);
  overflow-y: auto;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgb(26 26 40 / 22%);
}
.fe-share-dialog > p {
  color: #7a7a7a;
  font-size: 12px;
}
.fe-share-options {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  border: 0;
  padding: 0;
}
.fe-share-options > button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  padding: 13px;
  color: #464646;
  text-align: left;
}
.fe-share-options > button.active {
  border-color: #000000;
  background: #f7f7f9;
  box-shadow: 0 0 0 2px rgb(0 0 0 / 12%);
}
.fe-share-options > button svg {
  width: 20px;
  color: #000000;
}
.fe-share-options > button span {
  display: grid;
  gap: 3px;
}
.fe-share-options small {
  color: #808080;
  font-size: 10px;
}
.fe-share-options label {
  display: grid;
  gap: 6px;
  color: #626262;
  font-size: 11px;
}
.fe-share-options input {
  height: 40px;
  border: 1px solid #e3e3e3;
  border-radius: 9px;
  padding: 0 11px;
  outline: 0;
}
.fe-share-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.fe-share-actions button,
.fe-share-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
  color: #626262;
}
.fe-share-link-preview {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: #626262;
  font-size: 11px;
}
.fe-share-link-preview input {
  height: 38px;
  border: 1px solid #e0e0e0;
  border-radius: 9px;
  padding: 0 10px;
  color: #757575;
  font-size: 10px;
}
.fe-share-copy {
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: #000000;
  color: #fff;
}
.fe-share-actions svg,
.fe-share-copy svg {
  width: 16px;
}
.fe-share-dialog button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.fe-share-error {
  color: #b42318 !important;
}

.fe-shared-project-page {
  min-height: calc(100vh - 70px);
  background: #f3f3f5;
  padding: 42px;
}
.fe-shared-project-state {
  width: min(460px, 92vw);
  display: grid;
  place-items: center;
  gap: 13px;
  margin: 11vh auto 0;
  border: 1px solid #e3e3e3;
  border-radius: 20px;
  background: #fff;
  padding: 34px;
  text-align: center;
  box-shadow: 0 22px 70px rgb(51 51 51 / 14%);
}
.fe-shared-project-state > svg {
  width: 34px;
  height: 34px;
  color: #000000;
}
.fe-shared-project-state h1,
.fe-shared-project-state p {
  margin: 0;
}
.fe-shared-project-state input {
  width: 100%;
  height: 44px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 0 12px;
}
.fe-shared-project-state button {
  border: 0;
  border-radius: 9px;
  background: #000000;
  padding: 11px 18px;
  color: #fff;
}
.fe-shared-project {
  width: min(1120px, 96vw);
  margin: 0 auto;
}
.fe-shared-project header {
  margin-bottom: 20px;
}
.fe-shared-project header > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #000000;
  font-size: 12px;
  font-weight: 700;
}
.fe-shared-project h1 {
  margin: 10px 0 6px;
}
.fe-shared-project header p {
  max-width: 760px;
  color: #757575;
}
.fe-shared-project figure {
  margin: 0;
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 22px 70px rgb(51 51 51 / 12%);
}
.fe-shared-project img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}
.fe-shared-project figcaption {
  margin-top: 12px;
  color: #808080;
  font-size: 11px;
  text-align: center;
}

.fe-export-paywall {
  width: min(850px, 92vw);
  padding: 24px;
}
.fe-export-paywall > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fe-export-paywall > header svg {
  color: #000000;
}
.fe-export-paywall > p {
  color: #767676;
  font-size: 12px;
}
.fe-export-paywall > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.fe-export-paywall article {
  min-height: 145px;
  display: grid;
  gap: 10px;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 17px;
}
.fe-export-paywall article.popular {
  border-color: #000000;
  box-shadow: 0 10px 25px rgb(0 0 0 / 12%);
}
.fe-export-paywall article > span {
  color: #000000;
  font-size: 10px;
  font-weight: 700;
}
.fe-export-paywall article > strong {
  font-size: 26px;
}
.fe-export-paywall article small {
  color: #828282;
  font-size: 10px;
}
.fe-export-paywall article p {
  margin: 0;
  color: #7c7c7c;
  font-size: 10px;
}
.fe-export-paywall > a {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 10px;
  background: #000000;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}

.fe-rename-dialog {
  display: flex;
  gap: 7px;
  padding: 12px;
}
.fe-rename-dialog input {
  min-width: 340px;
  border: 1px solid #e1e1e1;
  border-radius: 9px;
  padding: 0 10px;
}
.fe-rename-dialog button {
  border: 0;
  border-radius: 9px;
  background: #f2f2f4;
  padding: 9px 13px;
}
.fe-rename-dialog button:last-child {
  background: #000000;
  color: #fff;
}

.fe-editor-busy,
.fe-editor-toast,
.fe-editor-credit-badge {
  position: fixed;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 35px rgb(49 49 49 / 18%);
}
.fe-editor-busy {
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  color: #000000;
  font-size: 11px;
}
.fe-editor-toast {
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  padding: 11px;
  color: #b33c3c;
  font-size: 11px;
}
.fe-editor-toast > button {
  margin-left: auto;
  border: 0;
  background: transparent;
}
.fe-editor-busy svg,
.fe-editor-toast svg {
  width: 16px;
}
.fe-editor-credit-badge {
  top: 80px;
  right: 18px;
  padding: 7px 10px;
  color: #000000;
  font-size: 10px;
}
.fe-editor-credit-badge svg {
  width: 13px;
}
.fe-project-editor-loading {
  min-height: calc(100vh - 69px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6d6d6d;
}

@media (max-width: 900px) {
  .fe-project-editor {
    height: calc(100dvh - 66px);
    min-height: calc(100dvh - 66px);
    display: block;
    padding-top: 46px;
  }

  .fe-project-editor.is-chat-open {
    display: block;
  }
  .fe-project-mobile-switch {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    height: 46px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e3e3e3;
    background: #fff;
    padding: 5px 9px;
  }
  .fe-project-mobile-switch button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #707070;
    font-size: 11px;
  }
  .fe-project-mobile-switch button.active {
    background: #f4f4f6;
    color: #000000;
  }
  .fe-project-mobile-switch svg {
    width: 16px;
  }

  .fe-project-canvas,
  .fe-project-chat {
    display: none;
  }
  .fe-project-canvas {
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .fe-project-canvas.mobile-active,
  .fe-project-chat.mobile-active {
    width: 100%;
    height: 100%;
    display: block;
  }
  .fe-project-chat.mobile-active {
    display: grid;
  }
  .fe-chat-resizer {
    display: none;
  }

  .fe-canvas-tools {
    top: auto;
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    justify-content: flex-start;
    overflow-x: auto;
    transform: none;
    scrollbar-width: none;
  }
  .fe-canvas-tools::-webkit-scrollbar {
    display: none;
  }
  .fe-canvas-zoom {
    display: none;
  }
  .fe-canvas-tools button,
  .fe-canvas-tools label {
    flex: 0 0 37px;
  }
  .fe-canvas-viewport {
    width: calc(88% * var(--fe-image-scale, 1));
  }
  .fe-selected-image-toolbar {
    top: calc(-50% - 60px);
    bottom: auto;
    left: -44%;
    max-width: 100vw;
    overflow-x: auto;
    transform: none;
    scrollbar-width: none;
  }
  .fe-selected-image-toolbar::-webkit-scrollbar {
    display: none;
  }
  .fe-selected-image-toolbar button {
    flex: 0 0 auto;
  }
  .fe-selected-image-toolbar button i {
    display: none !important;
  }
  .fe-editor-popup {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 66px;
    left: 12px;
    width: auto;
    max-height: 60vh;
    overflow: auto;
    transform: none;
  }
  .fe-palette-popup {
    width: auto;
  }
  .fe-palette-popup > div {
    grid-template-columns: 1fr 1fr;
  }
  .fe-aspect-popup > div {
    grid-template-columns: repeat(3, 1fr);
  }
  .fe-quick-edit {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 66px;
    left: 10px;
    width: auto;
    transform: none;
  }
  .fe-inpaint-workspace {
    inset: 10px 8px;
  }
  .fe-project-canvas.is-inpaint-mode .fe-canvas-viewport {
    width: min(calc(100% - 20px), var(--fe-inpaint-max-width));
  }
  .fe-canvas-image-title {
    max-width: 88vw;
  }
  .fe-canvas-image-title button {
    max-width: 72vw;
  }
  .fe-canvas-hint {
    display: none;
  }

  .fe-project-chat > header {
    padding: 7px;
  }
  .fe-project-chat > header nav button {
    width: 31px;
  }
  .fe-chat-scroll {
    padding: 12px;
  }
  .fe-agent-composer {
    margin: 7px;
  }
  .fe-agent-composer textarea {
    min-height: 60px;
  }
  .fe-composer-actions {
    overflow-x: auto;
  }
  .fe-composer-actions > span {
    min-width: 12px;
  }
  .fe-chat-reopen {
    display: none;
  }
  .fe-editor-mode-overlay {
    inset: 66px 0 0;
    padding: 10px;
  }
  .fe-share-popover-layer {
    position: fixed;
    inset: 66px 0 0;
    display: grid;
    place-items: start center;
    overflow-y: auto;
    background: rgb(26 26 40 / 48%);
    padding: 10px;
    backdrop-filter: blur(3px);
  }
  .fe-share-popover-layer .fe-share-dialog {
    width: 100%;
    max-width: 360px;
    max-height: calc(100dvh - 86px);
  }
  .fe-prompt-detail {
    width: 100%;
    max-height: 88vh;
  }

  .fe-export-paywall {
    width: 100%;
    max-height: 88vh;
    overflow: auto;
  }
  .fe-export-paywall > div {
    grid-template-columns: 1fr;
  }
  .fe-export-paywall article {
    min-height: auto;
  }
  .fe-editor-credit-badge {
    top: 73px;
  }
}

@media (max-width: 520px) {
  .fe-canvas-viewport {
    left: calc(50% + 155px);
    width: calc(700px * var(--fe-image-scale, 1));
  }
  .fe-selected-image-toolbar {
    top: calc(-50% - 85px);
  }
}

/* Catalog pages */
.fe-catalog-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  align-items: center;
  gap: 70px;
  background: linear-gradient(135deg, #fbfbfd, #f5f5f7 55%, #f7f4ff);
  padding: 76px 7vw;
}

.fe-catalog-hero h1 {
  margin: 0 0 20px;
  color: var(--fe-ink);
  font-size: clamp(52px, 5vw, 76px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.fe-catalog-hero p {
  color: #707070;
  font-size: 18px;
  line-height: 1.65;
}

.fe-catalog-hero img {
  width: 100%;
  border: 1px solid #e7e7e9;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgb(26 26 40 / 15%);
}

.fe-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fe-catalog-card {
  overflow: hidden;
  border: 1px solid var(--fe-border);
  border-radius: 20px;
  background: #fff;
}

.fe-catalog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fe-catalog-card div {
  padding: 22px;
}

.fe-catalog-card h3 {
  margin: 0 0 8px;
  color: var(--fe-ink);
  font-size: 22px;
}

.fe-catalog-card p {
  color: #767676;
  line-height: 1.55;
}

/* GPT Image 2 model workspace */
.fe-gpt-page {
  background: #fcfcfe;
  color: var(--fe-ink);
}

.fe-breadcrumb {
  width: min(1320px, calc(100% - 48px));
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  border-bottom: 1px solid #ebebed;
  padding: 14px 0;
  color: #858585;
  font-size: 12px;
}

.fe-breadcrumb a {
  color: #7a7a7a;
  text-decoration: none;
}

.fe-breadcrumb strong {
  color: #323232;
  font-weight: 600;
}

.fe-gpt-hero {
  background:
    radial-gradient(circle at 50% 0, rgb(236 236 238 / 78%), transparent 38%),
    linear-gradient(180deg, #f8f8fa, #fcfcfe);
  padding: 100px 24px 100px;
}

.fe-gpt-intro {
  max-width: 1500px;
  margin: 0 auto 48px;
  text-align: center;
}

.fe-gpt-intro > p {
  width: max-content;
  margin: 0 auto 22px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  padding: 9px 20px;
  color: #000000;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.fe-gpt-intro h1 {
  max-width: 1600px;
  margin: 0 auto;
  color: #303030;
  font-size: clamp(42px, 3.25vw, 65px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.fe-gpt-intro > div {
  max-width: 850px;
  margin: 14px auto 0;
  color: #727272;
  font-size: 20px;
  line-height: 1.6;
}

.fe-gpt-workbench {
  width: min(1230px, 100%);
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 24px;
  margin: 0 auto;
}

.fe-gpt-generator,
.fe-gpt-preview {
  border: 1px solid #e4e4e4;
  border-radius: 22px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 25px 60px rgb(26 26 40 / 10%);
}

.fe-gpt-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 20px;
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  background: #fafafc;
  padding: 4px;
}

.fe-gpt-tabs button {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #606060;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.fe-gpt-tabs button.active {
  border: 1px solid #d8d8d8;
  background: #f4f4f6;
  color: #000000;
  box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
}

.fe-gpt-tabs svg {
  width: 17px;
}

.fe-gpt-field-label {
  display: block;
  margin: 17px 0 8px;
  color: #303030;
  font-size: 13px;
  font-weight: 650;
}

.fe-gpt-field-label b {
  color: #e5484d;
}

.fe-gpt-model-select {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  color: #2d2d2d;
  text-align: left;
}

.fe-gpt-model-select > img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #101010;
  padding: 8px;
}

.fe-gpt-model-select > span {
  min-width: 0;
  display: grid;
  flex: 1;
}

.fe-gpt-model-select strong {
  font-size: 13px;
}

.fe-gpt-model-select small {
  overflow: hidden;
  color: #858585;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fe-gpt-model-select em {
  color: #000000;
  font-size: 10px;
  font-style: normal;
}

.fe-gpt-model-select svg {
  width: 16px;
  color: #909090;
}

.fe-gpt-generator textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px 24px;
  color: #303030;
  font-size: 12px;
  line-height: 1.6;
  outline: 0;
}

.fe-gpt-generator textarea:focus {
  border-color: #b3b3b3;
  box-shadow: 0 0 0 3px rgb(0 0 0 / 10%);
}

.fe-gpt-prompt-count {
  height: 0;
  transform: translate(-9px, -21px);
  color: #969696;
  text-align: right;
  font-size: 10px;
}

.fe-gpt-example-label {
  margin: 18px 0 8px;
  color: #717171;
  font-size: 11px;
}

.fe-gpt-example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fe-gpt-example-chips button {
  border: 1px solid #e6e6e8;
  border-radius: 999px;
  background: #fafafc;
  padding: 6px 8px;
  color: #727272;
  font-size: 9px;
  cursor: pointer;
}

.fe-gpt-settings-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin-top: 17px;
}

.fe-gpt-settings-row label,
.fe-gpt-settings-row fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  border: 0;
  padding: 0;
  color: #404040;
  font-size: 11px;
  font-weight: 650;
}

.fe-gpt-settings-row select {
  height: 38px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fff;
  padding: 0 10px;
  color: #515151;
}

.fe-gpt-settings-row fieldset {
  grid-template-columns: repeat(3, 1fr);
}

.fe-gpt-settings-row legend {
  grid-column: 1 / -1;
  margin-bottom: 7px;
}

.fe-gpt-settings-row fieldset button {
  height: 38px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fff;
  color: #646464;
  cursor: pointer;
}

.fe-gpt-settings-row fieldset button.active {
  border-color: #bcbcbc;
  background: #f4f4f6;
  color: #000000;
}

.fe-gpt-source-preview {
  width: 100%;
  height: 80px;
  margin-top: 14px;
  border-radius: 10px;
  object-fit: cover;
}

.fe-gpt-generate {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  background: #000000;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.fe-gpt-generate:disabled {
  background: #c0c0c0;
  cursor: not-allowed;
}

.fe-gpt-generate svg {
  width: 15px;
}

.fe-gpt-preview {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fe-gpt-preview > img {
  width: 100%;
  min-height: 430px;
  max-height: 540px;
  flex: 1;
  border-radius: 12px;
  background: #f6f6f8;
  object-fit: contain;
}

.fe-gpt-preview > a {
  position: absolute;
  top: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #fff;
  padding: 9px 13px;
  color: #000000;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 7px 22px rgb(26 26 40 / 16%);
}

.fe-gpt-preview-caption {
  display: grid;
  justify-content: center;
  margin: 18px 0 12px;
  text-align: center;
}

.fe-gpt-preview-caption span {
  color: #000000;
  font-size: 11px;
  font-weight: 650;
}

.fe-gpt-preview-caption small {
  color: #909090;
  font-size: 9px;
}

.fe-gpt-thumbnails {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.fe-gpt-thumbnails button {
  overflow: hidden;
  height: 70px;
  border: 1px solid #e6e6e8;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  cursor: pointer;
}

.fe-gpt-thumbnails img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
}

.fe-gpt-section {
  padding: 100px 7vw;
  background: #fff;
}

.fe-gpt-section:nth-of-type(even) {
  background: #fbfbfd;
}

.fe-gpt-section > header,
.fe-gpt-steps > header,
.fe-gpt-faq > header {
  max-width: 820px;
  margin: 0 auto 45px;
  text-align: center;
}

.fe-gpt-section > header h2,
.fe-gpt-steps h2,
.fe-gpt-faq h2 {
  margin: 0;
  color: #2a2a2a;
  font-size: clamp(34px, 3vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.fe-gpt-section > header > p:not(:first-child),
.fe-gpt-steps header p,
.fe-gpt-faq header p {
  margin: 16px 0 0;
  color: #797979;
  font-size: 15px;
  line-height: 1.7;
}

.fe-gpt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fe-gpt-gallery-grid button {
  position: relative;
  overflow: hidden;
  display: grid;
  border: 1px solid #e6e6e8;
  border-radius: 16px;
  background: #fff;
  padding: 0 0 17px;
  color: #303030;
  text-align: left;
  cursor: pointer;
}

.fe-gpt-gallery-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.fe-gpt-gallery-grid strong,
.fe-gpt-gallery-grid span {
  padding: 0 15px;
}

.fe-gpt-gallery-grid strong {
  margin-top: 14px;
  font-size: 14px;
}

.fe-gpt-gallery-grid span {
  margin-top: 4px;
  color: #838383;
  font-size: 11px;
  line-height: 1.4;
}

.fe-gpt-gallery-grid em {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 93%);
  padding: 6px 9px;
  color: #000000;
  font-size: 9px;
  font-style: normal;
}

.fe-gpt-strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fe-gpt-strength-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid #e6e6e8;
  border-radius: 20px;
  background: #fff;
  padding-bottom: 24px;
}

.fe-gpt-strength-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.fe-gpt-strength-grid article > span {
  position: absolute;
  top: 208px;
  left: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #000000;
  color: #fff;
  font-size: 11px;
}

.fe-gpt-strength-grid h3,
.fe-gpt-strength-grid p {
  margin-right: 22px;
  margin-left: 22px;
}

.fe-gpt-strength-grid h3 {
  margin-top: 34px;
  margin-bottom: 8px;
  font-size: 19px;
}

.fe-gpt-strength-grid p {
  margin-top: 0;
  color: #808080;
  font-size: 13px;
  line-height: 1.65;
}

.fe-gpt-model-strengths {
  padding: 110px 7vw 130px;
  background: #fff;
  color: #303030;
}

.fe-gpt-model-strengths > div:first-child {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.fe-gpt-model-strengths > div:first-child p {
  color: #bcbcbc;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.fe-gpt-model-strengths h2 {
  margin: 14px 0;
  font-size: clamp(38px, 3.5vw, 58px);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.fe-gpt-model-strengths > div:first-child span {
  color: #7c7c7c;
  line-height: 1.7;
}

.fe-gpt-model-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: min(1120px, 100%);
  margin: 58px auto 38px;
}

.fe-gpt-model-cards article {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 45px;
  overflow: hidden;
  border: 1px solid #e3e4e2;
  border-radius: 22px;
  background: #faf9f6;
  padding: 34px;
}

.fe-gpt-model-cards article:nth-child(even) img {
  order: 2;
}

.fe-gpt-model-cards article > img {
  width: 100%;
  height: 290px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 24px rgb(62 62 62 / 8%);
}

.fe-gpt-model-cards article > div {
  padding: 20px;
}

.fe-gpt-model-cards svg {
  color: #000000;
}

.fe-gpt-model-cards h3 {
  margin: 22px 0 12px;
  font-size: 27px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.fe-gpt-model-cards p {
  margin: 0;
  color: #797979;
  font-size: 14px;
  line-height: 1.7;
}

.fe-gpt-model-strengths > .fe-primary-button {
  margin: 0 auto;
}

.fe-gpt-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fe-gpt-benefit-grid article {
  min-height: 320px;
  border: 1px solid #e6e6e8;
  border-radius: 17px;
  background: #fff;
  padding: 24px;
}

.fe-gpt-model-strengths + .fe-gpt-section {
  padding-top: 150px;
  padding-bottom: 150px;
}

.fe-gpt-benefit-grid svg {
  color: #000000;
}

.fe-gpt-benefit-grid h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.fe-gpt-benefit-grid p {
  color: #838383;
  font-size: 13px;
  line-height: 1.6;
}

.fe-gpt-benefit-grid span {
  display: inline-flex;
  margin-top: 13px;
  border-radius: 999px;
  background: #f6f6f8;
  padding: 6px 9px;
  color: #000000;
  font-size: 10px;
  font-weight: 650;
}

.fe-gpt-steps {
  padding: 135px 7vw;
  background: linear-gradient(180deg, #f6f6f8, #fbfbfd);
}

.fe-gpt-steps > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fe-gpt-steps article {
  border: 1px solid #e3e3e3;
  border-radius: 18px;
  background: rgb(255 255 255 / 82%);
  padding: 28px;
}

.fe-gpt-steps article span {
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.fe-gpt-steps h3 {
  margin: 20px 0 9px;
  font-size: 19px;
}

.fe-gpt-steps article p {
  margin: 0;
  color: #808080;
  font-size: 13px;
  line-height: 1.65;
}

.fe-gpt-steps-visual {
  width: min(920px, 100%);
  height: 677px;
  display: block;
  margin: 36px auto 0;
  border: 1px solid #e3e3e3;
  border-radius: 20px;
  background: #fff;
  object-fit: contain;
  padding: 20px;
  box-shadow: 0 22px 55px rgb(26 26 40 / 10%);
}

.fe-gpt-pricing > header > p:first-child {
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.fe-gpt-pricing > header > span {
  display: block;
  margin-top: 14px;
  color: #808080;
}

.fe-gpt-pricing > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.fe-gpt-pricing article {
  position: relative;
  border: 1px solid #e6e6e8;
  border-radius: 20px;
  background: #fff;
  min-height: 1400px;
  padding: 34px 28px;
}

.fe-gpt-pricing article.popular {
  border-color: #000000;
  box-shadow: 0 20px 45px rgb(0 0 0 / 12%);
}

.fe-gpt-pricing article > em {
  position: absolute;
  top: -12px;
  right: 22px;
  border-radius: 999px;
  background: #000000;
  padding: 6px 12px;
  color: #fff;
  font-size: 9px;
  font-style: normal;
}

.fe-gpt-pricing h3 {
  margin: 0;
  font-size: 22px;
}

.fe-gpt-pricing article > p strong {
  font-size: 38px;
}

.fe-gpt-pricing article > p del,
.fe-gpt-pricing article > p small {
  color: #919191;
}

.fe-gpt-pricing article > span {
  min-height: 92px;
  display: block;
  color: #7c7c7c;
  font-size: 13px;
  line-height: 1.55;
}

.fe-gpt-pricing article > a {
  display: block;
  margin-top: 20px;
  border-radius: 11px;
  background: #000000;
  padding: 11px;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.fe-gpt-pricing ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: #606060;
  font-size: 12px;
}

.fe-gpt-pricing li {
  display: flex;
  gap: 7px;
}

.fe-gpt-pricing li svg {
  width: 15px;
  flex: 0 0 auto;
  color: #000000;
}

.fe-gpt-faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  min-height: 1125px;
  align-items: start;
  padding: 145px 7vw;
  background: #f8f8fa;
}

.fe-gpt-faq > header {
  margin: 0;
  text-align: left;
}

.fe-gpt-faq details {
  border-bottom: 1px solid #e2e2e2;
  padding: 20px 0;
}

.fe-gpt-faq summary {
  color: #303030;
  font-weight: 650;
  cursor: pointer;
}

.fe-gpt-faq details p {
  margin: 13px 0 0;
  color: #7c7c7c;
  font-size: 13px;
  line-height: 1.7;
}

.fe-gpt-page > footer {
  background: #262626;
}

.fe-gpt-page > footer .fe-footer {
  min-height: 435px;
  border-top: 0;
}

.fe-gpt-page > footer .fe-logo,
.fe-gpt-page > footer .fe-footer h3 {
  color: #fff;
}

.fe-gpt-page > footer .fe-footer p,
.fe-gpt-page > footer .fe-footer ul,
.fe-gpt-page > footer .fe-footer-bottom {
  color: #acacac;
}

.fe-gpt-page > footer .fe-footer-bottom {
  border-color: #444444;
}

.fe-gpt-page > .fe-footer-cta {
  margin-bottom: 31px;
  margin-right: 0;
  margin-left: 0;
  border-radius: 0;
  background: #fff;
  padding-bottom: 0;
}

.fe-gpt-page > .fe-footer-cta h2 {
  max-width: 1250px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 901px) {
  .fe-gpt-hero {
    padding-bottom: 140px;
  }

  .fe-gpt-gallery-section {
    padding-bottom: 133px;
  }

  .fe-gpt-strength-section {
    padding-bottom: 132px;
  }

  .fe-gpt-model-strengths {
    padding-bottom: 36px;
  }

  .fe-gpt-model-cards {
    width: min(1260px, 100%);
    gap: 50px;
  }

  .fe-gpt-model-cards article {
    min-height: 404px;
  }

  .fe-gpt-model-cards article > img {
    height: 320px;
  }

  .fe-gpt-model-strengths + .fe-gpt-section {
    padding-bottom: 177px;
  }

  .fe-gpt-steps-visual {
    height: 631px;
  }
}

@media (max-width: 1280px) {
  .fe-header {
    padding: 0 34px;
  }

  .fe-header-actions .fe-outline-button,
  .fe-header-actions .fe-credit-pill {
    display: none;
  }

  .fe-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fe-feature-card {
    grid-template-columns: 42% 1fr;
  }
}

@media (max-width: 900px) {
  .fe-side-rail,
  .fe-main-nav,
  .fe-header-actions {
    display: none;
  }

  .fe-header,
  .fe-no-rail .fe-header {
    left: 0;
    height: 66px;
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .fe-logo {
    font-size: 19px;
  }

  .fe-logo-mark {
    width: 36px;
    height: 36px;
  }

  .fe-mobile-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #e3e3e3;
    border-radius: 13px;
    background: #f6f6f8;
    color: #000000;
  }

  .fe-mobile-toggle svg {
    width: 20px;
    height: 20px;
  }

  .fe-mobile-drawer {
    position: fixed;
    inset: 66px 0 0;
    z-index: 55;
    display: block;
    overflow-y: auto;
    background: #fff;
    padding: 18px 16px 40px;
  }

  .fe-mobile-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .fe-mobile-auth a {
    display: grid;
    min-height: 50px;
    place-items: center;
    border: 1px solid var(--fe-border);
    border-radius: 13px;
    background: #f8f8fa;
    color: #000000;
    font-weight: 650;
  }

  .fe-mobile-auth .primary {
    border-color: var(--fe-blue);
    background: var(--fe-blue);
    color: #fff;
  }

  .fe-mobile-locales {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 22px 0 28px;
  }

  .fe-mobile-locales a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 23px;
    background: #f6f6f8;
    padding: 0 14px;
    color: #5e5e5e;
    text-decoration: none;
  }

  .fe-mobile-locales a[aria-current="page"] {
    border-color: var(--fe-blue);
    background: var(--fe-blue);
    color: #fff;
  }

  .fe-drawer-group {
    display: grid;
    gap: 5px;
    border-radius: 17px;
    background: #fbfbfa;
    padding: 14px;
  }

  .fe-drawer-group > span {
    margin: 10px 5px 4px;
  }

  .fe-drawer-group a {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    border-radius: 10px;
    padding: 4px 5px;
    font-size: 14px;
    font-weight: 570;
  }

  .fe-drawer-group img,
  .fe-drawer-group svg {
    width: 34px;
    height: 34px;
    object-fit: contain;
    padding: 6px;
    border: 1px solid #ebebed;
    border-radius: 10px;
    background: #fff;
  }

  .fe-content {
    padding-top: 66px;
    padding-left: 0;
  }

  .fe-section {
    padding: 72px 16px;
  }

  .fe-section-heading {
    margin-bottom: 30px;
  }

  .fe-section-heading h2 {
    font-size: 36px;
  }

  .fe-section-heading p:not(.fe-eyebrow) {
    font-size: 15px;
  }

  .fe-hero {
    min-height: 860px;
    align-items: flex-start;
    background-image: url("/reference-assets/hero-scientific-light-v3-960.webp");
    padding: 76px 16px 55px;
  }

  .fe-hero h1 {
    max-width: 315px;
    margin-top: 18px;
    font-size: 42px;
    line-height: 0.98;
  }

  .fe-hero-description {
    font-size: 15px;
    line-height: 1.85;
  }

  .fe-prompt-box {
    min-height: 220px;
    margin-top: 25px;
    border-radius: 20px;
  }

  .fe-prompt-label {
    margin-left: 16px;
  }

  .fe-prompt-box textarea {
    padding-right: 16px;
    padding-left: 16px;
  }

  .fe-prompt-actions {
    flex-wrap: nowrap;
    min-height: 72px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .fe-prompt-submit {
    width: auto;
    flex: 1;
    margin-left: auto;
    padding-right: 14px !important;
    padding-left: 14px !important;
    font-size: 13px;
  }

  .fe-prompt-actions > button:not(.fe-prompt-submit) {
    width: 44px;
    min-width: 44px;
    justify-content: center;
    padding: 0;
  }

  .fe-prompt-actions > button:not(.fe-prompt-submit) span,
  .fe-hero-tags > span:first-child {
    display: none;
  }

  .fe-hero-tags {
    flex-wrap: wrap;
    font-size: 11px;
  }

  .fe-institutions {
    padding: 48px 16px 10px;
  }

  .fe-logo-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .fe-gallery-grid,
  .fe-product-groups,
  .fe-feature-grid,
  .fe-workflow-layout,
  .fe-pricing-grid,
  .fe-catalog-grid,
  .fe-project-grid {
    grid-template-columns: 1fr;
  }

  .fe-gallery-grid .fe-gallery-card:nth-child(n + 5) {
    display: none;
  }

  .fe-gallery-overlay {
    opacity: 1;
  }

  .fe-product-card {
    grid-template-columns: 110px 1fr auto;
    min-height: 125px;
  }

  .fe-product-card img {
    width: 110px;
    height: 95px;
  }

  .fe-feature-card {
    grid-template-columns: 1fr;
  }

  .fe-feature-card img {
    height: 250px;
  }

  .fe-feature-copy {
    padding: 24px;
  }

  .fe-workflow-layout {
    gap: 30px;
  }

  .fe-price-card.popular {
    transform: none;
  }

  .fe-footer-cta {
    margin: 0 16px 30px;
    padding: 55px 20px;
  }

  .fe-footer {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    padding: 40px 22px 30px;
  }

  .fe-footer > div:first-child {
    grid-column: 1 / -1;
  }

  .fe-footer-bottom {
    flex-direction: column;
    gap: 8px;
    margin: 0 22px;
  }

  .fe-studio-page {
    padding: 45px 16px 60px;
  }

  .fe-studio-heading h1 {
    font-size: 23px;
    line-height: 1;
    white-space: nowrap;
  }

  .fe-studio-heading p {
    font-size: 14px;
  }

  .fe-studio-composer {
    min-height: 126px;
  }

  .fe-studio-composer textarea {
    min-height: 63px;
    padding-top: 13px;
  }

  .fe-mode-tabs {
    margin-bottom: 32px;
  }

  .fe-mode-tabs button {
    height: 38px;
    min-width: 110px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .fe-composer-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .fe-toolbar-spacer {
    min-width: 4px;
  }

  .fe-app .fe-toolbar-action {
    width: 34px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .fe-toolbar-action span {
    display: none;
  }

  .fe-toolbar-action svg {
    width: 17px;
    height: 17px;
  }

  .fe-recent-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .fe-recent-placeholder-grid article:nth-child(n + 2) {
    display: none;
  }

  .fe-generation-result {
    grid-template-columns: 1fr;
  }

  .fe-flowchart-grid {
    grid-template-columns: 1fr;
  }

  .fe-flowchart-grid img {
    height: 220px;
  }

  .fe-flowchart-generate-button {
    min-width: 190px;
  }

  .fe-project-page {
    padding: 40px 16px;
  }

  .fe-project-page > .fe-page-header {
    display: grid;
    gap: 22px;
    margin-bottom: 28px;
  }

  .fe-project-filters {
    align-items: stretch;
    flex-wrap: wrap;
    margin-top: 0;
  }

  .fe-layout-toggle {
    margin-left: 0;
  }

  .fe-editor-header {
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .fe-editor-header > div {
    order: -1;
    width: 100%;
    flex-basis: 100%;
  }

  .fe-editor-workspace {
    grid-template-columns: 1fr;
  }

  .fe-editor-stage {
    min-height: 420px;
    padding: 22px 16px;
  }

  .fe-editable-image,
  .fe-editable-image img {
    max-height: 60vh;
  }

  .fe-editor-panel {
    border-top: 1px solid #e3e3e3;
    border-left: 0;
    padding: 22px 16px 32px;
  }

  .fe-project-toolbar {
    flex-wrap: wrap;
  }

  .fe-project-toolbar .spacer {
    display: none;
  }

  .fe-catalog-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 64px 18px;
  }

  .fe-catalog-hero h1 {
    font-size: 48px;
  }

  .fe-detail-hero {
    width: calc(100% - 32px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 58px 0 70px;
  }

  .fe-detail-hero h1,
  .fe-page-header h1 {
    font-size: 46px;
  }

  .fe-detail-hero > img {
    border-radius: 20px;
  }

  .fe-deep-detail-page > .fe-breadcrumb,
  .fe-detail-generator {
    width: calc(100% - 32px);
  }

  .fe-detail-research-gallery,
  .fe-detail-agent-section,
  .fe-detail-use-cases,
  .fe-detail-benchmark {
    width: calc(100% - 32px);
    margin: 68px auto;
  }

  .fe-detail-research-gallery > div,
  .fe-detail-agent-section > div,
  .fe-detail-use-cases,
  .fe-detail-benchmark {
    grid-template-columns: 1fr;
  }

  .fe-detail-agent-section > div {
    gap: 10px;
  }

  .fe-detail-agent-section article {
    min-height: 190px;
  }

  .fe-detail-agent-section article > svg {
    margin-top: 24px;
  }

  .fe-detail-use-cases,
  .fe-detail-benchmark {
    gap: 30px;
    padding: 24px;
  }

  .fe-deep-detail-page > .fe-breadcrumb {
    margin: 24px auto 0;
  }

  .fe-detail-generator {
    grid-template-columns: 1fr;
    margin-bottom: 60px;
    padding: 18px;
  }

  .fe-detail-generator > img {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .fe-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fe-gallery-copy {
    padding: 10px;
  }

  .fe-gallery-copy p {
    min-height: 49px;
    font-size: 12px;
  }

  .fe-gallery-overlay {
    display: none;
  }

  .fe-product-card {
    grid-template-columns: 76px 1fr auto;
    gap: 12px;
    padding: 10px;
  }

  .fe-product-card img {
    width: 76px;
    height: 72px;
  }

  .fe-product-card p {
    display: none;
  }

  .fe-product-card h4 {
    font-size: 15px;
  }

  .fe-price-card {
    padding: 24px;
  }
}

@media (max-width: 900px) {
  .fe-breadcrumb {
    width: calc(100% - 32px);
    overflow: hidden;
    white-space: nowrap;
  }

  .fe-gpt-hero {
    padding: 54px 16px 70px;
  }

  .fe-gpt-intro {
    margin-bottom: 72px;
  }

  .fe-gpt-intro > p {
    width: 100%;
    max-width: 358px;
    padding: 8px 13px;
    font-size: 10px;
    line-height: 1.3;
    white-space: normal;
  }

  .fe-gpt-intro h1 {
    font-size: 38px;
  }

  .fe-gpt-intro > div {
    font-size: 14px;
  }

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

  .fe-gpt-generator,
  .fe-gpt-preview {
    border-radius: 18px;
    padding: 16px;
  }

  .fe-gpt-preview > img {
    min-height: 260px;
  }

  .fe-gpt-section,
  .fe-gpt-model-strengths,
  .fe-gpt-steps,
  .fe-gpt-faq {
    padding: 72px 16px;
  }

  .fe-gpt-section > header h2,
  .fe-gpt-steps h2,
  .fe-gpt-faq h2,
  .fe-gpt-model-strengths h2 {
    font-size: 34px;
  }

  .fe-gpt-gallery-grid,
  .fe-gpt-strength-grid,
  .fe-gpt-model-cards,
  .fe-gpt-benefit-grid,
  .fe-gpt-steps > div,
  .fe-gpt-pricing > div {
    grid-template-columns: 1fr;
  }

  .fe-gpt-model-cards article {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
  }

  .fe-gpt-model-cards article:nth-child(even) img {
    order: 0;
  }

  .fe-gpt-model-cards article > img {
    height: 230px;
  }

  .fe-gpt-steps-visual {
    height: 260px;
  }

  .fe-gpt-pricing article {
    min-height: 720px;
  }

  .fe-gpt-gallery-grid img {
    height: 220px;
  }

  .fe-gpt-faq {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* Editorial pages */
.fe-content-page {
  min-height: 100vh;
  background: #fcfcfe;
  color: var(--fe-ink);
}

.fe-detail-hero.is-generator-tool {
  width: 100%;
  min-height: 420px;
  display: block;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgb(235 235 237 / 88%), transparent 52%),
    #f5f5f7;
  padding: 78px max(24px, calc((100% - 920px) / 2)) 104px;
  text-align: center;
}

.fe-detail-hero.is-generator-tool > div {
  max-width: 920px;
  margin: 0 auto;
}

.fe-detail-hero.is-generator-tool h1 {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  font-weight: 400;
}

.fe-detail-hero.is-generator-tool > div > p:not(.fe-eyebrow) {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.fe-form-tool-page {
  background: #fcfcfe;
}

.fe-form-tool-page .fe-detail-generator {
  position: relative;
  z-index: 2;
  max-width: 920px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: -68px;
  background: #fff;
}

.fe-form-tool-page .fe-detail-generator > img {
  display: none;
}

.fe-form-tool-page .fe-detail-generator > div > .fe-eyebrow,
.fe-form-tool-page .fe-detail-generator > div > h2 {
  display: none;
}

.fe-conceptual-tool-page .fe-detail-hero.is-generator-tool {
  min-height: 550px;
  padding-top: 96px;
  padding-bottom: 118px;
}

.fe-conceptual-tool-page .fe-detail-hero.is-generator-tool .fe-eyebrow {
  width: max-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: rgb(255 255 255 / 48%);
  padding: 8px 16px;
}

.fe-conceptual-tool-page .fe-detail-hero.is-generator-tool h1 {
  max-width: 920px;
  font-size: clamp(58px, 5.2vw, 78px);
  font-weight: 650;
  line-height: 0.98;
}

.fe-conceptual-tool-page .fe-detail-actions {
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
}

.fe-conceptual-tool-page .fe-detail-actions span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #363636;
  font-size: 13px;
  font-weight: 600;
}

.fe-conceptual-tool-page .fe-detail-actions svg {
  width: 16px;
  height: 16px;
  color: #000000;
}

.fe-conceptual-tool-page .fe-detail-generator {
  width: min(1230px, calc(100% - 64px));
  max-width: none;
  grid-template-columns: 420px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: -74px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.fe-conceptual-tool-page .fe-detail-generator > div,
.fe-conceptual-preview {
  margin: 0;
  border: 1px solid #e4e4e4;
  border-radius: 20px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 22px 55px rgb(26 26 40 / 9%);
}

.fe-conceptual-tool-page .fe-tool-input-tabs {
  width: 100%;
  margin-top: 0;
}

.fe-conceptual-tool-page .fe-detail-generator textarea {
  min-height: 112px;
  padding: 13px 14px 22px;
  font-size: 12px;
}

.fe-conceptual-tool-page .fe-detail-example-chips {
  gap: 5px;
  margin: 11px 0 17px;
}

.fe-conceptual-tool-page .fe-detail-example-chips button {
  padding: 6px 9px;
  font-size: 10px;
}

.fe-conceptual-tool-page .fe-tool-output-options {
  margin: 15px 0;
}

.fe-conceptual-preview {
  min-width: 0;
  padding: 16px;
}

.fe-conceptual-preview-stage {
  overflow: hidden;
  border-radius: 14px;
  background: #f7f7f9;
  padding: 10px;
}

.fe-conceptual-preview-stage img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.fe-conceptual-preview figcaption {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.fe-conceptual-preview figcaption > button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #e4e4e4;
  border-radius: 50%;
  background: #fff;
  color: #777777;
  cursor: pointer;
}

.fe-conceptual-preview figcaption > button:last-child {
  justify-self: end;
}

.fe-conceptual-preview figcaption > button span {
  font-size: 23px;
  line-height: 1;
}

.fe-conceptual-preview figcaption div {
  display: grid;
  gap: 3px;
  text-align: center;
}

.fe-conceptual-preview figcaption strong {
  color: #000000;
  font-size: 13px;
}

.fe-conceptual-preview figcaption small {
  color: #7f7f7f;
  font-size: 10px;
}

.fe-conceptual-thumbnails {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
  border: 0;
  padding: 0;
}

.fe-conceptual-thumbnails button {
  min-width: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #fff;
  padding: 2px;
  cursor: pointer;
}

.fe-conceptual-thumbnails button.active {
  border-color: #000000;
}

.fe-conceptual-thumbnails img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 5px;
  object-fit: cover;
}

.fe-tool-input-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 18px 0 20px;
  border: 1px solid #e4e4e4;
  border-radius: 15px;
  background: #fafafc;
  padding: 4px;
}

.fe-tool-input-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #666666;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.fe-tool-input-tabs button.active {
  border: 1px solid #d9d9d9;
  background: #f4f4f6;
  color: #000000;
}

.fe-detail-form-label {
  display: block;
  margin-bottom: 8px;
  color: #333333;
  font-size: 13px;
  font-weight: 650;
}

.fe-tool-output-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.fe-tool-output-options fieldset {
  display: flex;
  gap: 6px;
  margin: 0;
  border: 0;
  padding: 0;
}

.fe-tool-output-options legend {
  width: 100%;
  margin-bottom: 7px;
  color: #676767;
  font-size: 11px;
  font-weight: 650;
}

.fe-tool-output-options button {
  min-width: 48px;
  min-height: 36px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
  color: #676767;
  cursor: pointer;
}

.fe-tool-output-options button.active {
  border-color: #c8c8c8;
  background: #f6f6f8;
  color: #000000;
}

.fe-content-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 86px 24px 64px;
  text-align: center;
}

.fe-content-hero h1 {
  margin: 12px 0 18px;
  color: #2d2d2d;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.fe-content-hero > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: #737373;
  font-size: 18px;
  line-height: 1.7;
}

.fe-blog-grid {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto 100px;
}

.fe-blog-categories,
.fe-blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.fe-blog-categories {
  margin-bottom: 28px;
}

.fe-blog-categories a,
.fe-blog-pagination a,
.fe-blog-pagination > span {
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
  padding: 9px 16px;
  color: #606060;
  font-size: 13px;
  font-weight: 650;
}

.fe-blog-categories a[aria-current="page"] {
  border-color: #000000;
  background: #000000;
  color: #fff;
}

.fe-blog-pagination {
  margin-top: -58px;
  margin-bottom: 72px;
}

.fe-blog-pagination > span[aria-disabled="true"] {
  opacity: 0.45;
}

.fe-blog-pagination strong {
  min-width: 100px;
  text-align: center;
  color: #646464;
  font-size: 13px;
}

.fe-blog-card {
  overflow: hidden;
  border: 1px solid #e7e7e9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgb(26 26 40 / 7%);
}

.fe-blog-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.fe-blog-card > div {
  padding: 26px;
}

.fe-blog-card span {
  display: inline-flex;
  border-radius: 999px;
  background: #f6f6f8;
  padding: 6px 11px;
  color: #000000;
  font-size: 11px;
  font-weight: 650;
}

.fe-blog-card h2 {
  margin: 16px 0 10px;
  font-size: 24px;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.fe-blog-card p {
  min-height: 78px;
  margin: 0;
  color: #777777;
  line-height: 1.6;
}

.fe-blog-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  border-top: 1px solid #f0f0f2;
  padding-top: 18px;
  color: #797979;
}

.fe-blog-card footer a {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e3e3e3;
  border-radius: 50%;
}

.fe-blog-card footer svg {
  width: 17px;
}

.fe-about-team,
.fe-contact-layout,
.fe-about-values {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto 90px;
}

.fe-about-team {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  border: 1px solid #e7e7e9;
  border-radius: 28px;
  background: #fff;
  padding: 48px;
}

.fe-about-team > img {
  width: 180px;
  height: 180px;
  border-radius: 38px;
  object-fit: contain;
}

.fe-about-team h2,
.fe-about-values h2,
.fe-contact-layout h2 {
  margin: 10px 0 14px;
  color: #2e2e2e;
  font-size: 36px;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.fe-about-team p:not(.fe-eyebrow),
.fe-contact-layout p {
  color: #747474;
  line-height: 1.7;
}

.fe-about-team .fe-primary-button {
  width: max-content;
  margin-top: 12px;
}

.fe-about-values > header {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.fe-about-values > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fe-about-values article {
  border: 1px solid #e7e7e9;
  border-radius: 22px;
  background: #fff;
  padding: 28px;
}

.fe-about-values article > svg {
  width: 34px;
  height: 34px;
  color: #000000;
}

.fe-about-values h3 {
  margin: 22px 0 10px;
  font-size: 19px;
}

.fe-about-values p {
  margin: 0;
  color: #767676;
  line-height: 1.65;
}

.fe-contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.fe-contact-layout > aside {
  border: 1px solid #e0e0e0;
  border-radius: 24px;
  background: #f4f4f6;
  padding: 34px;
}

.fe-contact-layout > aside > svg {
  width: 42px;
  height: 42px;
  color: #000000;
}

.fe-contact-layout > aside a {
  display: inline-flex;
  margin-top: 10px;
  color: #000000;
  font-weight: 650;
}

.fe-contact-layout > div {
  max-width: none;
  margin: 0;
}

.fe-content-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 42px;
  border-top: 1px solid #e6e6e8;
  background: #f4f4f6;
  padding: 58px max(24px, calc((100% - 1080px) / 2));
}

.fe-content-footer > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.fe-content-footer p {
  max-width: 420px;
  margin: 0;
  color: #767676;
  line-height: 1.6;
}

.fe-content-footer a {
  color: #646464;
  font-size: 14px;
}

.fe-article-page {
  min-height: 100vh;
  background: #fcfcfe;
  color: var(--fe-ink);
}

.fe-article-page > .fe-breadcrumb {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
  padding: 14px max(24px, calc((100% - 1280px) / 2));
}

.fe-article-page > .fe-breadcrumb a,
.fe-article-page > .fe-breadcrumb strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fe-article-page > .fe-breadcrumb svg {
  width: 13px;
  height: 13px;
}

.fe-article-layout {
  width: min(1280px, calc(100% - 64px));
  display: grid;
  grid-template-columns: minmax(0, 830px) minmax(260px, 1fr);
  gap: 64px;
  margin: 0 auto;
  padding: 80px 0 110px;
}

.fe-article-layout > article {
  min-width: 0;
}

.fe-article-header > span {
  display: inline-flex;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  background: #f4f4f6;
  padding: 5px 12px;
  color: #000000;
  font-size: 11px;
  font-weight: 650;
}

.fe-article-header h1 {
  margin: 24px 0 32px;
  color: #303030;
  font-size: clamp(42px, 3.4vw, 52px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.fe-article-header > p {
  max-width: 780px;
  margin: 0;
  color: #767676;
  font-size: 20px;
  line-height: 1.58;
}

.fe-article-header > div {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 31px;
  color: #767676;
  font-size: 13px;
}

.fe-article-header > div span,
.fe-article-header time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fe-article-header svg {
  width: 16px;
  height: 16px;
}

.fe-article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 42px 0 42px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  object-fit: cover;
}

.fe-article-markdown {
  border: 0;
  padding: 0;
  color: #333333;
  font-size: 18px;
  line-height: 1.72;
}

.fe-article-markdown > :first-child {
  margin-top: 0;
}

.fe-article-markdown h2,
.fe-article-markdown h3 {
  scroll-margin-top: 96px;
  color: #303030;
  letter-spacing: -0.025em;
}

.fe-article-markdown h2 {
  margin-top: 52px;
  font-size: 30px;
}

.fe-article-markdown h3 {
  margin-top: 34px;
  font-size: 22px;
}

.fe-article-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  border-left: 1px solid #e2e2e2;
  padding-left: 32px;
}

.fe-article-toc h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: #404040;
  font-size: 14px;
}

.fe-article-toc h2 svg {
  width: 16px;
  color: #000000;
}

.fe-article-toc nav {
  display: grid;
}

.fe-article-toc a {
  border-radius: 12px;
  padding: 10px 4px;
  color: #565656;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.fe-article-toc a:hover {
  color: #000000;
}

.fe-article-toc a.is-nested {
  margin-left: 0;
  border-left: 1px solid #e8e8ea;
  border-radius: 0 12px 12px 0;
  padding: 9px 12px 9px 16px;
  color: #757575;
  font-weight: 400;
}

.fe-article-page .fe-content-footer {
  width: 100%;
  margin: 0;
}

@media (max-width: 900px) {
  .fe-detail-hero.is-generator-tool {
    min-height: 0;
    padding: 62px 16px 98px;
  }

  .fe-detail-hero.is-generator-tool h1 {
    font-size: 42px;
  }

  .fe-form-tool-page .fe-detail-generator {
    width: calc(100% - 32px);
    margin-top: -62px;
    padding: 20px;
  }

  .fe-content-hero {
    padding: 60px 18px 44px;
  }

  .fe-content-hero h1 {
    font-size: 44px;
  }

  .fe-content-hero > p:last-child {
    font-size: 16px;
  }

  .fe-blog-grid,
  .fe-about-values > div,
  .fe-contact-layout {
    grid-template-columns: 1fr;
  }

  .fe-blog-grid {
    width: calc(100% - 32px);
    margin-bottom: 64px;
  }

  .fe-blog-card > div {
    padding: 20px;
  }

  .fe-blog-card h2 {
    font-size: 21px;
  }

  .fe-blog-card p {
    min-height: 0;
  }

  .fe-about-team,
  .fe-about-values,
  .fe-contact-layout {
    width: calc(100% - 32px);
    margin-bottom: 64px;
  }

  .fe-about-team {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .fe-about-team > img {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  .fe-about-team h2,
  .fe-about-values h2,
  .fe-contact-layout h2 {
    font-size: 30px;
  }

  .fe-contact-layout > aside {
    padding: 24px;
  }

  .fe-content-footer {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    padding: 42px 20px;
  }

  .fe-content-footer > div:first-child {
    grid-column: 1 / -1;
  }

  .fe-article-page {
    padding: 0;
  }

  .fe-article-page > .fe-breadcrumb {
    overflow: hidden;
    padding: 12px 16px;
    white-space: nowrap;
  }

  .fe-article-page > .fe-breadcrumb strong {
    min-width: 0;
    display: block;
    overflow: hidden;
    flex: 1;
    text-overflow: ellipsis;
  }

  .fe-article-layout {
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 42px 0 72px;
  }

  .fe-article-header h1 {
    margin: 18px 0 16px;
    font-size: 36px;
    line-height: 1.08;
  }

  .fe-article-header > p {
    font-size: 17px;
  }

  .fe-article-header > div {
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 20px;
  }

  .fe-article-cover {
    margin: 30px 0;
    border-radius: 13px;
  }

  .fe-article-markdown {
    font-size: 16px;
  }

  .fe-article-markdown h2 {
    margin-top: 40px;
    font-size: 26px;
  }

  .fe-article-markdown h3 {
    font-size: 20px;
  }

  .fe-article-toc {
    display: none;
  }

  .fe-article-page .fe-content-footer {
    width: 100%;
    margin: 0;
  }

  .fe-flowchart-generate-button {
    width: 100%;
    min-width: 0;
    order: 20;
    flex-basis: 100%;
    margin-top: 4px;
  }

  .fe-composer-toolbar:has(.fe-flowchart-generate-button) {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

@media (max-width: 520px) {
  .fe-detail-hero.is-generator-tool h1 {
    font-size: 40px;
  }

  .fe-tool-output-options {
    grid-template-columns: 1fr;
  }
  .fe-detail-hero h1,
  .fe-page-header h1,
  .fe-catalog-hero h1 {
    font-size: 38px;
    line-height: 1.02;
  }

  .fe-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fe-detail-actions .fe-primary-button,
  .fe-detail-actions .fe-outline-button {
    width: 100%;
  }

  .fe-detail-generator,
  .fe-detail-use-cases,
  .fe-detail-benchmark {
    padding: 16px;
  }

  .fe-detail-generator > img {
    min-height: 210px;
  }

  .fe-content-footer {
    grid-template-columns: 1fr;
  }

  .fe-content-footer > div:first-child {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .fe-conceptual-tool-page .fe-detail-hero.is-generator-tool {
    padding: 58px 16px 94px;
  }

  .fe-conceptual-tool-page .fe-detail-hero.is-generator-tool h1 {
    font-size: clamp(40px, 11vw, 52px);
    line-height: 1;
  }

  .fe-conceptual-tool-page .fe-detail-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    margin: 22px auto 0;
  }

  .fe-conceptual-tool-page .fe-detail-generator {
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr);
    margin-top: -58px;
    padding: 0;
  }

  .fe-conceptual-tool-page .fe-detail-generator > div,
  .fe-conceptual-preview {
    padding: 16px;
  }

  .fe-conceptual-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .fe-conceptual-tool-page .fe-detail-hero.is-generator-tool h1 {
    font-size: 40px;
  }

  .fe-conceptual-tool-page
    .fe-detail-hero.is-generator-tool
    > div
    > p:not(.fe-eyebrow) {
    font-size: 16px;
  }

  .fe-conceptual-preview figcaption {
    grid-template-columns: 32px 1fr 32px;
    gap: 7px;
  }

  .fe-conceptual-preview figcaption > button {
    width: 30px;
    height: 30px;
  }
}

.fe-editor-generation-settings {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 3px;
}
.fe-composer-actions .fe-editor-generation-settings label {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 3px;
}
.fe-editor-generation-settings label:nth-child(2) {
  flex-grow: 1.4;
}
.fe-editor-generation-settings select {
  min-width: 0;
  width: 100%;
  height: 31px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.fe-editor-generation-settings svg {
  flex-shrink: 0;
  width: 14px;
}
.fe-editor-generation-settings select:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 1px;
}
.fe-editor-generation-settings select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.fe-composer-reference strong {
  overflow-wrap: anywhere;
}
.fe-composer-reference span {
  min-width: 0;
}


/* /src/components/figeditor/figpad-theme.css */
/*
 * FigEditor site theme: floating top navigation, pastel washes, black CTAs,
 * and a text sidebar for the workspace. Loaded after figeditor.css so the
 * tokens below override the legacy blue palette everywhere.
 */

.fp-app {
  --fp-ink: #000;
  --fp-text: #1c1c1f;
  --fp-muted: #4d4d4d;
  --fp-faint: #6f6f6f;
  --fp-hairline: #d6d6d6;
  --fp-line: #e8e8ea;
  --fp-fog: #f7f7f8;
  --fp-mist: #f4f4f6;
  --fp-paper: #fff;
  --fp-cta: #000;
  --fp-cta-hover: #1a1a28;
  --fp-sky: #c1dff9;
  --fp-mint: #c8f6f9;
  --fp-rose: #fde3f6;
  --fp-peach: #ffdccd;
  --fp-lilac: #bdbbff;
  --fp-lemon: #fdeaa8;
  --fp-nav-glow: rgb(1 1 32 / 10%) -10px 0 75px 0;
  --fp-shadow: rgb(1 1 32 / 10%) 0 4px 10px;
  --fp-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace;
  --fe-blue: var(--fp-cta);
  --fe-blue-dark: var(--fp-cta-hover);
  --fe-ink: var(--fp-ink);
  --fe-text: var(--fp-text);
  --fe-muted: var(--fp-muted);
  --fe-border: var(--fp-line);
  --fe-soft: var(--fp-fog);
  background: var(--fp-paper);
  color: var(--fp-text);
  font-family:
    "Instrument Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", system-ui, sans-serif;
}

.fp-app h1,
.fp-app h2,
.fp-app h3 {
  color: var(--fp-ink);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.fp-app .fe-content {
  min-height: 100vh;
  padding: 76px 0 0;
}

/* Legacy buttons adopt the square black CTA. */
.fp-app .fe-primary-button,
.fp-app .fe-generate-button,
.fp-app .fe-prompt-submit {
  border-color: var(--fp-cta) !important;
  border-radius: 4px !important;
  background: var(--fp-cta) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.fp-app .fe-primary-button:hover,
.fp-app .fe-generate-button:hover:not(:disabled) {
  background: var(--fp-cta-hover) !important;
}

.fp-app .fe-outline-button,
.fp-app .fe-soft-button {
  border-radius: 4px;
}

.fp-app .fe-eyebrow {
  color: var(--fp-muted);
  font-family: var(--fp-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.fp-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  padding: 12px 16px 0;
  pointer-events: none;
}

.fp-header-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 52px;
  padding: 0 28px 0 32px;
  border-radius: 6px;
  background: rgb(255 255 255 / 96%);
  box-shadow: var(--fp-nav-glow);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.fp-app .fe-logo {
  gap: 10px;
  color: var(--fp-ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fp-app .fe-logo-mark {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
}

.fp-app .fe-logo-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.fp-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fp-nav > a,
.fp-nav > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--fp-text);
  font-size: 15px;
  cursor: pointer;
}

.fp-nav > a:hover,
.fp-nav > button:hover,
.fp-nav > button[aria-expanded="true"] {
  background: var(--fp-mist);
}

.fp-nav svg {
  width: 15px;
  height: 15px;
}

.fp-nav-item {
  position: relative;
}

.fp-nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--fp-text);
  font-size: 15px;
  cursor: pointer;
}

.fp-nav-item > button:hover,
.fp-nav-item > button[aria-expanded="true"] {
  color: var(--fp-faint);
}

.fp-nav-item > button svg {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

.fp-nav-item > button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.fp-menu {
  position: absolute;
  top: calc(100% + 16px);
  z-index: 80;
  display: grid;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(1 1 32 / 10%);
}

/* An invisible bridge keeps hover alive while moving onto the menu. */
.fp-menu::before {
  position: absolute;
  inset: -18px 0 auto;
  height: 18px;
  content: "";
}

.fp-menu-product {
  left: 50%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(960px, calc(100vw - 48px));
  transform: translateX(-56%);
}

.fp-menu-resources {
  top: calc(100% + 18px);
  left: -12px;
  width: 360px;
}

.fp-menu > div {
  display: grid;
  align-content: start;
  gap: 4px;
}

.fp-menu p {
  margin: 0 0 8px;
  color: var(--fp-faint);
  font-family: var(--fp-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.fp-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
}

.fp-menu-item:hover {
  background: var(--fp-fog);
}

.fp-menu-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tone) 75%, white);
  color: var(--fp-ink);
}

.fp-menu-icon svg {
  width: 18px;
  height: 18px;
}

.fp-menu-item strong {
  display: block;
  color: var(--fp-ink);
  font-size: 15px;
  font-weight: 500;
}

.fp-menu-item small {
  display: block;
  margin-top: 2px;
  color: var(--fp-faint);
  font-size: 12px;
}

.fp-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.fp-locale {
  position: relative;
}

.fp-locale summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--fp-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(1 1 32 / 6%);
  color: var(--fp-muted);
  font-size: 13px;
  list-style: none;
  cursor: pointer;
}

.fp-locale summary::-webkit-details-marker {
  display: none;
}

.fp-locale summary svg {
  width: 14px;
  height: 14px;
}

.fp-locale-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  display: grid;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--fp-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgb(1 1 32 / 12%);
}

.fp-locale.fp-up .fp-locale-options {
  top: auto;
  right: auto;
  bottom: calc(100% + 8px);
  left: 0;
}

.fp-locale-options a {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.fp-locale-options a:hover,
.fp-locale-options a[aria-current="page"] {
  background: var(--fp-mist);
}

.fp-login {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 3px;
  background: var(--fp-cta);
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
}

.fp-login:hover {
  background: var(--fp-cta-hover);
}

.fp-credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff6e0;
  color: #6b4d00 !important;
  font-size: 13px;
  font-weight: 600;
}

.fp-credit-pill svg {
  width: 15px;
  height: 15px;
}

.fp-avatar {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: none;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: var(--fp-mist);
  color: var(--fp-ink);
  font-size: 13px;
  font-weight: 600;
}

.fp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fp-mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.fp-mobile-drawer {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--fp-nav-glow);
  pointer-events: auto;
}

.fp-mobile-drawer > a {
  padding: 12px;
  border-radius: 4px;
  font-size: 16px;
}

.fp-mobile-drawer > a:hover {
  background: var(--fp-mist);
}

.fp-mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--fp-line);
}

/* ---------- Shared marketing primitives ---------- */

.fp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--fp-muted);
  font-family: var(--fp-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fp-eyebrow::before {
  width: 16px;
  height: 1px;
  background: currentcolor;
  content: "";
  opacity: 0.6;
}

.fp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 4px;
  background: var(--fp-cta);
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.fp-cta:hover {
  background: var(--fp-cta-hover);
  transform: translateY(-1px);
}

.fp-cta svg {
  width: 16px;
  height: 16px;
}

.fp-cta-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.fp-mono-note {
  margin: 0;
  color: var(--fp-muted);
  font-family: var(--fp-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fp-mono-note span {
  margin: 0 6px;
  opacity: 0.6;
}

.fp-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fp-wash-hero {
  background:
    radial-gradient(60% 45% at 8% 0%, rgb(253 227 246 / 85%), transparent 70%),
    radial-gradient(40% 50% at 92% 18%, rgb(193 223 249 / 90%), transparent),
    radial-gradient(35% 30% at 70% 100%, rgb(200 246 249 / 75%), transparent);
}

.fp-section {
  width: min(1136px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.fp-section-head {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0 auto 40px;
  text-align: center;
}

.fp-section-head .fp-eyebrow {
  margin: 0;
}

.fp-section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
}

.fp-section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--fp-muted);
  font-size: 18px;
  line-height: 1.5;
}

.fp-section-head .fp-small {
  max-width: 360px;
  font-size: 13px;
}

/* ---------- Home: hero ---------- */

.fp-home {
  overflow-x: clip;
}

.fp-app:has(.fp-home) .fe-content {
  padding-top: 0;
}

.fp-hero {
  position: relative;
  padding: 150px 16px 12px;
}

.fp-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 40px;
  width: min(1200px, 100%);
  min-height: min(620px, calc(100svh - 220px));
  margin: 0 auto;
  padding: 0 24px;
}

.fp-hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.fp-hero h1 span {
  color: #4a4a4a;
}

.fp-hero-lead {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--fp-muted);
  font-size: 20px;
  line-height: 1.35;
}

.fp-hero-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 40px;
}

.fp-hero-art {
  width: 100%;
  max-height: min(46svh, 460px);
  object-fit: contain;
  mix-blend-mode: multiply;
  animation: fp-drift 9s ease-in-out infinite alternate;
}

@keyframes fp-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(0, -10px, 0) rotate(-0.6deg);
  }
}

.fp-marquee {
  position: relative;
  width: min(1200px, 100%);
  margin: clamp(32px, 6vh, 64px) auto 0;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.fp-marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  padding: 18px 0;
  animation: fp-marquee 48s linear infinite;
}

.fp-marquee-track span {
  color: #8a8a8a;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@keyframes fp-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Home: showcase tabs ---------- */

.fp-tone-sky {
  --tone: var(--fp-sky);
}
.fp-tone-mint {
  --tone: var(--fp-mint);
}
.fp-tone-rose {
  --tone: var(--fp-rose);
}
.fp-tone-peach {
  --tone: var(--fp-peach);
}
.fp-tone-lilac {
  --tone: var(--fp-lilac);
}
.fp-tone-lemon {
  --tone: var(--fp-lemon);
}

.fp-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.fp-tabs button {
  position: relative;
  min-height: 54px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: color-mix(in srgb, var(--tone) 70%, white);
  color: var(--fp-ink);
  font-size: 17px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fp-tabs button:hover,
.fp-tabs button.on {
  background: var(--tone);
}

.fp-tabs button.on::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 28px;
  background: rgb(0 0 0 / 42%);
  content: "";
  animation: fp-tab-fill 6s linear forwards;
}

@keyframes fp-tab-fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
    opacity: 0.08;
  }
}

.fp-showcase {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  min-height: 460px;
  border: 1px solid var(--fp-line);
  border-radius: 3px;
  background: #fff;
}

.fp-showcase-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: 40px;
  border-right: 1px solid var(--fp-line);
}

.fp-showcase-copy p {
  margin: 0;
  color: var(--fp-faint);
  font-size: 12px;
}

.fp-showcase-copy h3 {
  margin: 0;
  font-size: 30px;
}

.fp-showcase-copy span {
  max-width: 300px;
  color: var(--fp-muted);
  font-size: 16px;
  line-height: 1.5;
}

.fp-showcase-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 16px;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--fp-fog), #fff 60%, var(--fp-rose));
}

.fp-showcase-stage figure {
  display: grid;
  grid-template-rows: 1fr auto;
  margin: 0;
  padding: 12px;
}

.fp-showcase-stage figure + figure {
  border-left: 1px solid var(--fp-line);
}

.fp-showcase-stage img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  align-self: center;
  object-fit: contain;
}

.fp-showcase-stage figcaption {
  padding-top: 10px;
  color: var(--fp-faint);
  font-size: 12px;
}

.fp-prompt-card {
  align-self: center;
  padding: 22px;
  border: 1px solid var(--fp-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--fp-shadow);
}

.fp-prompt-card span {
  color: var(--fp-faint);
  font-family: var(--fp-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.fp-prompt-card p {
  margin: 10px 0 0;
  color: var(--fp-text);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Home: use cases ---------- */

.fp-usecases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 24px;
}

.fp-usecase {
  display: grid;
  grid-template-rows: 240px auto;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
}

.fp-usecase img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: transform 0.4s ease;
}

.fp-usecase:hover img {
  transform: scale(1.03);
}

.fp-usecase-copy {
  min-height: 112px;
  padding: 20px;
  background: color-mix(in srgb, var(--tone) 80%, white);
}

.fp-usecase-copy h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.fp-usecase-copy p {
  margin: 0;
  color: var(--fp-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Home: gallery band ---------- */

.fp-gallery-band {
  padding: 110px 0 80px;
  border-top: 1px solid var(--fp-line);
  background: #f5f5f5;
}

.fp-carousel {
  display: grid;
  grid-auto-columns: minmax(260px, 300px);
  grid-auto-flow: column;
  gap: 16px;
  width: min(1152px, calc(100% - 32px));
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.fp-carousel::-webkit-scrollbar {
  display: none;
}

.fp-gallery-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 190px auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  background: #fff;
  scroll-snap-align: start;
}

.fp-gallery-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.fp-gallery-card header strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.fp-gallery-card header span {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--fp-line);
  border-radius: 999px;
  color: var(--fp-faint);
  font-size: 11px;
}

.fp-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fp-gallery-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.fp-use-this {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--fp-cta);
  color: #fff !important;
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, -30%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.fp-gallery-card:hover .fp-use-this,
.fp-use-this:focus-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.fp-carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: min(1152px, calc(100% - 32px));
  margin: 28px auto 0;
}

.fp-carousel-nav button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--fp-hairline);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.fp-carousel-nav svg {
  width: 16px;
  height: 16px;
}

/* ---------- Home: FAQ ---------- */

.fp-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  width: min(1036px, calc(100% - 32px));
  padding: 120px 0 80px;
}

.fp-faq details {
  border-bottom: 1px solid var(--fp-hairline);
}

.fp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  color: var(--fp-ink);
  font-size: 17px;
  list-style: none;
  cursor: pointer;
}

.fp-faq summary::-webkit-details-marker {
  display: none;
}

.fp-faq summary svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.fp-faq .fp-faq-close,
.fp-faq details[open] .fp-faq-open {
  display: none;
}

.fp-faq details[open] .fp-faq-close {
  display: block;
}

.fp-faq details p {
  margin: -6px 0 22px;
  color: var(--fp-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Home: closing CTA ---------- */

.fp-closing {
  position: relative;
  display: grid;
  min-height: 460px;
  overflow: hidden;
  place-items: center;
  text-align: center;
}

.fp-closing > img {
  position: absolute;
  inset: -10% 5%;
  width: 90%;
  height: 120%;
  object-fit: cover;
  filter: blur(3px) saturate(0.7);
  opacity: 0.38;
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
}

.fp-closing > div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 0 16px;
}

.fp-closing h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
}

.fp-closing p {
  max-width: 380px;
  margin: 0 0 12px;
  color: var(--fp-muted);
  font-size: 18px;
  line-height: 1.4;
}

.fp-closing .fp-cta {
  box-shadow: 0 16px 36px rgb(0 0 0 / 22%);
}

/* ---------- Footer ---------- */

.fp-footer-wrap {
  position: relative;
  padding: 0 16px 16px;
  background:
    radial-gradient(40% 60% at 0% 60%, rgb(255 220 205 / 90%), transparent),
    radial-gradient(35% 60% at 100% 30%, rgb(193 223 249 / 80%), transparent),
    radial-gradient(40% 30% at 50% 100%, rgb(253 227 246 / 90%), transparent);
}

.fp-footer {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 56px 40px 28px;
  border: 1px solid var(--fp-hairline);
  border-radius: 3px;
  background: #fff;
}

.fp-footer-grid {
  display: grid;
  grid-template-columns: 1fr repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.fp-footer-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.fp-footer-grid > div {
  display: grid;
  align-content: start;
  gap: 14px;
}

.fp-footer-grid p {
  margin: 0 0 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fp-hairline);
  color: var(--fp-faint);
  font-size: 12px;
}

.fp-footer-grid a {
  color: var(--fp-ink);
  font-size: 15px;
}

.fp-footer-grid a:hover {
  text-decoration: underline;
}

.fp-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--fp-hairline);
  color: var(--fp-faint);
  font-family: var(--fp-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.fp-footer-bottom > div {
  display: flex;
  gap: 24px;
}

.fp-footer-bottom a {
  color: var(--fp-muted);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0;
}

.fp-footer-tools {
  justify-content: flex-end;
  align-items: center;
}

.fp-footer-tools svg {
  width: 18px;
  height: 18px;
}

/* ---------- Workspace ---------- */

.fp-workspace {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  min-height: 100vh;
  background: #f5f5f6;
}

.fp-workspace.fp-ws-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.fp-ws-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 16px 12px;
}

.fp-ws-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 14px;
}

.fp-ws-top button,
.fp-ws-restore {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--fp-muted);
  cursor: pointer;
}

.fp-ws-top button:hover,
.fp-ws-restore:hover {
  background: #e9e9eb;
}

.fp-ws-restore {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 40;
  background: #fff;
  box-shadow: var(--fp-shadow);
}

.fp-ws-sidebar nav {
  display: grid;
  gap: 2px;
}

.fp-ws-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  color: #3a3a3d;
  font-size: 15px;
}

.fp-ws-sidebar nav a svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.fp-ws-sidebar nav a:hover,
.fp-ws-sidebar nav a.active {
  background: #e9e9eb;
  color: var(--fp-ink);
}

.fp-ws-divider {
  height: 1px;
  margin: 14px 8px;
  background: #dededf;
}

.fp-ws-label {
  margin: 0 12px 6px;
  color: var(--fp-faint);
  font-size: 13px;
}

.fp-ws-spacer {
  flex: 1;
}

.fp-ws-user {
  padding-top: 14px;
  border-top: 1px solid #dededf;
}

.fp-ws-user a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  font-size: 15px;
}

.fp-ws-user a:hover {
  background: #e9e9eb;
}

.fp-ws-user a > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-ws-user small {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border: 1px solid var(--fp-hairline);
  border-radius: 999px;
  color: var(--fp-muted);
  font-size: 11px;
}

.fp-ws-user small svg {
  width: 12px;
  height: 12px;
}

.fp-ws-canvas {
  min-width: 0;
  margin: 8px 8px 8px 0;
  border-radius: 12px;
  background: #fff;
}

.fp-ws-collapsed .fp-ws-canvas {
  margin-left: 8px;
}

.fp-workspace .fe-studio-page,
.fp-workspace .fe-project-page {
  min-height: calc(100vh - 16px);
  padding-top: 0;
  background: transparent;
}

.fp-workspace .fe-studio-wrap {
  padding-top: clamp(48px, 12vh, 128px);
}

.fp-news-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px 6px 5px 8px;
  border: 1px solid var(--fp-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(1 1 32 / 6%);
  font-size: 14px;
}

.fp-news-pill b {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--fp-ink);
  color: #fff;
  font-size: 12px;
}

.fp-news-pill em {
  padding-left: 8px;
  border-left: 1px solid var(--fp-line);
  color: var(--fp-faint);
  font-style: normal;
}

.fp-news-pill svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--fp-ink);
  color: #fff;
}

.fp-workspace .fe-studio-heading h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
}

.fp-workspace .fe-mode-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  max-width: 880px;
  margin: 28px auto 0;
  padding: 8px 8px 20px;
  border: 1px solid var(--fp-line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(
    90deg,
    var(--fp-rose),
    #f5f1ff 50%,
    var(--fp-sky)
  );
}

.fp-workspace .fe-mode-tabs button {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fp-muted);
  font-size: 15px;
  box-shadow: none;
}

.fp-workspace .fe-mode-tabs button.active {
  background: #fff;
  color: var(--fp-ink);
  box-shadow: 0 2px 8px rgb(1 1 32 / 8%);
}

.fp-workspace .fe-studio-composer {
  max-width: 880px;
  box-shadow: 0 10px 30px rgb(1 1 32 / 6%);
}

.fp-workspace .fe-mode-tabs + .fe-studio-composer {
  margin-top: -14px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgb(1 1 32 / 6%);
}

/* ---------- Other pages ---------- */

.fp-app .fe-price-card {
  border-radius: 3px;
  box-shadow: none;
}

.fp-app .fe-price-card.popular {
  border-color: var(--fp-ink);
}

.fp-app .fe-popular-label,
.fp-app .fe-badge {
  border-radius: 3px;
}

.fp-app .fe-gallery-card,
.fp-app .fe-product-card,
.fp-app .fe-feature-card {
  border-radius: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .fp-nav {
    display: none;
  }

  .fp-header-bar {
    grid-template-columns: 1fr auto;
    padding: 0 12px 0 16px;
  }

  .fp-mobile-toggle {
    display: grid;
  }

  .fp-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fp-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-footer-mark {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .fp-hero {
    padding-top: 110px;
  }

  .fp-hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0 8px;
  }

  .fp-showcase {
    grid-template-columns: 1fr;
  }

  .fp-showcase-copy {
    padding: 28px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--fp-line);
  }

  .fp-usecases {
    grid-template-columns: 1fr 1fr;
  }

  .fp-faq {
    grid-template-columns: 1fr;
  }

  .fp-workspace {
    grid-template-columns: 1fr;
  }

  .fp-ws-sidebar {
    position: static;
    height: auto;
  }

  .fp-ws-spacer,
  .fp-ws-label,
  .fp-ws-divider,
  .fp-ws-sidebar nav + .fp-ws-divider + .fp-ws-label + nav {
    display: none;
  }

  .fp-ws-sidebar nav {
    display: flex;
    overflow-x: auto;
  }

  .fp-ws-sidebar nav a {
    white-space: nowrap;
  }

  .fp-ws-canvas {
    margin: 0 8px 8px;
  }
}

@media (max-width: 560px) {
  .fp-header {
    padding: 8px 8px 0;
  }

  .fp-header-actions .fp-locale,
  .fp-header-actions .fp-credit-pill {
    display: none;
  }

  .fp-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .fp-tabs button {
    min-height: 46px;
    font-size: 15px;
  }

  .fp-showcase-stage {
    grid-template-columns: 1fr;
  }

  .fp-showcase-stage figure + figure {
    border-top: 1px solid var(--fp-line);
    border-left: 0;
  }

  .fp-usecases {
    grid-template-columns: 1fr;
  }

  .fp-footer {
    padding: 36px 20px 20px;
  }

  .fp-footer-bottom {
    grid-template-columns: 1fr;
  }

  .fp-footer-tools {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-hero-art,
  .fp-marquee-track,
  .fp-tabs button.on::before {
    animation: none;
  }
}

/* ---------- Pricing page ---------- */

.fp-pricing-page {
  padding: 72px 16px 40px;
  background:
    radial-gradient(50% 40% at 0% 0%, rgb(255 220 205 / 45%), transparent),
    radial-gradient(40% 40% at 100% 0%, rgb(200 246 249 / 40%), transparent),
    #fffdfb;
}

.fp-pricing-page .fp-section-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
}

/* ---------- Auth (Google-only sign-in) ---------- */

.fp-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  background: #fff;
}

.fp-auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 36px 56px;
  background:
    radial-gradient(40% 30% at 90% 10%, rgb(193 223 249 / 22%), transparent),
    radial-gradient(35% 30% at 10% 5%, rgb(253 227 246 / 12%), transparent),
    #0a0a0b;
  color: #fff;
}

.fp-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: inherit;
  font-size: 19px;
  font-weight: 500;
}

.fp-auth-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.fp-auth-brand .fp-auth-logo img {
  filter: invert(1);
}

.fp-auth-pitch {
  position: relative;
  z-index: 1;
  margin: auto 0;
}

.fp-auth-eyebrow {
  margin: 0 0 18px;
  color: rgb(255 255 255 / 60%);
  font-size: 12px;
}

.fp-auth-pitch h2 {
  max-width: 470px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.18;
}

.fp-auth-pitch h2 em {
  background: linear-gradient(90deg, #c8c4ff, #c1dff9);
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.fp-auth-rule {
  display: block;
  width: 32px;
  height: 2px;
  margin: 28px 0;
  background: #8f8cff;
}

.fp-auth-pitch ul {
  max-width: 380px;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 4px;
  background: rgb(255 255 255 / 3%);
  list-style: none;
}

.fp-auth-pitch li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: rgb(255 255 255 / 88%);
  font-size: 15px;
}

.fp-auth-pitch li + li {
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.fp-auth-pitch li span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: none;
  place-items: center;
  border-radius: 3px;
  background: var(--tone);
  color: #111;
}

.fp-auth-pitch li svg {
  width: 13px;
  height: 13px;
}

.fp-auth-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px 32px;
}

.fp-auth-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.fp-auth-top nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.fp-auth-logo-mobile {
  display: none;
  margin-right: auto;
  color: var(--fp-ink);
}

.fp-auth-body {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 40px 0;
}

.fp-login-form {
  display: grid;
  gap: 20px;
  width: min(400px, 100%);
}

.fp-login-form header {
  margin-bottom: 12px;
}

.fp-login-form h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 400;
}

.fp-login-form header p {
  margin: 6px 0 0;
  color: var(--fp-muted);
  font-size: 15px;
}

.fp-app .fp-google-button {
  width: 100%;
  height: 48px;
  gap: 8px;
  border: 1px solid var(--fp-hairline);
  border-radius: 3px;
  background: #fff;
  color: var(--fp-ink);
  font-size: 15px;
  font-weight: 500;
  box-shadow: none;
}

.fp-app .fp-google-button:hover {
  border-color: var(--fp-ink);
  background: var(--fp-fog);
}

.fp-login-note {
  margin: 0;
  color: var(--fp-muted);
  font-size: 13px;
}

.fp-login-terms {
  margin: 12px 0 0;
  color: var(--fp-faint);
  font-size: 12px;
}

.fp-login-terms a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .fp-auth {
    grid-template-columns: 1fr;
  }

  .fp-auth-brand {
    display: none;
  }

  .fp-auth-main {
    padding: 20px 24px;
  }

  .fp-auth-top {
    justify-content: space-between;
  }

  .fp-auth-top nav a {
    display: none;
  }

  .fp-auth-logo-mobile {
    display: inline-flex;
  }

  .fp-auth-body {
    align-items: start;
    padding-top: 64px;
  }
}

/* Pages without their own FigEditor layout (legal, changelog…). */
.fp-template-page {
  min-height: 60vh;
}

/* ---------- Pricing (figpad-style tabs and plan cards) ---------- */

.fp-pricing {
  width: min(1216px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.fp-billing-tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 56px;
  padding: 4px;
  border: 1px solid var(--fp-hairline);
  border-radius: 3px;
  background: var(--fp-mist);
}

.fp-billing-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--fp-muted);
  font-family: var(--fp-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.fp-billing-tabs button.on {
  background: #fff;
  color: var(--fp-ink);
  box-shadow: 0 1px 3px rgb(1 1 32 / 8%);
}

.fp-billing-tabs b {
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--fp-sky);
  color: var(--fp-ink);
  font-size: 10px;
  font-weight: 500;
}

.fp-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.fp-plan {
  position: relative;
  padding: 48px 28px 36px;
  border: 1px solid var(--fp-hairline);
  border-radius: 2px;
  background: #fff;
}

.fp-plan-featured {
  border-color: var(--fp-ink);
}

.fp-plan-flag {
  position: absolute;
  top: 16px;
  left: 28px;
  color: var(--fp-muted);
  font-family: var(--fp-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fp-plan h3 {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 500;
}

.fp-plan-off {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 2px;
  background: #e5484d;
  color: #fff;
  font-family: var(--fp-mono);
  font-size: 11px;
  font-weight: 600;
}

.fp-plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 16px;
}

.fp-plan-price del {
  color: var(--fp-faint);
  font-size: 15px;
}

.fp-plan-price strong {
  color: var(--fp-ink);
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.fp-plan-price span {
  color: var(--fp-muted);
  font-size: 17px;
}

.fp-plan-desc {
  min-height: 48px;
  margin: 0;
  color: var(--fp-muted);
  font-size: 14px;
  line-height: 1.7;
}

.fp-plan-note {
  margin: 6px 0 0;
  color: var(--fp-faint);
  font-size: 13px;
}

.fp-app .fp-plan-cta {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  border: 0;
  border-radius: 2px;
  background: var(--fp-cta);
  color: #fff;
  font-family: var(--fp-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.fp-app .fp-plan-cta:hover:not(:disabled) {
  background: var(--fp-cta-hover);
}

.fp-app .fp-plan-cta:disabled {
  background: #9a9a9f;
  cursor: not-allowed;
}

.fp-plan-cta svg {
  width: 16px;
  height: 16px;
}

.fp-plan hr {
  margin: 44px 0 24px;
  border: 0;
  border-top: 1px solid var(--fp-hairline);
}

.fp-plan-includes {
  margin: 0 0 18px;
  color: var(--fp-muted);
  font-family: var(--fp-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fp-plan ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fp-plan li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fp-text);
  font-size: 15px;
}

.fp-plan li svg {
  width: 20px;
  height: 20px;
  flex: none;
  padding: 4px;
  border-radius: 2px;
  background: var(--fp-mist);
}

.fp-pricing-faq {
  padding: 96px 0 40px;
  background: #fff;
}

.fp-pricing-faq .fp-faq {
  margin: 0 auto;
  padding-top: 24px;
}

.fp-pricing-faq .fp-faq summary span {
  flex: none;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.fp-pricing-faq .fp-faq details[open] summary span {
  transform: rotate(45deg);
}

@media (max-width: 960px) {
  .fp-plans {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .fp-billing-tabs button {
    padding: 0 10px;
    font-size: 11px;
  }
}

/* ---------- Workspace history ---------- */

.fp-ws-history {
  min-height: 0;
  overflow: auto;
}

.fp-ws-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  color: var(--fp-faint);
  font-size: 13px;
  list-style: none;
  cursor: pointer;
}

.fp-ws-history summary::-webkit-details-marker {
  display: none;
}

.fp-ws-history summary svg {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

.fp-ws-history:not([open]) summary svg {
  transform: rotate(-90deg);
}

.fp-ws-history p {
  margin: 8px 12px;
  color: var(--fp-faint);
  font-size: 13px;
}

.fp-ws-sidebar .fp-ws-history nav a {
  display: block;
  min-height: 0;
  padding: 7px 12px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-ws-sidebar .fp-ws-history nav .fp-ws-history-all {
  color: var(--fp-faint);
  font-size: 13px;
}

/* ---------- Gallery (figpad-style collections) ---------- */

.fp-gallery-page {
  width: min(1184px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.fp-workspace .fp-gallery-page {
  padding-top: 40px;
}

.fp-gallery-hero {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--fp-hairline);
}

.fp-gallery-hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 400;
}

.fp-gallery-hero p:not(.fp-eyebrow) {
  margin: 12px 0 0;
  color: var(--fp-muted);
  font-size: 18px;
}

.fp-gallery-tabs {
  display: flex;
  gap: 8px;
  padding: 32px 0;
  border-bottom: 1px solid var(--fp-line);
}

.fp-gallery-tabs a {
  padding: 10px 16px;
  border: 1px solid var(--fp-hairline);
  border-radius: 2px;
  color: var(--fp-text);
  font-size: 14px;
}

.fp-gallery-tabs a.on {
  border-color: var(--fp-ink);
  background: var(--fp-ink);
  color: #fff;
}

.fp-gallery-results {
  padding-top: 40px;
}

.fp-gallery-results > h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
}

.fp-gallery-results > p {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--fp-muted);
  font-size: 15px;
  line-height: 1.6;
}

.fp-gallery-count {
  display: block;
  margin: 12px 0 28px;
  color: var(--fp-faint);
  font-size: 13px;
}

.fp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.fp-gcard {
  position: relative;
  display: grid;
  grid-template-rows: auto 200px auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.fp-gcard:hover {
  box-shadow: 0 12px 30px rgb(1 1 32 / 8%);
}

.fp-gcard header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fp-gcard header strong {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-gcard header span {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--fp-line);
  border-radius: 999px;
  color: var(--fp-faint);
  font-size: 11px;
}

.fp-gcard-media {
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.fp-gcard-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fp-gcard-title {
  color: var(--fp-text);
  font-size: 14px;
  line-height: 1.45;
}

.fp-app .fp-gcard-use {
  position: absolute;
  top: 128px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--fp-cta);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.fp-gcard-use svg {
  width: 15px;
  height: 15px;
}

.fp-gcard:hover .fp-gcard-use,
.fp-gcard-use:focus-visible,
.fp-gcard-use:disabled {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (hover: none) {
  .fp-app .fp-gcard-use {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 1100px) {
  .fp-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .fp-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .fp-gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* /src/components/figeditor/chart-maker.css */
.fe-chart-page {
  color: #313131;
}
.fe-chart-breadcrumb {
  max-width: 1340px;
  margin: auto;
  padding: 18px 30px;
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: #848484;
}
.fe-chart-hero {
  padding: 92px 32px 70px;
  background:
    radial-gradient(ellipse at 50% 0%, #eaeaec, transparent 68%), #fafaf9;
}
.fe-chart-intro {
  max-width: 920px;
  margin: 0 auto 44px;
  text-align: center;
}
.fe-chart-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 12px;
  font-weight: 600;
}
.fe-chart-intro > .fe-chart-eyebrow {
  display: inline-flex;
  padding: 8px 16px;
  border: 1px solid #e2e2e2;
  border-radius: 30px;
  background: #f6f6f8;
  margin: 0 0 18px;
}
.fe-chart-intro h1 {
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.08;
  letter-spacing: -2.5px;
  font-weight: 400;
  margin: 0 auto 20px;
}
.fe-chart-intro > p:not(.fe-chart-eyebrow) {
  max-width: 800px;
  margin: auto;
  font-size: 19px;
  line-height: 1.65;
  color: #868686;
}
.fe-chart-intro ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 26px 0 0;
  font-size: 13px;
}
.fe-chart-intro li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.fe-chart-intro li svg {
  color: #000000;
}
.fe-chart-workbench {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.55fr);
  border: 1px solid #eaeaec;
  border-radius: 32px;
  overflow: hidden;
  background: white;
  scroll-margin-top: 90px;
  box-shadow: 0 22px 70px #233c5c09;
}
.fe-chart-workbench-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  border-bottom: 1px solid #eaeaec;
  background: #fbfbfd;
}
.fe-chart-editor {
  padding: 28px;
  border-right: 1px solid #eaeaec;
  background: linear-gradient(145deg, #f6f6f8, white 30%);
  min-width: 0;
}
.fe-chart-page h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
.fe-chart-workbench h2 {
  font-size: 19px;
  margin: 12px 0 6px;
}
.fe-chart-workbench header p:not(.fe-chart-eyebrow) {
  font-size: 14px;
  color: #868686;
  line-height: 1.65;
  margin: 0 0 22px;
}
.fe-chart-editor > label,
.fe-chart-settings label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.fe-chart-editor textarea {
  width: 100%;
  min-height: 205px;
  resize: vertical;
  padding: 16px;
  margin: 9px 0 14px;
  border: 1px solid #e6e6e8;
  border-radius: 16px;
  background: white;
  font:
    12px / 2 ui-monospace,
    monospace;
}
.fe-chart-page button,
.fe-chart-page select,
.fe-chart-page input,
.fe-chart-page textarea {
  outline-offset: 4px;
}
.fe-chart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.fe-chart-actions button,
.fe-chart-reset,
.fe-chart-palette button {
  border: 1px solid #e6e6e8;
  border-radius: 22px;
  background: white;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}
.fe-chart-actions button:hover,
.fe-chart-reset:hover {
  background: #f8f8fa;
}
.fe-chart-actions svg,
.fe-chart-reset svg {
  width: 16px;
  height: 16px;
}
.fe-chart-actions .primary {
  color: white;
  background: #000000;
  border-color: #000000;
}
.fe-chart-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fe-chart-settings {
  margin-top: 24px;
}
.fe-chart-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fe-chart-settings select,
.fe-chart-settings input:not([type="checkbox"]) {
  width: 100%;
  border: 1px solid #e6e6e8;
  background: white;
  padding: 11px;
  border-radius: 10px;
  margin: 8px 0 16px;
  font-size: 13px;
}
.fe-chart-settings fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
.fe-chart-settings legend {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
}
.fe-chart-palette {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fe-chart-palette button {
  padding: 8px 10px;
  gap: 3px;
  font-size: 12px;
}
.fe-chart-palette button[aria-pressed="true"] {
  border-color: #000000;
  box-shadow: 0 0 0 2px #eaeaec;
}
.fe-chart-palette span {
  width: 11px;
  height: 14px;
  border-radius: 3px;
}
.fe-chart-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.fe-chart-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fe-chart-checks input {
  accent-color: #000000;
}
.fe-chart-reset {
  margin-top: 20px;
}
.fe-chart-privacy {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #868686;
}
.fe-chart-preview-panel {
  min-width: 0;
  padding: 28px;
}
.fe-chart-preview-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.fe-chart-preview-panel > header p:not(.fe-chart-eyebrow) {
  margin: 0;
}
.fe-chart-preview {
  border: 1px solid #e6e6e8;
  border-radius: 22px;
  overflow: auto;
  padding: 12px;
  background: white;
}
.fe-chart-preview svg {
  display: block;
  width: 100%;
  height: auto;
}
.fe-chart-error {
  padding: 35px;
  background: #fff5f4;
  border: 1px solid #f1c4bd;
  border-radius: 18px;
  color: #a03227;
  line-height: 1.8;
  min-height: 200px;
}
.fe-chart-status {
  min-height: 20px;
  font-size: 13px;
  margin: 16px 0 0;
  color: #6f6f6f;
}
.fe-chart-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  border: 1px solid #e6e6e8;
  border-radius: 12px;
  background: #fcfcfe;
  cursor: pointer;
}
.fe-chart-toggle span {
  width: 32px;
  height: 18px;
  border-radius: 12px;
  background: #d2d2d2;
  position: relative;
}
.fe-chart-toggle span::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background: white;
}
.fe-chart-toggle span.on {
  background: #000000;
}
.fe-chart-toggle span.on::after {
  left: 16px;
}
.fe-chart-shares {
  margin-top: 22px;
}
.fe-chart-shares > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  gap: 8px;
}
.fe-chart-section {
  max-width: 1180px;
  padding: 65px 28px;
  margin: auto;
}
.fe-chart-section > h2 {
  text-align: center;
  margin: 0 0 30px;
}
.fe-chart-examples,
.fe-chart-steps,
.fe-chart-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.fe-chart-examples button {
  padding: 35px 22px;
  border-radius: 18px;
  border: 1px solid #e6e6e8;
  background: #fafafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  cursor: pointer;
}
.fe-chart-examples svg {
  width: 42px;
  height: 42px;
  color: #000000;
}
.fe-chart-steps article {
  padding: 28px;
  background: #f9f9fb;
  border-radius: 20px;
}
.fe-chart-steps article > span {
  color: #000000;
  font-size: 32px;
}
.fe-chart-steps h3 {
  font-size: 20px;
  margin: 18px 0 12px;
}
.fe-chart-steps p,
.fe-chart-faq p {
  color: #868686;
  font-size: 15px;
  line-height: 1.7;
}
.fe-chart-faq {
  max-width: 900px;
}
.fe-chart-faq details {
  border-bottom: 1px solid #e8e8ea;
  padding: 20px 0;
}
.fe-chart-faq summary {
  cursor: pointer;
  font-weight: 600;
}
.fe-chart-related a {
  display: flex;
  justify-content: space-between;
  padding: 25px;
  border: 1px solid #e8e8ea;
  border-radius: 15px;
  gap: 10px;
}
@media (max-width: 1000px) {
  .fe-chart-workbench {
    grid-template-columns: minmax(270px, 1fr) minmax(0, 1.3fr);
  }
  .fe-chart-editor,
  .fe-chart-preview-panel {
    padding: 20px;
  }
}
@media (max-width: 760px) {
  .fe-chart-hero {
    padding: 45px 16px;
  }
  .fe-chart-intro h1 {
    letter-spacing: -1px;
  }
  .fe-chart-intro > p:not(.fe-chart-eyebrow) {
    font-size: 16px;
  }
  .fe-chart-intro ul {
    gap: 14px;
  }
  .fe-chart-workbench {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 22px;
  }
  .fe-chart-editor {
    border-right: 0;
    border-bottom: 1px solid #eaeaec;
  }
  .fe-chart-section {
    padding: 40px 20px;
  }
  .fe-chart-examples,
  .fe-chart-steps,
  .fe-chart-related {
    grid-template-columns: 1fr;
  }
  .fe-chart-preview-panel {
    padding: 18px;
  }
  .fe-chart-preview {
    padding: 0;
  }
  .fe-chart-breadcrumb {
    padding: 18px;
    gap: 10px;
  }
}

.fe-chart-examples {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fe-chart-examples button {
  padding: 0 0 20px;
  overflow: hidden;
  background: white;
  gap: 12px;
  text-align: left;
  align-items: stretch;
}
.fe-chart-examples img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid #eaeaec;
}
.fe-chart-examples strong,
.fe-chart-examples p {
  padding: 0 18px;
  margin: 0;
}
.fe-chart-examples p {
  font-size: 13px;
  color: #868686;
  line-height: 1.6;
}
@media (max-width: 1000px) {
  .fe-chart-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .fe-chart-examples {
    grid-template-columns: 1fr;
  }
}

.fe-chart-section-intro {
  max-width: 780px;
  margin: -10px auto 35px;
  text-align: center;
  color: #868686;
  line-height: 1.7;
}
.fe-chart-marketing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.fe-chart-marketing-cards article {
  border: 1px solid #e9e9eb;
  border-radius: 22px;
  overflow: hidden;
  background: #fefeff;
}
.fe-chart-marketing-cards img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.fe-chart-marketing-cards article > div {
  padding: 26px;
}
.fe-chart-marketing-cards h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 14px;
}
.fe-chart-marketing-cards p {
  font-size: 15px;
  color: #868686;
  line-height: 1.75;
  white-space: pre-line;
  margin: 0;
}
.fe-chart-marketing.alternate .fe-chart-marketing-cards {
  grid-template-columns: 1fr;
  gap: 45px;
}
.fe-chart-marketing.alternate article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border: 0;
  background: #f8f8fa;
}
.fe-chart-marketing.alternate article:nth-child(even) img {
  order: 2;
}
.fe-chart-marketing.alternate article > div {
  padding: 45px;
}
.fe-chart-final-cta {
  text-align: center;
  padding: 85px 25px;
  background: #f7f7f9;
}
.fe-chart-final-cta p {
  color: #868686;
  max-width: 780px;
  margin: 20px auto 30px;
  line-height: 1.7;
}
.fe-chart-final-cta a {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 30px;
  color: white;
  background: #000000;
}
@media (max-width: 760px) {
  .fe-chart-marketing-cards,
  .fe-chart-marketing.alternate article {
    grid-template-columns: 1fr;
  }
  .fe-chart-marketing.alternate article:nth-child(even) img {
    order: 0;
  }
  .fe-chart-marketing.alternate article > div {
    padding: 25px;
  }
}


/* /src/components/figeditor/vector-tool.css */
.fe-vector-workbench {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
}
.fe-vector-workbench .fe-chart-workbench-heading {
  margin: 0;
}
.fe-vector-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.fe-vector-presets legend {
  font-size: 13px;
  font-weight: 650;
  color: #606060;
  margin-bottom: 8px;
}
.fe-vector-presets label {
  position: relative;
  display: grid;
  gap: 3px;
  border: 1px solid #e6e6e8;
  border-radius: 16px;
  padding: 11px 13px;
  cursor: pointer;
  background: white;
}
.fe-vector-presets label[data-active="true"] {
  border-color: #000000;
  background: #f8f8fa;
}
.fe-vector-presets input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fe-vector-presets label:has(input:focus-visible) {
  outline: 2px solid #000000;
  outline-offset: 2px;
}
.fe-vector-presets:disabled label {
  cursor: default;
  opacity: 0.55;
}
.fe-vector-presets strong {
  font-size: 14px;
}
.fe-vector-presets small {
  font-size: 12px;
  color: #727272;
}
.fe-vector-dropzone {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 300px;
  align-content: center;
  border: 2px dashed #d6d6d6;
  border-radius: 22px;
  background: #fbfbfd;
  padding: 32px 20px;
  text-align: center;
  color: #606060;
  cursor: pointer;
}
.fe-vector-dropzone[data-dragging="true"],
.fe-vector-dropzone:hover {
  border-color: #000000;
  background: #f8f8fa;
}
.fe-vector-dropzone strong {
  font-size: 17px;
  color: #303030;
}
.fe-vector-button {
  margin-top: 6px;
  border-radius: 22px;
  background: #000000;
  color: white;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 650;
}
.fe-vector-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.fe-vector-compare figure {
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  min-width: 0;
}
.fe-vector-compare figcaption {
  font-size: 13px;
  font-weight: 650;
  color: #606060;
}
.fe-vector-compare img,
.fe-vector-state {
  width: 100%;
  min-height: 220px;
  max-height: 460px;
  object-fit: contain;
  border: 1px solid #eaeaec;
  border-radius: 16px;
  /* Checkerboard reveals which regions are transparent vs. white paths. */
  background:
    repeating-conic-gradient(#f4f4f6 0% 25%, white 0% 50%) 0 0 / 18px 18px;
}
.fe-vector-state {
  display: grid;
  place-items: center;
  margin: 0;
  color: #606060;
  font-size: 14px;
}
.fe-vector-stats {
  margin: 0;
  font-size: 13px;
  color: #606060;
}
@media (max-width: 760px) {
  .fe-vector-workbench {
    padding: 16px;
  }
  .fe-vector-presets,
  .fe-vector-compare {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* /src/components/figeditor/figure-layout.css */
.fl-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: calc(100vh - 16px);
}

.fl-main {
  min-width: 0;
  padding: 36px;
}

.fl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.fl-eyebrow {
  margin: 0 0 6px;
  color: var(--fp-faint);
  font-family: var(--fp-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.fl-head h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
}

.fl-head p {
  margin: 6px 0 0;
  color: var(--fp-muted);
  font-size: 15px;
}

.fp-app .fl-upload,
.fp-app .fl-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 3px;
  background: var(--fp-cta);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.fl-upload svg,
.fl-export svg {
  width: 17px;
  height: 17px;
}

.fl-stage {
  padding: 24px;
  border: 1px solid var(--fp-line);
  border-radius: 4px;
  background:
    radial-gradient(circle, #d8d8dc 1px, transparent 1px) 0 0 / 14px 14px,
    #f7f7f8;
}

.fl-sheet {
  position: relative;
  width: 100%;
  max-height: 64vh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 10px rgb(1 1 32 / 8%);
  container-type: inline-size;
}

.fl-label {
  position: absolute;
  z-index: 2;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1;
}

.fl-label.inside {
  padding: 1px 3px;
  background: rgb(255 255 255 / 70%);
}

.fl-cell {
  position: absolute;
  overflow: hidden;
}

.fl-cell.empty > button {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border: 1px dashed #b9b9c0;
  background: #f3f3f5;
  color: var(--fp-faint);
  font-size: 12px;
  cursor: pointer;
}

.fl-cell.empty > button:hover {
  border-color: var(--fp-ink);
  color: var(--fp-ink);
}

.fl-cell.empty svg {
  width: 20px;
  height: 20px;
}

.fl-cell.filled {
  cursor: grab;
}

.fl-cell.filled img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.fp-app .fl-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 60%);
  color: #fff;
  cursor: pointer;
  opacity: 0;
}

.fl-remove svg {
  width: 13px;
  height: 13px;
}

.fl-cell:hover .fl-remove {
  opacity: 1;
}

.fl-dpi {
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgb(255 255 255 / 85%);
  color: var(--fp-muted);
  font-family: var(--fp-mono);
  font-size: 10px;
}

.fl-dpi.warn {
  background: #fff3c4;
  color: #7a5a00;
}

.fl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0 0;
  color: var(--fp-faint);
  font-family: var(--fp-mono);
  font-size: 11px;
}

.fl-tray {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px;
  border: 1px dashed var(--fp-hairline);
  border-radius: 4px;
  font-size: 12px;
}

.fl-tray img {
  width: 56px;
  height: 42px;
  border: 1px solid var(--fp-line);
  object-fit: contain;
}

.fl-error {
  margin-top: 12px;
  color: #c2410c;
  font-size: 13px;
}

.fl-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 20px;
  border-left: 1px solid var(--fp-line);
}

.fl-panel h2 {
  margin: 12px 0 0;
  color: var(--fp-muted);
  font-size: 12px;
  font-weight: 500;
}

.fl-layouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.fl-layouts button {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 2px 6px;
  border: 1px solid var(--fp-line);
  border-radius: 4px;
  background: #fff;
  color: var(--fp-faint);
  font-size: 10px;
  cursor: pointer;
}

.fl-layouts button span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-layouts svg {
  width: 38px;
  height: 27px;
  fill: #dadade;
}

.fl-layouts button[aria-pressed="true"] {
  border-color: var(--fp-ink);
  color: var(--fp-ink);
}

.fl-layouts button[aria-pressed="true"] svg {
  fill: var(--fp-lilac);
}

.fl-panel select,
.fl-custom input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--fp-hairline);
  border-radius: 3px;
  background: #fff;
  font-size: 14px;
}

.fl-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.fl-segmented {
  display: flex;
  padding: 3px;
  border-radius: 4px;
  background: var(--fp-mist);
}

.fl-segmented button {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--fp-muted);
  font-size: 12px;
  cursor: pointer;
}

.fl-segmented button[aria-pressed="true"] {
  background: #fff;
  color: var(--fp-ink);
  box-shadow: 0 1px 3px rgb(1 1 32 / 8%);
}

.fl-row {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 8px;
}

.fl-note {
  margin: 0;
  color: var(--fp-faint);
  font-size: 12px;
  line-height: 1.5;
}

.fp-app .fl-export {
  width: 100%;
  height: 44px;
  margin-top: 6px;
}

.fp-app .fl-export:disabled {
  background: #a3a3a8;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .fl-page {
    grid-template-columns: 1fr;
  }

  .fl-panel {
    border-top: 1px solid var(--fp-line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .fl-main {
    padding: 20px 14px;
  }

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

  .fl-stage {
    padding: 10px;
  }
}


/* /src/components/figeditor/gallery.css */
.fe-gallery-page {
  color: var(--fe-text);
}
.fe-gallery-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px 28px;
  text-align: center;
}
.fe-gallery-eyebrow {
  margin: 0 0 10px;
  color: var(--fe-blue);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.fe-gallery-hero h1 {
  margin: 0;
  color: var(--fe-ink);
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
}
.fe-gallery-hero > p {
  margin: 16px auto 0;
  max-width: 680px;
  color: var(--fe-muted);
  font-size: 16px;
  line-height: 1.6;
}
.fe-gallery-search {
  margin: 26px auto 0;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--fe-border);
  border-radius: 999px;
  background: #fff;
  padding: 0 18px;
  color: var(--fe-muted);
}
.fe-gallery-search:focus-within {
  border-color: var(--fe-blue);
  box-shadow: 0 0 0 3px #0877e31f;
}
.fe-gallery-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fe-ink);
  font-size: 15px;
}
.fe-gallery-filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px 0;
  display: grid;
  gap: 10px;
}
.fe-gallery-filter {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}
.fe-gallery-filter legend {
  float: left;
  min-width: 48px;
  padding: 7px 8px 0 0;
  color: var(--fe-muted);
  font-size: 13px;
  font-weight: 650;
}
.fe-gallery-filter > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.fe-gallery-filter button {
  border: 1px solid var(--fe-border);
  border-radius: 999px;
  background: #fff;
  padding: 6px 13px;
  color: var(--fe-text);
  font-size: 13px;
  cursor: pointer;
}
.fe-gallery-filter button:hover {
  background: var(--fe-soft);
}
.fe-gallery-filter button[aria-pressed="true"] {
  border-color: var(--fe-blue);
  background: var(--fe-blue);
  color: #fff;
}
.fe-gallery-results {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 20px 20px;
}
.fe-gallery-results > h2 {
  margin: 0 0 16px;
  color: var(--fe-ink);
  font-size: 22px;
}
.fe-gallery-count {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--fe-muted);
  font-size: 14px;
}
.fe-gallery-count button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--fe-blue);
  font-size: 14px;
  cursor: pointer;
}
.fe-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.fe-gallery-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--fe-border);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.fe-gallery-card:hover {
  box-shadow: 0 14px 36px #17263f14;
  transform: translateY(-2px);
}
.fe-gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--fe-soft);
}
.fe-gallery-card div {
  padding: 14px 16px 16px;
}
.fe-gallery-card span {
  color: var(--fe-muted);
  font-size: 12px;
}
.fe-gallery-card h2 {
  margin: 6px 0 0;
  color: var(--fe-ink);
  font-size: 16px;
  line-height: 1.35;
}
.fe-gallery-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--fe-muted);
}
.fe-gallery-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.fe-gallery-pagination a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fe-blue);
  text-decoration: none;
}
.fe-gallery-pagination a[aria-disabled="true"] {
  color: var(--fe-muted);
  opacity: 0.5;
  pointer-events: none;
}
.fe-gallery-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--fe-muted);
  font-size: 13px;
}
.fe-gallery-breadcrumb a {
  color: var(--fe-muted);
}
.fe-gallery-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 20px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.fe-gallery-detail figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--fe-border);
  border-radius: 20px;
  background: var(--fe-soft);
}
.fe-gallery-detail figure img {
  display: block;
  width: 100%;
  height: auto;
}
.fe-gallery-detail-body h1 {
  margin: 0;
  color: var(--fe-ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
}
.fe-gallery-detail-body > p {
  margin: 14px 0 0;
  color: var(--fe-muted);
  line-height: 1.6;
}
.fe-gallery-detail-body dl {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.fe-gallery-detail-body dl div {
  border: 1px solid var(--fe-border);
  border-radius: 12px;
  padding: 10px 12px;
}
.fe-gallery-detail-body dt {
  color: var(--fe-muted);
  font-size: 12px;
}
.fe-gallery-detail-body dd {
  margin: 3px 0 0;
  color: var(--fe-ink);
  font-size: 14px;
  font-weight: 600;
}
.fe-gallery-prompt {
  margin-top: 22px;
  border-radius: 14px;
  background: var(--fe-soft);
  padding: 14px 16px;
}
.fe-gallery-prompt h2 {
  margin: 0 0 6px;
  color: var(--fe-ink);
  font-size: 14px;
}
.fe-gallery-prompt p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.fe-gallery-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fe-gallery-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--fe-border);
  border-radius: 22px;
  background: #fff;
  padding: 0 18px;
  color: var(--fe-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.fe-gallery-actions button:hover {
  background: var(--fe-soft);
}
.fe-gallery-status {
  display: block;
  min-height: 20px;
  margin-top: 8px;
  color: var(--fe-muted);
  font-size: 13px;
}
.fe-gallery-back {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 20px 0;
}
.fe-gallery-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fe-blue);
  font-size: 14px;
  text-decoration: none;
}
.fe-gallery-cta {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  border-radius: 24px;
  background: var(--fe-soft);
  text-align: center;
}
.fe-gallery-cta h2 {
  margin: 0;
  color: var(--fe-ink);
  font-size: 26px;
}
.fe-gallery-cta p {
  margin: 12px auto 22px;
  max-width: 560px;
  color: var(--fe-muted);
  line-height: 1.6;
}
@media (max-width: 860px) {
  .fe-gallery-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}
@media (max-width: 560px) {
  .fe-gallery-hero {
    padding: 40px 16px 20px;
  }
  .fe-gallery-filters,
  .fe-gallery-results,
  .fe-gallery-detail,
  .fe-gallery-breadcrumb,
  .fe-gallery-back {
    padding-left: 16px;
    padding-right: 16px;
  }
  .fe-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .fe-gallery-cta {
    margin: 28px 16px;
  }
}


/* /src/components/figeditor/research-tool.css */
.fe-research-page {
  background:
    radial-gradient(
      ellipse 600px 500px at 50% 160px,
      #eeeef0 0,
      transparent 100%
    ),
    linear-gradient(#f8f7f5, #fff 1100px);
  color: #303030;
  min-height: 100vh;
}
.fe-research-breadcrumb {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px max(28px, calc((100% - 1350px) / 2));
  background: #fff;
  border-bottom: 1px solid #f0f0f2;
  font-size: 13px;
}
.fe-research-hero {
  max-width: 1100px;
  margin: auto;
  text-align: center;
  padding: 96px 24px 38px;
}
.fe-research-tag {
  display: inline-block;
  padding: 7px 17px;
  background: #f6f6f8;
  border: 1px solid #e0e0e0;
  color: #000000;
  border-radius: 30px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.fe-research-hero h1 {
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.1;
  letter-spacing: -2.5px;
  font-weight: 500;
  margin: 20px 0;
}
.fe-research-hero > p {
  font-size: 20px;
  line-height: 1.6;
  color: #757575;
  max-width: 810px;
  margin: auto;
}
.fe-research-benefit {
  margin-top: 27px;
  font-size: 14px;
  font-weight: 600;
}
.fe-research-workbench {
  display: grid;
  grid-template-columns: 41% 59%;
  max-width: 1232px;
  margin: 0 auto 100px;
  border: 1px solid #e8e8ea;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  scroll-margin-top: 88px;
  box-shadow: 0 25px 50px #1d386607;
}
.fe-research-cover .fe-research-workbench {
  grid-template-columns: 1fr 1fr;
}
.fe-research-controls {
  padding: 28px;
  min-width: 0;
}
.fe-research-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.fe-research-heading > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: white;
  background: #000000;
  border-radius: 17px;
}
.fe-research-heading h2 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 650;
}
.fe-research-controls label,
.fe-research-controls legend {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin: 0 0 8px;
}
.fe-research-controls textarea {
  display: block;
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 16px;
  line-height: 1.65;
  font-size: 14px;
  border: 1px solid #e7e7e9;
  border-radius: 18px;
  outline: none;
}
.fe-research-controls textarea:focus,
.fe-research-controls select:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px #3274df18;
}
.fe-research-count {
  color: #868686;
  font-size: 12px;
  text-align: right;
  margin: 7px 0 20px;
}
.fe-research-controls select {
  display: block;
  width: 100%;
  border: 1px solid #e7e7e9;
  border-radius: 18px;
  padding: 12px;
  background: #fff;
  font-size: 14px;
  margin-top: 5px;
  max-width: 100%;
  text-overflow: ellipsis;
}
.fe-research-settings {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.fe-research-settings > label {
  flex: 1;
  min-width: 0;
}
.fe-research-controls fieldset {
  border: 0;
  padding: 0;
  margin: 16px 0;
}
.fe-research-chips,
.fe-research-tabs,
.fe-research-resolutions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fe-research-chips button,
.fe-research-tabs button,
.fe-research-resolutions button {
  border: 1px solid #e7e7e9;
  border-radius: 12px;
  padding: 9px 12px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}
.fe-research-tabs {
  margin-bottom: 20px;
}
.fe-research-tabs button,
.fe-research-resolutions button {
  flex: 1;
}
.fe-research-page button[aria-pressed="true"],
.fe-research-tabs button[aria-selected="true"] {
  background: #f7f7f9;
  border-color: #cdcdcd;
  color: #000000;
}
.fe-research-generate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: #000000;
  border-radius: 15px;
  color: #fff;
  min-height: 48px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.fe-research-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.fe-research-text-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  color: #000000;
  width: 100%;
  margin-top: 16px;
}
.fe-research-example-select > a {
  display: block;
  font-size: 12px;
  color: #000000;
  margin-top: 12px;
}
.fe-research-preview {
  padding: 28px;
  background: #faf9f8;
  border-left: 1px solid #eaeaec;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}
.fe-research-preview h3 {
  font-size: 15px;
  font-weight: 600;
}
.fe-research-preview p {
  font-size: 12px;
  color: #868686;
  margin-top: 4px;
}
.fe-research-preview-image {
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e8e8ea;
  border-radius: 22px;
  flex: 1;
  min-height: 430px;
  overflow: hidden;
  padding: 12px;
}
.fe-research-preview-image img {
  width: 100%;
  max-height: 650px;
  object-fit: contain;
}
.fe-research-cover .fe-research-preview-image img {
  max-height: 750px;
}
.fe-research-preview-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #7a7a7a;
}
.fe-research-preview-caption span {
  flex: 1;
}
.fe-research-preview-caption button {
  padding: 7px;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
}
.fe-research-section {
  max-width: 1232px;
  margin: 90px auto;
  scroll-margin-top: 90px;
}
.fe-research-section h2 {
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
  font-weight: 550;
}
.fe-research-intro {
  max-width: 830px;
  margin: 0 auto 35px;
  color: #848484;
  text-align: center;
  line-height: 1.7;
}
.fe-research-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.fe-research-gallery > button {
  position: relative;
  border: 1px solid #e8e8ea;
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  padding-bottom: 20px;
  background: #fff;
  cursor: pointer;
}
.fe-research-gallery img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: #fafafa;
}
.fe-research-cover .fe-research-gallery img {
  height: 300px;
  object-fit: cover;
}
.fe-research-gallery strong,
.fe-research-gallery p {
  display: block;
  margin: 12px 18px 0;
}
.fe-research-gallery p {
  font-size: 13px;
  line-height: 1.5;
  color: #848484;
}
.fe-research-use {
  display: block;
  color: #000000;
  font-size: 11px;
  margin: 15px 18px 0;
}
.fe-research-gallery.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fe-research-gallery.large img {
  height: 500px;
}
.fe-research-marketing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.fe-research-marketing-cards article {
  background: #fcfcfe;
  border: 1px solid #ebebed;
  padding: 26px;
  border-radius: 22px;
}
.fe-research-marketing-cards h3 {
  font-size: 20px;
  margin: 6px 0 12px;
  font-weight: 550;
}
.fe-research-marketing-cards p {
  color: #848484;
  line-height: 1.7;
  font-size: 15px;
  white-space: pre-line;
}
.fe-research-marketing-cards img {
  width: 100%;
  height: 230px;
  object-fit: contain;
}
.fe-research-faq {
  max-width: 850px;
}
.fe-research-faq details {
  border-bottom: 1px solid #e8e8ea;
  padding: 20px 0;
}
.fe-research-faq summary {
  font-size: 17px;
  font-weight: 550;
  cursor: pointer;
}
.fe-research-faq details > p {
  margin: 15px 0 0;
  line-height: 1.7;
  color: #848484;
}
.fe-research-related {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.fe-research-related a {
  padding: 18px 25px;
  border: 1px solid #e8e8ea;
  border-radius: 16px;
  font-size: 14px;
}
.fe-research-cta {
  padding: 55px 25px;
  background: #f6f6f8;
  border-radius: 28px;
}
.fe-research-cta button {
  width: auto;
  margin: 25px auto 0;
  padding-inline: 30px;
}
.fe-research-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.fe-research-style-grid button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 7px;
  border: 1px solid #e8e8ea;
  border-radius: 15px;
  font-size: 11px;
  text-align: left;
  line-height: 1.3;
}
.fe-research-style-grid img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.fe-research-upload {
  display: flex !important;
  gap: 8px;
  align-items: center;
  color: #000000;
  cursor: pointer;
  margin: 14px 0 !important;
  font-size: 13px !important;
}
.fe-research-upload input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
}
.fe-research-upload:focus-within {
  outline: 2px solid #000000;
}
.fe-research-reference {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin: 10px 0;
}
.fe-research-reference img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.fe-research-reference span {
  overflow-wrap: anywhere;
  flex: 1;
}
.fe-research-instructions {
  min-height: 95px !important;
}
.fe-research-error {
  background: #fff0f0;
  color: #b12828;
  font-size: 13px;
  padding: 12px;
  border-radius: 12px;
  margin-top: 14px;
}
.fe-research-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.fe-research-section-heading h2 {
  margin: 0;
}
.fe-research-login {
  max-width: 450px !important;
  padding: 12px !important;
  border-radius: 24px !important;
}
.fe-research-login-close {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 5px;
  z-index: 2;
}
.fe-research-review {
  line-height: 1.6;
}
.fe-research-page button:focus-visible,
.fe-research-page a:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 3px;
}
@media (max-width: 1360px) {
  .fe-research-workbench,
  .fe-research-section {
    margin-left: 28px;
    margin-right: 28px;
  }
  .fe-research-hero h1 {
    font-size: 52px;
  }
  .fe-research-hero {
    padding-top: 65px;
  }
  .fe-research-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .fe-research-workbench,
  .fe-research-cover .fe-research-workbench {
    grid-template-columns: 1fr;
  }
  .fe-research-preview {
    border-left: 0;
    border-top: 1px solid #eaeaec;
  }
  .fe-research-preview-image {
    min-height: 280px;
  }
  .fe-research-gallery,
  .fe-research-marketing-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fe-research-hero h1 {
    font-size: 40px;
  }
  .fe-research-hero > p {
    font-size: 17px;
  }
  .fe-research-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .fe-research-workbench,
  .fe-research-section {
    margin-left: 14px;
    margin-right: 14px;
  }
  .fe-research-controls,
  .fe-research-preview {
    padding: 20px;
  }
  .fe-research-hero {
    padding: 42px 20px 28px;
  }
  .fe-research-hero h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .fe-research-hero > p {
    font-size: 15px;
  }
  .fe-research-breadcrumb {
    padding: 18px 16px;
    gap: 10px;
    font-size: 11px;
    flex-wrap: wrap;
  }
  .fe-research-gallery,
  .fe-research-gallery.large,
  .fe-research-marketing-cards {
    grid-template-columns: 1fr;
  }
  .fe-research-gallery img {
    height: 210px;
  }
  .fe-research-section h2 {
    font-size: 27px;
  }
  .fe-research-section {
    margin-top: 60px;
    margin-bottom: 60px;
  }
  .fe-research-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fe-research-preview-caption {
    flex-wrap: wrap;
  }
  .fe-research-section-heading {
    gap: 15px;
    flex-wrap: wrap;
  }
}
.fe-app .fe-research-controls textarea,
.fe-app .fe-research-controls select {
  font-size: 14px;
}
.fe-app .fe-research-generate {
  font-size: 14px;
}
.fe-app .fe-research-chips button,
.fe-app .fe-research-tabs button,
.fe-app .fe-research-resolutions button {
  font-size: 12px;
}
