/* ===================== assets/style.css (TOP) ===================== */
:root{
  --navy:#ffffff;
  --columbia:#4F86C6;
  --white:#ffffff;
  --bg:#070a12;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);
  --border:rgba(255,255,255,.14);
  --radius:18px;
  --max:1320px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{height:100%}

/* --- Corner mascot (upper-right) --- */
.mascotCorner{
  position:fixed;
  top:58px;
  right:12px;
  z-index:50;
  width:clamp(52px, 7vw, 96px);
  height:auto;
  opacity:.95;
  pointer-events:none;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.35));
}
@media (max-width: 560px){
  /* prevent covering usable UI on small screens / zoom */
  .mascotCorner{display:none;}
}

/* --- Fixed background layer (anchored photo) --- */
body{position:relative;margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;background:transparent;color:var(--text)}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  /* Anchored black & white school photo + dark overlay for readability */
  background:
    linear-gradient(180deg, rgba(5,6,11,.90), rgba(7,10,18,.82) 55%, rgba(5,6,11,.90)),
    url('bg-school-bw.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

a{color:inherit;text-decoration:none}

.container{max-width:var(--max);margin:0 auto;padding:10px 16px 60px}

.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0 10px;flex-wrap:wrap}

.brand{display:flex;flex-direction:column;gap:2px;align-items:flex-start}
/* Brand */
.brand .title{display:none}
.brandLogo{display:block;height:auto;width:min(560px,78vw);max-width:560px;filter:drop-shadow(0 0 14px rgba(79,134,198,.55));margin:0;}
@media (max-width:520px){.brandLogo{width:min(420px,86vw);max-width:420px;}}
.brand .subtitle{display:none}

