.gallery-entry { display: none; }
.server-studio .local-tag { display: none; }
.server-studio .gallery-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #46573c;
  border-radius: 7px;
  background: #222b1e;
  color: #d2ebbe;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.gallery-entry svg { width: 16px; height: 16px; color: var(--lime); }
.server-studio .gallery-entry:hover { border-color: #738962; background: #2c3826; }
.gallery-entry:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (max-width: 420px) {
  .server-studio #save span { display: none; }
  .server-studio #save { min-width: 32px; min-height: 36px; justify-content: center; }
}
.archive-nav{display:flex;align-items:center;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--line,#30372e);font-size:.85rem}
.archive-nav[hidden],#publish-form[hidden],#publish-result[hidden],.project-status[hidden]{display:none}
.project-status a{color:#c7e69e;text-decoration:none}
.project-status a:hover{text-decoration:underline}
.source-recovery{display:block;margin-top:.4rem}
.source-recovery button{padding:.25rem .7rem;color:var(--lime);background:transparent;border:1px solid #657c51;border-radius:8px;font:inherit;cursor:pointer}
#work-origin{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#a2ae9c}
.archive-nav button,.share-result-actions button{padding:.55rem .9rem;color:#d9eeca;background:#263123;border:1px solid #435139;border-radius:6px}
.archive-nav button{margin-left:auto}
.project-status{line-height:1.55;padding:.7rem .85rem;background:#1d251b;border-left:2px solid #a5c77c}
#publish-dialog{color:#e6e9df;background:#1b201c;border:1px solid #495044;border-radius:12px;padding:clamp(1.2rem,4vw,2rem);width:min(30rem,calc(100% - 2rem));max-height:90vh;overflow:auto}
#publish-dialog::backdrop{background:rgba(6,10,7,.8)}
#publish-dialog h2{font-size:1.6rem;line-height:1.3;margin:.6rem 0}
#publish-dialog p{color:#abb5a9;font-size:.9rem;line-height:1.6}
#publish-dialog label{display:block;margin:1rem 0;color:#cfdbcb;font-size:.86rem}
#publish-dialog input,#publish-dialog textarea{display:block;width:100%;margin-top:.4rem;padding:.65rem .75rem;color:#e8f0e4;border:1px solid #45503f;border-radius:6px;background:#121713;font:inherit;box-sizing:border-box}
#publish-dialog input:focus,#publish-dialog textarea:focus{outline:2px solid #afd988;outline-offset:1px}
#publish-dialog label small{color:#96a58e;margin-left:.3rem}
.publish-kicker{display:flex;align-items:center;justify-content:space-between;color:#bfda9f;font:600 .72rem monospace;letter-spacing:.12em}
.publish-kicker button{background:none;border:0;color:#dbe1d5;font-size:1.6rem;line-height:1}
.publish-progress,#copy-status{color:#c6d7b9;font-size:.86rem;line-height:1.5;margin:.65rem 0;overflow-wrap:anywhere}
.share-primary-link{display:inline-block;padding:.65rem 1rem;background:#d4f4ad;color:#20301c;border-radius:7px;text-decoration:none;font-weight:700}
.share-result-actions{display:flex;gap:.6rem}
#manual-listening:not(:empty){padding:.45rem 1rem;border-bottom:1px solid var(--line,#30372e)}
#manual-listening .listen-settings{justify-content:flex-start}
@media(max-width:580px){.archive-nav{gap:.5rem;font-size:.78rem}.archive-nav button{padding:.5rem}}
