/* FL Buddy 7 · Phase 2A · Schülerakte */
@media (min-width:761px){
  body.flb7-workspace #fullStudentRecordModal.student-record-backdrop{inset:112px 18px 18px 274px!important;background:transparent!important;backdrop-filter:none!important;padding:0!important;place-items:stretch!important;z-index:48!important}
  body.flb7-workspace #fullStudentRecordModal.student-record-backdrop.show{display:block!important}
  body.flb7-workspace #fullStudentRecordModal .student-record-modal{width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;border:1px solid var(--flb-light-outline, rgba(83,207,193,.22))!important;border-radius:18px!important;background:linear-gradient(180deg,var(--flb-light-surface, #092a32) 0%,var(--flb-light-surface, #071f26) 100%)!important;color:var(--flb-light-ink, #eef9f8)!important;box-shadow:0 24px 70px rgba(0,0,0,.22)!important;padding:0!important;overflow:auto!important;zoom:1!important}
  body.flb7-workspace #fullStudentRecordModal .drawer-head{position:sticky!important;top:0!important;z-index:8!important;padding:18px 22px 12px!important;background:var(--flb-light-surface, rgba(7,31,38,.96))!important;border-bottom:1px solid var(--flb-light-outline, rgba(115,201,191,.14))!important;backdrop-filter:blur(12px)}
  body.flb7-workspace #fullStudentRecordModal .drawer-head .section-label{color:var(--flb-light-accent-ink, #55d8c9)!important}
  body.flb7-workspace #fullStudentRecordModal .drawer-head h2{font-size:24px!important;color:var(--flb-light-ink, #f7fbfb)!important;margin-top:4px!important}
  body.flb7-workspace #fullStudentRecordModal .record-head-actions{display:flex;gap:8px;align-items:center}
  body.flb7-workspace #fullStudentRecordModal .record-head-actions button{border-radius:10px!important}
  body.flb7-workspace #fullStudentRecordModal .record-hero{margin:18px 22px 0!important;padding:20px!important;border:1px solid var(--flb-light-outline, rgba(108,202,192,.16))!important;border-radius:16px!important;background:linear-gradient(135deg,var(--flb-light-raised, rgba(19,68,77,.9)),var(--flb-light-surface, rgba(9,41,49,.92)))!important;display:grid!important;grid-template-columns:auto minmax(220px,1fr) auto!important;align-items:center!important;gap:16px!important}
  body.flb7-workspace #fullStudentRecordModal .record-hero .large-student{width:74px!important;height:74px!important;border:2px solid var(--flb-light-outline, rgba(83,216,201,.45))!important;font-size:19px!important}
  body.flb7-workspace #fullStudentRecordModal .record-hero strong{font-size:23px!important;color:var(--flb-light-ink, #fff)!important}
  body.flb7-workspace #fullStudentRecordModal .record-hero span,body.flb7-workspace #fullStudentRecordModal .record-hero small{color:var(--flb-light-muted, #a8c6c8)!important;margin-top:5px!important}
  body.flb7-workspace #fullStudentRecordModal .record-status{justify-self:end!important;background:var(--flb-light-raised, #103f39)!important;color:var(--flb-light-accent-ink, #9af0d9)!important;border:1px solid var(--flb-light-outline, rgba(87,221,190,.25))!important;padding:8px 12px!important;border-radius:999px!important}
  body.flb7-workspace #fullStudentRecordModal .record-tabs{position:sticky!important;top:73px!important;z-index:7!important;margin:14px 22px 0!important;padding:0!important;background:var(--flb-light-surface, #08262e)!important;border:1px solid var(--flb-light-outline, rgba(107,199,190,.14))!important;border-radius:13px!important;overflow:auto!important;display:flex!important;gap:0!important;box-shadow:0 10px 24px rgba(0,0,0,.12)}
  body.flb7-workspace #fullStudentRecordModal .record-tab{flex:0 0 auto!important;padding:13px 18px!important;border:0!important;border-right:1px solid var(--flb-light-outline, rgba(107,199,190,.1))!important;background:transparent!important;color:var(--flb-light-muted, #a8c4c6)!important;font-weight:800!important}
  body.flb7-workspace #fullStudentRecordModal .record-tab.active{background:linear-gradient(180deg,var(--flb-light-teal-soft, #0e8f91),var(--flb-light-teal-soft, #08777e))!important;color:var(--flb-light-ink, white)!important;box-shadow:inset 0 -2px #62e2d1!important}
  body.flb7-workspace #fullStudentRecordModal #studentRecordForm{padding:16px 22px 22px!important}
  body.flb7-workspace #fullStudentRecordModal .record-panel{background:transparent!important}
  body.flb7-workspace #fullStudentRecordModal .record-card,body.flb7-workspace #fullStudentRecordModal .record-grid article,body.flb7-workspace #fullStudentRecordModal .training-progress-hero,body.flb7-workspace #fullStudentRecordModal .training-readiness-card{background:var(--flb-light-surface, #0b2a32)!important;border:1px solid var(--flb-light-outline, rgba(112,199,191,.14))!important;border-radius:15px!important;color:var(--flb-light-ink, #eaf6f5)!important;box-shadow:none!important}
  body.flb7-workspace #fullStudentRecordModal .record-grid article span,body.flb7-workspace #fullStudentRecordModal .record-card p,body.flb7-workspace #fullStudentRecordModal .record-card small{color:var(--flb-light-muted, #8fb0b3)!important}
  body.flb7-workspace #fullStudentRecordModal .record-grid article strong,body.flb7-workspace #fullStudentRecordModal .record-card h3{color:var(--flb-light-ink, #f5fbfa)!important}
  body.flb7-workspace #fullStudentRecordModal .progress{background:var(--flb-light-surface, #143941)!important}
  body.flb7-workspace #fullStudentRecordModal .progress i{background:linear-gradient(90deg,var(--flb-light-teal-strong, #10a8ad),var(--flb-light-teal-strong, #43d7c4))!important}
  body.flb7-workspace #fullStudentRecordModal .record-edit-grid label{color:var(--flb-light-muted, #a8c5c7)!important}
  body.flb7-workspace #fullStudentRecordModal .record-edit-grid input,body.flb7-workspace #fullStudentRecordModal .record-edit-grid select{background:var(--flb-light-surface, #071f26)!important;color:var(--flb-light-ink, #eef8f7)!important;border-color:var(--flb-light-line, #24505a)!important}
  body.flb7-workspace #fullStudentRecordModal .record-availability-day{background:var(--flb-light-surface, #0b2a32)!important;border-color:var(--flb-light-outline, rgba(112,199,191,.14))!important}
  body.flb7-workspace #fullStudentRecordModal .modal-actions{border-top:1px solid var(--flb-light-outline, rgba(112,199,191,.13))!important;padding-top:16px!important}
  body.flb7-workspace #fullStudentRecordModal .primary-button,body.flb7-workspace #fullStudentRecordModal .calendar-action.primary{background:linear-gradient(180deg,var(--flb-light-teal-strong, #13aeb0),var(--flb-light-teal-soft, #0b858c))!important;color:var(--flb-light-ink, white)!important;border:0!important}
  body.flb7-workspace #fullStudentRecordModal .secondary-button,body.flb7-workspace #fullStudentRecordModal .calendar-action.secondary{background:var(--flb-light-surface, #0b2a32)!important;color:var(--flb-light-ink, #d9efed)!important;border:1px solid var(--flb-light-line, #28515a)!important}
}
@media (max-width:760px){
 body.flb7-workspace .student-record-modal.mobile-record-sheet-open{background:linear-gradient(180deg,var(--flb-light-surface, #082932),var(--flb-light-surface, #061d24))!important;color:var(--flb-light-ink, #eff9f8)!important}
 body.flb7-workspace .student-record-modal.mobile-record-sheet-open .record-hero{background:var(--flb-light-surface, #0b2c34)!important;border:1px solid var(--flb-light-outline, rgba(91,207,194,.16))!important;border-radius:16px!important;margin:10px 12px!important}
 body.flb7-workspace .student-record-modal.mobile-record-sheet-open .record-tabs{background:var(--flb-light-surface, #071f26)!important;position:sticky!important;top:67px!important;z-index:8!important}
 body.flb7-workspace .student-record-modal.mobile-record-sheet-open .record-tab.active{background:var(--flb-light-teal-soft, #0b8d92)!important;color:var(--flb-light-ink, #fff)!important}
 body.flb7-workspace .student-record-modal.mobile-record-sheet-open .record-card,body.flb7-workspace .student-record-modal.mobile-record-sheet-open .record-grid article{background:var(--flb-light-surface, #0b2a32)!important;border-color:var(--flb-light-outline, rgba(112,199,191,.14))!important;color:var(--flb-light-ink, #eef8f7)!important}
}

/* Phase 2B: geschlossene Schülerakte darf den Workspace nie überlagern */
body.flb7-workspace #fullStudentRecordModal.student-record-backdrop:not(.show){display:none!important;pointer-events:none!important;}
body.flb7-workspace #fullStudentRecordModal .record-head-actions #closeFullStudentRecord{display:inline-grid!important;place-items:center!important;min-width:42px!important;min-height:42px!important;position:relative!important;z-index:20!important;cursor:pointer!important;}
body.flb7-workspace #fullStudentRecordModal .record-actions #closeFullStudentRecordBottom{min-height:44px!important;cursor:pointer!important;}
/* FL Buddy 7 Phase 2C – dashboard polish */
.flb7-student-record .record-hero{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;padding:22px 24px;margin:0 0 14px;border:1px solid var(--flb-light-outline, rgba(67,222,211,.16));border-radius:18px;background:linear-gradient(135deg,var(--flb-light-surface, rgba(16,37,48,.98)),var(--flb-light-surface, rgba(11,27,37,.96)));box-shadow:0 18px 44px rgba(0,0,0,.18)}
.flb7-student-record .record-hero strong{font-size:1.35rem;letter-spacing:-.02em}.flb7-student-record .record-hero span,.flb7-student-record .record-hero small{display:block;margin-top:3px}
.flb7-record-summary{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;margin:0 0 14px}.flb7-record-summary article{padding:13px 15px;border:1px solid var(--flb-light-line, rgba(148,163,184,.13));border-radius:14px;background:var(--flb-light-surface, rgba(15,32,43,.82))}.flb7-record-summary span{display:block;color:var(--flb-light-muted, #8da1ad);font-size:.74rem;text-transform:uppercase;letter-spacing:.06em}.flb7-record-summary strong{display:block;margin-top:5px;color:var(--flb-light-ink, #f1f7f8);font-size:.98rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.flb7-record-summary .positive{color:var(--flb-light-accent-ink, #43ded3)}
.flb7-record-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.flb7-record-actions button{min-height:38px;border-radius:10px}.flb7-record-actions .primary-button{box-shadow:0 8px 20px rgba(45,212,191,.12)}
.flb7-student-record .record-tabs{position:sticky;top:0;z-index:3;padding:7px;background:var(--flb-light-surface, #0b1b25);border:1px solid var(--flb-light-line, rgba(148,163,184,.12));border-radius:13px;overflow-x:auto;scrollbar-width:thin}.flb7-student-record .record-tab{white-space:nowrap;border-radius:9px}.flb7-student-record .record-tab.active{background:var(--flb-light-teal-soft, rgba(45,212,191,.12));color:var(--flb-light-accent-ink, #59e3d7);box-shadow:inset 0 0 0 1px rgba(45,212,191,.2)}
.flb7-student-record .record-panel{padding-top:16px}.flb7-student-record .record-card,.flb7-student-record .record-grid article{border-color:var(--flb-light-line, rgba(148,163,184,.13));background:var(--flb-light-surface, rgba(13,30,40,.74));border-radius:14px}
@media(max-width:900px){.flb7-record-summary{grid-template-columns:repeat(2,1fr)}.flb7-student-record .record-hero{grid-template-columns:auto 1fr}.flb7-student-record .record-status{grid-column:1/-1;justify-self:start}}
@media(max-width:560px){.flb7-record-summary{grid-template-columns:1fr 1fr}.flb7-record-summary article{padding:11px}.flb7-record-actions{display:grid;grid-template-columns:1fr 1fr}.flb7-record-actions button{width:100%}.flb7-student-record .record-hero{padding:16px}}
