/* ============================================================
   Mood - Studio autore (opere, diritti, depositi)
   public/assets/css/studio.css

   Foglio AUTONOMO come dev.css: tutte le classi sono `st-*` e i token
   `--st-*`, cos e' non sovrascrive nulla delle altre pagine. Serve alla
   pagina /studio (musica, testi, video) e al suo editor.
   ============================================================ */

.st-body {
  --st-bg: #f0f2f5;
  --st-surface: #ffffff;
  --st-border: #d7dbe0;
  --st-border-soft: #e4e6eb;
  --st-text: #050505;
  --st-text-2: #65676b;
  --st-text-3: #8a8d91;
  --st-accent: var(--mood-primary, #6C5CE7);
  --st-accent-soft: #ede9fb;
  --st-text-middle: #a34040;
  --st-green: #00a400;
  --st-green-soft: #e3f6e3;
  --st-orange: #f7931e;
  --st-orange-soft: #fff4e5;
  --st-red: #fa3e3e;
  --st-red-soft: #ffe9e9;
  --st-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  --st-radius: 14px;
  --st-radius-sm: 10px;
  --st-gap: 14px;
  --st-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --st-t: .15s ease;
  /* Chevron del <select> disegnata da noi: la freccia nativa (Safari in
     particolare) restava appiccicata al bordo destro del campo. */
  --st-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365676b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  margin: 0;
  background: var(--st-bg);
  color: var(--st-text);
  font-family: var(--mood-font, system-ui, -apple-system, 'Segoe UI', sans-serif);
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] .st-body {
    --gradient-bg-like: linear-gradient(#091327, #082238);
    --st-bg: #0d0d1a;
    --st-surface: #0d0d1a;
    --st-border: #363737;
    --st-btn: var(--background-card-border);
    --st-border-soft: #303066;
    --st-text: #dddddd;
    --st-text-2: #f5f5f5;
    --st-text-3: #d2d2d2;
    --mood-primary:#584bbf;
    --st-accent: var(--mood-primary, #6C5CE7);
    --st-accent-soft: #333345;
    --st-text-middle: #ebbaba;
}
.st-body *, .st-body *::before, .st-body *::after { box-sizing: border-box; }
.st-hidden { display: none !important; }
.st-hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#mvPrevisioni{
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
/* ---------- Shell e barra superiore ---------- */
.st-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.st-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 10px var(--st-gap);
  background: var(--st-surface);
  border-bottom: 1px solid var(--st-border-soft);
}
.st-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  background: transparent; border: 0; color: var(--st-text-2);
  cursor: pointer; text-decoration: none;
  transition: background var(--st-t), color var(--st-t);
}
.st-icon-btn svg { width: 22px; height: 22px; }
.st-icon-btn:hover { background: var(--st-bg); color: var(--st-text); }
.st-topbar-title { flex: 1; min-width: 0; }
.st-topbar-title h1 { margin: 0; font-size: 1.5rem; font-weight: 700; overflow-wrap: anywhere; }
.st-topbar-title p { margin: 2px 0 0; font-size: .8rem; color: var(--st-text-2); }
.st-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--st-text);
  background: var(--st-accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
}
.st-badge svg { width: 14px; height: 14px; }
.st-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: var(--st-gap); flex: 1; min-width: 0; }

/* ---------- Barra strumenti e selettore sezioni ---------- */
.st-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: var(--st-gap); }
.st-seg {
  display: inline-flex; gap: 4px; padding: 4px; min-width: 0;
  background: var(--st-surface); border: 1px solid var(--st-border);
  border-radius: 999px; overflow-x: auto; scrollbar-width: none;
}
.st-seg::-webkit-scrollbar { display: none; }
.st-seg-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: transparent; color: var(--st-text-2);
  border-radius: 999px; padding: 8px 16px; font-size: .85rem; font-weight: 600;
  font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background var(--st-t), color var(--st-t);
}
.st-seg-btn svg { width: 16px; height: 16px; }
.st-seg-btn:hover { color: var(--st-text); }
.st-seg-btn.is-active { background: var(--st-accent); color: #fff; }
.st-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.st-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--st-surface); border: 1px solid var(--st-border);
  border-radius: 999px; padding: 6px 12px;
  font-size: .78rem; font-weight: 600; color: var(--st-text-2);
}
.st-chip b { color: var(--st-text); font-size: .85rem; }

