/* V152 public UI hotfixes. Kept outside the main bundle to avoid rebuilding while source text is being restored. */
html,
body,
#root{
  min-width:0;
  overflow-x:hidden;
}

.shell,
.shell main,
.sidebar{
  transition:width .18s ease, margin-left .18s ease, transform .18s ease;
}
.app-header{
  display:grid!important;
  grid-template-columns:minmax(150px,260px) minmax(280px,680px) minmax(160px,1fr)!important;
  align-items:center!important;
  gap:18px!important;
  min-width:0!important;
  width:100%!important;
}
.app-header>*{
  min-width:0;
}
.app-header>*:last-child{
  justify-self:end!important;
  margin-left:auto!important;
}
.app-header button:has(svg)+button,
.app-header button[aria-label*="通知"],
.app-header button[title*="通知"],
.app-header button[title*="language"],
.app-header button[title*="Language"]{
  flex-shrink:0!important;
}
.sidebar-collapsed .sidebar{
  width:78px!important;
  overflow:hidden!important;
  padding-left:10px!important;
  padding-right:10px!important;
}
.sidebar-collapsed main{
  margin-left:78px!important;
  min-width:0!important;
  display:block!important;
  visibility:visible!important;
}
.sidebar-collapsed .brand{
  display:none!important;
}
.sidebar-collapsed .sidebar-topline{
  justify-content:center!important;
}
.sidebar-collapsed .sidebar nav button{
  justify-content:center!important;
  padding-left:0!important;
  padding-right:0!important;
}
.sidebar-collapsed .sidebar nav button span,
.sidebar-collapsed .sidebar-user-copy,
.sidebar-collapsed .sidebar-user svg,
.sidebar-collapsed .sidebar-points,
.sidebar-collapsed .backend-note{
  display:none!important;
}
.sidebar-collapsed .sidebar-bottom{
  justify-items:center!important;
}
.sidebar-collapsed .sidebar-user{
  width:48px!important;
  height:48px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  padding:5px!important;
}
.sidebar-collapsed .sidebar-collapse-btn{
  width:44px!important;
  height:44px!important;
}