.searchRow{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.searchRow input{
  width:min(380px,78vw);
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}

/* --- HERO: no border, no box --- */
.hero{display:grid;gap:12px;padding:4px 0 10px}

/* ===== Quick Launch scroller w/ arrows ===== */
.quickBar{
  display:flex;
  align-items:center;
  position:relative;
  width:100%;
  padding:4px 52px 0;
  overflow:hidden;
}
.quick{
  display:flex;
  gap:10px;
  flex-wrap:nowrap;
  overflow-x:auto;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  padding:4px 2px 8px;
  scrollbar-width:none;
  flex:1 1 auto;
  min-width:0;
}
.quick::-webkit-scrollbar{display:none}

/* BIG quick-launch cards */
.qcard{
  flex:0 0 auto;
  width:200px;
  min-width:200px;
  max-width:200px;
  height:86px;
  display:flex;
  align-items:center;
  gap:10px;
  border-radius:18px;
  border:2px solid rgba(0,0,128,.55);
  background:linear-gradient(135deg, var(--columbia) 0%, #e6eef7 100%);
  color:var(--navy);
  padding:10px 12px;
  box-shadow:0 12px 26px rgba(0,0,0,.18);
  transition:transform .08s ease, box-shadow .2s ease, border-color .2s ease;
  position:relative;
}
.qcard:hover{transform:translateY(-1px);box-shadow:0 16px 32px rgba(0,0,0,.22);border-color:rgba(255,255,255,.75)}

.qIcon{
  width:60px;
  height:60px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgb(255,255,255);
  border:1px solid rgba(255,255,255,.25);
  flex:0 0 auto;
  line-height:0;
  overflow:hidden;
}
.qIcon svg,.qIcon img{width:100%;height:100%;display:block;transform:scale(0.5);transform-origin:center}
.qIcon img{object-fit:cover;object-position:center}

.qMeta{display:flex;flex-direction:column;gap:4px;min-width:0}
.qTitle{
  font-weight:900;
  font-size:14px;
  line-height:1.15;
  letter-spacing:.2px;
  color:var(--navy);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.qHint{font-size:12px;font-weight:800;opacity:.85;color:rgba(255,255,255,.85)}
.qGo{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-weight:900;font-size:16px;opacity:.85;pointer-events:none}

.qArrow{
  width:40px;height:40px;border-radius:14px;
  border:1px solid rgba(0,0,128,.35);
  background:rgba(255,255,255,.75);
  color:var(--navy);
  font-size:22px;
  font-weight:800;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
  transition:transform .08s ease, background .2s ease, opacity .2s ease;
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:5;
}
.qArrow.left{left:0}
.qArrow.right{right:0}
.qArrow:hover{transform:translateY(-1px);background:rgba(255,255,255,.9)}
.qArrow:active{transform:translateY(0)}
.qArrow:disabled{opacity:.35;cursor:default;transform:none}

/* Section titles */
.sectionTitle{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:22px 0 10px}
.sectionTitle h2{margin:0;font-size:20px;letter-spacing:.2px}
.sectionTitle span{color:var(--muted);font-size:14px}

/* Pills */
.pills{display:flex;gap:8px;flex-wrap:wrap}
.pill{
  padding:9px 11px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  cursor:pointer;
  user-select:none;
  font-size:12px;
  font-weight:600;
  transition:transform .12s ease, box-shadow .18s ease, filter .18s ease;
}
.pill[data-tag="All"]{background:#e9edf4;color:#1e2f4f;border-color:#c9d3e6}
.pill[data-tag="Creative Tech"]{background:#4F86C6;color:#ffffff;border-color:#3569a8}
.pill[data-tag="Computing"]{background:#2f9e8f;color:#ffffff;border-color:#23766a}
.pill[data-tag="Engineering"]{background:#f2a900;color:#1a1a1a;border-color:#c78a00}
.pill[data-tag="Fabrication"]{background:#7a5fc0;color:#ffffff;border-color:#5d47a0}
.pill.active{box-shadow:0 4px 10px rgba(0,0,0,.25);transform:translateY(-1px)}
.pill:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(0,0,0,.25);filter:brightness(1.08)}
.pill:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(79,134,198,.45),0 6px 14px rgba(0,0,0,.35)}

/* Project scroller track */
.track{display:grid;grid-template-columns:repeat(5, 1fr);gap:12px;padding:6px 2px 12px;overflow:visible}

/* Project cards */
.card{
  min-width:240px;
  border:1px solid var(--navy);
  background:linear-gradient(135deg, var(--columbia) 0%, #e6eef7 100%);
  color:var(--navy);
  border-radius:var(--radius);
  padding:14px 14px 12px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  transition:transform .10s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{transform:translateY(-2px);border-color:rgba(79,134,198,.45)}
.kicker{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:22px}
.kicker span:first-child{
  font-weight:750;
  color:#ffffff;
  -webkit-text-stroke:0.75px var(--navy);
  text-stroke:0.75px var(--navy);
  text-shadow:-0.75px -0.75px 0 var(--navy), 0.75px -0.75px 0 var(--navy), -0.75px 0.75px 0 var(--navy), 0.75px 0.75px 0 var(--navy);
}
.badge{padding:6px 9px;border-radius:999px;border:1px solid var(--border);background:rgba(0,0,0,.18);color:var(--muted);font-size:11px}
.badge[data-tag="Creative Tech"]{background:#4F86C6;color:#fff;border-color:#3569a8}
.badge[data-tag="Computing"]{background:#2f9e8f;color:#fff;border-color:#23766a}
.badge[data-tag="Engineering"]{background:#f2a900;color:#1a1a1a;border-color:#c78a00}
.badge[data-tag="Fabrication"]{background:#7a5fc0;color:#fff;border-color:#5d47a0}
.card h3{margin:10px 0 6px;font-size:18px}
.card p{margin:0 0 12px;color:var(--navy);font-weight:700;line-height:1.35;font-size:13px}
.go{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid rgba(255,255,255,.10);padding-top:10px;font-size:13px}
.footer{margin-top:30px;color:rgba(255,255,255,.55);font-size:14px;text-align:center}

/* ---- Images inside cards ---- */
.imgWrap{
  height:150px;
  border-radius:14px;
  overflow:hidden;
  background:linear-gradient(135deg, rgba(79,134,198,.18), rgba(0,0,128,.12));
  border:1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
}
.tileImg{width:100%;height:100%;object-fit:cover;padding:0;box-sizing:border-box}

/* Project pages (tools registry) — minimal styling */
.pageWrap{max-width:var(--max);margin:0 auto;padding:22px 16px 60px}
.pageTop{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 0 14px}
.pageHeroIcon{width:clamp(72px, 10vw, 120px);height:clamp(72px, 10vw, 120px);border-radius:22px;object-fit:contain;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);padding:10px;flex:0 0 auto;box-shadow:0 12px 30px rgba(0,0,0,.25)}
.pageTitle{font-size:34px;font-weight:900;letter-spacing:.2px}
.pageSub{color:var(--muted);font-size:15px;font-weight:700}
.backLink{display:inline-block;margin:10px 0 14px;font-weight:900;color:rgba(255,255,255,.9)}
.toolsGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.toolCard{border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(255,255,255,.05);padding:14px;box-shadow:0 10px 24px rgba(0,0,0,.18);transition:transform .10s ease, box-shadow .2s ease;min-width:0}
.toolCard:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(0,0,0,.22)}

.toolCard.isClickable{cursor:pointer}
.toolCard.isClickable:focus-visible{outline:3px solid rgba(79,134,198,.85);outline-offset:3px}
.toolHead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.toolLeft{display:flex;align-items:center;gap:10px;min-width:0}
.toolLogo{
  width:84px;
  height:84px;
  border-radius:18px;
  object-fit:contain;
  background:rgba(255,255,255,.10);
  padding:10px;
  flex:0 0 auto;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}

.toolTitle{font-weight:900;line-height:1.15;min-width:0}
.toolBadge{font-size:11px;padding:5px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.14);color:rgba(255,255,255,.88);background:rgba(0,0,0,.18);white-space:nowrap}
.toolBody{margin-top:10px;display:grid;gap:10px}
.toolDesc{color:rgba(255,255,255,.85);font-size:13px;line-height:1.35}
.toolTags{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.tag{font-size:11px;padding:4px 7px;border-radius:999px;border:1px solid rgba(255,255,255,.10);color:rgba(255,255,255,.75);background:rgba(0,0,0,.15)}
.toolActions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.openBtn{border:none;border-radius:14px;padding:10px 12px;font-weight:900;background:rgba(79,134,198,.85);color:white;cursor:pointer}
.openBtn:hover{filter:brightness(1.06)}
.smallNote{font-size:11px;color:rgba(255,255,255,.65);font-weight:700}

/* Tool cards: force white text (override .card color: var(--navy) inheritance) */
#tools .toolCard,
#tools .toolCard .toolTitle,
#tools .toolCard .toolDesc,
#tools .toolCard .toolBadge,
#tools .toolCard .tag,
#tools .toolCard .smallNote{
  color:#ffffff;
}
#tools .toolCard .toolDesc{ color:rgba(255,255,255,.92); }
#tools .toolCard .smallNote{ color:rgba(255,255,255,.78); }

/* Responsive */
@media (max-width:980px){.track{grid-template-columns:repeat(3,1fr)}.toolsGrid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.track{grid-template-columns:repeat(2,1fr)}.qcard{min-width:220px}.toolsGrid{grid-template-columns:1fr}.pageTitle{font-size:28px}}

/* Digital Art (and future project pages) — content blocks */
.projectIntro{
  display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
  padding:14px;border:1px solid rgba(255,255,255,.14);border-radius:18px;
  background:rgba(255,255,255,.04);box-shadow:0 10px 24px rgba(0,0,0,.14);
  margin: 6px 0 14px;
}
.introTagRow{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.introTag{
  font-size:11px;padding:6px 10px;border-radius:999px;font-weight:900;
  background:rgba(79,134,198,.30);border:1px solid rgba(79,134,198,.55);
  color:rgba(255,255,255,.92);white-space:nowrap;
}
.introTag.ghost{
  background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.82);font-weight:800;
}
.introBlurb{color:rgba(255,255,255,.88);font-size:13px;line-height:1.4;font-weight:700;max-width:820px}
.introRight{display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.primaryBtn{
  display:inline-block;border:none;border-radius:14px;padding:10px 12px;
  font-weight:900;background:rgba(79,134,198,.92);color:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.18);
}
.primaryBtn:hover{filter:brightness(1.08)}
.tinyNote{color:rgba(255,255,255,.62);font-size:12px;font-weight:700}

.infoGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin: 0 0 14px}
.infoCard{
  border:1px solid rgba(255,255,255,.14);border-radius:18px;
  background:rgba(255,255,255,.04);padding:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.infoTitle{font-weight:900;margin-bottom:10px}
.steps{margin:0;padding-left:18px;color:rgba(255,255,255,.86);font-weight:700;line-height:1.45}
.check{margin:0;padding-left:18px;color:rgba(255,255,255,.86);font-weight:700;line-height:1.45}
.check li, .steps li{margin:6px 0}

.block{
  border:1px solid rgba(255,255,255,.14);border-radius:18px;
  background:rgba(255,255,255,.03);padding:14px;margin: 0 0 14px;
  box-shadow:0 10px 24px rgba(0,0,0,.10);
}
.blockTitle{font-weight:900;margin-bottom:10px}

.missionGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.mission{
  border:1px solid rgba(255,255,255,.12);border-radius:16px;
  background:rgba(0,0,0,.14);padding:12px;
}
.mTitle{font-weight:900;margin-bottom:6px}
.mDesc{color:rgba(255,255,255,.84);font-size:13px;font-weight:700;line-height:1.35}
.mReq{margin-top:10px;color:rgba(255,255,255,.72);font-size:12px;font-weight:800;line-height:1.35}

.turnIn{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.turnCol{
  border:1px solid rgba(255,255,255,.12);border-radius:16px;
  background:rgba(0,0,0,.14);padding:12px;
}
.turnTitle{font-weight:900;margin-bottom:8px}

@media (max-width:980px){
  .infoGrid{grid-template-columns:1fr}
  .missionGrid{grid-template-columns:1fr}
  .turnIn{grid-template-columns:1fr}
  .introRight{align-items:flex-start}
  .projectIntro{flex-direction:column}
}

/* Curriculum blocks (used by all project pages) */
.curriculumBlock{
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  background:rgba(255,255,255,.04);
  padding:16px;
  margin:0 0 14px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.curriculumBlock h2{
  margin:0 0 10px;
  font-size:18px;
  font-weight:900;
}

.vocabList{
  margin:0;
  padding-left:18px;
  line-height:1.45;
  font-weight:700;
}

.vocabList li{
  margin:6px 0;
}

.dayList{
  margin:0;
  padding-left:18px;
  line-height:1.5;
  font-weight:700;
}

.dayList li{
  margin:8px 0;
}

.subtleNote{
  font-size:12px;
  font-weight:700;
  color:rgba(255,255,255,.65);
}

/* ===================== assets/style.css (BOTTOM) ===================== */


/* ===================== TOOLS FILTER BAR (integrated into Tools card) ===================== */
/* Goal: no "card inside a card" — controls feel like part of the Tools header */
.toolControls{
  margin: 10px 0 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.toolControlsRow{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.toolControlsLeft{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.toolControlsRight{
  display:flex;
  gap:10px;
  align-items:center;
  margin-left:auto;
}
.ctlLabel{font-size:12px;color:rgba(255,255,255,.78);font-weight:950}
.ctlSelect{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  border-radius:12px;
  padding:8px 10px;
  font-weight:900;
}
.ctlCheck{display:flex;gap:7px;align-items:center;font-size:12px;color:rgba(255,255,255,.88);font-weight:900}
.ctlCheck input{transform:scale(1.15)}
.ctlSearch{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:900;
  min-width: 220px;
}
.toolControlsHint{
  margin-top:6px;
  font-size:12px;
  color:rgba(255,255,255,.72);
  font-weight:900;
}

.toolControlsHint{margin-top:10px;font-size:12px;color:rgba(255,255,255,.78);line-height:1.35}
.toolSection{grid-column:1/-1;margin-top:6px;margin-bottom:-2px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);font-weight:900}
@media (max-width:900px){
  .toolsGrid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:560px){
  .toolsGrid{grid-template-columns:1fr}
  .ctlSearch{width:100%}
}



/* --- Daily Learning Objective panel (project pages) --- */
.objectivePane{
  margin:16px 0 14px;
  border:1px solid var(--border);
  border-radius:22px;
  background:rgba(0,0,0,.32);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.objectivePaneInner{
  display:grid;
  grid-template-columns: 1fr 160px;
  gap:14px;
  padding:14px;
  align-items:stretch;
}
@media (max-width: 860px){
  .objectivePaneInner{grid-template-columns:1fr}
}
.objectiveHero{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.objectiveHero img{width:100%;height:100%;object-fit:contain;display:block;padding:10px}

.objTopRow{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.objTitle{font-weight:900;font-size:16px;letter-spacing:.2px}
.objControls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.objControls select{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}

.ttsBtn{
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(79,134,198,.95), rgba(0,0,128,.92));
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
.ttsBtn:active{transform:translateY(1px)}

.volWrap{display:flex;align-items:center;gap:8px;opacity:0;max-width:0;overflow:hidden;transition:opacity .15s ease, max-width .2s ease}
.volWrap.show{opacity:1;max-width:220px}
.volWrap input[type="range"]{width:160px}

.objBlock{margin-top:10px}
.objLabel{font-weight:900;font-size:12px;color:var(--muted);margin-bottom:6px}
.objText{line-height:1.4}
.objQod{margin-top:10px;padding-top:10px;border-top:1px dashed rgba(255,255,255,.18)}
.objStems{margin-top:10px}
.objStems ul{margin:8px 0 0;padding-left:18px}
.objStems li{margin:4px 0}



/* Daily Objective Panel */
.objectivePanel{
  margin:14px 0 18px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(0,0,0,.28);
  box-shadow:0 10px 26px rgba(0,0,0,.25);
  overflow:hidden;
}
.objectivePanel .opTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:14px 14px 10px;
}
.objectivePanel .opLeft{min-width:0; flex:1 1 auto;}
.objectivePanel .opTitle{font-weight:900; font-size:14px; letter-spacing:.2px; color:rgba(255,255,255,.92);}
.objectivePanel .opIntro{margin-top:6px; color:var(--muted); line-height:1.35;}
.objectivePanel .opRight{flex:0 0 auto; width:108px; height:108px; border-radius:18px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); display:flex; align-items:center; justify-content:center; overflow:hidden;}
.objectivePanel .opRight img{width:100%; height:100%; object-fit:contain;}
.objectivePanel .opControls{display:flex; gap:10px; flex-wrap:wrap; padding:0 14px 14px; align-items:center;}
.objectivePanel select, .objectivePanel button, .objectivePanel input[type=range]{
  border-radius:12px; border:1px solid rgba(255,255,255,.14); background:rgba(0,0,0,.25); color:var(--text); padding:10px 12px;
}
.objectivePanel button{cursor:pointer; font-weight:900;}
.objectivePanel .opReadBtn{background:linear-gradient(135deg, var(--columbia), rgba(255,255,255,.85)); color:var(--navy); border:0;}
.objectivePanel .opStopBtn{background:rgba(255,255,255,.10);}
.objectivePanel .opVolWrap{display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:12px; border:1px solid rgba(255,255,255,.12); background:rgba(0,0,0,.18);}
.objectivePanel .opVolWrap label{font-size:12px; color:var(--muted); font-weight:800;}
.objectivePanel .opVolWrap input{width:140px;}
.objectivePanel .opVolWrap{opacity:.0; pointer-events:none; transition:opacity .15s ease;}
.objectivePanel.isSpeaking .opVolWrap{opacity:1; pointer-events:auto;}
.objectivePanel .opControls:hover .opVolWrap{opacity:1; pointer-events:auto;}
.objectivePanel .opQOD{padding:0 14px 14px;}
.objectivePanel .opQOD h3{margin:10px 0 6px; font-size:13px;}
.objectivePanel .opStems{display:flex; gap:8px; flex-wrap:wrap;}
.objectivePanel .stemChip{display:inline-flex; gap:6px; align-items:center; padding:8px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06); font-weight:800; font-size:12px; color:rgba(255,255,255,.9);}

/* ===================== Registry Marquee (v1) ===================== */
#marqueeBar{
  position:sticky;
  top:0;
  z-index:9999;
  width:100%;
  background:linear-gradient(90deg, rgba(0,0,128,.95), rgba(79,134,198,.95));
  border-bottom:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
#marqueeInner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 14px;
  overflow:hidden;
  white-space:nowrap;
}
#marqueeText{
  display:inline-block;
  padding-left: 100%;
  animation: marqueeScroll 22s linear infinite;
  /* Preserve deliberate spacing like: DAY 2     -     Welcome... */
  white-space: pre;
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}
#marqueeText.marqueeError{
  font-weight: 700;
  opacity: .9;
}
@keyframes marqueeScroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-100%); }
}

/* Registry cards: keep the existing card style, slightly tighten */
.registryCard .blurb{ opacity:.95; }


/* === SCROLLER SCROLLBAR THUMB SIZE OVERRIDE (ACCESSIBILITY) === */
/* Make horizontal scrollbar thumbs easier to grab on Overview and Gimkit scrollers */
.daTop .thumbRow::-webkit-scrollbar,
.daTop .rail::-webkit-scrollbar,
.gimkitScroller .gimTrack::-webkit-scrollbar{
  height: 28px !important; /* ~3× taller than 10px */
}
.daTop .thumbRow::-webkit-scrollbar-thumb,
.daTop .rail::-webkit-scrollbar-thumb,
.gimkitScroller .gimTrack::-webkit-scrollbar-thumb{
  border-radius: 999px !important;
}
/* Slightly thicker track on Firefox (height can't be set), but keep visible */
.daTop .thumbRow,
.daTop .rail,
.gimkitScroller .gimTrack{
  scrollbar-width: auto;
}


/* === Ask Geppetto button (separate card, BELOW Gimkit card) === */
.askGeppettoCard{
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.55));
  border-radius:22px;
  box-shadow: 0 18px 55px rgba(0,0,0,.45);
  overflow:hidden;
}
.askGeppettoInner{
  padding:14px 16px 16px;
}
.askGeppettoBtn{
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  display:block;
}
.askGeppettoBtn:hover{ filter: brightness(1.06); }
.askGeppettoBtn:active{ transform: translateY(1px); }
.askGeppettoBtn:focus-visible{
  outline:3px solid rgba(79,134,198,.7);
  outline-offset:3px;
}
.askGeppettoImg{
  width:100%;
  height:auto;
  display:block;
  border-radius:18px; /* soften inside edges */
}
.gimkitCard .askGeppettoLabel > div{ display:block; }


/* ===== Home header spacing tighten (2026-01-31) ===== */
.home .container{padding-top:4px;}
.home .topbar{padding:2px 0 6px;}
.home .hero{padding:2px 0 8px;}
@media (max-width:520px){
  .home .container{padding-top:2px;}
  .home .topbar{padding:2px 0 4px;}
}


.gimkitCard .askGeppettoImg{
  width:100%;
  height:auto;
  display:block;
}


/* ===== Ask Geppetto layout alignment (LOCKED) ===== */
.heroGrid{
  /* Row 1 should shrink-wrap; Row 2 uses per-item stretch */
  align-items: start;
}
.gimkitStack{
  display:flex;
  flex-direction:column;
  gap:14px;
  height:100%;
}
.gimkitStackSpacer{ flex:1; }

/* Make the left overview area capable of pushing the scroller to the bottom */
.heroCard .heroInner{
  display:flex;
  flex-direction:column;
  height:100%;
}
.heroCard .overviewSpacer{ flex:1; min-height: 0; }


/* ===================== WIDTH RESTORE: Overview wider than Gimkit (LOCKED) ===================== */
.projectTopGrid, .topTwoCol, .topCardsGrid, .projectTopCards {
  /* force left column wider than right */
  grid-template-columns: 1.65fr 1fr !important;
}
@media (max-width: 1100px){
  .projectTopGrid, .topTwoCol, .topCardsGrid, .projectTopCards {
    grid-template-columns: 1fr !important;
  }
}

/* Right column stack stays inside its column */
.gimkitStack, .rightColStack, .gimkitColumn {
  width: 100%;
  max-width: 100%;
}

/* Gimkit + Ask cards fill right column but never expand page width */
.gimkitCard, .askGeppettoCard {
  width: 100%;
  max-width: 100%;
}

/* ===================== Cloudflare layout stability fix (2026-01-31) =====================
   Symptom: on first paint the widths look correct, but after images load the
   right column "grows" (CSS Grid min-content sizing) and can push the layout.
   Fix: allow columns/items to shrink (minmax(0, ...)) and prevent long/large
   content (like the Ask Geppetto image) from setting a larger min-width.
*/
.sectionGrid{
  grid-template-columns: minmax(560px, 0.88fr) minmax(0, 1.12fr) !important;
}
/* Daily Learning Objective should span full width */
.sectionGrid #daily{ grid-column: 1 / -1 !important; }
/* Tools should also span full width after Vocabulary is docked into Daily Work */
.sectionGrid #tools{ grid-column: 1 / -1 !important; }

/* =====================
   Row 2+ Card Background Normalization (LOCKED)
   Scope: project pages only, cards inside .sectionGrid (NOT the top cards)
   ===================== */
.sectionGrid > .card{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

/* Row 2+ Card Internal Padding Normalization (LOCKED)
   Scope: project pages only, cards inside .sectionGrid (NOT the top cards)
   Purpose: make Gimkit + Video Resources headers/scrollers sit consistently */
.sectionGrid > .card{
  padding: 14px 16px 16px !important;
  box-sizing: border-box;
}

.sectionGrid > *,
.heroCard,
.gimkitCard,
.gimkitStack,
.askGeppettoCard{
  min-width: 0 !important;
}
.askGeppettoImg{
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
}



/* ===== Project Page: Tools card header controls (filters inside Tools card) ===== */
#tools .toolsHdRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
#tools .toolsHdRow h3{ margin:0; }
#tools .toolsControls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:0;
}
#tools .toolsControlsWrap{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
#tools .toolsControlsWrap .toolsFilters{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
#tools .toolsControlsWrap .toolsSearch{
  width: clamp(180px, 22vw, 260px);
}


/* =========================
   STEM Daily Work (native panel inside Daily Learning Objective card)
   ========================= */
.tmsDailyWorkDetails{
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.10);
}
.tmsDailyWorkHeader{
  color: var(--columbia);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.tmsDailyWorkWrap{ margin-top: 10px; }
.tmsDailyWorkMsg{
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}
.tmsDailyWorkMsg.ok{
  /* Keep message bar visually stable (no green flash) */
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.tmsDailyWorkMsg.bad{
  /* Keep message bar visually stable (no red flash) */
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.tmsDWRow{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.tmsDWRow2{ grid-template-columns: 1fr 2fr; }

/* Row 1: First / Last / Student ID / Period */
.tmsDWRow1{
  grid-template-columns: 1fr 1fr 1fr 0.75fr;
}

.tmsDWInput{
  width: 100%;
  padding: 12px 12px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  outline: none;
}
.tmsDWInput::placeholder{ color: rgba(255,255,255,0.55); }

/* === Daily Work: Period dropdown (match other fields; dark menu) === */
select.tmsDWInput{
  /* Match the other .tmsDWInput fields */
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 38px; /* space for chevron */

  /* Chevron (kept subtle and readable) */
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.88) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.88) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}
select.tmsDWInput:focus{
  border-color: rgba(196,216,245,0.55);
  box-shadow: 0 0 0 3px rgba(196,216,245,0.12);
}
select.tmsDWInput option{
  background: rgba(0,0,0,0.95);
  color: rgba(255,255,255,0.96);
}
/* === Daily Work: show image INSIDE the paste/drop field (large) === */
.tmsDWDrop{
  position: relative;
  overflow: hidden;
  height: var(--tmsDWBoxH);
  min-height: var(--tmsDWBoxH);
  display: flex;
  flex-direction: column;
}
.tmsDWDropInner{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
	padding: 10px 10px; /* match writing field padding */
}
.tmsDWDropPreviewImg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  display: none;
  background: rgba(0,0,0,0.18);
}
.tmsDWDropHasImg .tmsDWDropHint{
  text-shadow: 0 2px 6px rgba(0,0,0,0.65);
}
.tmsDWDropHasImg{
  border-color: rgba(196,216,245,0.55);
}


.tmsDWSidWrap{
  position: relative;
  display: flex;
  align-items: center;
}
.tmsDWSidWrap .tmsDWInput{ padding-right: 40px; }
.tmsDWSidToggle{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
  cursor: pointer;
}

.tmsDWDrop{
  border: 2px dashed rgba(255,255,255,0.22);
  border-radius: 14px;
	padding: 0; /* inner handles padding so the preview image stays aligned */
  background: rgba(0,0,0,0.18);
  cursor: pointer;
  user-select: none;
  margin-bottom: 8px;
}
.tmsDWDrop.disabled,
.tmsDWDrop.tmsDWNoDragDrop{
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}
.tmsDWDrop.drag{
  border-color: rgba(120,200,255,0.75);
  background: rgba(120,200,255,0.10);
}
.tmsDWUploadBtn{
  margin: 12px 0 10px 0;
  border-radius: 999px;
  border: 0;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.94);
  cursor: pointer;
}
.tmsDWUploadBtn:hover{
  background: rgba(255,255,255,0.22);
}
.tmsDWDropTitle{
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 2px;
}
.tmsDWDropHint{
  opacity: 0.8;
  font-weight: 600;
  font-size: 12px;
}
/* Paste input: at top of drop, white text; right-click shows Paste; no typing */
.tmsDWDropInner{
  align-items: flex-start;
  justify-content: flex-start;
}
.tmsDWDropPasteInput{
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  bottom: 35%;
  z-index: 4;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  font-size: 12px;
}
.tmsDWDropPasteInput::placeholder{
  color: rgba(255,255,255,0.9);
}
.tmsDWDropPasteHint{
  position: absolute;
  top: 22px;
  left: 10px;
  right: 10px;
  z-index: 4;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}
.tmsDWFileInput{ display:none; }

.tmsDWFileList{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.tmsDWFileEmpty{
  opacity: 0.75;
  font-size: 12px;
  color: var(--columbia);
}
.tmsDWFilePill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}
.tmsDWFileName{
  font-size: 12px;
  font-weight: 800;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tmsDWFileRemove{
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
}

.tmsDWTextarea{
  font-size: 16px;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  outline: none;
  resize: none;
  line-height: 1.35;
}
.tmsDWCounter{
  font-size: 13px;
  margin-top: 6px;
  /* tighten gap to the Project/Day line */
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.9;
  color: var(--columbia);
}
.tmsDWCounter.bad{ color: rgba(255,160,160,0.95); }

/* Tools helper / section headers must never be browser-default blue */
.toolsSubNote{ color: var(--columbia); font-weight: 800; }
.toolSection{ color: var(--columbia); }

.tmsDWActions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  /* sit closer to the counter */
  margin-top: 2px;
}

/* Daily Work: right-side gate panel next to Submit (NOT an overlay) */
.tmsDWActionsRight{
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}
.tmsDWGatePanel{
	display: none;
	max-width: 340px;
	border-radius: 16px;
	padding: 12px 12px;
	border: 1px solid rgba(196,216,245,0.22);
	background: rgba(0, 35, 70, 0.55);
	backdrop-filter: blur(8px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.tmsDWGatePanel.show{ display: block; }
.tmsDWGatePanelTitle{
	font-weight: 1000;
	font-size: 15px;
	color: #ffffff;
}
.tmsDWGatePanelSub{ margin-top: 4px; font-weight: 800; font-size: 12px; color: #ffffff; }
.tmsDWGatePanelCountdown{ margin-top: 4px; font-weight: 1000; font-size: 22px; letter-spacing: 0.5px; color: #ffffff; }
.tmsDWGatePanelNote{ margin-top: 6px; font-weight: 800; font-size: 12px; color: #ffffff; }

/* Warning sign overlay (navy/Columbia/white) — used for rule violations */
.tmsDWWarnOverlay{
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(0, 10, 20, 0.35);
	backdrop-filter: blur(4px);
}
.tmsDWWarnOverlay.show{ display:flex; }
.tmsDWWarnCard{
	width: min(560px, 96vw);
	border-radius: 18px;
	padding: 18px 16px;
	background: linear-gradient(180deg, rgba(0,35,70,0.92), rgba(0,20,40,0.92));
	border: 2px solid rgba(196,216,245,0.55);
	box-shadow: 0 18px 44px rgba(0,0,0,0.35);
	color: #fff;
}
.tmsDWWarnTitle{ font-size: 20px; font-weight: 1000; color: rgba(196,216,245,0.98); }
.tmsDWWarnBody{ margin-top: 10px; font-size: 14px; font-weight: 800; line-height: 1.35; color: rgba(255,255,255,0.95); }
.tmsDWWarnBtn{
	margin-top: 14px;
	width: 100%;
	border: 0;
	border-radius: 14px;
	padding: 12px 12px;
	font-weight: 1000;
	background: rgba(196,216,245,0.95);
	color: rgba(0,20,40,0.95);
	cursor: pointer;
}

/* Counter row spacing */
.tmsDWRow3b{ margin-bottom: 2px; }

/* === Daily Work: lock row-3 panels to identical box size + remove dead space below === */
.tmsDWRow3{ align-items: stretch; }
/* Do NOT force a minimum height; content should determine height (removes bottom dead space). */
.tmsDWRow3 > *{ min-height: 0; }

#daily.card{ padding-bottom: 10px !important; }
#daily .tmsDailyWorkDetails{ padding-bottom: 8px; }
#daily .tmsDailyWorkWrap{ margin-top: 8px; }

.tmsDWMeta{
  font-size: 13px;
  font-size: 12px;
  opacity: 0.85;
  font-weight: 800;
}
.tmsDWSubmit{
  font-size: 16px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  background: rgba(40,200,90,0.90);
  color: #0b1b10;
}
.tmsDWSubmit:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}

/* Daily Work: submit button "live" lightning effect when window is open */
.tmsDWSubmitLive{
  position: relative;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.20), 0 10px 22px rgba(0,0,0,0.22);
  animation: tmsDwPulse 1.2s ease-in-out infinite;
}
@keyframes tmsDwPulse{
  0%   { transform: translateY(0); filter: brightness(1.0); }
  50%  { transform: translateY(-1px); filter: brightness(1.08); }
  100% { transform: translateY(0); filter: brightness(1.0); }
}

/* Daily Work: centered "submissions closed" overlay */
.tmsDWGateOverlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  background: rgba(0,0,0,0.35);
  padding: 14px;
}
.tmsDWGateOverlay.show{ display: flex; }
.tmsDWGateCard{
  width: min(560px, 92vw);
  border-radius: 18px;
  padding: 16px 16px 14px;
  border: 2px solid rgba(110,193,228,0.55);
  background: rgba(0, 43, 46, 0.96);
  color: #fff;
  box-shadow: 0 18px 46px rgba(0,0,0,0.35);
  text-align: center;
}
.tmsDWGateTitle{
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: 0.2px;
  color: var(--columbia);
}
.tmsDWGateSub{
  margin-top: 6px;
  font-weight: 900;
  opacity: 0.95;
}
.tmsDWGateCountdown{
  margin-top: 10px;
  font-size: 46px;
  font-weight: 1000;
  letter-spacing: 1px;
  color: #fff;
}
.tmsDWGateNote{
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  opacity: 0.92;
  color: rgba(255,255,255,0.92);
}

@media (max-width: 900px){
  .tmsDWRow{ grid-template-columns: 1fr; }
}
/* Collapsible Vocabulary docked inside Daily Work panel */
.tmsDWVocabDock{ margin: 10px 0 2px; }
.tmsVocabDetails{
  margin-top: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
}
.tmsVocabSummary{
  color: var(--columbia);
  cursor: pointer;
  font-weight: 900;
    list-style: none;
  outline: none;
}
.tmsVocabSummary::-webkit-details-marker{ display:none; }
.tmsVocabSummary::after{
  content: "▸";
  margin-left: 10px;
  opacity: 0.85;
}
.tmsVocabDetails[open] .tmsVocabSummary::after{ content: "▾"; }
.tmsVocabDetails #vocabBody{
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.14);
}


.tmsDailyObjectiveDetails{ margin-bottom: 10px; }
.tmsDailyObjectiveSummary{ cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-radius:14px; background: rgba(0,0,0,0.20); border:1px solid rgba(255,255,255,0.10); }
.tmsDailyObjectiveSummaryTitle{ font-weight: 900; color: var(--columbia); }
.tmsDailyObjectiveInner{ padding-top: 10px; }
.tmsDailyObjectiveDetails summary::-webkit-details-marker{display:none;}


/* ===== Daily Work UI fixes (v47d) ===== */
.tmsDailyWorkMsg:empty{ display:none; } /* remove empty pill bar */
.tmsDWDropTitle, .tmsDWDropHint, .tmsDWMeta{ color: rgba(255,255,255,0.95); }
.tmsDWDropHint{ color: rgba(255,255,255,0.82); }
.tmsDWMeta{ font-weight:700; }

.tmsDWVocabDock{ margin: 12px 0 10px; } /* add normal spacing above/below (fix yellow line tightness) */
.tmsDWDrop{ margin-top: 10px; } /* spacing between vocab and upload */


/* Keep file pills + thumbnails INSIDE the drop zone so the panel height matches writing */
.tmsDWDrop .tmsDWFileList{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  margin: 0;
  justify-content: center;
}
.tmsDWDrop .tmsDWPreview{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 58px;
  z-index: 3;
  margin: 0;
  justify-content: center;
  pointer-events: none;
}

.tmsDWPreview{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 8px 0 10px;
}
.tmsDWPreviewImg{
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
}

/* Make details collapse controls (caret-only, anchored close to labels) */
.tmsDailyWorkSummary,
.tmsDailyObjectiveSummary,
.tmsVocabSummary{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  justify-content:flex-start;
}
.tmsDailyWorkSummary::-webkit-details-marker,
.tmsDailyObjectiveSummary::-webkit-details-marker,
.tmsVocabSummary::-webkit-details-marker{ display:none; }

.tmsDailyWorkSummary::after,
.tmsDailyObjectiveSummary::after,
.tmsVocabSummary::after{
  content:"▸";
  margin-left: 10px;
  font-size: 34px;
  font-weight: 1000;
  line-height: 1;
  color: currentColor;
  background: transparent;
  border: 0;
  box-shadow: none;
  width:auto;
  height:auto;
  transform: none;
  opacity: 0.95;
}

details[open] > .tmsDailyWorkSummary::after,
details[open] > .tmsDailyObjectiveSummary::after,
details[open] > .tmsVocabSummary::after{
  content:"▾";
}

/* Whole-card collapse for Daily Learning Objective (caret sits next to label) */
.tmsDailyCardDetails{ width:100%; }
.tmsDailyCardSummary{ list-style:none; cursor:pointer; }
.tmsDailyCardSummary::-webkit-details-marker{ display:none; }

/* Ensure the existing header layout stays intact */
.tmsDailyCardSummary .cardHd{ display:flex; align-items:center; gap:12px; }
.tmsDailyCardSummary .cardHd h3{ display:flex; align-items:center; gap:10px; }

.tmsDailyCardDetails .tmsCaret{ display:inline-block; }
.tmsDailyCardDetails .tmsCaret::before{
  content:"▸";
  font-size: 34px;
  font-weight: 1000;
  line-height: 1;
  color: currentColor;
  opacity: 0.95;
}
details[open] > .tmsDailyCardSummary .tmsCaret::before{ content:"▾"; }

/* ===== PATCH v47l: Gimkit padding + unified thumbscroll colors + remove Ask Geppetto tile ===== */

/* 1) Remove Ask Geppetto tile entirely (UI). Wiring can remain for fallback. */
.askGeppettoCard,
.askGeppettoInner,
.askGeppettoBtn{
  display:none !important;
}

/* 2) Normalize Gimkit card padding (match other cards) */
.gimkitCard{
  padding:14px 16px 16px !important;
  box-sizing:border-box;
}
.gimkitCard .gimkitTop{ margin:0 0 10px 0; }
.gimkitCard .gimkitNote{ margin:0 0 12px 0; }
.gimkitCard .gimkitScroller{ margin:0 !important; }

/* 3) Thumbscrolls: conspicuous Columbia→Navy gradient, consistent across scrollers */
:root{
  --tmsThumbGrad: linear-gradient(90deg, var(--columbia), rgba(126,200,255,.95), rgba(79,134,198,.95), var(--navy));
  --tmsThumbGlow: 0 0 0 3px rgba(126,200,255,.18), 0 10px 24px rgba(0,0,0,.25);
}
.daTop .thumbRow::-webkit-scrollbar-thumb,
.daTop .rail::-webkit-scrollbar-thumb,
.gimkitScroller .gimTrack::-webkit-scrollbar-thumb,
#thumbRow::-webkit-scrollbar-thumb{
  background: var(--tmsThumbGrad) !important;
  box-shadow: var(--tmsThumbGlow) !important;
  border-radius:999px !important;
  border:2px solid rgba(255,255,255,.25) !important;
}
.daTop .thumbRow::-webkit-scrollbar-track,
.daTop .rail::-webkit-scrollbar-track,
.gimkitScroller .gimTrack::-webkit-scrollbar-track,
#thumbRow::-webkit-scrollbar-track{
  background: rgba(255,255,255,.10) !important;
  border-radius:999px !important;
}

/* Firefox: make scrollbars visible and colored */
.daTop .thumbRow,
.daTop .rail,
.gimkitScroller .gimTrack,
#thumbRow{
  scrollbar-color: rgba(126,200,255,.85) rgba(255,255,255,.10);
}

