.my-ai-page {
  min-height: 70vh;
  padding: 0 6px 28px;
}

.my-ai-page > .section-title-row {
  margin-right: 5px;
  margin-left: 5px;
}

.my-ai-title {
  margin: 7px 6px 12px;
  color: #d8d8d8;
  font-size: 15px;
  font-weight: 500;
}

.tool-tabs {
  display: flex;
  gap: 10px;
  padding: 0 4px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #737373 #1d1d1d;
}

.tool-tabs::-webkit-scrollbar {
  height: 8px;
}

.tool-tabs::-webkit-scrollbar-track {
  background: #1d1d1d;
  border-radius: 4px;
}

.tool-tabs::-webkit-scrollbar-thumb {
  background: #737373;
  border-radius: 4px;
}

.tool-tabs a,
.tool-tabs span {
  min-width: 94px;
  flex: 0 0 auto;
  padding: 10px 14px;
  color: #d3d3d3;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  background: #111;
  border: 1px solid #313131;
  border-radius: 7px;
}

.tool-tabs a.active {
  color: var(--orange);
  border-color: var(--orange);
}

.status-tabs {
  display: flex;
  align-items: stretch;
  margin-top: 8px;
  overflow: hidden;
  background: #111;
  border-radius: 5px;
}

.status-tabs button {
  min-height: 43px;
  flex: 0 0 auto;
  padding: 0 15px;
  color: #777;
  font-size: 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.status-tabs button.active {
  color: #17100a;
  font-weight: 700;
  background: linear-gradient(180deg, #ffb22b, #ff8500);
}

.status-tabs b {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  place-items: center;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 999px;
}

.works-panel {
  min-height: 430px;
  margin-top: 12px;
}

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

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

.work-card {
  min-width: 0;
  display: block;
  overflow: hidden;
  color: #ddd;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
}

.work-card img {
  width: 100%;
  display: block;
  background: #080808;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.work-card video {
  width: 100%;
  display: block;
  background: #080808;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.work-info {
  padding: 9px 10px 10px;
}

.work-info .work-type {
  width: fit-content;
  display: inline-flex;
  margin: 0 0 6px;
  padding: 2px 6px;
  color: #ff9f2f;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 139, 19, 0.1);
  border: 1px solid rgba(255, 139, 19, 0.22);
  border-radius: 999px;
}

.work-info .work-type.video {
  color: #72b5ff;
  background: rgba(67, 145, 255, 0.1);
  border-color: rgba(67, 145, 255, 0.24);
}

.work-info strong {
  display: block;
  overflow: hidden;
  color: #d7d7d7;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.work-info span {
  display: block;
  margin-top: 3px;
  color: #717171;
  font-size: 10px;
}

.work-info .work-download {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 8px;
  color: #ff9f2f;
  font-size: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 139, 19, 0.24);
  border-radius: 5px;
}

.empty-works {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8b8b8b;
}

.empty-works[hidden] {
  display: none;
}

.empty-illustration {
  position: relative;
  width: 230px;
  height: 230px;
  margin-bottom: 18px;
}

.empty-shadow {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  height: 38px;
  background: #151515;
  border-radius: 50%;
}

.empty-box-body {
  position: absolute;
  left: 64px;
  bottom: 40px;
  width: 108px;
  height: 88px;
  background: linear-gradient(135deg, #383838, #202020);
  clip-path: polygon(0 22%, 50% 0, 100% 24%, 100% 100%, 0 100%);
}

.empty-box-lid {
  position: absolute;
  left: 44px;
  bottom: 120px;
  width: 142px;
  height: 68px;
  background: linear-gradient(160deg, #414141, #272727);
  clip-path: polygon(0 26%, 43% 0, 100% 28%, 58% 62%);
}

.spark {
  position: absolute;
  color: #555;
  font-size: 26px;
  font-weight: 300;
}

.spark-1 {
  top: 37px;
  left: 57px;
}

.spark-2 {
  top: 36px;
  left: 121px;
}

.spark-3 {
  top: 52px;
  right: 45px;
  font-size: 22px;
}

.empty-works p {
  margin: 0;
  color: #747474;
  font-size: 15px;
}

@media (min-width: 768px) {
  .my-ai-page {
    padding: 0 14px 36px;
  }

  .my-ai-title {
    margin: 12px 8px 15px;
    font-size: 18px;
  }

  .tool-tabs {
    gap: 12px;
  }

  .tool-tabs a,
  .tool-tabs span {
    min-width: 112px;
    font-size: 15px;
  }

  .works-grid {
    gap: 20px 14px;
  }

  .work-info strong {
    font-size: 15px;
  }
}
