/* AEye Student Lesson Page v3.0 */
.aeye-app{--navy:#061633;--navy2:#073b68;--blue:#0a5be8;--line:#dfe4ec;--muted:#667085;--green:#2ea35f;--red:#cf2f2f;font-family:Inter,Arial,sans-serif;color:#0b1324;background:#f6f8fb;min-height:100vh;display:grid;grid-template-columns:265px 1fr;grid-template-rows:78px 1fr 64px;grid-template-areas:"top top" "side main" "foot foot"}
.aeye-app *{box-sizing:border-box}.aeye-app button,.aeye-app textarea{font:inherit}
.aeye-topbar{grid-area:top;background:linear-gradient(90deg,var(--navy),#03132e);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 24px;box-shadow:0 2px 12px rgba(0,0,0,.18);z-index:2}
.aeye-brand{width:245px;height:62px;display:flex;align-items:center}.aeye-brand-horizontal{max-width:225px;max-height:56px;object-fit:contain}.aeye-brand-shield{display:none;width:48px;height:48px;object-fit:contain}
.aeye-lesson-name{font-weight:600}.aeye-lesson-name span{margin:0 10px}.aeye-account{display:flex;gap:10px;align-items:center}.aeye-account small{display:block;color:#cbd5e1}.aeye-course-progress{display:flex;gap:8px;align-items:center;margin-right:12px;padding-right:18px;border-right:1px solid #33415b;font-size:12px}.aeye-avatar{width:43px;height:43px;border-radius:50%;background:#d8dce3;color:#27364c;display:grid;place-items:center;font-weight:700}
.aeye-sidebar{grid-area:side;background:linear-gradient(180deg,#073b68,#062b51);color:#fff;padding:30px 16px;display:flex;flex-direction:column}.aeye-sidebar nav{display:flex;flex-direction:column;gap:5px}.aeye-sidebar nav a{color:#fff;text-decoration:none;padding:13px 14px;border-radius:8px;display:flex;gap:14px;align-items:center;font-weight:500}.aeye-sidebar nav a:hover,.aeye-sidebar nav a.is-active{background:linear-gradient(90deg,#0b62ef,#0856cb)}
.aeye-progress-card{margin-top:auto;border:1px solid rgba(255,255,255,.28);border-radius:12px;padding:18px}.aeye-progress-card h3{font-size:15px;margin:0 0 14px}.aeye-ring{width:95px;height:95px;border-radius:50%;background:conic-gradient(#41d4c3 60%,rgba(255,255,255,.16) 0);display:grid;place-items:center;margin:0 auto 16px;position:relative}.aeye-ring:after{content:"";position:absolute;width:76px;height:76px;background:#0a3a65;border-radius:50%}.aeye-ring span{z-index:1;font-weight:700;text-align:center}.aeye-ring small{display:block;font-size:10px}.aeye-progress-card ol{list-style:none;padding:0;margin:0;display:grid;gap:10px;font-size:13px}.aeye-progress-card li{display:flex;justify-content:space-between}.aeye-progress-card .done b{color:#6edc78}.aeye-progress-card .current b{color:#2d7fff}
.aeye-main{grid-area:main;padding:22px;display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:18px}.aeye-lesson-card,.aeye-panel{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 8px rgba(16,24,40,.04)}.aeye-lesson-card{padding:22px}.aeye-heading-row{display:flex;justify-content:space-between;gap:20px}.aeye-back{color:var(--blue);text-decoration:none;font-weight:600}.aeye-heading-row h1{font-size:28px;margin:18px 0 8px}.aeye-heading-row p{margin:0;color:var(--muted)}.aeye-mission{background:#e9f6ec;color:#2e7d42;padding:7px 12px;border-radius:6px;font-size:13px;white-space:nowrap;height:max-content}
.aeye-responses{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:26px}.aeye-response{border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;min-height:420px}.aeye-response header{padding:15px 20px;display:flex;justify-content:space-between;font-weight:700}.aeye-response header div{display:flex;gap:10px;align-items:center}.aeye-response header span{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;color:#fff}.aeye-response-a header{background:#eaf7ee;color:#1f5d34}.aeye-response-a header span{background:#168a3f}.aeye-response-b header{background:#fff0f0;color:#8c1e1e}.aeye-response-b header span{background:#c92727}.aeye-response-copy{padding:22px;line-height:1.65;font-size:16px;flex:1}.aeye-response-copy p:first-child{font-size:17px;font-weight:500}.aeye-response footer{padding:18px 22px;font-size:12px;color:var(--muted)}.aeye-response footer a{color:#075dd9}
.aeye-info{border:1px solid var(--line);border-radius:10px;margin-top:24px;padding:16px 20px}.aeye-info h2{font-size:12px;margin:0 0 18px}.aeye-info>div{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.aeye-info p{margin:0}.aeye-info b,.aeye-info small{display:block}.aeye-info b{font-size:12px}.aeye-info small{color:var(--muted);margin-top:5px}
.aeye-actions{border-top:1px solid var(--line);margin:26px -22px -22px;padding:20px 22px;display:flex;justify-content:space-between;gap:15px}.aeye-actions>div{display:flex;gap:14px}.aeye-primary,.aeye-secondary{padding:13px 18px;border-radius:8px;font-weight:600;cursor:pointer}.aeye-primary{background:var(--blue);border:1px solid var(--blue);color:#fff}.aeye-secondary{background:#fff;border:1px solid var(--line);color:#0b1324}.aeye-secondary:hover{background:#f9fafb}.aeye-primary:hover{filter:brightness(.95)}
.aeye-right{display:flex;flex-direction:column;gap:18px}.aeye-panel{padding:20px}.aeye-panel h2{font-size:15px;margin:0 0 18px;color:#2b146f}.aeye-panel p{line-height:1.55}.aeye-choice-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.aeye-choice{border:1px solid var(--line);background:#fff;border-radius:7px;padding:10px;cursor:pointer}.aeye-choice.is-selected{border-color:var(--blue);background:#edf4ff;color:#064fbf;font-weight:700}.aeye-response-input{width:100%;height:150px;border:1px solid #ccd3df;border-radius:8px;padding:14px;resize:vertical}.aeye-response-input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(10,91,232,.12)}.aeye-word-status{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin:8px 0 18px}.aeye-word-count{color:#b42318}.aeye-criteria{background:linear-gradient(135deg,#eef4fc,#f8fbff);padding:16px;border-radius:8px}.aeye-criteria h3{color:#123f97;font-size:13px;margin:0 0 12px}.aeye-criteria ul{padding-left:18px;margin:0;line-height:1.8;font-size:13px}
.aeye-steps{display:flex;align-items:flex-start}.aeye-steps span{width:32px;height:32px;border-radius:50%;border:1px solid #cfd6e2;display:grid;place-items:center;position:relative}.aeye-steps span small{position:absolute;top:39px;white-space:nowrap;color:#667085}.aeye-steps span.done{background:#6bb57f;color:#fff}.aeye-steps span.current{background:#1457c7;color:#fff}.aeye-steps i{height:1px;background:#ccd6e5;flex:1;margin:16px 8px 0}.aeye-feedback{border-left:4px solid var(--green)}.aeye-feedback h2{color:#176c38}
.aeye-footer{grid-area:foot;background:#fff;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 26px;font-size:12px;color:#596273}.aeye-toast{position:fixed;right:25px;bottom:25px;background:#101828;color:#fff;padding:13px 18px;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.25);z-index:9999}
@media(max-width:1100px){.aeye-app{grid-template-columns:82px 1fr}.aeye-sidebar{padding:22px 10px}.aeye-sidebar nav a span,.aeye-progress-card{display:none}.aeye-sidebar nav a{justify-content:center;font-size:20px}.aeye-main{grid-template-columns:1fr}.aeye-right{display:grid;grid-template-columns:1fr 1fr}.aeye-your-response{grid-row:span 2}.aeye-lesson-name{display:none}}
@media(max-width:760px){.aeye-app{display:block}.aeye-topbar{padding:12px 14px;min-height:68px}.aeye-brand{width:auto}.aeye-brand-horizontal{display:none}.aeye-brand-shield{display:block}.aeye-course-progress,.aeye-sidebar{display:none}.aeye-main{display:block;padding:12px}.aeye-lesson-card{padding:16px}.aeye-responses{grid-template-columns:1fr}.aeye-info>div{grid-template-columns:1fr 1fr}.aeye-actions{flex-direction:column}.aeye-actions>div{flex-direction:column}.aeye-right{display:flex;margin-top:14px}.aeye-footer{padding:18px;display:grid;gap:10px;text-align:center}.aeye-account strong{font-size:12px}}


/* ===== AEye Classroom v1.1 corrections ===== */

/* Use the approved shield icon in the classroom header. */
.aeye-brand{
  width:72px;
  min-width:72px;
  height:62px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.aeye-brand-horizontal{display:none!important}
.aeye-brand-shield{
  display:block!important;
  width:46px;
  height:46px;
  object-fit:contain;
}

/* Keep the lesson card sized to its content instead of stretching. */
.aeye-main{
  align-items:start;
}
.aeye-lesson-card,
.aeye-right{
  align-self:start;
}
.aeye-lesson-card{
  height:auto!important;
  min-height:0!important;
}

/* Reduce unnecessary response-card height while preserving readability. */
.aeye-response{
  min-height:340px;
}

/* Equal-width action buttons; prevent clipping beneath the right column. */
.aeye-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}
.aeye-actions>div{
  display:contents;
}
.aeye-actions .aeye-primary,
.aeye-actions .aeye-secondary{
  width:100%;
  min-width:0;
  white-space:normal;
  text-align:center;
}

/* Allow columns to shrink correctly within the CSS grid. */
.aeye-main,
.aeye-lesson-card,
.aeye-right,
.aeye-actions{
  min-width:0;
}

@media(max-width:760px){
  .aeye-brand{
    width:auto;
    min-width:0;
  }
  .aeye-actions{
    grid-template-columns:1fr;
  }
}

.aeye-prompt{margin-top:14px;padding:12px 14px;border-left:4px solid var(--blue);background:#f3f7ff;border-radius:6px;line-height:1.5}.aeye-lesson-error{margin:20px;padding:16px;border:1px solid #f1b5b5;background:#fff1f1;border-radius:8px;color:#8b1e1e}