/* 4) Drag-to-scroll should work even without thumbscroll: cursor affordance */
.daTop .thumbRow,
.daTop .rail,
.gimkitScroller .gimTrack{
  cursor: grab;
}
.daTop .thumbRow.dragging,
.daTop .rail.dragging,
.gimkitScroller .gimTrack.dragging{
  cursor: grabbing;
}

/* 5) Make Gimkit + Video Library areas equal-height when they are in the same row (safe/no-op if not) */
.gimkitCard,
.videoLibBox,
.videoLibraryCard{
  height:100%;
}


.videoLibBox{display:none !important;}


/* ===== Copilot tray (right drawer) ===== */
#copilotTray{
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 92vw);
  height: 100vh;
  background: rgba(10, 20, 35, 0.92);
  border-left: 1px solid rgba(255,255,255,.12);
  box-shadow: -18px 0 60px rgba(0,0,0,.55);
  z-index: 999999;
  transform: translateX(105%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}
#copilotTray.open{ transform: translateX(0); }

#copilotTray .trayTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 14px 10px;
}
#copilotTray .trayTitle{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-weight:900;
  letter-spacing:.2px;
  font-size:18px;
}
#copilotTray .trayTitle img{
  width:28px;
  height:28px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  padding:6px;
}
#copilotTray .trayBtns{
  display:flex;
  align-items:center;
  gap:10px;
}
#copilotTray .trayBtn{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(126,200,255,.18);
  color:#fff;
  font-weight:900;
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}
#copilotTray .trayBtn.secondary{
  background: rgba(255,255,255,.10);
}
#copilotTray .trayBody{
  flex:1;
  min-height:0;
  padding: 0 14px 14px;
}
#copilotTray iframe{
  width:100%;
  height:100%;
  border:0;
  border-radius: 18px;
  background:#fff;
}

#copilotTrayBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
#copilotTrayBackdrop.open{
  opacity: 1;
  pointer-events: auto;
}

/* ===== 2x2 grid: Row 2 equal height, Row 1 shrink-wrap ===== */
.heroGrid .gimkitCard,
.heroGrid .videoLibraryCard{
  align-self: stretch;
  height: 100%;
}

/* =============================================
   ROW2_CARD_HEADER_SPACING_V75
   Fix: Video Resources card had extra space caused by
   default <p> margins; Gimkit did not.
   Make spacing consistent (Row 2 only).
   ============================================= */

/* Row-2 headers MUST be pixel-identical (Title → Lead/Meta gap).
   Gimkit is the master rhythm. Video Resources is forced to match. */

/* Video Resources: match Gimkit Title → Meta gap (measured to be +7px vs prior) */
.heroGrid .videoLibraryCard .videoLibLead{
  margin: 13px 0 14px;
  color: rgba(255,255,255,.80);
  font-size: 13px;
  line-height: 1.25;
}

/* Gimkit: add the same "below-title" breathing room */
.heroGrid .gimkitCard .gimkitHead{
  margin-bottom: 14px;
}

/* Keep titles tight (avoid stacking invisible margins) */
.heroGrid .videoLibraryCard .h2,
.heroGrid .gimkitCard .gimkitTitle{
  margin: 0;
}