/* ---------- Card ---------- */
.st-card {
  background: var(--st-surface); border: 1px solid var(--st-border-soft);
  border-radius: var(--st-radius); box-shadow: var(--st-shadow);
  padding: var(--st-gap); margin-bottom: var(--st-gap); min-width: 0;
}
.st-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.st-card-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 700; min-width: 0;
}
.st-card-title svg { width: 17px; height: 17px; color: var(--st-accent); }
.st-count { font-size: .78rem; font-weight: 600; color: var(--st-text-2); }
.st-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--st-gap); align-items: start; }
.st-col { min-width: 0; }

/* ---------- Campi ---------- */
.st-filters {display: flex;gap: 8px;align-items: center;}
.st-search { flex: 1 1 190px; min-width: 160px; }
.st-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.st-span2 { grid-column: 1 / -1; }
.st-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-label { font-size: .78rem; font-weight: 600; color: var(--st-text-2); }
.st-input {
  width: 100%; min-width: 0; font-family: inherit; font-size: .88rem;
  color: var(--st-text); background: var(--st-surface);
  border: 1px solid var(--st-border); border-radius: var(--st-radius-sm);
  padding: 9px 12px; transition: border-color var(--st-t), box-shadow var(--st-t);
}
.st-input:focus { outline: 0; border-color: var(--st-accent); box-shadow: 0 0 0 3px var(--st-accent-soft); }
.st-input-sm { padding: 7px 10px; font-size: .82rem; }
select.st-input {
  appearance: none; -webkit-appearance: none;
  padding-right: 34px; background-repeat: no-repeat;
  background-position: right 10px center; background-size: 16px;
  background-image: var(--st-chevron);
}
.st-textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.st-hint { margin: 5px 0 0; font-size: .76rem; line-height: 1.45; color: var(--st-text-3); }
.st-note {
  margin-top: 10px; padding: 10px 12px; border-radius: var(--st-radius-sm);
  font-size: .82rem; line-height: 1.5;
  background: var(--st-accent-soft); border-left: 3px solid var(--st-accent);
}
.st-note.is-ok { background: var(--st-green-soft); border-left-color: var(--st-green); }
.st-note.is-warn { background: var(--st-orange-soft); border-left-color: var(--st-orange); }
.st-note.is-bad { background: var(--st-red-soft); border-left-color: var(--st-red); }

/* ---------- File ---------- */
.st-file-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.st-file { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-file-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px dashed var(--st-border);
  border-radius: var(--st-radius-sm);
  background: var(--st-bg);
  font-size: .8rem;
  color: var(--st-text-2);
  overflow-wrap: anywhere;
}
.st-file-slot audio, .st-file-slot video {max-width: 100%;}

