.experience-body {
  min-height: 100vh;
  overflow: hidden;
  color: #121413;
  background: #f5f5f4;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.fzy-app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  background: #f7f7f6;
}

.fzy-sidebar {
  height: 100vh;
  padding: 22px 10px 12px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #dcdedb;
  background: #fff;
  overflow-y: auto;
}

.fzy-brand {
  min-height: 50px;
  margin: 0 8px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border: 2px solid #111;
  border-radius: 50%;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 10px;
  height: 9px;
  border: 2px solid #111;
  border-top: 0;
  border-radius: 2px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-left: 2px solid #111;
  border-top: 2px solid #111;
  transform: rotate(45deg);
}

.fzy-brand b {
  display: block;
  color: #101211;
  font-size: 23px;
  line-height: 1;
  letter-spacing: .02em;
}

.fzy-brand small {
  display: block;
  margin-top: 4px;
  color: #858986;
  font-size: 10px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
}

.nav-section {
  margin: 18px 10px 8px;
  color: #4f5551;
  font-size: 10px;
  letter-spacing: .04em;
}

.sidebar-link,
.submenu button {
  width: 100%;
  min-height: 40px;
  margin: 2px 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  color: #1f2a24;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #f1f1f0;
}

.sidebar-link.active {
  color: #050706;
  font-weight: 800;
}

.sidebar-link.has-caret::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  transform: rotate(-45deg);
}

.nav-icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 7px;
  background: #f6f6f5;
  box-shadow: inset 0 0 0 1px #e7e8e6;
}

.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
  border-color: #202422;
}

.home-icon::before {
  left: 8px;
  top: 11px;
  width: 10px;
  height: 8px;
  border: 1.6px solid #202422;
  border-top: 0;
}

.home-icon::after {
  left: 8px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-left: 1.6px solid #202422;
  border-top: 1.6px solid #202422;
  transform: rotate(45deg);
}

.frame-icon::before {
  inset: 7px;
  border: 1.6px solid #202422;
  border-radius: 2px;
}

.frame-icon::after {
  left: 5px;
  top: 5px;
  width: 4px;
  height: 4px;
  border: 1.5px solid #202422;
  border-radius: 50%;
  box-shadow: 14px 0 0 -1px #f6f6f5, 14px 0 0 0 #202422, 0 14px 0 -1px #f6f6f5, 0 14px 0 0 #202422, 14px 14px 0 -1px #f6f6f5, 14px 14px 0 0 #202422;
}

.card-icon::before,
.edit-icon::before,
.wallet-icon::before,
.folder-icon::before {
  left: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  border: 1.6px solid #202422;
  border-radius: 2px;
}

.card-icon::after {
  left: 11px;
  top: 12px;
  width: 8px;
  height: 1.5px;
  background: #202422;
  box-shadow: 0 4px 0 #202422;
}

.edit-icon::after {
  left: 8px;
  top: 18px;
  width: 13px;
  height: 1.5px;
  background: #202422;
  transform: rotate(-25deg);
}

.angle-icon::before {
  left: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-left: 1.6px solid #202422;
  border-bottom: 1.6px solid #202422;
}

.angle-icon::after {
  left: 15px;
  top: 16px;
  width: 4px;
  height: 4px;
  border-right: 1.6px solid #202422;
  border-top: 1.6px solid #202422;
}

.tour-icon::before {
  left: 8px;
  top: 9px;
  width: 12px;
  height: 9px;
  border: 1.6px solid #202422;
  border-radius: 2px;
}

.tour-icon::after {
  left: 10px;
  top: 7px;
  width: 8px;
  height: 4px;
  border: 1.6px solid #202422;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.user-icon::before {
  left: 10px;
  top: 6px;
  width: 7px;
  height: 7px;
  border: 1.6px solid #202422;
  border-radius: 50%;
}

.user-icon::after {
  left: 8px;
  top: 15px;
  width: 11px;
  height: 7px;
  border: 1.6px solid #202422;
  border-radius: 8px 8px 3px 3px;
}

.folder-icon::before {
  top: 10px;
  width: 14px;
  height: 10px;
}

.folder-icon::after {
  left: 9px;
  top: 7px;
  width: 7px;
  height: 4px;
  border: 1.6px solid #202422;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.wallet-icon::after,
.api-icon::before,
.price-icon::before,
.idea-icon::before {
  left: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  border: 1.6px solid #202422;
  border-radius: 4px;
}

.api-icon::after {
  left: 12px;
  top: 6px;
  width: 1.5px;
  height: 16px;
  background: #202422;
  box-shadow: 5px 0 0 #202422;
}

.price-icon::before {
  content: "$";
  display: grid;
  place-items: center;
  border: 0;
  color: #202422;
  font-size: 19px;
}

.idea-icon::after {
  left: 12px;
  top: 19px;
  width: 5px;
  height: 1.5px;
  background: #202422;
}

.submenu {
  margin: 2px 0 8px 31px;
  padding-left: 11px;
  border-left: 1px solid #e5e6e4;
}

.submenu button {
  min-height: 34px;
  padding: 0 8px;
  color: #253028;
  font-size: 12px;
}

.submenu i {
  margin-left: 3px;
  padding: 1px 5px;
  border-radius: 4px;
  color: #335176;
  background: #dce7f4;
  font-size: 9px;
  font-style: normal;
}

.sidebar-foot {
  margin: 14px 8px 0;
  padding: 13px;
  border-radius: 10px;
  color: #fff;
  background: #101312;
}

.sidebar-foot b {
  display: block;
  margin-bottom: 7px;
  color: #d7b66d;
  font-size: 12px;
}

.sidebar-foot span {
  color: rgba(255,255,255,.72);
  font-size: 11px;
  line-height: 1.6;
}

.fzy-workbench {
  min-width: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: 100px 42px minmax(0, 1fr);
  background: #f6f7f6;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 30px;
  background: #fff;
}

.collapse-button {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid #e2e3e1;
  border-radius: 8px;
  background: #fff;
}

.collapse-button::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-left: 1.7px solid #111;
  border-bottom: 1.7px solid #111;
  transform: rotate(45deg);
}