/* =============================================
   ROW2_CARD_HEADER_ALIGNMENT_V78
   Goal: Make Row-2 card headers align consistently (title baseline,
   internal rhythm) without touching the TOP cards.
   Scope: ONLY the Row-2 hero grid cards (Video Resources + Gimkit).
   ============================================= */

/* Video Resources: remove internal gap bias + match title typography */
.heroGrid .videoLibraryCard .vlInner{ gap: 0; }
.heroGrid .videoLibraryCard .h2{
  font-size: var(--H_SECTION, 22px);
  font-weight: 1000;
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--columbia);
}

/* Gimkit: keep title baseline/typography consistent with Video Resources */
.heroGrid .gimkitCard .gimkitTitle{
  font-size: var(--H_SECTION, 22px);
  font-weight: 1000;
  line-height: 1.15;
  letter-spacing: .2px;
}

/* Copilot tile: remove inner padding so white fills tile */
.copilotTile{
  padding: 0 !important;
}
.copilotTile .copilot-wordmark{
  max-height: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* stretch white canvas to tile */
}

body.noScroll{ overflow:hidden !important; }


/* GAP_NORMALIZE_V67 (Row1→Row2 matches Row2→Row3) */
.daTop{
  display:flex;
  flex-direction:column;
  gap:18px;
}
/* Kill any legacy margins that can sneak in between rows */
.daTop > *{ margin-top:0 !important; margin-bottom:0 !important; }