.st-file-slot img, .st-file-slot video { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.st-file-slot.is-ready {border-style: solid;border-color: var(--st-green);background: var(--st-green-soft);color: var(--st-text);display: flex;flex-direction: column;justify-content: center;min-height: initial;}

/* ---------- Bottoni ---------- */
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: .86rem; font-weight: 600;
  border-radius: var(--st-radius-sm); padding: 9px 14px; cursor: pointer;
  border: 1px solid transparent; transition: opacity var(--st-t), background var(--st-t), border-color var(--st-t);
}
.st-btn svg { width: 16px; height: 16px; }
.st-btn:hover { opacity: .9; }
.st-btn:disabled { opacity: .5; cursor: not-allowed; }
.st-btn-sm { padding: 6px 11px; font-size: .8rem; }
.st-btn-primary { background: var(--st-accent); color: #fff; }
.st-btn-outline { background: var(--st-surface); color: var(--st-text); border-color: var(--st-border); }
.st-btn-outline:hover { border-color: var(--st-accent); }
.st-btn-danger { background: var(--st-red); color: #fff; }

/* ---------- Caricamento ---------- */
.st-loading { display: flex; align-items: center; gap: 10px; padding: 18px 0; color: var(--st-text-2); font-size: .85rem; }
.st-spinner {
  width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid var(--st-border); border-top-color: var(--st-accent);
  animation: st-spin .8s linear infinite;
}
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-empty { padding: 18px 0; text-align: center; color: var(--st-text-2); font-size: .87rem; }

/* ---------- Elenco opere ---------- */
.st-item {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px; align-items: center;
  padding: 10px; border: 1px solid var(--st-border-soft);
  border-radius: var(--st-radius-sm); margin-bottom: 8px;
  background: var(--st-surface);
}
.st-item:nth-child(even) {
    background: #b5b5b529;
}
.st-item:hover { border-color: var(--st-border); }
.st-cover {
  width: 54px; height: 54px; border-radius: 9px; overflow: hidden;
  background: var(--st-bg); border: 1px solid var(--st-border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--st-text-3); flex: 0 0 auto;
}
.st-cover img, .st-cover video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-cover svg { width: 22px; height: 22px; }
.st-item-main { min-width: 0; }
.st-item-title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 700; overflow-wrap: anywhere;
}
.st-item-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 3px; font-size: .76rem; color: var(--st-text-3);
}
.st-item-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.st-miss { color: var(--st-orange); font-weight: 600; }
.st-status {
  flex: 0 0 auto; font-size: .68rem; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: var(--st-bg); color: var(--st-text-2); border: 1px solid var(--st-border-soft);
}
.st-status.is-published { background: var(--st-green-soft); color: #067a06; border-color: #bfe6bf; }
.st-status.is-pending   { background: var(--st-orange-soft); color: #a35c00; border-color: #ffdda8; }
.st-status.is-rejected  { background: var(--st-red-soft); color: #b32020; border-color: #ffc9c9; }
.st-status.is-blocked   { background: #2b2b3d; color: #fff; border-color: #2b2b3d; }

/* ---------- Autori e split ---------- */
.st-contrib-head, .st-contrib-row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 78px 74px 30px;
  gap: 6px; align-items: center;
}
.st-contrib-head { font-size: .72rem; font-weight: 700; color: var(--st-text-3); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 4px; }
.st-contrib-row { margin-bottom: 6px; }
.st-contrib-row .st-input { padding: 7px 9px; font-size: .82rem; }
.st-remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 32px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid var(--st-border); color: var(--st-text-2);
}
.st-remove:hover { border-color: var(--st-red); color: var(--st-red); }
.st-remove svg { width: 15px; height: 15px; }
.st-unconfirmed { font-size: .68rem; color: var(--st-orange); font-weight: 700; }

/* ---------- Licenza, checklist, contratto, registrazioni ---------- */
.st-license-info { margin-top: 8px; font-size: .78rem; line-height: 1.5; color: var(--st-text-2); }
.st-license-info .st-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.st-flag { font-size: .72rem; padding: 3px 8px; border-radius: 999px; background: var(--st-bg); border: 1px solid var(--st-border-soft); }
.st-flag.is-yes { background: var(--st-green-soft); border-color: #bfe6bf; color: #067a06; }
.st-flag.is-no { background: var(--st-red-soft); border-color: #ffc9c9; color: #b32020; }
.st-checklist { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; }
.st-ck { display: flex; align-items: center; gap: 8px; }
.st-ck svg { width: 16px; height: 16px; flex: 0 0 auto; }
.st-ck.is-ok { color: #067a06; }
.st-ck.is-no { color: var(--st-text-2); }
.st-contract {
  margin-top: 10px; max-height: 260px; overflow: auto;
  white-space: pre-wrap; font-family: var(--st-mono); font-size: .74rem; line-height: 1.5;
  background: var(--st-bg); border: 1px solid var(--st-border-soft);
  border-radius: var(--st-radius-sm); padding: 10px;
}
.st-rec { list-style: none; margin: 0; padding: 0; font-size: .8rem; }
.st-rec li { padding: 8px 0; border-bottom: 1px solid var(--st-border-soft); line-height: 1.45; }
.st-rec li:last-child { border-bottom: 0; }
.st-rec b { font-weight: 700; }
.st-rec code { font-family: var(--st-mono); font-size: .74rem; }

/* ---------- Creator Hub: intestazione, KPI, tessere, "in arrivo" ---------- */
.st-hub-hello { display: flex; flex-direction: column; gap: 8px; }
.st-hub-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-hub-avatar {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  background: var(--st-accent-soft); border: 1px solid var(--st-border-soft);
  display: flex; align-items: center; justify-content: center; color: var(--st-accent);
  font-weight: 700;
}
.st-hub-avatar img, .st-hub-avatar video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-hub-who h2 { margin: 0; font-size: 1.28rem; font-weight: 700; overflow-wrap: anywhere; }

.st-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: var(--st-gap); }
.st-kpi {
  background: var(--st-surface); border: 1px solid var(--st-border-soft);
  border-radius: var(--st-radius); box-shadow: var(--st-shadow);
  padding: 12px 14px; min-width: 0;
}
.st-kpi b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.st-kpi span { display: block; margin-top: 3px; font-size: .78rem; color: var(--st-text-2); }
.st-kpi.is-muted b { color: var(--st-text-3); }

.st-hub-title {
  margin: 4px 0 10px; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; margin-bottom: var(--st-gap); }
.st-tile {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto;
  gap: 2px 10px; align-items: start; text-align: left;
  background: var(--st-surface); border: 1px solid var(--st-border-soft);
  border-radius: var(--st-radius); box-shadow: var(--st-shadow);
  padding: 13px 14px; min-width: 0;
  font-family: inherit; font-size: .84rem; color: var(--st-text-2);
  text-decoration: none; cursor: pointer;
  transition: border-color var(--st-t), transform var(--st-t);
}
.st-tile svg { width: 20px; height: 20px; color: var(--st-accent); grid-row: 1 / span 2; margin-top: 2px; }
.st-tile b { font-size: .92rem; font-weight: 700; color: var(--st-text); }
.st-tile span { line-height: 1.45; }
.st-tile:hover { border-color: var(--st-accent); transform: translateY(-1px); }
.st-tile--soon { cursor: default; border-style: dashed; background: transparent; box-shadow: none; opacity: .85; }
.st-tile--soon svg { color: var(--st-text-3); }
.st-tile--soon:hover { border-color: var(--st-border-soft); transform: none; }
.st-hub-soon { display: flex; flex-direction: column; gap: 12px; }
.st-soon-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.st-soon-item svg { width: 18px; height: 18px; color: var(--st-orange); margin-top: 2px; }
.st-soon-item b { display: block; font-size: .9rem; }
.st-soon-item span { font-size: .82rem; color: var(--st-text-2); line-height: 1.45; }

/* ---------- Diritti e contratti ---------- */
.st-table-wrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.st-table th, .st-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--st-border-soft); vertical-align: top; }
.st-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .3px; color: var(--st-text-3); font-weight: 700; }
.st-table code { font-family: var(--st-mono); font-size: .74rem; }
.st-rights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--st-gap); align-items: start; }
.st-rights-grid h4 { margin: 0 0 8px; font-size: .92rem; }
.st-lic-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
@media (max-width: 860px) {
  .st-rights-grid { grid-template-columns: 1fr; }
}

