/* Phase 2 student visual library and layers */
.studio-modes{display:flex;gap:5px;background:#edf1f5;padding:5px;border-radius:12px;margin:12px 0}
.studio-modes button{flex:1;border:0;border-radius:8px;background:transparent;padding:9px 8px;font:inherit;font-size:13px;font-weight:750;color:#445b70;cursor:pointer}
.studio-modes button[aria-pressed="true"]{background:#fff;box-shadow:0 1px 5px #00000018;color:#1c2c42}
.studio-modes button:focus-visible{outline:3px solid #317fc7}
.studio-logo-library,.studio-layers{margin-top:16px;padding-top:14px;border-top:1px solid #e4eaf1}
.studio-logo-library h3,.studio-layers h3{font-size:14px;margin:0 0 4px}
.studio-logo-library p,.studio-layers p{font-size:12px;color:#64748b;margin:6px 0 12px;line-height:1.45}
.studio-logo-library label{margin-bottom:5px}
.studio-logo-library input[type="search"]{width:100%;margin-bottom:12px;min-height:40px}
.studio-logo-group{margin-bottom:12px}
.studio-logo-group h4{font-size:12px;color:#3e5066;margin:8px 0}
.studio-logo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.studio-logo-card{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:flex-start;min-width:0;padding:8px 5px;border:1px solid #d8e0eb;background:#fff;border-radius:11px;cursor:pointer;color:#263348;font:inherit;min-height:108px}
.studio-logo-card img{width:100%;height:60px;object-fit:contain;border-radius:5px;background:#f5f6f8}
.studio-logo-card span{font-size:11px;font-weight:750;line-height:1.15;text-align:center;overflow-wrap:anywhere}
.studio-logo-card small{font-size:10px;color:#6e7c8a}
.studio-logo-card:hover{border-color:#f58220;background:#fff8f1}
.studio-logo-card:focus-visible,.studio-upload:focus-visible,.studio-layer-row button:focus-visible{outline:3px solid #317fc7;outline-offset:2px}
.studio-logo-card[hidden],.studio-logo-group[hidden],#uxLogoEmpty[hidden]{display:none!important}
.studio-upload{width:100%;background:#fff4e6;border:1px solid #ffbe73;border-radius:9px;font-size:13px;font-weight:700;cursor:pointer;padding:12px;color:#7d460b}
.studio-layers-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.studio-layers-head span{background:#f5f2ed;border-radius:99px;padding:3px 9px;font-size:12px;color:#68513e}
.studio-layer-list{display:grid;gap:6px}
.studio-layer-row{display:flex;gap:5px;align-items:stretch;background:#fff;border:1px solid #dfe6ef;border-radius:9px;padding:4px}
.studio-layer-select{display:flex;align-items:center;gap:8px;text-align:left;flex:1;min-width:0;padding:4px;border:1px solid transparent;background:transparent;border-radius:7px;cursor:pointer}
.studio-layer-select[aria-pressed="true"]{background:#fff1e1;border-color:#ed8a32}
.studio-layer-select img{width:34px;height:34px;object-fit:contain;border-radius:4px;background:#f5f6f8;flex-shrink:0}
.studio-layer-select span{font-size:11px;font-weight:650;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.studio-layer-arrows{display:flex;gap:3px}
.studio-layer-arrows button{font-size:16px;cursor:pointer;background:#f1f4f7;color:#314458;border:0;border-radius:7px;min-width:30px}
.studio-layer-arrows button:disabled{opacity:.28;cursor:not-allowed}
.studio-no-layers{margin:0!important;background:#f7f9fb;border:1px dashed #dae0e9;border-radius:8px;padding:10px}
#advancedTools[hidden]{display:none!important}
@media(max-width:760px){.studio-logo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-logo-card{min-height:108px}}
@media(max-width:430px){.studio-logo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Generated image gallery: filters, result status and resilient thumbnails */
.studio-logo-library #uxLogoCategory{width:100%;margin-bottom:9px;padding:10px;background:#fff;border:1px solid #ccd6e4;border-radius:8px;font-size:13px}
.studio-logo-library #uxLogoSearch{margin-bottom:10px}
.studio-logo-results{font-size:11px;color:#49647f;margin:2px 0 12px;min-height:17px}
.studio-logo-card img[hidden]{display:none}
.studio-logo-card.studio-logo-broken::before{content:"Image unavailable";font-size:10px;display:grid;place-items:center;min-height:60px;color:#925a2e}
.studio-logo-card:disabled{cursor:wait;opacity:.65}
#uxLogoEmpty{padding:12px;background:#fff8ee;color:#794e20;border-radius:8px;font-size:12px}
.studio-logo-group h4{border-bottom:1px solid #edf0f4;padding-bottom:5px}

/* Team name and color choices in the searchable logo gallery */
.team-logo-choice{min-width:0;display:flex;flex-direction:column;gap:6px;padding:5px;border:1px solid #e3e8ed;border-radius:10px}
.team-logo-choice .studio-logo-card{width:100%;border:0}
.team-logo-choice label{display:flex;gap:6px;align-items:center;justify-content:space-between;font-size:12px;font-weight:650;color:#263544}
.team-logo-choice .team-logo-color{max-width:110px;min-width:75px;padding:6px 5px;border:1px solid #aebed0;border-radius:6px;background:#fff;color:#101820}
.team-logo-choice select:focus-visible{outline:3px solid #f58220;outline-offset:2px}

/* Team previews use a contrasting surface so White is never mistaken for a blank image. */
.team-logo-choice .studio-logo-card img{background:#fff0d6;transition:background-color .16s ease}
.team-logo-choice[data-logo-color="white"] .studio-logo-card img{background:#263244}
.team-logo-choice[data-logo-color="orange"] .studio-logo-card img{background:#263244}
.team-logo-choice[data-logo-color="black"] .studio-logo-card img{background:#f9d7a6}
.team-logo-choice .studio-logo-card small{white-space:normal}

/* Reviewed public-use artwork sits in the same filter and thumbnail grid as team logos. */
.studio-logo-group[data-category="Public Images"] .studio-logo-card img{height:80px;background:#f4f7f8}
.studio-logo-group[data-category="Public Images"] .studio-logo-card small{color:#276d50;font-weight:650}

/* Curated public-use artwork gets the same per-card color controls as team logos. */
.public-art-choice{min-width:0;display:flex;flex-direction:column;gap:6px;padding:5px;border:1px solid #e3e8ed;border-radius:10px}
.public-art-choice .studio-logo-card{width:100%;border:0}
.public-art-choice label{display:flex;gap:6px;align-items:center;justify-content:space-between;font-size:12px;font-weight:650;color:#263544}
.public-art-choice .public-art-color{max-width:110px;min-width:80px;padding:6px 5px;border:1px solid #aebed0;border-radius:6px;background:#fff;color:#101820}
.public-art-choice .public-art-color:focus-visible{outline:3px solid #317fc7;outline-offset:2px}
.public-art-choice .studio-logo-card img{background:#f4f7f8;transition:background-color .16s ease}
.public-art-choice[data-art-color="white"] .studio-logo-card img,.public-art-choice[data-art-color="orange"] .studio-logo-card img{background:#263244}
.public-art-choice[data-art-color="black"] .studio-logo-card img{background:#f9d7a6}

/* One-tap, teacher-curated tiger artwork discovery for button-making groups. */
.studio-tiger-shortcuts{
 display:flex;align-items:stretch;flex-wrap:wrap;gap:6px;
 padding:9px;margin:0 0 12px;border:1px solid #f4d2a7;
 background:#fff8ef;border-radius:10px;
}
.studio-tiger-shortcuts>span{flex-basis:100%;font-size:12px;font-weight:800;color:#63441d}
.studio-tiger-shortcuts button{
 font:inherit;font-size:12px;font-weight:750;min-height:39px;
 border:1px solid #c8d5e2;border-radius:8px;background:#fff;
 color:#253e58;padding:7px 10px;cursor:pointer;
}
.studio-tiger-shortcuts button[aria-pressed="true"]{
 background:#f58220;color:#171717;border-color:#b35a13;
}
.studio-tiger-shortcuts button:focus-visible{outline:3px solid #317fc7;outline-offset:2px}

/* The F Paw preview uses its recommended button background; the actual SVG is transparent. */
.studio-logo-card.f-paw-scheme{border:2px solid #d8e1ea;padding:7px 4px}
.studio-logo-card.f-paw-scheme img{
  height:90px;object-fit:contain;padding:5px;border-radius:8px;
  border:1px solid #bdc7d4;background:#fff;
}
.studio-logo-card.f-paw-scheme[data-best-background="black"] img{
  background:#101820;border-color:#516071;
}
.studio-logo-card.f-paw-scheme[data-best-background="orange"] img{
  background:#f58220;border-color:#b55d12;
}
.studio-logo-card.f-paw-scheme small{line-height:1.3;font-weight:650}
.studio-logo-card.f-paw-scheme:hover{border-color:#e77921}

/* All Fenton elementary-school seals use an identical gallery presentation.
   The picture is cleaned before preview; no school colors or shapes are edited. */
.studio-logo-card.elementary-seal{min-height:146px;padding:8px 6px}
.studio-logo-card.elementary-seal img{
  height:82px;object-fit:contain;background:#fff;
  padding:3px;border:1px solid #e2e8ee;border-radius:8px;
}
.studio-logo-card.elementary-seal small{
  font-size:10px;font-weight:600;line-height:1.3;color:#4e6275;
}