/* Nudge: top row (heroGrid) had ~2px of extra perceived space vs the next gaps */
.daTop .heroGrid{ margin-bottom:-2px !important; }

/* Keep row2 content centered inside its own tile */
.daTop .gimkitStack{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}
/* END GAP_NORMALIZE_V67 */

/* ===== Daily Work Row 3: Writing + Image side-by-side ===== */
.tmsDWRow3{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

/* ALIGN_LOCK_V106: remove legacy margins that can push the right panel down */
.tmsDWRow3 .tmsDWDrop{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.tmsDWRow3 .tmsDWWriteBox{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Space between Vocabulary dock and row-3 should be owned by the row itself, not one side */
.tmsDWRow3{ margin-top: 10px; }

/*
  Daily Work Row-3 sizing
  USER REQUIREMENT: remove the visible "dead space" at the bottom of the card.
  We therefore do NOT force a fixed box height; the writing + drop areas size to content.
*/
:root{ --tmsDWBoxH: auto; }

.tmsDWColLeft,
.tmsDWColRight{
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tmsDWWriteBox{
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tmsDWWriteBox .tmsDWTextarea{
  flex: 0 0 auto;
  width: 100%;
  min-height: 180px;
  resize: none; /* prevent drift */
}

/* Counter sits below the locked box; it must NOT change the box height */
.tmsDWCharRow{
  margin-top: 8px;
}

/* Right side: drop zone is the locked box */
.tmsDWDrop{
  height: auto;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Keep file pills/thumbs from expanding the box height */
.tmsDWDrop .tmsDWFilePills{
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: auto;
}


/* Clipboard (mouse paste) button inside drop zone */
.tmsDWClipboardBtn{
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
}
.tmsDWClipboardBtn:hover{
  background: rgba(255,255,255,0.16);
}

/* Vocab table row highlight (visual only) */
.tmsVocabTable tr{ cursor: pointer; }
.tmsVocabTable tr.tmsVocabRowSelected > *{
  background: linear-gradient(90deg, rgba(110,180,255,0.90), rgba(10,25,60,0.90));
  color: rgba(255,255,255,0.98) !important;
}
.tmsVocabTable tr.tmsVocabRowSelected a{ color: rgba(255,255,255,0.98) !important; }
.tmsVocabTable tr.tmsVocabRowSelected > *{ border-color: rgba(255,255,255,0.18) !important; }

/* ===== Crop modal (Cropper.js) ===== */
.tmsCropOverlay{
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tmsCropModal{
  width: min(920px, 96vw);
  max-height: 92vh;
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tmsCropTitle{
  font-weight: 1000;
  letter-spacing: 0.2px;
  font-size: 16px;
  color: rgba(255,255,255,0.95);
}
.tmsCropHost{
  position: relative;
  width: 100%;
  height: min(62vh, 520px);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tmsCropImg{
  max-width: 100%;
  max-height: 100%;
  display: block;
}
.tmsCropBtns{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.tmsCropBtn{
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 950;
  cursor: pointer;
}
.tmsCropBtnGhost{
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}
.tmsCropBtnGhost:hover{ background: rgba(255,255,255,0.14); }
.tmsCropBtnPrimary{
  background: rgba(110,180,255,0.95);
  color: rgba(5,12,28,0.96);
}
.tmsCropBtnPrimary:hover{ background: rgba(110,180,255,1.0); }

/* Make crop box conspicuous: thick lines + big corner handles */
.tmsCropMode .cropper-view-box{
  outline: 4px solid #39f;
  outline-offset: 0px;
}
.tmsCropMode .cropper-line{
  background-color: #39f;
  opacity: 1;
}
.tmsCropMode .cropper-point{
  width: 22px;
  height: 22px;
  background-color: rgba(255,255,255,0.98);
  border: 4px solid #39f;
  opacity: 1;
  border-radius: 3px;
}
.tmsCropMode .cropper-point.point-se,
.tmsCropMode .cropper-point.point-ne,
.tmsCropMode .cropper-point.point-nw,
.tmsCropMode .cropper-point.point-sw{
  width: 28px;
  height: 28px;
}


/* Move corner handles OUTSIDE crop area so they don't block view */
.tmsCropMode .cropper-point.point-nw{ transform: translate(-55%, -55%); }
.tmsCropMode .cropper-point.point-ne{ transform: translate(55%, -55%); }
.tmsCropMode .cropper-point.point-sw{ transform: translate(-55%, 55%); }
.tmsCropMode .cropper-point.point-se{ transform: translate(55%, 55%); }

/* Keep Cropper container rounded inside modal */
.tmsCropOverlay .cropper-container{
  border-radius: 14px;
}

.toolBadge.starGold{border-color:rgba(255,215,0,.55);background:rgba(255,215,0,.14);color:#ffffff;text-shadow:0 1px 0 rgba(0,0,0,.25)}
.toolBadge.starSilver{border-color:rgba(192,192,192,.55);background:rgba(192,192,192,.14);color:#ffffff;text-shadow:0 1px 0 rgba(0,0,0,.25)}