/* ---------- Invita amici ---------- */
.st-invite-sponsor {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .85rem; color: var(--st-text-2); margin-bottom: 12px;
}
.st-invite-sponsor a { color: var(--st-accent); font-weight: 600; text-decoration: none; }
.st-invite-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.st-invite-code code {
  font-family: var(--st-mono); font-size: 1.3rem; font-weight: 800; letter-spacing: .16em;
  background: var(--st-accent-soft); color: var(--st-accent);
  border-radius: var(--st-radius-sm); padding: 8px 14px;
}
.st-invite-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: var(--st-gap); }
.st-invite-link input {
  flex: 1 1 260px; min-width: 0; font: inherit; font-size: .84rem;
  font-family: var(--st-mono);
  background: var(--st-bg); color: var(--st-text-2);
  border: 1px solid var(--st-border-soft); border-radius: var(--st-radius-sm);
  padding: 9px 12px;
}
/* QR del link invito: sfondo BIANCO anche in tema scuro - un lettore non legge
   un QR chiaro su fondo scuro, quindi il riquadro resta bianco per forza. */
.st-qr {
  display: flex;
  align-items: flex-start;
  gap: var(--st-gap);
  flex-wrap: wrap;
  margin-bottom: var(--st-gap);
}
.st-qr-box {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-sm);
  box-shadow: var(--st-shadow);
}
.st-qr-box svg { display: block; width: 100%; height: 100%; }
.st-qr-box:empty { display: none; }
.st-qr-txt {
  flex: 1 1 240px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.st-qr-txt b { font-size: .92rem; }
.st-qr-txt span { font-size: .82rem; color: var(--st-text-2); line-height: 1.35; }
.st-qr-url {
  font-family: var(--st-mono);
  font-size: .74rem;
  color: var(--st-text-3);
  word-break: break-all;
}
@media (max-width: 480px) {
  .st-qr { align-items: center; }
  .st-qr-box { width: 160px; height: 160px; }
  .st-qr-txt { flex-basis: 100%; min-width: 0; }
}

.st-invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--st-gap); }
.st-invite-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.st-invite-item {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--st-border-soft); border-radius: var(--st-radius-sm); padding: 8px 10px;
}
.st-invite-av {
  width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  background: var(--st-accent-soft); color: var(--st-accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem;
}
.st-invite-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-invite-item b { font-size: .86rem; display: block; }
.st-invite-item span { font-size: .76rem; color: var(--st-text-3); }
.st-invite-item time { margin-left: auto; font-size: .74rem; color: var(--st-text-3); white-space: nowrap; }

/* ---------- Avviso temporaneo (esito delle azioni dall'elenco) ---------- */
.st-toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60; max-width: min(92vw, 560px);
  background: var(--st-text); color: #fff;
  padding: 11px 16px; border-radius: 999px;
  font-size: .85rem; box-shadow: 0 6px 22px rgba(0, 0, 0, .28);
}