body.forge-home-page .home-hero{
  display:grid!important;
  grid-template-columns:minmax(340px,1fr) minmax(560px,46vw)!important;
  gap:28px!important;
  align-items:center!important;
  min-height:340px!important;
  overflow:hidden!important;
}
body.forge-home-page .home-hero>div:first-child{
  position:relative;
  z-index:2;
}
body.forge-home-page .home-latest-in-hero{
  align-self:stretch!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.forge-home-page .home-latest-in-hero .section-head,
body.forge-home-page .home-latest-in-hero>p{
  display:none!important;
}
body.forge-home-page .home-latest-in-hero .latest-tool-strip{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:14px!important;
  height:100%!important;
  align-items:end!important;
}
body.forge-home-page .home-latest-in-hero .latest-tool-card,
body.forge-home-page .home-latest-in-hero article,
body.forge-home-page .home-latest-in-hero button{
  min-height:230px!important;
  border-radius:8px!important;
  overflow:hidden!important;
}
body.forge-home-page .forge-hidden-home-latest{
  display:none!important;
}
body.forge-home-page .forge-home-latest-tools{
  min-width:0!important;
  align-self:stretch!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:14px!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.forge-home-page .forge-home-latest-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:12px!important;
}
body.forge-home-page .forge-home-latest-head b{
  display:block!important;
  color:#f8fbff!important;
  font-size:22px!important;
  line-height:1.1!important;
}
body.forge-home-page .forge-home-latest-head small{
  display:block!important;
  margin-top:6px!important;
  color:#8696b2!important;
  font-size:12px!important;
}
body.forge-home-page .forge-home-latest-view-all{
  flex:0 0 auto!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:8px!important;
  background:rgba(30,41,59,.72)!important;
  color:#dbe7ff!important;
  min-height:34px!important;
  padding:0 12px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
body.forge-home-page .forge-home-latest-grid{
  min-height:0!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
}
body.forge-home-page .forge-home-latest-card{
  position:relative!important;
  min-width:0!important;
  min-height:224px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  align-items:flex-start!important;
  gap:6px!important;
  padding:12px!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:8px!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,rgba(30,41,59,.72),rgba(11,16,27,.94))!important;
  color:#eef4ff!important;
  text-align:left!important;
  cursor:pointer!important;
}
body.forge-home-page .forge-home-latest-card img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  z-index:0!important;
}
body.forge-home-page .forge-home-latest-card:after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  background:linear-gradient(180deg,rgba(8,13,24,.05) 20%,rgba(8,13,24,.88) 72%,rgba(8,13,24,.96))!important;
}
body.forge-home-page .forge-home-latest-card b,
body.forge-home-page .forge-home-latest-card small,
body.forge-home-page .forge-home-latest-chip,
body.forge-home-page .forge-home-latest-rank{
  position:relative!important;
  z-index:2!important;
}
body.forge-home-page .forge-home-latest-card b{
  max-width:100%!important;
  color:#fff!important;
  font-size:14px!important;
  line-height:1.35!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.forge-home-page .forge-home-latest-card small{
  color:#aab8d1!important;
  font-size:11px!important;
}
body.forge-home-page .forge-home-latest-chip,
body.forge-home-page .forge-home-latest-rank{
  display:inline-flex!important;
  align-items:center!important;
  height:22px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  background:rgba(8,13,24,.62)!important;
  color:#dce7ff!important;
  font-size:11px!important;
  font-weight:900!important;
}
body.forge-home-page .forge-home-latest-rank{
  position:absolute!important;
  top:10px!important;
  right:10px!important;
}
body.forge-home-page .forge-home-latest-placeholder{
  position:absolute!important;
  inset:0!important;
  display:grid!important;
  place-items:center!important;
  color:#dbe7ff!important;
  font-size:34px!important;
  font-weight:900!important;
  background:linear-gradient(145deg,#1f2a44,#111827)!important;
}
body.forge-home-page .forge-home-latest-empty{
  min-height:224px!important;
  display:grid!important;
  place-items:center!important;
  border:1px dashed rgba(148,163,184,.22)!important;
  border-radius:8px!important;
  color:#92a2bd!important;
}
body.forge-home-page .forge-home-latest-loading span{
  min-height:224px!important;
  border-radius:8px!important;
  background:linear-gradient(90deg,rgba(30,41,59,.46),rgba(59,71,100,.28),rgba(30,41,59,.46))!important;
  background-size:200% 100%!important;
  animation:forgeSkeleton 1.2s linear infinite!important;
}
@keyframes forgeSkeleton{
  from{background-position:200% 0}
  to{background-position:-200% 0}
}

body.forge-home-page .forge-home-featured-tools{
  display:block!important;
  margin:32px 0!important;
  padding:22px!important;
  border:1px solid rgba(148,163,184,.14)!important;
  border-radius:8px!important;
  background:linear-gradient(180deg,rgba(18,27,45,.96),rgba(10,15,27,.94))!important;
  box-shadow:0 20px 60px rgba(0,0,0,.24)!important;
}
body.forge-home-page .forge-home-featured-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin-bottom:16px!important;
}
body.forge-home-page .forge-home-featured-head b{
  display:block!important;
  color:#f8fbff!important;
  font-size:24px!important;
  line-height:1.15!important;
}
body.forge-home-page .forge-home-featured-head small{
  display:block!important;
  margin-top:6px!important;
  color:#8da0bf!important;
  font-size:13px!important;
}
body.forge-home-page .forge-home-featured-view-all{
  flex:0 0 auto!important;
  border:0!important;
  border-radius:8px!important;
  background:rgba(42,54,82,.84)!important;
  color:#dbe7ff!important;
  min-height:34px!important;
  padding:0 12px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
body.forge-home-page .forge-home-featured-grid{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(210px,1fr))!important;
  gap:14px!important;
  overflow-x:auto!important;
  padding-bottom:4px!important;
}
body.forge-home-page .forge-home-featured-card{
  min-width:210px!important;
  min-height:430px!important;
  display:flex!important;
  flex-direction:column!important;
  border:1px solid rgba(148,163,184,.18)!important;
  border-radius:8px!important;
  overflow:hidden!important;
  background:rgba(15,23,42,.82)!important;
  color:#eaf1ff!important;
}
body.forge-home-page .forge-home-featured-media{
  position:relative!important;
  height:246px!important;
  background:#101827!important;
  overflow:hidden!important;
}
body.forge-home-page .forge-home-featured-media img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
body.forge-home-page .forge-home-featured-media>span{
  width:100%!important;
  height:100%!important;
  display:grid!important;
  place-items:center!important;
  font-size:34px!important;
  font-weight:900!important;
  color:#dce7ff!important;
  background:linear-gradient(145deg,#1e293b,#0f172a)!important;
}
body.forge-home-page .forge-home-featured-media small,
body.forge-home-page .forge-home-featured-media em{
  position:absolute!important;
  z-index:2!important;
  border-radius:999px!important;
  background:rgba(9,14,24,.68)!important;
  color:#f3f7ff!important;
  font-size:11px!important;
  font-weight:900!important;
  font-style:normal!important;
  padding:4px 8px!important;
}
body.forge-home-page .forge-home-featured-media small{right:10px!important;top:10px!important}
body.forge-home-page .forge-home-featured-media em{left:10px!important;top:10px!important}
body.forge-home-page .forge-home-featured-body{
  flex:1!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  padding:12px!important;
}
body.forge-home-page .forge-home-featured-tags{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
}
body.forge-home-page .forge-home-featured-tags span{
  display:inline-flex!important;
  align-items:center!important;
  height:22px!important;
  border-radius:999px!important;
  padding:0 8px!important;
  background:rgba(57,70,105,.78)!important;
  color:#c6d3eb!important;
  font-size:11px!important;
  font-weight:800!important;
}
body.forge-home-page .forge-home-featured-card b{
  color:#fff!important;
  font-size:15px!important;
  line-height:1.35!important;
}
body.forge-home-page .forge-home-featured-card p{
  flex:1!important;
  margin:0!important;
  color:#9eacc6!important;
  font-size:12px!important;
  line-height:1.55!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
body.forge-home-page .forge-home-featured-card button{
  width:100%!important;
  height:38px!important;
  border:0!important;
  border-radius:8px!important;
  background:linear-gradient(90deg,#bfdbfe,#f472b6)!important;
  color:#151827!important;
  font-weight:900!important;
  cursor:pointer!important;
}
body.forge-home-page .forge-home-featured-empty{
  min-height:120px!important;
  display:grid!important;
  place-items:center!important;
  border:1px dashed rgba(148,163,184,.22)!important;
  border-radius:8px!important;
  color:#92a2bd!important;
}
body.forge-home-page .forge-home-featured-loading span{
  min-height:430px!important;
  border-radius:8px!important;
  background:linear-gradient(90deg,rgba(30,41,59,.46),rgba(59,71,100,.28),rgba(30,41,59,.46))!important;
  background-size:200% 100%!important;
  animation:forgeSkeleton 1.2s linear infinite!important;
}

body.forge-home-page .home-hot-tools-section{
  display:none!important;
}
body.forge-home-page .forge-hidden-hot-tools{
  display:none!important;
}
body.forge-home-page .forge-home>.home-section.home-hot-tools-section,
body.forge-home-page main>.home-section.home-hot-tools-section{
  display:none!important;
}
.home-hot-tools-section .section-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:16px!important;
}
.home-hot-tools-section .view-all-hot-tools{
  border:0;
  background:transparent;
  color:#dbe7ff;
  font-weight:900;
  font-size:16px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.home-hot-tool-grid{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:16px!important;
  margin-top:18px!important;
}
.home-hot-tool-card{
  border:1px solid rgba(148,163,184,.2);
  background:linear-gradient(180deg,rgba(30,41,59,.72),rgba(15,23,42,.9));
  border-radius:8px;
  min-height:190px;
  padding:12px;
  color:#e5edff;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:8px;
  overflow:hidden;
}
.home-hot-tool-card img{
  width:100%;
  height:110px;
  object-fit:cover;
  border-radius:6px;
  background:#111827;
}
.home-hot-tool-card b{
  display:block;
  font-size:14px;
  line-height:1.35;
}
.home-hot-tool-card span{
  color:#95a3bb;
  font-size:12px;
}

body.forge-create-page .workspace{
  display:grid!important;
  grid-template-columns:minmax(360px,var(--create-left-width,50%)) 10px minmax(0,1fr)!important;
  align-items:start!important;
  gap:12px!important;
}
body.forge-create-page .workspace>.panel:first-child,
body.forge-create-page .workspace>.create-settings-panel,
body.forge-create-page .workspace>.generator-panel{
  max-width:none!important;
}
body.forge-create-page .workspace>.panel:first-child,
body.forge-create-page .workspace>.create-settings-panel,
body.forge-create-page .workspace>.generator-panel{
  grid-column:1!important;
}
body.forge-create-page .workspace>.results,
body.forge-create-page .workspace>.create-results-panel,
body.forge-create-page .workspace>.panel:last-child{
  min-width:0!important;
  grid-column:3!important;
}
body.forge-create-page .create-splitter{
  grid-column:2!important;
  align-self:stretch!important;
  width:10px!important;
  min-height:420px!important;
  cursor:col-resize!important;
  position:relative!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(99,102,241,.18),rgba(56,189,248,.12))!important;
}
body.forge-create-page .create-splitter:before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:4px;
  width:2px;
  border-radius:999px;
  background:rgba(125,142,255,.68);
  box-shadow:0 0 0 1px rgba(125,142,255,.22),0 0 18px rgba(99,102,241,.3);
}
body.forge-create-page .create-splitter:hover:before,
body.forge-create-resizing .create-splitter:before{
  background:#8b8cff;
  box-shadow:0 0 0 1px rgba(255,255,255,.35),0 0 24px rgba(125,142,255,.56);
}
body.forge-create-page .results .result-grid,
body.forge-create-page .create-results-panel .result-grid,
body.forge-create-page .result-history-grid,
body.forge-create-page .current-result-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
body.forge-create-page .results img,
body.forge-create-page .create-results-panel img{
  width:100%!important;
  max-height:280px!important;
  object-fit:contain!important;
  background:#0d1424!important;
}
body.forge-create-page .result-history-block{
  margin-top:22px!important;
  padding-top:18px!important;
  border-top:1px solid rgba(148,163,184,.16)!important;
}
body.forge-create-page .forge-result-history-inline{
  width:100%!important;
  display:block!important;
  clear:both!important;
}
body.forge-create-page .forge-result-history-inline .section-title.compact{
  margin-bottom:12px!important;
}
body.forge-create-page .forge-result-history-inline .section-title.compact b{
  color:#f8fbff!important;
  font-size:16px!important;
}
body.forge-create-page .forge-result-history-inline .section-title.compact small{
  color:#8292ad!important;
}
body.forge-create-page .forge-history-card{
  min-width:0!important;
}
body.forge-create-page .forge-history-card .image-wrap{
  position:relative!important;
  min-height:220px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#0d1424!important;
}
body.forge-create-page .forge-current-result-sync{
  margin-top:18px!important;
  margin-bottom:16px!important;
  min-height:0!important;
}
body.forge-create-page .forge-has-live-sync .async-empty{
  display:none!important;
}
body.forge-create-page .forge-current-sync-card{
  min-width:0!important;
}
body.forge-create-page .forge-history-placeholder .image-wrap{
  min-height:220px!important;
}
body.forge-create-page .forge-history-loading{
  width:100%;
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#aab6cb;
  text-align:center;
}
body.forge-create-page .forge-history-loading span{
  width:48px;
  height:48px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#eef0ff,#8a82ff 48%,#3b3f7d 72%);
  box-shadow:0 0 32px rgba(129,124,255,.42);
  animation:forgeHistoryPulse 1.35s ease-in-out infinite;
}
body.forge-create-page .forge-history-loading b{
  color:#f2f6ff;
  font-size:14px;
  font-weight:900;
}
body.forge-create-page .forge-history-loading small{
  max-width:80%;
  color:#8491a7;
  font-size:12px;
}
@keyframes forgeHistoryPulse{
  0%,100%{transform:scale(.94);opacity:.76}
  50%{transform:scale(1.05);opacity:1}
}
body.forge-create-page .forge-history-actions{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:10px!important;
}
body.forge-create-page .forge-history-actions a{
  min-width:78px!important;
  text-align:center!important;
}
body.forge-create-page .result-history-block .result-grid article>div a,
body.forge-create-page .forge-history-actions a:first-child:not(:last-child){
  display:none!important;
}
body.forge-create-page .forge-hide-open-action{
  display:none!important;
}
body.forge-create-page .forge-history-top-actions{
  position:absolute!important;
  top:10px!important;
  right:10px!important;
  z-index:4!important;
  display:flex!important;
  gap:8px!important;
}
body.forge-create-page .forge-history-top-actions button{
  width:34px!important;
  height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:10px!important;
  background:rgba(8,13,24,.58)!important;
  color:#edf3ff!important;
  font-size:14px!important;
  font-weight:900!important;
  cursor:pointer!important;
  backdrop-filter:blur(8px)!important;
}
body.forge-create-page .forge-history-top-actions button.active{
  background:rgba(116,96,255,.78)!important;
  border-color:rgba(199,190,255,.72)!important;
}
body.forge-create-page .forge-history-download-fab,
body.forge-create-page .result-history-block .result-grid article>div a.forge-history-download-fab{
  position:absolute!important;
  right:10px!important;
  bottom:10px!important;
  z-index:4!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:54px!important;
  height:34px!important;
  padding:0 12px!important;
  border-radius:10px!important;
  background:#eef2ff!important;
  color:#5b63e7!important;
  font-size:13px!important;
  font-weight:900!important;
  text-decoration:none!important;
  box-shadow:0 10px 26px rgba(0,0,0,.22)!important;
}
.community-cover{
  position:relative!important;
}
.community-view-badge{
  position:absolute;
  right:10px;
  top:10px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:4px;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  background:rgba(7,10,18,.62);
  color:#e8eefc;
  font-size:11px;
  font-weight:800;
  line-height:1;
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.1);
}
.forge-published-card{
  overflow:hidden;
  border:1px solid rgba(148,163,184,.18);
  border-radius:14px;
  background:rgba(15,23,42,.82);
}
.forge-published-card .community-cover{
  aspect-ratio:4/5;
  background:#0b1220;
  overflow:hidden;
}
.forge-published-card .community-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.forge-published-card-body{
  display:grid;
  gap:8px;
  padding:12px;
}
.forge-published-card-body small{
  color:#8ea0bf;
  font-size:12px;
}
.forge-published-card-body b{
  color:#f4f7ff;
  font-size:14px;
  line-height:1.3;
}
.forge-published-card-body p{
  min-height:36px;
  max-height:42px;
  overflow:hidden;
  color:#aab7d3;
  font-size:12px;
  line-height:1.45;
}
.forge-published-card-body button{
  height:34px;
  border:0;
  border-radius:10px;
  background:linear-gradient(90deg,#cfe2ff,#ff8fbd);
  color:#101827;
  font-weight:900;
  cursor:pointer;
}
.forge-published-card-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.forge-published-card-actions>[data-action="use"]{
  min-width:0;
  flex:1;
}
.forge-published-admin-actions{
  display:flex;
  align-items:center;
  gap:6px;
}
.forge-published-card-body .forge-published-admin-actions button{
  min-width:52px;
  padding:0 10px;
  border:1px solid rgba(148,163,184,.28);
  background:rgba(30,41,59,.92);
  color:#dbe7ff;
  font-size:12px;
  font-weight:800;
}
.forge-published-card-body .forge-published-admin-actions button[data-action="delete"]{
  border-color:rgba(248,113,113,.35);
  background:rgba(127,29,29,.22);
  color:#fecaca;
}
.forge-published-card-body .forge-published-admin-actions button:disabled{
  cursor:wait;
  opacity:.55;
}
.forge-category-mask{
  position:fixed;
  inset:0;
  z-index:19000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(2,6,23,.72);
  backdrop-filter:blur(8px);
}
.forge-category-dialog{
  width:min(520px,calc(100vw - 32px));
  padding:18px;
  border:1px solid rgba(148,163,184,.26);
  border-radius:14px;
  background:#111827;
  box-shadow:0 24px 70px rgba(0,0,0,.42);
}
.forge-category-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.forge-category-head b,
.forge-category-head small{
  display:block;
}
.forge-category-head b{
  color:#f8fbff;
  font-size:17px;
}
.forge-category-head small{
  max-width:390px;
  margin-top:5px;
  overflow:hidden;
  color:#8ea0bf;
  font-size:12px;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.forge-category-head>button{
  width:34px;
  height:34px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:8px;
  background:rgba(30,41,59,.8);
  color:#dbe7ff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.forge-category-options{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.forge-category-options button{
  min-height:42px;
  padding:8px 10px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:8px;
  background:rgba(30,41,59,.68);
  color:#cbd8ee;
  font-weight:800;
  cursor:pointer;
}
.forge-category-options button:hover,
.forge-category-options button.active{
  border-color:#7c83ff;
  background:rgba(79,70,229,.2);
  color:#fff;
}
.forge-category-options button:disabled{
  cursor:wait;
  opacity:.55;
}
@media (max-width:720px){
  .forge-published-card-actions{align-items:stretch;flex-direction:column}
  .forge-published-admin-actions{display:grid;grid-template-columns:1fr 1fr}
  .forge-category-options{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.forge-admin-published-works{
  margin-top:18px;
  padding:18px;
  border:1px solid rgba(148,163,184,.2);
  border-radius:18px;
  background:rgba(15,23,42,.72);
}
.forge-admin-published-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:14px;
}
.forge-admin-published-head h2{
  margin:0;
  color:#f8fbff;
  font-size:20px;
}
.forge-admin-published-head p{
  margin:6px 0 0;
  color:#8ea0bf;
  font-size:13px;
}
.forge-admin-published-head button,
.forge-admin-published-row button{
  border:1px solid rgba(148,163,184,.28);
  border-radius:10px;
  background:rgba(30,41,59,.82);
  color:#dbe7ff;
  font-weight:800;
  cursor:pointer;
}
.forge-admin-published-head button{
  height:36px;
  padding:0 14px;
}
.forge-admin-published-list{
  display:grid;
  gap:10px;
}
.forge-admin-published-row{
  display:grid;
  grid-template-columns:72px minmax(0,1fr) 74px;
  gap:12px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(148,163,184,.14);
  border-radius:14px;
  background:rgba(2,6,23,.35);
}
.forge-admin-published-row img{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:10px;
  background:#0b1220;
}
.forge-admin-published-row b,
.forge-admin-published-row small,
.forge-admin-published-row p{
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.forge-admin-published-row b{color:#f4f7ff}
.forge-admin-published-row small{margin-top:4px;color:#8ea0bf;font-size:12px}
.forge-admin-published-row p{margin:5px 0 0;color:#aab7d3;font-size:12px}
.forge-admin-published-row button{
  height:36px;
  color:#fecaca;
  border-color:rgba(248,113,113,.35);
}
.forge-admin-published-empty{
  padding:18px;
  border:1px dashed rgba(148,163,184,.22);
  border-radius:14px;
  color:#8ea0bf;
  text-align:center;
}
.forge-image-detail-mask{
  position:fixed;
  inset:0;
  z-index:18000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(2,5,12,.82);
  backdrop-filter:blur(12px);
}
.forge-image-detail-dialog{
  width:min(1120px,96vw);
  max-height:92vh;
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.13);
  border-radius:24px;
  background:#111722;
  box-shadow:0 30px 100px rgba(0,0,0,.55);
}
.forge-image-detail-media{
  position:relative;
  min-height:520px;
  display:grid;
  place-items:center;
  background:#080d16;
}
.forge-image-detail-media img{
  width:100%;
  height:100%;
  max-height:88vh;
  object-fit:contain;
  background:#080d16!important;
}
.forge-image-detail-actions{
  position:absolute;
  right:14px;
  top:14px;
  display:flex;
  gap:8px;
  align-items:center;
  z-index:2;
}
.forge-image-detail-actions button,
.forge-image-detail-actions span{
  min-width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  background:rgba(11,16,27,.68);
  color:#fff;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  backdrop-filter:blur(8px);
}
.forge-image-detail-actions span{
  cursor:default;
  font-size:11px;
  color:#dbe6ff;
}
.forge-image-detail-actions button.active{
  background:rgba(116,96,255,.76);
  border-color:rgba(192,182,255,.8);
}
.forge-image-detail-side{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:22px;
  color:#f8fbff;
  background:#151c29;
}
.forge-image-detail-side h3{
  margin:0;
  font-size:20px;
  line-height:1.35;
}
.forge-image-detail-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.forge-image-detail-stats div{
  min-width:0;
  padding:11px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.045);
}
.forge-image-detail-stats span,
.forge-image-detail-stats b{
  display:block;
}
.forge-image-detail-stats span{
  color:#8f9bb2;
  font-size:11px;
}
.forge-image-detail-stats b{
  margin-top:4px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.forge-image-detail-prompt{
  min-height:0;
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.045);
}
.forge-image-detail-prompt b{
  display:block;
  margin-bottom:8px;
}
.forge-image-detail-prompt p{
  max-height:260px;
  margin:0;
  overflow:auto;
  color:#ccd6e8;
  line-height:1.7;
  font-size:13px;
}
.forge-image-detail-bottom{
  margin-top:auto;
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:10px;
}
.forge-image-detail-bottom button,
.forge-image-detail-bottom a{
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:12px;
  background:#edf1ff;
  color:#5964e8;
  text-decoration:none;
  font-weight:900;
  cursor:pointer;
}
.forge-image-detail-bottom button:nth-child(2){
  background:linear-gradient(90deg,#6271f4,#9b6cf2);
  color:#fff;
}
.forge-folder-picker-mask{
  position:fixed;
  inset:0;
  z-index:19000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(2,5,12,.72);
  backdrop-filter:blur(10px);
}
.forge-folder-picker{
  width:min(480px,calc(100vw - 48px));
  max-height:min(620px,calc(100vh - 48px));
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:14px;
  padding:18px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  background:#111722;
  color:#eef4ff;
  box-shadow:0 24px 80px rgba(0,0,0,.48);
}
.forge-folder-picker-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.forge-folder-picker-head b,
.forge-folder-picker-head small{
  display:block;
}
.forge-folder-picker-head b{
  font-size:18px;
  line-height:1.2;
}
.forge-folder-picker-head small{
  margin-top:6px;
  color:#93a4bd;
  font-size:12px;
}
.forge-folder-picker-close{
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  background:rgba(255,255,255,.06);
  color:#e7eefc;
  cursor:pointer;
}
.forge-folder-picker-list{
  min-height:120px;
  overflow:auto;
  display:grid;
  gap:10px;
}
.forge-folder-picker-list button{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:48px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  background:rgba(255,255,255,.045);
  color:#eef4ff;
  cursor:pointer;
  text-align:left;
}
.forge-folder-picker-list button:hover{
  border-color:rgba(139,140,255,.68);
  background:rgba(99,102,241,.18);
}
.forge-folder-picker-list span{
  flex:0 0 auto;
  color:#95a3bb;
  font-size:12px;
}
.forge-folder-picker-create{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
}
.forge-folder-picker-create input{
  min-width:0;
  height:42px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:#0d1424;
  color:#eef4ff;
  padding:0 12px;
  outline:0;
}
.forge-folder-picker-create button{
  height:42px;
  border:0;
  border-radius:12px;
  background:linear-gradient(90deg,#6271f4,#9b6cf2);
  color:#fff;
  font-weight:900;
  padding:0 14px;
  cursor:pointer;
}
@media(max-width:900px){
  .forge-image-detail-dialog{grid-template-columns:1fr}
  .forge-image-detail-media{min-height:320px}
  .forge-image-detail-side{max-height:44vh;overflow:auto}
}

.prompt-expand-host{
  position:relative!important;
}
.prompt-expand-host textarea{
  padding-right:52px!important;
}

body.forge-create-page .forge-prompt-opt-toolbar,
body.forge-create-page .forge-prompt-opt-btn,
body.forge-create-page .prompt-optimize,
body.forge-create-page .prompt-optimizer,
body.forge-create-page .prompt-optimize-btn,
body.forge-create-page .pf-optimize-btn,
body.forge-create-page .pf-prompt-optimize,
body.forge-create-page [data-prompt-optimize],
body.forge-create-page [data-v77-prompt-optimize]{
  display:none!important;
}

.prompt-expand-btn{
  position:absolute;
  right:10px;
  top:10px;
  z-index:5;
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(148,163,184,.34);
  border-radius:8px;
  background:rgba(15,23,42,.78);
  color:#dbe7ff;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}
.prompt-expand-btn:hover{
  border-color:rgba(167,139,250,.8);
  background:rgba(79,70,229,.38);
}
.prompt-modal-mask{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:36px;
  background:rgba(2,6,23,.72);
  backdrop-filter:blur(8px);
}
.prompt-modal{
  width:min(1120px,calc(100vw - 72px));
  height:min(760px,calc(100vh - 72px));
  display:flex;
  flex-direction:column;
  border:1px solid rgba(148,163,184,.28);
  border-radius:14px;
  background:#0b1220;
  box-shadow:0 30px 90px rgba(0,0,0,.42);
  overflow:hidden;
}
.prompt-modal-head{
  height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  border-bottom:1px solid rgba(148,163,184,.16);
  color:#f8fbff;
  font-weight:900;
}
.prompt-modal-close{
  width:34px;
  height:34px;
  border:1px solid rgba(148,163,184,.3);
  border-radius:8px;
  background:rgba(15,23,42,.8);
  color:#e5edff;
  cursor:pointer;
  font-size:16px;
  font-weight:900;
}
.prompt-modal textarea{
  flex:1;
  width:100%;
  resize:none;
  border:0;
  outline:0;
  padding:22px;
  background:#0d1424;
  color:#f8fbff;
  font:18px/1.7 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.prompt-modal-foot{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-height:48px;
  padding:0 18px;
  border-top:1px solid rgba(148,163,184,.16);
  color:#93a4bd;
  font-size:13px;
}

.tool-picker-mask{
  position:fixed;
  inset:0;
  z-index:9998;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:36px;
  background:rgba(2,6,23,.72);
  backdrop-filter:blur(8px);
}
.tool-picker-modal{
  width:min(1180px,calc(100vw - 72px));
  height:min(760px,calc(100vh - 72px));
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
  gap:14px;
  border:1px solid rgba(148,163,184,.26);
  border-radius:14px;
  background:#0b1220;
  box-shadow:0 30px 90px rgba(0,0,0,.44);
  padding:18px;
  overflow:hidden;
}
.tool-picker-head{
  display:grid;
  grid-template-columns:minmax(180px,260px) minmax(220px,1fr) auto;
  gap:12px;
  align-items:center;
}
.tool-picker-head b{
  display:block;
  color:#f8fbff;
  font-size:18px;
}
.tool-picker-head small{
  color:#94a3b8;
  font-size:12px;
}
.tool-picker-search{
  height:42px;
  border:1px solid rgba(148,163,184,.25);
  border-radius:10px;
  background:#111827;
  color:#f8fbff;
  padding:0 14px;
  outline:0;
}
.tool-picker-close{
  height:42px;
  border:1px solid rgba(148,163,184,.25);
  border-radius:10px;
  background:#172033;
  color:#dbe7ff;
  cursor:pointer;
  padding:0 16px;
  font-weight:800;
}
.tool-picker-tabs{
  display:flex;
  gap:8px;
  overflow:auto;
  padding-bottom:2px;
}
.tool-picker-tabs button{
  flex:0 0 auto;
  height:34px;
  padding:0 13px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:999px;
  background:#111827;
  color:#aab8d1;
  cursor:pointer;
}
.tool-picker-tabs button.active{
  border-color:rgba(129,140,248,.75);
  background:rgba(79,70,229,.38);
  color:#fff;
}
.tool-picker-grid{
  min-height:0;
  overflow:auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  padding-right:4px;
}
.tool-picker-card{
  min-height:238px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:8px;
  background:#111827;
  color:#e5edff;
  cursor:pointer;
  text-align:left;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.tool-picker-card:hover{
  border-color:rgba(129,140,248,.78);
  transform:translateY(-1px);
}
.tool-picker-card img,
.tool-picker-cover{
  width:100%;
  height:130px;
  object-fit:cover;
  border-radius:6px;
  background:linear-gradient(135deg,#1e293b,#312e81);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#dbe7ff;
  font-weight:900;
}
.tool-picker-card b{
  font-size:14px;
  line-height:1.35;
}
.tool-picker-card span,
.tool-picker-card small{
  color:#94a3b8;
  font-size:12px;
  line-height:1.45;
}
.tool-picker-empty{
  grid-column:1/-1;
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#94a3b8;
  border:1px dashed rgba(148,163,184,.24);
  border-radius:10px;
}
.selected-tool-badge{
  display:flex;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  margin:0 0 10px;
  padding:6px 8px;
  border:1px solid rgba(129,140,248,.45);
  border-radius:10px;
  background:rgba(79,70,229,.16);
  color:#dbe7ff;
  font-size:13px;
}
.selected-tool-badge img{
  width:28px;
  height:28px;
  object-fit:cover;
  border-radius:6px;
}
.selected-tool-badge button{
  width:22px;
  height:22px;
  border:0;
  border-radius:999px;
  background:rgba(15,23,42,.88);
  color:#fff;
  cursor:pointer;
  position:relative!important;
  z-index:20!important;
  pointer-events:auto!important;
}
.prompt-tool-clear{
  position:relative!important;
  z-index:20!important;
  pointer-events:auto!important;
}
.forge-template-reference-strip{
  margin:12px 0 4px!important;
  padding:10px 12px!important;
  border:1px solid rgba(129,140,248,.28)!important;
  border-radius:8px!important;
  background:rgba(79,70,229,.12)!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
}
.forge-template-reference-strip>b{
  color:#dbe5ff!important;
  font-size:12px!important;
  white-space:nowrap!important;
}
.forge-template-reference-strip>div{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
.forge-template-reference-strip span{
  position:relative!important;
  width:54px!important;
  height:54px!important;
  overflow:hidden!important;
  border-radius:8px!important;
  border:1px solid rgba(255,255,255,.14)!important;
  background:#0d1424!important;
}
.forge-template-reference-strip img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
.forge-template-reference-strip em{
  position:absolute!important;
  right:4px!important;
  top:4px!important;
  min-width:17px!important;
  height:17px!important;
  border-radius:999px!important;
  background:rgba(0,0,0,.7)!important;
  color:#fff!important;
  font-size:10px!important;
  line-height:17px!important;
  text-align:center!important;
  font-style:normal!important;
  font-weight:900!important;
}

@media(max-width:1200px){
  body.forge-home-page .home-hero,
  body.forge-create-page .workspace{
    grid-template-columns:1fr!important;
  }
  body.forge-create-page .create-splitter{
    display:none!important;
  }
  .home-hot-tool-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  .app-header{
    grid-template-columns:1fr!important;
  }
  .tool-picker-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tool-picker-head{
    grid-template-columns:1fr;
  }
  body.forge-home-page .home-latest-in-hero .latest-tool-strip,
  .home-hot-tool-grid,
  body.forge-create-page .results .result-grid,
  body.forge-create-page .create-results-panel .result-grid,
  body.forge-create-page .result-history-grid,
  body.forge-create-page .current-result-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
