
.home-context-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.home-context-grid section,.profile-card,.quiz-catalog-card{background:white;border:1px solid #e9eaf4;border-radius:20px;padding:22px;box-shadow:0 8px 20px #1c365308}.home-context-grid h3{display:flex;align-items:center;gap:10px;color:#173c83;font-size:17px;margin:0 0 15px}.home-context-grid a,.home-context-grid button{display:flex;gap:8px;align-items:center;justify-content:space-between;width:100%;text-decoration:none;border:0;background:#f4f8ff;border-radius:12px;padding:10px;color:#2357a4;cursor:pointer;margin:7px 0;font:inherit;text-align:left}.home-context-grid section p{font-size:14px;line-height:1.55;color:#64758b}.home-context-grid section strong{display:block;margin-bottom:8px}.ongoing-lesson{display:flex;gap:12px;align-items:center;padding:14px 18px;border:1px solid #dee9fb;border-radius:15px;background:#f3f8ff}.ongoing-lesson span{flex:1}.ongoing-lesson a{display:inline-flex;align-items:center;gap:6px;color:#0957b0;font-weight:700}.quiz-catalog{display:grid;gap:12px}.quiz-catalog-card{display:flex;align-items:center;gap:16px}.quiz-catalog-card div{flex:1}.quiz-catalog-card h3{margin:0 0 4px;font-size:18px}.quiz-catalog-card p,.quiz-catalog-card small{color:#667b95;margin:0}.profile-card{max-width:900px;margin:20px 0}.profile-identity{display:flex;align-items:center;gap:18px}.profile-identity h2{font-size:24px;margin:0 0 6px}.profile-identity p{margin:0;color:#7d8ea5}.profile-avatar{width:76px;height:76px;border-radius:24px;display:grid;place-items:center;background:#e9f4ff;color:#2456b4;overflow:hidden}.profile-avatar img,.role-avatar img{width:100%;height:100%;object-fit:cover}.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:25px}.profile-stats div{background:#f5f8ff;border-radius:15px;padding:18px;display:grid;gap:8px}.profile-stats span{color:#687e98;font-size:13px}.profile-stats strong{font-size:25px;color:#123c86}.profile-footnote{margin-top:20px;color:#8190a7}.homework-entry{padding:15px;background:#f7faff;border-radius:14px}.homework-entry p{white-space:pre-wrap}.homework-entry a{color:#175fb7}.homework-entry small{display:block;margin-top:12px;color:#738299}
@media(max-width:950px){.home-context-grid{grid-template-columns:1fr}.quiz-catalog-card{flex-wrap:wrap}.quiz-catalog-card>.btn{margin-left:auto}}@media(max-width:530px){.profile-stats{grid-template-columns:1fr 1fr}.profile-stats div:last-child{grid-column:1/-1}.profile-identity h2{font-size:20px}.home-context-grid section{padding:15px}}

.detail-file-actions,.preview-file-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.detail-file-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;text-decoration:none}.detail-file-actions .detail-open{flex:1}.preview-file-actions{justify-content:flex-start}.preview-file-actions .btn{display:inline-flex;align-items:center;gap:8px;text-decoration:none}.profile-avatar img,.role-avatar img{display:block}


/* V4.9.1: icon geometry and profile entry. The old descendant
   :last-child selector gave the nested SVG an auto margin and shifted it. */
.home-quick-grid > a > .playful-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  line-height: 1;
  transform: none;
  vertical-align: middle;
}
.home-quick-grid > a > .playful-badge > .icon {
  display: block;
  position: static;
  flex: none;
  margin: 0 !important;
  width: 23px;
  height: 23px;
  transform: none;
  color: inherit;
  stroke-width: 1.9;
}
.home-quick-grid > a > .playful-badge::after {
  right: -6px;
  top: -7px;
  line-height: 1;
}
.home-quick-grid > a > svg:last-child {
  display: block;
  flex: none;
  margin-left: auto;
  align-self: center;
}
.home-quick-grid > a > div {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  min-width: 0;
}
.sidebar-bottom {text-decoration: none;cursor: pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.sidebar-bottom:hover {background:#f5f9ff;border-color:#c8dbf9;box-shadow:0 8px 20px #1d407716}
.sidebar-bottom:focus-visible {outline:2px solid #3576cc;outline-offset:3px}
@media (max-width:700px) {
  .home-quick-grid > a > .playful-badge {
    flex-basis:43px;width:43px;height:43px;min-width:43px;min-height:43px;
  }
  .home-quick-grid > a > svg:last-child {margin-left:0;align-self:auto}
}
