/* v0.7.9 - shared Studio and catalogue taxonomy; does not alter UNIX editor */
.studio-hub-heading{align-items:flex-start}.studio-hub-panel{padding:24px;margin:22px 0;background:#102438;border:1px solid #395a72;border-radius:12px;color:#ecf4fd}
.studio-hub-panel h2{margin:4px 0 15px;font-size:1.35rem;color:#f1f7ff}.studio-hub-tools{display:flex;align-items:center;justify-content:space-between;gap:12px}.studio-hub-count{color:#bed4e8;font-size:13px}
.studio-filters{display:flex;align-items:end;flex-wrap:wrap;gap:15px;padding:12px 0 25px;border-bottom:1px solid #36516a;margin-bottom:20px}
.studio-filters fieldset{border:0;margin:0;padding:0;min-width:0}.studio-filters legend,.studio-filter-search{font-size:13px;color:#cfdfef;font-weight:650;margin:0 0 8px}.studio-filter-options{display:flex;flex-wrap:wrap;gap:7px}.studio-filter-options label{cursor:pointer;position:relative}.studio-filter-options input{position:absolute;width:1px;height:1px;opacity:0}.studio-filter-options span{display:block;border:1px solid #53718a;border-radius:8px;padding:9px 13px;background:#0c1b2b;color:#e2edf7;font-weight:650}.studio-filter-options input:checked + span{border-color:#61dfcc;background:#1d4b50;color:#b8fff1}.studio-filter-options input:focus-visible + span{outline:2px solid #b1fbeb;outline-offset:3px}
.studio-filter-search{display:grid;gap:8px;margin:0}.studio-filter-search input{background:#0c1b2b!important;color:#f3f8ff!important;border:1px solid #6485a0!important;padding:10px 12px;border-radius:8px;width:min(240px,85vw)}
.studio-activity-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(310px,100%),1fr));gap:14px}.studio-activity-card{display:flex;flex-direction:column;gap:12px;padding:19px;border-radius:11px;border:1px solid #425c73;background:#0b1b2c;color:#e4eff9;min-width:0}.studio-activity-card h3{font-size:1.15rem;margin:0;color:#f0f9ff}.studio-activity-card p{color:#c0d2e2;line-height:1.5;margin:0;flex:1}.studio-activity-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.studio-chip{background:#254962;border:1px solid #4a8199;border-radius:6px;padding:5px 9px;color:#d8f2fb;font-weight:700;font-size:12px}.studio-chip-mode{background:#1b4647;border-color:#3c8787;color:#aff4de}.studio-activity-status{margin-left:auto;color:#facb99;font-size:12px;font-weight:700}.studio-activity-status.studio-published{color:#94ecc9}.studio-activity-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px solid #2e485d;padding-top:12px}.studio-activity-bottom small{color:#afc3d9}.studio-activity-bottom .action{font-size:12px}
.studio-activity-empty{padding:38px 12px;text-align:center}.studio-activity-empty h3{margin:0 0 10px}.studio-activity-empty p{color:#bbcadb}.studio-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.studio-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-choice{display:flex;flex-direction:column;align-items:flex-start;gap:9px;text-decoration:none!important;color:#f0f8ff!important;padding:24px;border:1px solid #54738a;border-radius:11px;background:#0a1c2c;min-height:180px;transition:border-color .1s}.studio-choice:hover,.studio-choice:focus-visible,.studio-choice.is-chosen{border-color:#65ebd4;background:#183e44}.studio-choice.is-unavailable{opacity:.58;cursor:not-allowed}.studio-choice strong{font-size:1.16rem;color:#f0f8ff}.studio-choice small{color:#bcd1e4;font-size:13px;line-height:1.5}.studio-choice-symbol{display:grid;place-items:center;width:44px;height:44px;background:#234959;color:#99f1d9;border-radius:9px;font:700 19px ui-monospace,SFMono-Regular,Menlo,monospace}.studio-choice-link{color:#99f1d9;font-weight:700;margin-top:auto;font-size:13px}
@media(max-width:760px){.studio-choice-grid,.studio-mode-grid{grid-template-columns:1fr}.studio-choice{min-height:130px}.studio-filters{align-items:stretch}.studio-hub-panel{padding:17px}}
/* Shared chips in legacy cards and student home. */
.ux-game-card .studio-activity-meta{padding:4px 0 9px}.ux-game-card .studio-activity-meta .game-state{margin-left:auto}
.student-game-cards .studio-activity-meta{margin-bottom:12px}
.be-version-details{position:relative;display:inline-block;color:#d9eafa;font-size:12px}.be-version-details summary{border:1px solid #55748e;border-radius:7px;cursor:pointer;padding:5px 10px;list-style:none;font-weight:700}.be-version-details summary::after{content:' ▾'}.be-version-list{position:absolute;right:0;top:calc(100% + 7px);z-index:150;min-width:170px;padding:12px;background:#102538;border:1px solid #64839a;border-radius:8px;box-shadow:0 12px 30px #0008;display:grid;gap:10px;color:#e3f3ff}.be-version-list span{display:flex;justify-content:space-between;gap:14px}

/* v0.8.2 - separate the safe management action from the editor shortcut. */
.studio-card-buttons{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.studio-card-buttons .action{font-size:12px;padding:10px 11px;white-space:normal;text-align:center}
@media(max-width:520px){.studio-activity-bottom{align-items:flex-start;flex-direction:column}.studio-card-buttons{width:100%;justify-content:flex-start}}

/* v0.8.8 - one-line Studio index, bounded two-line descriptions. */
.studio-activity-list{display:flex;flex-direction:column;border:1px solid #425c73;border-radius:11px;overflow:hidden;background:#0b1b2c}
.studio-activity-row{display:grid;grid-template-columns:50px minmax(200px,1fr) minmax(160px,auto) auto;gap:15px;align-items:center;height:104px;box-sizing:border-box;overflow:hidden;padding:13px 18px;color:#e4eff9}
.studio-activity-row+.studio-activity-row{border-top:1px solid #34516a}
.studio-activity-row:hover{background:#102941}
.studio-activity-icon{width:50px;height:50px;display:grid;place-items:center;border:1px solid #4b738b;border-radius:10px;background:#183448;overflow:hidden;color:#d8f5f5;font:700 12px ui-monospace,SFMono-Regular,Menlo,monospace}
.studio-activity-icon img{width:100%;height:100%;object-fit:cover}
.studio-activity-text{min-width:0}
.studio-activity-text h3{margin:0 0 5px;font-size:1.05rem;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-activity-text h3 a{color:#f2f9ff;text-decoration:none}
.studio-activity-text h3 a:hover,.studio-activity-text h3 a:focus-visible{text-decoration:underline}
.studio-activity-text p{font-size:13px;line-height:1.45;color:#bcd0df;margin:0;height:2.9em;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:anywhere}
.studio-activity-aside{display:grid;justify-items:end;gap:8px}
.studio-activity-row .studio-activity-meta{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;justify-content:flex-end}
.studio-filters fieldset{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end}
.studio-filter-options{align-items:center}
.studio-filter-options span{min-width:52px;min-height:35px;display:flex;align-items:center;justify-content:center;text-align:center;padding:7px 11px}
.studio-activity-access{color:#e6caa5;font-weight:650;font-size:11px;white-space:nowrap;line-height:1.3}
.studio-activity-access.is-available{color:#8ee7cc}
.studio-activity-row .studio-activity-status{margin-left:0}
.studio-activity-row .studio-chip{font-size:11px;padding:4px 7px}
.studio-activity-aside small{color:#b9cede;white-space:nowrap}
.studio-activity-row .studio-card-buttons{flex-wrap:nowrap;align-items:center}
.studio-activity-row .studio-card-buttons .action{white-space:nowrap;text-align:center;min-width:75px}
@media(max-width:950px){.studio-activity-row{grid-template-columns:50px minmax(0,1fr) auto;gap:12px}.studio-activity-aside{grid-column:2;grid-row:2;justify-items:start}.studio-activity-row .studio-activity-meta{justify-content:flex-start}.studio-activity-row .studio-card-buttons{grid-column:3;grid-row:1/span 2}.studio-activity-row{height:120px}}
@media(max-width:650px){.studio-activity-row{grid-template-columns:44px minmax(0,1fr);gap:8px 11px;padding:13px}.studio-activity-icon{width:44px;height:44px}.studio-activity-aside{grid-column:2;grid-row:2}.studio-activity-row .studio-card-buttons{grid-column:2;grid-row:3;justify-content:flex-start}.studio-activity-row .studio-card-buttons .action{min-width:0}.studio-activity-text{grid-column:2}.studio-activity-row{height:166px}.studio-activity-row .studio-activity-meta{flex-wrap:wrap}}

/* v0.8.11 - Catalogue dense + grille Studio stable.  Scoped to these listings. */
.ux-catalogue .ux-search{padding:8px 12px;margin-bottom:12px}
.ux-catalogue .studio-filters{padding:8px 0 16px;margin-bottom:16px}
.catalogue-activity-list{display:flex;flex-direction:column;overflow:hidden;border:1px solid #39576d;border-radius:11px;background:#0b1b2c}
.catalogue-activity{min-width:0;color:#e4eff9}
.catalogue-activity+.catalogue-activity{border-top:1px solid #314b60}
.catalogue-activity:hover{background:#10273b}
.catalogue-activity.is-open{background:#112a3e;box-shadow:inset 3px 0 0 #42bcb5}
.catalogue-activity-row{display:grid;grid-template-columns:54px minmax(0,1fr) 185px;gap:14px;align-items:center;min-height:105px;box-sizing:border-box;padding:11px 17px}
.catalogue-activity-icon{width:54px;height:54px;min-width:0;border:1px solid #456a81;border-radius:9px;overflow:hidden;background:#0a1e31}
.catalogue-activity-icon .game-cover{width:100%;height:100%}
.catalogue-activity-icon .game-artwork{display:block;width:100%;height:100%;object-fit:contain}
.catalogue-activity-icon .ico{width:29px;height:29px;color:#73d1e9}
.catalogue-activity-main{min-width:0;display:grid;gap:4px}
.catalogue-activity-heading{display:flex;flex-wrap:wrap;align-items:center;gap:5px 11px;min-width:0}
.catalogue-activity-heading h2 a{color:inherit;text-decoration:none}
.catalogue-activity-heading h2 a:hover,.catalogue-activity-heading h2 a:focus-visible{color:#c4f9f2;text-decoration:underline;text-underline-offset:3px}
.catalogue-activity-heading h2{font-size:16px;line-height:1.35;font-weight:700;color:#f1f8fc;letter-spacing:-.015em;margin:0;overflow-wrap:anywhere}
.catalogue-activity-heading .studio-activity-meta{gap:5px}
.catalogue-activity-heading .studio-chip{font-size:10.5px;line-height:1.25;padding:3px 6px}
.catalogue-activity-description{font-size:13px;line-height:1.45;color:#bfd2e1;max-height:2.9em;margin:0;overflow:hidden;overflow-wrap:anywhere}
.catalogue-activity-metadata{display:flex;align-items:center;flex-wrap:wrap;gap:5px 16px;font-size:11px;line-height:1.4;color:#a7bfcd}
.catalogue-activity-metadata strong{color:#e5f5fa}
.catalogue-activity-controls{display:grid;justify-items:stretch;align-content:center;gap:7px;min-width:0}
.catalogue-availability{justify-self:end;font-size:11px;color:#98e6cc;background:#16473f;border:1px solid #286b5a;border-radius:3px;padding:2px 7px;font-weight:650}
.catalogue-disclosure-toggle.action{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;width:100%;min-height:36px;padding:8px 10px;text-align:center;font-size:11px;white-space:normal;line-height:1.35}
.catalogue-activity-controls>.ux-subtle-link{font-size:11px;text-align:center}
.catalogue-activity-detail{padding:18px 23px 20px 85px;border-top:1px solid #36576c;background:#102538;min-width:0}
.catalogue-activity-detail[hidden]{display:none!important}
.catalogue-detail-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin-bottom:14px}
.catalogue-detail-intro>div{flex:1 1 350px;min-width:0}
.catalogue-detail-intro h3{font-size:15px;line-height:1.4;color:#e8f9fc;margin:0 0 6px}
.catalogue-detail-intro p,.catalogue-sql-note{font-size:13px;line-height:1.55;color:#bfd2e1;margin:0;overflow-wrap:anywhere;white-space:pre-line}
.catalogue-detail-version{font-size:11px;color:#bad0df;white-space:nowrap;margin-top:3px}
.catalogue-detail-version strong{color:#e9f5fb}
.catalogue-stage-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 16px;padding:0;list-style:none}
.catalogue-stage-list li{display:flex;align-items:flex-start;gap:9px;min-width:0;padding:9px 11px;background:#0d2032;border:1px solid #2b4960;border-radius:6px}
.catalogue-stage-number{flex:0 0 22px;width:22px;height:22px;display:grid;place-items:center;font:700 11px/1 var(--be-control-mono);color:#9de8e0;background:#214756;border-radius:5px}
.catalogue-stage-list li>div{min-width:0}
.catalogue-stage-list strong{font-size:12px;color:#e8f5fb;overflow-wrap:anywhere}
.catalogue-stage-list p{font-size:12px;line-height:1.48;color:#b0c9db;margin:3px 0 0;overflow-wrap:anywhere;white-space:pre-line}
.catalogue-sql-note{margin-bottom:16px}
.catalogue-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.catalogue-detail-actions .action{font-size:11px;min-height:35px}

/* Stable column widths: varying labels and descriptions no longer move actions. */
.studio-activity-row{grid-template-columns:50px minmax(0,1fr) 272px 188px;gap:14px}
.studio-activity-aside{width:100%;min-width:0;display:grid;grid-template-rows:25px 16px 16px;gap:3px;align-content:center;justify-items:end}
.studio-activity-row .studio-activity-meta{grid-row:1;justify-content:flex-end;flex-wrap:nowrap;min-width:0;max-width:100%}
.studio-activity-aside .studio-activity-access{grid-row:2;line-height:16px}
.studio-activity-row .studio-card-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:188px;min-width:0;gap:8px;align-items:center;justify-content:stretch}
.studio-activity-row .studio-card-buttons .action{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;width:100%;min-height:38px;padding:8px 5px;font-size:11px;line-height:1.25;white-space:nowrap;text-align:center}
.studio-activity-text p.be-clamped-description{font-size:13px;line-height:1.45;height:auto;max-height:2.9em;overflow:hidden}

/* CSS fallback when JS is blocked: two lines with native ellipsis.
   JS switches to a measured clamp that appends the requested literal […]. */
.be-clamped-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.be-clamped-description.be-clamp-js{display:block;-webkit-line-clamp:unset;line-clamp:unset;-webkit-box-orient:initial}

@media(max-width:1080px){
  .studio-activity-row{grid-template-columns:50px minmax(0,1fr) 188px;grid-template-rows:auto auto;gap:5px 12px;height:auto;min-height:132px;padding:13px 16px}
  .studio-activity-icon{grid-column:1;grid-row:1/3;align-self:center}
  .studio-activity-text{grid-column:2;grid-row:1}
  .studio-activity-aside{grid-column:2;grid-row:2;justify-items:start;min-width:0}
  .studio-activity-row .studio-activity-meta{justify-content:flex-start}
  .studio-activity-row .studio-card-buttons{grid-column:3;grid-row:1/3;justify-self:end}
}
@media(max-width:840px){
  .catalogue-activity-row{grid-template-columns:48px minmax(0,1fr);gap:8px 12px;padding:12px 14px}
  .catalogue-activity-icon{width:48px;height:48px;grid-column:1;grid-row:1;align-self:start}
  .catalogue-activity-main{grid-column:2;grid-row:1}
  .catalogue-activity-controls{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:7px 12px}
  .catalogue-availability{justify-self:auto}
  .catalogue-disclosure-toggle.action{width:auto;min-width:154px}
  .catalogue-activity-detail{padding:16px 17px}
  .catalogue-stage-list{grid-template-columns:1fr}
}
@media(max-width:680px){
  .studio-activity-row{grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto auto;gap:7px 11px;min-height:0;height:auto;padding:12px 13px}
  .studio-activity-icon{grid-column:1;grid-row:1;align-self:start;width:44px;height:44px}
  .studio-activity-text{grid-column:2;grid-row:1;min-width:0}
  .studio-activity-aside{grid-column:2;grid-row:2;justify-items:start}
  .studio-activity-row .studio-activity-meta{flex-wrap:wrap;gap:4px}
  .studio-activity-row .studio-card-buttons{grid-column:2;grid-row:3;justify-self:start;width:188px}
}
@media(max-width:430px){
  .catalogue-activity-row{grid-template-columns:42px minmax(0,1fr);gap:7px 10px;padding:11px}
  .catalogue-activity-icon{width:42px;height:42px}
  .catalogue-activity-heading h2{font-size:14px}
  .catalogue-activity-controls{grid-column:1/-1}
  .catalogue-detail-intro>div{flex-basis:100%}
}

/* v0.8.12 - pedagogical count below description, draft state kept separate. */
.studio-activity-row{height:118px}
.studio-activity-text .studio-activity-count{display:block;margin-top:3px;color:#9eb7c9;font-size:11px;line-height:1.35;font-weight:500}
.studio-activity-aside .studio-activity-drafts{grid-row:3;line-height:16px;color:#b9cede;font-size:11px}
@media(max-width:1080px){.studio-activity-text .studio-activity-count{margin-top:4px}}
/* At compact widths the metadata and actions flow onto separate rows.
   An explicit row height would clip both buttons and teacher availability. */
@media(max-width:1080px){.studio-activity-row{height:auto}}
@media(max-width:680px){.studio-activity-aside{grid-template-rows:auto auto auto}}

/* v0.8.14 - consistent domain icons and calm Studio activity hierarchy. */
.studio-activity-icon,.catalogue-activity-icon{display:grid;place-items:center}
.studio-activity-icon .be-activity-artwork,.catalogue-activity-icon .be-activity-artwork{width:100%;height:100%;display:block;object-fit:contain}
.be-activity-symbol{display:grid;place-items:center;width:100%;height:100%;color:#b9f4eb;font:700 12px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.02em}
.studio-activity-row{grid-template-columns:50px minmax(0,1fr) 215px 188px}
.studio-activity-details{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;margin-top:4px;min-width:0}
.studio-activity-text .studio-activity-count{display:inline;margin:0 5px 0 0;line-height:1.35;white-space:nowrap}
.studio-activity-details .studio-chip{font-size:10.5px;line-height:1.25;padding:2px 6px}
.studio-activity-aside{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:4px;min-width:0}
.studio-activity-publication{display:grid;justify-items:end;gap:3px}
.studio-activity-publication .studio-activity-status{margin:0}
.studio-activity-publication .studio-activity-access{line-height:1.3}
.studio-activity-aside .studio-activity-drafts{line-height:1.3}
@media(max-width:1080px){
  .studio-activity-row{grid-template-columns:50px minmax(0,1fr) 188px}
  .studio-activity-aside{align-items:flex-start;justify-items:start}
  .studio-activity-publication{justify-items:start}
}
@media(max-width:680px){
  .studio-activity-row{grid-template-columns:44px minmax(0,1fr)}
  .studio-activity-details{gap:4px 6px}
}