.topbar-spacer {
  flex: 1;
}

.topbar a,
.topbar button {
  border: 0;
  color: #050706;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.promo-strip {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #111;
  background: linear-gradient(90deg, #dbdddc, #f5f5f5 48%, #d0d2d1);
  font-size: 12px;
}

.promo-strip strong {
  font-size: 14px;
  letter-spacing: .08em;
}

.promo-strip button {
  min-height: 25px;
  padding: 0 15px;
  border: 0;
  border-radius: 5px;
  color: #111;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.upload-stage {
  position: relative;
  min-height: 0;
  padding: 24px 36px 34px;
  display: grid;
  grid-template-rows: minmax(560px, 1fr) auto auto;
  gap: 18px;
  overflow-y: auto;
}

.stage-center {
  position: relative;
  min-height: 560px;
  padding: 28px 0 46px;
  display: grid;
  place-items: center;
}

.upload-card {
  width: min(430px, 92vw);
  display: grid;
  justify-items: center;
  text-align: center;
  z-index: 2;
}

.compare-preview {
  position: relative;
  width: 202px;
  height: 212px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 20px 52px rgba(0,0,0,.16);
  transform: perspective(900px) rotateY(-2deg);
}

.compare-preview img {
  width: 101px;
  height: 212px;
  object-fit: cover;
}

.preview-before {
  filter: saturate(.8) brightness(.94);
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

.active-tool {
  margin: 28px 0 8px;
  color: #6b706c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.upload-card h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.stage-desc {
  max-width: 460px;
  margin: 10px 0 20px;
  color: #737873;
  font-size: 12px;
  line-height: 1.8;
}

.primary-upload {
  width: min(400px, 86vw);
  min-height: 49px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  background: #101010;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

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

.sample-button {
  min-height: 38px;
  margin-top: 15px;
  padding: 0 18px 0 40px;
  position: relative;
  border: 0;
  border-radius: 7px;
  color: #7e827f;
  background: #eceeed;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.sample-button::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  width: 23px;
  height: 23px;
  border-radius: 5px;
  background: linear-gradient(135deg, #101312, #6e7470);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}

.sample-button::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8dad8;
}

.floating-sample {
  position: absolute;
  width: 86px;
  height: 152px;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0,0,0,.13);
}

.floating-sample img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.sample-left {
  left: clamp(60px, 24%, 360px);
  top: 46%;
  transform: translateY(-50%) perspective(700px) rotateY(28deg);
}

.sample-right {
  right: clamp(60px, 22%, 320px);
  top: 46%;
  transform: translateY(-50%) perspective(700px) rotateY(-28deg);
}

.config-dock {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 13px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 160px;
  gap: 10px;
  border: 1px solid #e0e1df;
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 50px rgba(16,19,18,.08);
}

.config-dock div {
  min-height: 54px;
  padding: 9px 12px;
  display: grid;
  align-content: center;
  gap: 3px;
  border-radius: 10px;
  background: #f6f7f6;
}

.config-dock span {
  color: #858a86;
  font-size: 11px;
}

.config-dock b {
  color: #111;
  font-size: 14px;
}

.config-dock select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #121413;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.config-dock > button {
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #38bdf8;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.result-drawer {
  width: min(960px, 100%);
  margin: 0 auto;
}

.result-drawer article {
  padding: 18px 22px;
  border: 1px solid #e0e1df;
  border-radius: 14px;
  background: #fff;
}

.result-drawer small {
  color: #c6a15b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.result-drawer h2 {
  margin: 8px 0 7px;
  font-size: 22px;
}

.result-drawer p {
  max-width: 900px;
  margin: 0;
  color: #606661;
  font-size: 13px;
  line-height: 1.8;
}

.result-tags {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .fzy-app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .sample-left {
    left: 9%;
  }

  .sample-right {
    right: 9%;
  }

  .config-dock {
    grid-template-columns: 1fr 1fr;
  }

  .config-dock > button {
    min-height: 52px;
  }
}

@media (max-width: 820px) {
  .experience-body {
    overflow: auto;
  }

  .fzy-app-shell {
    min-height: 100vh;
    display: block;
  }

  .fzy-sidebar {
    height: auto;
    max-height: none;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid #dcdedb;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
  }

  .nav-section,
  .submenu,
  .sidebar-foot {
    grid-column: 1 / -1;
  }

  .fzy-workbench {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto auto auto;
  }

  .topbar {
    min-height: 64px;
    padding: 0 16px;
    gap: 14px;
  }

  .promo-strip {
    padding: 8px 12px;
    flex-wrap: wrap;
    text-align: center;
  }

  .upload-stage {
    padding: 20px 16px 34px;
    overflow: visible;
  }

  .stage-center {
    min-height: 460px;
    padding: 24px 0 34px;
  }

  .floating-sample {
    display: none;
  }

  .config-dock {
    grid-template-columns: 1fr;
  }
}