/* ---------- Catalogo Creative Lab (musica/video con licenza) ---------- */
.st-filters-wide {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px; align-items: center; margin-top: 10px;
}
.st-filters-wide .st-input { width: 100%; min-width: 0; }
.st-check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--st-text-2);
  border: 1px solid var(--st-border); border-radius: var(--st-radius-sm);
  padding: 7px 10px; background: var(--st-surface);
}
.st-cat-more { display: flex; justify-content: center; margin-top: 10px; }
/* L'attributo hidden deve vincere su .st-btn { display: inline-flex } */
.st-cat-more [hidden] { display: none; }

.st-cat-item { grid-template-columns: 60px minmax(0, 1fr) auto; align-items: start; }
.st-cat-cover {
  width: 60px; height: 60px; border-radius: var(--st-radius-sm);
  background: var(--st-surface-2, var(--st-surface));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  color: var(--st-text-3);
}
.st-cat-cover img, .st-cat-cover video { width: 100%; height: 100%; object-fit: cover; }
.st-cat-kind {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--st-text-3); border: 1px solid var(--st-border); border-radius: 999px;
  padding: 1px 7px; vertical-align: middle;
}
.st-cat-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.st-cat-chip {
  font-size: .72rem; color: var(--st-text-2);
  border: 1px solid var(--st-border); border-radius: 999px; padding: 2px 9px;
  background: var(--st-surface-2, rgba(127, 127, 127, .10));
}
.st-cat-license { margin-top: 7px; font-size: .76rem; color: var(--st-text-2); }
.st-cat-flag {
  border-radius: 999px; padding: 2px 9px; font-size: .7rem; border: 1px solid var(--st-border);
  margin-left: 4px; background: var(--st-surface-2, rgba(127, 127, 127, .10));
}
.st-cat-flag.ok { color: var(--st-green, #2ecc71); border-color: var(--st-green, #2ecc71); }
.st-cat-flag.no { color: var(--st-red, #e74c3c); border-color: var(--st-red, #e74c3c); }
.st-cat-flag.warn { color: var(--st-orange, #f39c12); border-color: var(--st-orange, #f39c12); }
.st-cat-player { width: 100%; margin-top: 8px; border-radius: var(--st-radius-sm); }
video.st-cat-player { max-height: 220px; background: #000; }

@media (max-width: 720px) {
  .st-cat-item { grid-template-columns: 48px minmax(0, 1fr); }
  .st-cat-cover { width: 48px; height: 48px; }
  .st-filters-wide .st-input-sm { flex: 1 1 140px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .st-cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .st-topbar .st-badge {
    display:none;
  }  
  .st-container { padding: 10px; }
  .st-topbar-title h1 { font-size: 1.25rem; }
  .st-grid2 { grid-template-columns: 1fr; }
  .st-file-row { grid-template-columns: 1fr; }
  .st-stats { margin-left: 0; width: 100%; }
  .st-item { grid-template-columns: 44px minmax(0, 1fr); }
  .st-cover { width: 44px; height: 44px; }
  .st-item-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .st-contrib-head { display: none; }
  .st-contrib-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .st-contrib-row .st-remove { grid-column: 2; justify-self: end; }
}