:root {
  --ink:#201f2e;
  --muted:#777687;
  --line:#e9e8ef;
  --purple:#6046e8;
  --purple-dark:#4f35d0;
  --canvas:#f5f5f8;
  --green:#267f61;
  --golos:'Golos Text',sans-serif;
  --manrope:'Manrope',sans-serif;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
}
body {
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font:15px var(--golos);
}
a {
  color:inherit;
  text-decoration:none;
}
button,input,textarea,select {
  font:inherit;
}
button {
  cursor:pointer;
}
.app {
  min-height:100vh;
}
.sidebar {
  width:244px;
  position:fixed;
  inset:0 auto 0 0;
  background:#fff;
  border-right:1px solid var(--line);
  padding:26px 18px 18px;
  display:flex;
  flex-direction:column;
  z-index:2;
}
.brand {
  font:800 17px var(--manrope);
  letter-spacing:-.8px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 8px;
}
.brand-mark {
  width:27px;
  height:27px;
  border-radius:9px;
  background:var(--purple);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font:800 21px var(--manrope);
  padding-bottom:2px;
}
.side-label,.eyebrow {
  font-size:10px;
  letter-spacing:1.3px;
  font-weight:700;
  color:#a1a0ad;
}
.side-label {
  margin:51px 10px 14px;
}
nav {
  display:grid;
  gap:5px;
}
.nav-item {
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px;
  border-radius:10px;
  color:#777686;
  font-weight:500;
  font-size:14px;
}
.nav-item>span {
  font-size:17px;
  width:21px;
  text-align:center;
  color:#858394;
}
.nav-item.active {
  color:#523cd1;
  background:#f1efff;
  font-weight:600;
}
.nav-item.active>span {
  color:#6246ea;
}
.count {
  font-style:normal;
  margin-left:auto;
  border-radius:15px;
  background:#edeaff;
  color:#6046e3;
  font-size:10px;
  padding:3px 7px;
}
.sidebar-bottom {
  margin-top:auto;
}
.help-card {
  background:#f7f5ff;
  border-radius:14px;
  padding:16px;
  margin:0 2px 20px;
}
.help-icon {
  display:block;
  font-size:18px;
  color:#7358eb;
  margin-bottom:9px;
}
.help-card b {
  font-size:13px;
}
.help-card p {
  font-size:11px;
  line-height:1.55;
  color:#858394;
  margin:6px 0 10px;
}
.help-card a,.quiet-link {
  font-size:12px;
  font-weight:600;
  color:#6048df;
}
.profile-mini {
  display:flex;
  align-items:center;
  gap:10px;
  border-top:1px solid var(--line);
  padding:15px 2px 0;
}
.avatar {
  width:37px;
  height:37px;
  flex:none;
  border-radius:13px;
  background:#f1e6da;
  color:#835d48;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}
.profile-mini b,.profile-mini small {
  display:block;
}
.profile-mini b {
  font-size:12px;
}
.profile-mini small {
  font-size:10px;
  color:var(--muted);
  margin-top:3px;
}
.profile-mini form {
  margin-left:auto;
}
.icon-button {
  background:none;
  border:0;
  color:#9796a5;
  font-size:19px;
  padding:4px;
}
.main {
  margin-left:244px;
  min-height:100vh;
}
.topbar {
  height:66px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 42px;
}
.breadcrumbs {
  font-size:12px;
  color:#777686;
}
.breadcrumbs span {
  padding:0 8px;
  color:#c2c0cb;
}
.top-actions {
  display:flex;
  align-items:center;
  gap:18px;
}
.today {
  font-size:11px;
  color:#9695a3;
}
.avatar.small {
  width:31px;
  height:31px;
  border-radius:11px;
  font-size:12px;
}
.content {
  max-width:1430px;
  margin:auto;
  padding:32px 42px 24px;
}
.welcome {
  min-height:220px;
  background:#efedff;
  border-radius:18px;
  padding:31px 38px;
  display:flex;
  position:relative;
  overflow:hidden;
  align-items:center;
}
.eyebrow {
  color:#8174d2;
}
.welcome h1 {
  font:700 30px var(--manrope);
  letter-spacing:-1.2px;
  margin:10px 0 8px;
}
.welcome p {
  color:#757387;
  font-size:13px;
  margin:0 0 22px;
}
.button {
  border:0;
  border-radius:9px;
  padding:11px 15px;
  display:inline-flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:600;
  transition:.15s;
}
.button.primary {
  background:var(--purple);
  color:#fff;
  box-shadow:0 5px 12px #6246ea24;
}
.button.primary:hover {
  background:var(--purple-dark);
  transform:translateY(-1px);
}
.button.outline {
  background:#fff;
  border:1px solid #e7e5ef;
  color:#5942db;
}
.button.full {
  width:100%;
}
.welcome-art {
  position:absolute;
  right:5%;
  top:0;
  width:36%;
  height:100%;
  overflow:hidden;
}
.art-orbit {
  position:absolute;
  width:190px;
  height:190px;
  right:20px;
  top:25px;
  border-radius:50%;
  border:1px solid #d5cef9;
  box-shadow:0 0 0 23px #e6e2ff,0 0 0 48px #ebe8ff;
}
.art-code {
  position:absolute;
  right:72px;
  top:76px;
  background:#fff;
  padding:15px 19px;
  border-radius:11px;
  box-shadow:0 10px 35px #4b389b18;
  font:12px/1.7 monospace;
  color:#4a435f;
  transform:rotate(-4deg);
}
.art-code span {
  color:#8b62da;
}
.art-code b {
  color:#f19656;
}
.art-code i {
  font-style:normal;
  color:#4a9e80;
}
.float-chip {
  position:absolute;
  z-index:1;
  top:22px;
  right:8px;
  background:white;
  border-radius:9px;
  padding:9px 12px;
  font-size:10px;
  line-height:1.5;
  color:#696486;
  box-shadow:0 5px 18px #534a8b12;
  transform:rotate(4deg);
}
.stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
  margin:18px 0;
}
.stat-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  padding:17px 18px;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:87px;
}
.stat-icon {
  width:35px;
  height:35px;
  border-radius:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:17px;
  flex:none;
}
.lilac {
  background:#f0edff;
  color:#674de4;
}
.peach {
  background:#fff0e8;
  color:#de8b58;
}
.mint {
  background:#e9f6ef;
  color:#42936c;
}
.stat-card small {
  display:block;
  font-size:9px;
  font-weight:700;
  letter-spacing:.7px;
  color:#a09eab;
  margin-bottom:4px;
}
.stat-card strong {
  font:700 19px var(--manrope);
}
.stat-card strong em {
  font:500 11px var(--golos);
  color:#888695;
}
.stat-note {
  font-size:10px;
  color:#9e9daa;
  margin-left:auto;
  align-self:flex-end;
  padding-bottom:3px;
}
.stat-date {
  font-size:15px!important;
}
.section-grid {
  display:grid;
  grid-template-columns:1.18fr .82fr;
  gap:16px;
  align-items:start;
}
.panel {
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:20px 21px;
}
.panel-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:17px;
}
.panel-head h2 {
  font:700 17px var(--manrope);
  letter-spacing:-.4px;
  margin:6px 0 4px;
}
.panel-head p {
  font-size:11px;
  color:#92919e;
  margin:0;
}
.badge {
  white-space:nowrap;
  background:#f1efff;
  color:#654be1;
  border-radius:20px;
  font-size:10px;
  font-weight:600;
  padding:6px 9px;
}
.subhead {
  font-size:9px;
  font-weight:700;
  letter-spacing:1px;
  color:#aaa9b4;
  margin:18px 0 6px;
}
.slot-list {
  display:grid;
}
.slot-row {
  display:flex;
  align-items:center;
  gap:11px;
  border-bottom:1px solid #f2f1f5;
  padding:10px 0;
}
.slot-row:last-child {
  border-bottom:0;
}
.date-square {
  width:39px;
  height:41px;
  border-radius:10px;
  background:#f4f2ff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  flex:none;
  color:#644be0;
}
.date-square b {
  font:700 14px var(--manrope);
}
.date-square small {
  font-size:8px;
  color:#9086ca;
}
.slot-info {
  min-width:0;
  flex:1;
}
.slot-info b,.slot-info small {
  display:block;
}
.slot-info b {
  font-size:11px;
  font-weight:600;
}
.slot-info small {
  font-size:10px;
  color:#a09eab;
  margin-top:4px;
}
.tag {
  font-size:9px;
  color:#5d4bd0;
  background:#f3f0ff;
  padding:5px 8px;
  border-radius:20px;
  white-space:nowrap;
}
.booked-tag {
  background:#eaf6ef;
  color:#3b9169;
}
.success-tag {
  background:#eaf6ef;
  color:#32875e;
}
.pending-tag {
  background:#fff3e7;
  color:#c98748;
}
.text-button {
  background:none;
  border:0;
  color:#9b9aa6;
  font-size:10px;
  padding:6px;
}
.small-button {
  padding:8px 9px;
  font-size:10px;
}
.empty-state {
  padding:18px 10px;
  text-align:center;
  color:#aaa9b4;
  font-size:11px;
  line-height:1.6;
  background:#fbfbfd;
  border-radius:10px;
}
.homework-panel {
  min-height:280px;
}
.task {
  border:1px solid #efedf4;
  border-radius:12px;
  padding:13px;
  margin-bottom:10px;
}
.task-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.task-icon {
  display:inline-flex;
  width:30px;
  height:30px;
  border-radius:9px;
  background:#fff0e8;
  color:#e39a63;
  align-items:center;
  justify-content:center;
}
.task h3 {
  font:700 13px var(--manrope);
  margin:11px 0 6px;
}
.task p,.note p,.admin-task p {
  font-size:11px;
  color:#848392;
  line-height:1.55;
  margin:0;
}
.due {
  font-size:10px;
  color:#a09eab;
  margin:10px 0;
}
.upload-form {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid #f1eff4;
  margin-top:12px;
  padding-top:11px;
}
.upload-form>span {
  font-size:9px;
  color:#aaa9b4;
}
.upload-button {
  font-size:10px;
  color:#6048de;
  cursor:pointer;
  font-weight:600;
}
.upload-button input {
  display:none;
}
.file-link {
  font-size:10px;
  color:#6149dd;
  font-weight:600;
}
.lower-grid {
  margin-top:16px;
}
.note {
  padding:13px 0;
  border-top:1px solid #f0eff3;
}
.note-date {
  font-size:9px;
  color:#a09eab;
  margin-bottom:5px;
}
.note h3 {
  font:700 12px var(--manrope);
  margin:0 0 5px;
}
.message-list {
  display:grid;
  gap:9px;
  max-height:190px;
  overflow:auto;
}
.message-bubble {
  background:#f7f6fb;
  border-radius:10px;
  padding:10px;
}
.message-bubble small {
  font-size:9px;
  color:#a09eab;
}
.message-bubble p {
  font-size:11px;
  line-height:1.5;
  margin:4px 0 0;
}
.message-form,.reply-form {
  display:flex;
  gap:7px;
  margin-top:12px;
}
.message-form input,.reply-form input {
  min-width:0;
  flex:1;
  border:1px solid #eeedf2;
  border-radius:9px;
  padding:10px;
  font-size:11px;
  outline:none;
}
.message-form input:focus,.reply-form input:focus,input:focus,textarea:focus,select:focus {
  border-color:#b8acf5;
}
.send-button {
  width:34px;
  height:34px;
  border:0;
  border-radius:9px;
  background:var(--purple);
  color:#fff;
  font-weight:700;
}
.muted {
  color:#9796a3;
  font-size:11px;
}
.footer {
  padding:26px 2px 8px;
  font:700 10px var(--manrope);
  color:#aaa9b4;
}
.footer span {
  font:400 10px var(--golos);
  float:right;
}
.student-list {
  display:grid;
}
.student-row {
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 7px;
  border-top:1px solid #f0eff3;
  border-radius:9px;
}
.student-row.selected,.student-row:hover {
  background:#f8f6ff;
}
.student-name {
  flex:1;
  min-width:0;
}
.student-name b,.student-name small {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.student-name b {
  font-size:11px;
}
.student-name small {
  font-size:9px;
  color:#9998a5;
  margin-top:4px;
}
.student-meta {
  display:grid;
  gap:4px;
  text-align:right;
  font-size:9px;
  color:#9998a5;
}
.arrow {
  color:#8b7ae4;
}
.slot-create {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.slot-create label,.admin-form label {
  font-size:10px;
  color:#858392;
}
.slot-create input,.slot-create select,.admin-form input,.admin-form textarea,.admin-form label input {
  width:100%;
  border:1px solid #eeedf2;
  background:#fff;
  border-radius:8px;
  padding:9px;
  margin-top:5px;
  font-size:10px;
  color:var(--ink);
}
.slot-create button {
  grid-column:1/-1;
}
.compact .slot-row {
  gap:8px;
}
.compact .slot-info b {
  font-size:10px;
}
.compact .date-square {
  width:34px;
  height:37px;
}
.student-work {
  margin-top:16px;
}
.submission-row {
  display:flex;
  align-items:center;
  gap:12px;
  border-top:1px solid #f0eff3;
  padding:12px 0;
}
.submission-info {
  flex:1;
}
.submission-info b,.submission-info small {
  display:block;
}
.submission-info b {
  font-size:11px;
}
.submission-info small {
  font-size:9px;
  color:#9a99a6;
  margin-top:4px;
}
.student-detail {
  margin-top:16px;
}
.student-detail-grid {
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:20px;
}
.student-detail-grid h3 {
  font:700 12px var(--manrope);
}
.admin-form {
  display:grid;
  gap:8px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.admin-form input,.admin-form textarea {
  margin:0;
}
.admin-form textarea {
  resize:vertical;
}
.admin-task {
  padding:10px 0;
  border-top:1px solid #f0eff3;
}
.admin-task p {
  margin:6px 0;
}
.student-work .panel-head {
  margin-bottom:4px;
}
.compact~.subhead {
  margin-top:13px;
}
/* Sign-in */.auth-shell {
  min-height:100vh;
  display:grid;
  grid-template-columns:1.04fr .96fr;
  background:white;
}
.auth-brand {
  background:#252238;
  color:white;
  padding:34px 8%;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.brand.light {
  color:#fff;
}
.brand.light .brand-mark {
  background:#7b63f0;
}
.brand-copy {
  margin:auto 0;
  position:relative;
  z-index:1;
}
.brand-copy .eyebrow {
  color:#a89de8;
}
.brand-copy h1 {
  font:700 clamp(38px,5vw,61px)/1.08 var(--manrope);
  letter-spacing:-2.8px;
  margin:18px 0;
}
.brand-copy p {
  font-size:14px;
  color:#b7b4c6;
}
.code-art {
  margin-top:62px;
  background:#302d45;
  border:1px solid #454159;
  border-radius:15px;
  padding:22px 25px;
  width:min(390px,90%);
  position:relative;
  color:#c9c5d6;
  box-shadow:0 25px 50px #17152266;
}
.code-art>span {
  color:#8273e4;
  font-size:10px;
}
.code-art pre {
  font:13px/1.9 monospace;
  margin:10px 0 0;
}
.code-art b {
  color:#e5a979;
  font-weight:400;
}
.code-art i {
  color:#96c6ad;
  font-style:normal;
}
.code-art strong {
  color:#aa9df3;
  font-weight:400;
}
.auth-foot {
  font-size:10px;
  color:#8f8b9f;
}
.auth-form-wrap {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
}
.auth-form {
  width:min(370px,100%);
}
.auth-form h2 {
  font:700 29px var(--manrope);
  letter-spacing:-1px;
  margin:10px 0 5px;
}
.auth-form>.muted {
  font-size:13px;
  margin:0 0 30px;
}
.auth-form form {
  display:grid;
  gap:17px;
}
.auth-form label {
  display:grid;
  gap:8px;
  font-size:11px;
  font-weight:600;
  color:#5d5b6c;
}
.auth-form input {
  width:100%;
  border:1px solid #e8e7ed;
  border-radius:9px;
  padding:13px 12px;
  outline:none;
  font-size:12px;
}
.auth-form input::placeholder {
  color:#b6b4c0;
}
.auth-form .button {
  margin-top:4px;
  padding:13px;
}
.auth-form .button span {
  margin-left:auto;
}
.switch {
  text-align:center;
  font-size:11px;
  color:#8b8998;
  margin:22px 0;
}
.switch a {
  color:#5f47df;
  font-weight:600;
}
.alert {
  background:#fff0ef;
  color:#bd5552;
  border-radius:8px;
  padding:10px;
  font-size:11px;
}
.auth-small {
  text-align:center;
  border-top:1px solid #f0eff3;
  padding-top:20px;
  color:#aaa9b4;
  font-size:10px;
  margin-top:45px;
}
@media(max-width:1100px) {
  .sidebar {
    width:210px;
  }
  .main {
    margin-left:210px;
  }
  .content {
    padding:26px 24px;
  }
  .topbar {
    padding:0 24px;
  }
  .section-grid {
    grid-template-columns:1fr 1fr;
  }
  .welcome-art {
    right:0;
    width:40%;
  }
  .student-detail-grid {
    grid-template-columns:1fr 1fr;
  }
  .chat-col {
    grid-column:1/-1;
  }
}
@media(max-width:800px) {
  .sidebar {
    width:65px;
    padding:20px 9px;
  }
  .brand {
    font-size:0;
    padding:0 9px;
  }
  .brand-mark {
    font-size:21px;
  }
  .side-label,.nav-item:not(.active) span,.nav-item {
    font-size:0;
  }
  .nav-item {
    justify-content:center;
    padding:12px 5px;
    position:relative;
  }
  .nav-item>span {
    font-size:17px;
  }
  .nav-item .count {
    position:absolute;
    right:0;
    top:0;
    font-size:8px;
    padding:2px 5px;
  }
  .help-card,.profile-mini>div:not(.avatar),.profile-mini form {
    display:none;
  }
  .profile-mini {
    justify-content:center;
  }
  .main {
    margin-left:65px;
  }
  .section-grid {
    grid-template-columns:1fr;
  }
  .welcome-art {
    opacity:.45;
    right:-60px;
    width:48%;
  }
  .welcome {
    padding:25px;
  }
  .content {
    padding:20px 15px;
  }
  .topbar {
    padding:0 15px;
  }
  .student-detail-grid {
    grid-template-columns:1fr;
  }
  .chat-col {
    grid-column:auto;
  }
  .auth-shell {
    grid-template-columns:1fr;
  }
  .auth-brand {
    min-height:300px;
    padding:25px;
  }
  .brand-copy {
    margin:35px 0;
  }
  .brand-copy h1 {
    font-size:38px;
  }
  .brand-copy p,.code-art,.auth-foot {
    display:none;
  }
  .auth-form-wrap {
    padding:40px 24px;
  }
  .stats {
    gap:8px;
  }
  .stat-card {
    padding:12px 9px;
    gap:7px;
    flex-wrap:wrap;
  }
  .stat-note {
    display:none;
  }
  .stat-card small {
    font-size:7px;
  }
  .stat-card strong {
    font-size:16px;
  }
  .stat-icon {
    width:29px;
    height:29px;
  }
  .submission-row {
    flex-wrap:wrap;
  }
  .submission-info {
    min-width:45%;
  }
}
@media(max-width:480px) {
  .welcome h1 {
    font-size:24px;
  }
  .welcome-art {
    right:-85px;
    opacity:.3;
  }
  .stats {
    grid-template-columns:1fr 1fr;
  }
  .stats .stat-card:last-child {
    grid-column:1/-1;
  }
  .stat-card {
    min-height:72px;
  }
  .slot-row {
    gap:7px;
  }
  .slot-info b {
    font-size:10px;
  }
  .text-button {
    font-size:9px;
    padding:4px;
  }
  .panel {
    padding:16px;
  }
  .top-actions .today {
    display:none;
  }
  .breadcrumbs {
    font-size:10px;
  }
}
/* Refined product layer */
body {
  -webkit-font-smoothing: antialiased;
}
.sidebar {
  box-shadow: 8px 0 28px rgb(32 31 46 / 2%);
}
.nav-item {
  transition: background-color .16s ease, color .16s ease;
}
.nav-item:hover {
  background: #f7f6fb;
  color: var(--ink);
}
.content {
  padding-top: 30px;
}
.welcome {
  background: linear-gradient(112deg, #f0edff 0%, #f4f2ff 58%, #eeedfa 100%);
  border: 1px solid #e8e4ff;
  box-shadow: 0 10px 28px rgb(45 37 91 / 4%);
}
.welcome h1 {
  letter-spacing: -1.4px;
}
.welcome-art {
  opacity: .88;
}
.art-orbit {
  border-color: #d2cafa;
  box-shadow: 0 0 0 23px #e8e4ff, 0 0 0 48px #eeecff;
}
.art-code {
  box-shadow: 0 16px 38px rgb(52 41 111 / 13%);
}
.float-chip {
  color: #5f4bd0;
  letter-spacing: .4px;
}
.stat-card, .panel {
  box-shadow: 0 2px 7px rgb(32 31 46 / 2%);
}
.stat-card {
  transition: transform .16s ease, box-shadow .16s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(32 31 46 / 6%);
}
.peach {
  background: #edf3ff;
  color: #587acb;
}
.task-icon {
  background: #f0edff;
  color: #654be1;
}
.avatar {
  background: #efedff;
  color: #5b49c8;
}
.help-card {
  background: #f5f2ff;
}
.button {
  min-height: 38px;
}
.button.outline:hover {
  border-color: #c9c0fa;
  background: #faf9ff;
}
.slot-row {
  transition: background-color .15s ease;
}
.slot-row:hover {
  background: #fcfbff;
}
.date-square {
  background: #f0edff;
}
.slot-row.booked .date-square {
  background: #edf7f1;
  color: #32875e;
}
.note, .admin-task {
  line-height: 1.65;
}
.message-bubble {
  border: 1px solid #efedf5;
}
.auth-brand {
  background: radial-gradient(ellipse at 90% 85%, #393450 0%, #262338 55%);
}
.auth-form input {
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-form input:focus {
  border-color: #9f91f4;
  box-shadow: 0 0 0 3px rgb(96 70 232 / 10%);
}
:focus-visible {
  outline: 3px solid rgb(96 70 232 / 38%);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Messenger, Markdown notes, attachment cards, and assignment workflow */
.panel-actions,
.column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-fullscreen,
.composer-tool {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border: 1px solid #ebe9f2;
  border-radius: 10px;
  background: #fff;
  color: #77738d;
  font-size: 17px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.panel-fullscreen:hover,
.composer-tool:hover {
  border-color: #cfc7f8;
  background: #f7f5ff;
  color: var(--purple);
}
[data-fullscreen-panel]:fullscreen,
[data-fullscreen-panel].is-fullscreen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #f8f8fb;
  padding: 28px clamp(20px, 5vw, 76px);
}
[data-fullscreen-panel]:fullscreen .chat-log,
[data-fullscreen-panel].is-fullscreen .chat-log {
  flex: 1;
  max-height: none;
}

.chat-panel {
  display: flex;
  min-height: 390px;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e9e7f0;
  border-radius: 14px;
  background: #fff;
}
.chat-head {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #efedf3;
  background: #fff;
}
.chat-contact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-contact b,
.chat-contact small {
  display: block;
}
.chat-contact b {
  font-size: 12px;
}
.chat-contact small {
  margin-top: 4px;
  color: #92919e;
  font-size: 10px;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.online-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #45a77c;
}
.chat-log {
  display: flex;
  min-height: 220px;
  max-height: 430px;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  overflow: auto;
  padding: 17px 14px;
  background-color: #f7f6fb;
  background-image: radial-gradient(#e8e5f0 0.7px, transparent 0.7px);
  background-size: 14px 14px;
  overscroll-behavior: contain;
}
.chat-line {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}
.chat-line.mine {
  justify-content: flex-end;
}
.chat-bubble {
  max-width: min(82%, 520px);
  padding: 9px 11px 6px;
  border: 1px solid #eeedf2;
  border-radius: 13px 13px 13px 4px;
  background: #fff;
  box-shadow: 0 2px 5px rgb(36 31 65 / 4%);
}
.chat-line.mine .chat-bubble {
  border-color: #e1dcfb;
  border-radius: 13px 13px 4px 13px;
  background: #eeeaff;
}
.chat-bubble p {
  margin: 0;
  color: #302e3d;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-bubble time {
  display: block;
  margin-top: 5px;
  color: #9997a5;
  font-size: 9px;
  text-align: right;
}
.chat-empty {
  margin: auto;
  color: #9694a3;
  font-size: 12px;
  text-align: center;
}
.chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.chat-image {
  display: block;
  max-width: 220px;
  overflow: hidden;
  border-radius: 9px;
}
.chat-image img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  object-fit: cover;
}
.chat-composer {
  position: relative;
  display: grid;
  grid-template-columns: 34px 34px minmax(0, 1fr) 36px;
  align-items: end;
  gap: 7px;
  padding: 10px;
  border-top: 1px solid #efedf3;
  background: #fff;
}
.chat-composer textarea {
  width: 100%;
  min-height: 35px;
  max-height: 140px;
  resize: none;
  border: 1px solid #eceaf1;
  border-radius: 12px;
  padding: 9px 11px;
  outline: none;
  font-size: 12px;
  line-height: 1.4;
}
.chat-composer textarea:focus {
  border-color: #bdb2f3;
}
.chat-file-input {
  display: none;
}
.send-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 18px;
}
.send-button:disabled {
  opacity: .55;
  cursor: wait;
}
.selected-files,
.chat-status {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  color: #858394;
  font-size: 10px;
}
.selected-file {
  max-width: 220px;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f2f0fa;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-status:empty {
  display: none;
}
.chat-status[data-state="error"],
.note-status[data-state="error"],
.workflow-status[data-state="error"],
.upload-status[data-state="error"] {
  color: #b64d5a;
}
.emoji-picker {
  position: absolute;
  z-index: 3;
  bottom: 54px;
  left: 8px;
  display: grid;
  grid-template-columns: repeat(4, 36px);
  gap: 3px;
  padding: 7px;
  border: 1px solid #e9e7ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(25 22 50 / 12%);
}
.emoji-picker[hidden] {
  display: none;
}
.emoji-picker button {
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  font-size: 18px;
}
.emoji-picker button:hover {
  background: #f1effa;
}
.admin-chat {
  min-height: 410px;
}
.chat-col {
  min-width: 0;
}
.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 4px 5px 0 0;
  padding: 7px 9px;
  overflow-wrap: anywhere;
  border: 1px solid #e9e6f4;
  border-radius: 9px;
  background: #f7f5ff;
  color: #5d49d4;
  font-size: 10px;
  font-weight: 600;
}
.attachment-chip small {
  color: #858394;
  font-size: 9px;
  font-weight: 400;
}
.workflow-panel {
  margin-top: 16px;
}
.workflow-steps {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 18px;
}
.workflow-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a09eac;
  font-size: 10px;
  font-weight: 600;
}
.workflow-step i,
.step-number {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: #f0eff4;
  color: #92909e;
  font-size: 10px;
  font-style: normal;
}
.workflow-step.active {
  color: #5745cb;
}
.workflow-step.active i,
.step-number {
  background: #efecff;
  color: #5e49dc;
}
.workflow-connector {
  width: 36px;
  height: 1px;
  background: #e8e6ee;
}
.student-picker {
  margin: 0 0 15px;
  padding: 12px;
  border: 1px solid #eeedf3;
  border-radius: 11px;
}
.student-picker legend {
  padding: 0 5px;
  color: #777585;
  font-size: 10px;
  font-weight: 700;
}
.student-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.student-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 175px;
  padding: 8px;
  border: 1px solid #eeedf3;
  border-radius: 10px;
  cursor: pointer;
}
.student-check:has(input:checked) {
  border-color: #c9c0f6;
  background: #f7f5ff;
}
.student-check input {
  accent-color: var(--purple);
}
.student-check .avatar {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  font-size: 11px;
}
.student-check b,
.student-check small {
  display: block;
}
.student-check b {
  font-size: 10px;
}
.student-check small {
  margin-top: 3px;
  color: #92909f;
  font-size: 9px;
}
.workflow-task-list {
  display: grid;
  gap: 10px;
}
.workflow-task {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e9e7ef;
  border-radius: 12px;
  background: #fff;
}
.workflow-task > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid #f0eff4;
  font-size: 11px;
}
.workflow-task > header .icon-button {
  margin-left: auto;
}
.workflow-task label,
.markdown-editor label {
  display: grid;
  gap: 6px;
  color: #777585;
  font-size: 10px;
  font-weight: 600;
}
.workflow-task input:not([type="file"]),
.workflow-task textarea,
.workflow-task-footer input,
.markdown-editor > label input {
  width: 100%;
  border: 1px solid #eceaf1;
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  font-size: 11px;
}
.workflow-task textarea,
.markdown-editor textarea {
  resize: vertical;
  line-height: 1.5;
}
.workflow-task-footer {
  display: grid;
  grid-template-columns: minmax(160px, .4fr) minmax(240px, 1fr);
  gap: 12px;
  align-items: start;
}
.workflow-file input[type="file"] {
  max-width: 100%;
  font-size: 10px;
}
.workflow-file small {
  color: #9997a4;
  font-size: 9px;
  font-weight: 400;
}
.workflow-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}
.workflow-status,
.note-status,
.upload-status {
  min-height: 14px;
  margin: 6px 0 0;
  color: #36815f;
  font-size: 10px;
}
.workflow-status[data-state="success"] {
  color: #2d805b;
}
.column-title h3 {
  margin: 0;
}
.markdown-editor {
  padding: 12px;
  border: 1px solid #eae8f0;
  border-radius: 12px;
  background: #fbfbfd;
}
.markdown-editor textarea {
  width: 100%;
  min-height: 160px;
  padding: 12px;
  border: 1px solid #e9e7ef;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.markdown-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid #eceaf1;
  border-radius: 9px;
  background: #fff;
}
.markdown-toolbar button {
  min-width: 30px;
  height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5f5c6d;
  font-size: 10px;
  font-weight: 700;
}
.markdown-toolbar button:hover {
  background: #f1effb;
  color: #5e49dc;
}
.markdown-preview {
  min-height: 160px;
  padding: 12px;
  border: 1px solid #e9e7ef;
  border-radius: 9px;
  background: #fff;
}
.markdown-body {
  color: #565463;
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.markdown-body > :first-child {
  margin-top: 0;
}
.markdown-body > :last-child {
  margin-bottom: 0;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin: 14px 0 7px;
  color: #302e3d;
  font: 700 13px var(--manrope);
}
.markdown-body pre {
  overflow: auto;
  padding: 10px;
  border-radius: 8px;
  background: #282638;
  color: #e7e4f2;
  font-size: 10px;
}
.markdown-body code {
  padding: 2px 4px;
  border-radius: 4px;
  background: #f0eef6;
  color: #5b46cb;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.markdown-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}
.markdown-body blockquote {
  margin: 8px 0;
  padding-left: 10px;
  border-left: 3px solid #c9c1f4;
  color: #777585;
}
.markdown-body table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
}
.markdown-body td,
.markdown-body th {
  padding: 6px 8px;
  border: 1px solid #e7e5ed;
}
.markdown-body a {
  color: #5c48d5;
  text-decoration: underline;
}
.admin-notes-column,
.admin-homework-column {
  min-width: 0;
}
.note .markdown-body {
  margin-top: 8px;
}
.note .attachment-chip,
.admin-task .attachment-chip {
  margin-top: 9px;
}
.upload-status:empty,
.note-status:empty,
.workflow-status:empty {
  display: none;
}
@media (max-width: 800px) {
  .workflow-task-footer {
    grid-template-columns: 1fr;
  }
  .workflow-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .chat-log {
    max-height: 55vh;
  }
  .student-check {
    flex: 1 1 100%;
  }
}

/* Weekly calendar, persistent chat launcher, and accumulated file chips. */
.week-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;padding:12px 14px;border:1px solid var(--line,#e8e8ef);border-radius:14px;background:#fafaff}
.week-nav b{font-size:13px;color:#55536a;white-space:nowrap}
.slot-time-list{display:grid;gap:10px;flex:1 1 100%}
.slot-time-list label{display:flex;align-items:center;gap:12px}
.slot-time-list input{max-width:260px}
.slot-time-row{display:flex;align-items:end;gap:12px}
.slot-time-row .remove-slot-time{height:42px}
.floating-chat-launch{position:fixed;z-index:80;right:28px;bottom:26px;display:flex;align-items:center;gap:10px;padding:13px 20px;border:0;border-radius:999px;background:#34304b;color:white;box-shadow:0 12px 34px #24203838;cursor:pointer;font:600 14px inherit}
.floating-chat-launch span{font-size:19px}
.chat-unread-badge{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#d52b35;color:#fff;font:800 10px/1 var(--manrope);font-style:normal}
.chat-unread-badge[hidden]{display:none}
.floating-chat-launch{position:fixed}
.floating-chat-launch .chat-unread-badge{position:absolute;top:-5px;right:-5px;min-width:22px;height:22px;font-size:11px}
.nav-item.chat-launch .chat-unread-badge{margin-left:auto;border-color:#fff}
.floating-chat{position:fixed;z-index:81;right:28px;bottom:88px;width:min(390px,calc(100vw - 32px));height:min(580px,calc(100vh - 120px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #e7e5ee;border-radius:20px;background:#fff;box-shadow:0 22px 70px #24203830}
.floating-chat[hidden]{display:none}
.floating-chat .chat-log{flex:1;min-height:0;height:auto}
.floating-chat .chat-composer{flex-shrink:0}
.chat-student-select{display:grid;gap:6px;padding:10px 14px;font-size:12px;color:#706d80;border-bottom:1px solid #eeedf2}
.chat-student-select select{padding:9px;border:1px solid #e1dfeb;border-radius:9px;background:#fff;font:inherit;color:#34304b}
.selected-file button{margin-left:8px;border:0;background:transparent;color:inherit;cursor:pointer}
.nav-item.chat-launch{width:100%;border:0;background:transparent;text-align:left;font:inherit;cursor:pointer}
.content > .section-grid:has(> section:only-child){grid-template-columns:1fr}
.slot-time-list .slot-time-row{display:flex;align-items:end;gap:10px}
.slot-time-row label{flex:1}
.week-nav a{white-space:nowrap}
@media(max-width:600px){.floating-chat-launch{right:16px;bottom:16px}}

.code-submission{margin:18px 0 14px;border:1px solid #e5e7eb;border-radius:14px;background:#fbfcff;overflow:hidden}
.code-submission-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #e8eaf0}
.code-submission-head b,.code-submission-head small{display:block}
.code-submission-head b{font-size:13px;color:#303547}
.code-submission-head small{margin-top:3px;font-size:11px;color:#8a90a0}
.code-language{padding:5px 9px;border-radius:999px;background:#eef2ff;color:#5965a6;font:600 11px ui-monospace,SFMono-Regular,Menlo,monospace}
.code-editor{display:flex;height:300px;background:#10151f;color:#e4e9f2;overflow:hidden}
.code-gutter{flex:none;width:48px;overflow:hidden;padding:14px 10px 14px 0;background:#151b27;border-right:1px solid #262d3a;color:#667184;text-align:right;white-space:pre;font:13px/21px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;user-select:none}
.code-editor-stage{position:relative;flex:1;min-width:0;overflow:hidden}
.code-highlight,.code-editor textarea{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:14px 16px;border:0;white-space:pre;tab-size:4;overflow:auto;font:13px/21px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:0}
.code-highlight{pointer-events:none;color:#e4e9f2;background:transparent;scrollbar-width:none}
.code-highlight::-webkit-scrollbar{display:none}
.code-editor textarea{resize:none;background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:#fff;outline:none;z-index:1}
.code-editor textarea::selection{background:#48587988}
.token-keyword{color:#c792ea}.token-builtin{color:#82aaff}.token-string{color:#c3e88d}.token-number{color:#f78c6c}.token-comment{color:#697586;font-style:italic}.token-function{color:#ffcb6b}
.code-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px}
.code-status{min-width:0;font-size:11px;color:#8a90a0}
.code-status[data-state="error"]{color:#b54747}.code-status[data-state="success"]{color:#23805b}
.code-editor-actions button{white-space:nowrap}
.submitted-code{margin:12px 0;border:1px solid #e4e7ef;border-radius:10px;background:#f7f8fb;overflow:hidden}
.submitted-code summary{padding:10px 12px;color:#4e5870;font-size:12px;font-weight:600;cursor:pointer}
.submitted-code pre{max-height:440px;overflow:auto;margin:0;padding:16px;background:#10151f;color:#e4e9f2;font:12px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre}
@media(max-width:620px){.code-editor{height:260px}.code-editor-actions{align-items:flex-start;flex-direction:column}.code-editor-actions button{width:100%}}

.review-status-tag{background:#fff3dc;color:#855514}
.teacher-feedback{margin:14px 0;padding:13px 15px;border-left:3px solid #e0a23a;border-radius:0 10px 10px 0;background:#fff8e9;color:#443924}
.teacher-feedback b{font-size:12px}.teacher-feedback p{margin:6px 0 0;white-space:pre-wrap;font-size:13px;line-height:1.55}
.review-form{display:grid;gap:12px;margin-top:16px;padding:15px;border:1px solid #dedfe6;border-radius:12px;background:#fafbfc}
.review-form label{display:grid;gap:6px;color:#343a46;font-size:12px;font-weight:600}
.review-form select,.review-form textarea{width:100%;border:1px solid #c8ccd4;border-radius:8px;padding:10px;background:#fff;color:#202531;font:inherit}
.review-form textarea{resize:vertical;line-height:1.5}.review-form select:focus,.review-form textarea:focus{outline:2px solid #78a9ff;outline-offset:1px}

/* Higher-contrast study workspace with a restrained warm accent. */
:root{--ink:#171717;--muted:#55585e;--line:#d9d9d4;--purple:#ffd400;--purple-dark:#e6bd00;--canvas:#f5f5f2;--green:#176b49}
body{color:#171717;background:#f5f5f2}
.sidebar{border-right-color:#d8d8d2}
.side-label,.eyebrow{color:#55585e}
.nav-item{color:#414348}
.nav-item>span{color:#53565c}
.nav-item.active{color:#171717;background:#fff0a3}
.nav-item.active>span{color:#171717}
.count{background:#ffe05a;color:#171717}
.brand-mark{background:#ffd400;color:#171717}
.welcome{background:#fff0a3}
.welcome .eyebrow,.welcome p{color:#414348}
.button.primary{background:#ffd400;color:#171717;box-shadow:none}
.button.primary:hover{background:#e6bd00;color:#171717}
.button.outline{border-color:#bfc1c0;color:#242424}
.button.outline:hover{border-color:#242424;background:#f5f5f2;color:#171717}
.muted,.stat-note{color:#55585e}
.footer{color:#5b5d61}
.nav-item:focus-visible,.button:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #2463eb;outline-offset:2px}
.panel,.stat-card{border-color:#d9d9d4;box-shadow:0 2px 4px #1b1b1b08}
.tag{font-weight:700}
.pending-tag,.review-status-tag{background:#fff0a3;color:#3a3000}
.success-tag{background:#d8f0e2;color:#145c3c}
.panel-head p,.help-card p,.slot-info small,.stat-card small,.date-square small,.subhead{color:#51545a}
.date-square{background:#fff0a3;color:#171717}
.date-square small{color:#3e3e3e}
.badge{background:#fff0a3;color:#302800}
.tag{font-size:10px;color:#343434}

/* Roadmap and lesson content: clear black-on-white reading surfaces. */
.markdown-body{color:#111!important;font-size:14px;line-height:1.7}
.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4{color:#111;font-size:16px}
.markdown-body blockquote{color:#222;border-left-color:#777}
.task p,.note p,.admin-task p,.panel-head p,.lesson-card p,.module-heading p{color:#171717}
.task,.note,.admin-task{color:#111;background:#fff;border-color:#d2d2cf}
.task h3,.note h3,.admin-task b{color:#111}
.note-date,.due,.upload-form>span,.slot-info small,.stat-card small{color:#454545}
.roadmap-page{max-width:1060px;margin:0 auto}
.roadmap-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:4px 0 28px;padding:4px 0 22px;border-bottom:2px solid #171717}
.roadmap-heading h1{margin:8px 0 6px;color:#111;font:800 clamp(30px,4vw,44px)/1.08 var(--manrope);letter-spacing:-1.6px}
.roadmap-heading p{margin:0;color:#353535;font-size:15px}
.roadmap-count{padding:9px 13px;border:1px solid #222;border-radius:999px;color:#111;background:#fff;font-size:13px;font-weight:700;white-space:nowrap}
.application-notice{display:flex;align-items:flex-start;gap:15px;margin:20px 0 26px;padding:18px 20px;border:1px solid #8b6800;border-left:5px solid #d9aa00;border-radius:12px;background:#fff4bc;color:#171717}
.application-notice b{display:block;font-size:16px;color:#111}
.application-notice p{margin:5px 0 0;color:#292929;font-size:14px;line-height:1.55}
.notice-icon{font-size:23px}.compact-notice{margin:20px 0}
.roadmap-track{position:relative;display:grid;gap:22px;padding:4px 0 4px 2px}
.roadmap-track:before{position:absolute;top:25px;bottom:28px;left:25px;width:3px;background:#c9c9c3;content:""}
.roadmap-module{position:relative;display:grid;grid-template-columns:54px minmax(0,1fr);gap:18px;align-items:start}
.module-marker{position:relative;z-index:1;display:grid;place-items:center;width:52px;height:52px;border:3px solid #171717;border-radius:50%;background:#ffd400;color:#111;font:800 16px var(--manrope)}
.module-complete .module-marker{border-color:#126b41;background:#18864f;color:#fff}
.module-content{min-width:0;padding:22px 24px;border:1px solid #cfd1ca;border-radius:16px;background:#fff;box-shadow:0 5px 18px #1111110c}
.module-complete .module-content{border:2px solid #18864f;background:#f3fbf5}
.module-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:17px;border-bottom:1px solid #deded8}
.module-heading h2{margin:6px 0 8px;color:#111;font:800 23px/1.2 var(--manrope);letter-spacing:-.5px}
.module-heading .markdown-body,.module-heading p{max-width:680px;margin:0;color:#222;font-size:14px}
.module-kicker,.homework-label{display:block;color:#444;font-size:11px;font-weight:800;letter-spacing:1px}
.module-complete .module-kicker{color:#126b41}
.module-state{padding:7px 10px;border:1px solid #a5a5a0;border-radius:7px;color:#222;background:#fff;font-size:12px;font-weight:700;white-space:nowrap}
.module-complete .module-state{border-color:#18864f;color:#126b41;background:#e3f5e8}
.lesson-list{position:relative;display:grid;gap:14px;margin:18px 0 0 5px;padding-left:22px;border-left:2px solid #bfc0ba}
.lesson-card,.admin-lesson-card{position:relative;padding:16px;border:1px solid #d3d3ce;border-radius:12px;background:#fff}
.lesson-dot{position:absolute;left:-30px;top:19px;width:14px;height:14px;border:3px solid #171717;border-radius:50%;background:#fff}
.lesson-title{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.lesson-title h3{margin:0;color:#111;font-size:17px;font-weight:800}
.lesson-note,.lesson-homework{margin-top:12px;padding:14px 16px;border-radius:10px;color:#111}
.lesson-resources{display:grid;gap:10px;margin-top:12px;padding:13px;border:1px solid #d0d0ca;border-radius:10px;background:#fafaf8}
.lesson-resources>b{color:#111;font-size:13px}
.lesson-resource-list{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.lesson-photo{display:block;width:104px;height:78px;overflow:hidden;border:1px solid #c7c7c1;border-radius:8px;background:#fff}
.lesson-photo img{width:100%;height:100%;object-fit:cover}
.lesson-upload-control{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#242424;font-size:12px;font-weight:700;cursor:pointer}
.lesson-upload-control input{max-width:100%;color:#333;font-size:12px}
.lesson-resources .upload-status{margin:0;color:#333;font-size:12px}
.lesson-resources .upload-status[data-state=error]{color:#a1161e}
.lesson-resources .upload-status[data-state=success]{color:#126b41}
.teacher-lesson-note{border:1px solid #b9bdc3;background:#f6f7f8}
.lesson-homework{border:1px solid #b6b6b0;background:#fff}
.lesson-note>b,.lesson-homework>b{display:block;margin-bottom:8px;color:#111;font-size:14px}
.student-lesson-note{display:grid;gap:9px;margin-top:14px;padding-top:14px;border-top:1px solid #d7d7d2}
.student-lesson-note label{color:#111;font-size:13px;font-weight:800}
.student-lesson-note textarea,.roadmap-create-module textarea,.roadmap-create-lesson textarea{width:100%;border:1px solid #777;border-radius:8px;background:#fff;color:#111;padding:12px;font:14px/1.6 var(--golos);resize:vertical}
.student-lesson-note textarea::placeholder,.roadmap-create-module textarea::placeholder,.roadmap-create-lesson textarea::placeholder{color:#595959;opacity:1}
.roadmap-empty{margin:38px 0;padding:54px 24px;border:2px dashed #9a9a92;border-radius:16px;background:#fff;text-align:center;color:#111}
.roadmap-empty h2{margin:0 0 10px;color:#111;font-size:22px}
.roadmap-empty p{max-width:560px;margin:0 auto;color:#333;font-size:15px;line-height:1.6}
.roadmap-empty-mark{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 18px;border-radius:16px;background:#ffd400;color:#111;font:800 34px var(--manrope)}
.module-empty{margin:14px 0 0;color:#333;font-size:14px}
.roadmap-admin-panel{grid-column:1/-1;width:100%}
.roadmap-student-picker{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:10px 14px;align-items:end;padding:17px;border:1px solid #d0d0cb;border-radius:12px;background:#f6f6f3}
.roadmap-student-picker label,.roadmap-create-module label,.roadmap-create-lesson label{display:grid;gap:7px;color:#111;font-size:13px;font-weight:800}
.roadmap-student-picker label{grid-column:1/-1}
.roadmap-student-picker select,.roadmap-create-module input,.roadmap-create-lesson input{min-height:44px;width:100%;padding:10px 12px;border:1px solid #777;border-radius:8px;background:#fff;color:#111;font-size:14px}
.roadmap-selected-student{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:22px 0 14px;padding-bottom:14px;border-bottom:1px solid #ccc}
.roadmap-selected-student h2{margin:5px 0 0;color:#111;font-size:22px}
.roadmap-create-module,.roadmap-create-lesson{display:grid;gap:14px;padding:18px;border:1px solid #c9c9c3;border-radius:12px;background:#fff}
.roadmap-create-module h3,.roadmap-create-lesson h3{margin:0;color:#111;font-size:17px}
.roadmap-create-module .button,.roadmap-create-lesson>.button{justify-self:start}
.roadmap-create-module{margin-bottom:24px;background:#f8f8f5}
.roadmap-create-lesson{margin-top:18px;border-style:dashed}
.lesson-homework-fields{display:grid;gap:12px;padding:13px;border:1px solid #c6c6c0;border-radius:9px;background:#f8f8f5}
.lesson-homework-fields summary{color:#111;font-size:13px;font-weight:800;cursor:pointer}
.student-lesson-note-view{margin-top:12px;padding:12px;border:1px solid #aaa;border-radius:8px;background:#fff}
.student-lesson-note-view summary{color:#111;font-size:13px;font-weight:800;cursor:pointer}
.student-lesson-note-view p{margin:10px 0 0;color:#111;white-space:pre-wrap}
.student-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;border-top:1px solid #d4d4cf}
.student-entry .student-row{border-top:0}
.approval-pill{display:inline-flex;align-items:center;padding:7px 10px;border:1px solid #147342;border-radius:999px;background:#e7f7ed;color:#105b35;font-size:12px;font-weight:800}
.roadmap-admin-track .module-heading{align-items:center}
.roadmap-admin-track .module-heading form{flex:none}
.code-submission-head{background:#f0f0ed}
.code-submission-head b{color:#111;font-size:15px}
.code-language{border-radius:5px;background:#171717;color:#fff;font-size:12px;font-weight:800;letter-spacing:.6px}
.code-editor-actions .button.primary{min-height:46px;padding:12px 20px;border:2px solid #111;border-radius:8px;background:#ffd400;color:#111;font-size:15px;font-weight:800}
.code-editor-actions .button.primary:hover{background:#e6bd00}
.code-status{color:#222;font-size:13px;font-weight:600}
@media(max-width:700px){.roadmap-heading{align-items:flex-start;flex-direction:column}.roadmap-module{grid-template-columns:40px minmax(0,1fr);gap:10px}.roadmap-track:before{left:19px}.module-marker{width:40px;height:40px;font-size:13px}.module-content{padding:15px}.module-heading{flex-direction:column}.module-heading h2{font-size:20px}.module-state{white-space:normal}.roadmap-student-picker{grid-template-columns:1fr}.roadmap-selected-student{align-items:flex-start;flex-direction:column}.student-entry{grid-template-columns:1fr}.student-entry>form{padding:0 8px 10px}}
.lesson-passed{margin-left:auto;padding:5px 8px;border:1px solid #187344;border-radius:999px;background:#e7f7ed;color:#105b35;font-size:11px;font-weight:800;white-space:nowrap}
.lesson-title-copy{display:grid;gap:4px;min-width:0}
.lesson-title-copy h3{margin:0}
.lesson-title-copy time{color:#333;font-size:12px;font-weight:700}
.lesson-links{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 14px}
.lesson-links .button{min-height:38px;border:1px solid #222;font-size:13px;font-weight:800}
.roadmap-disclosure,.lesson-disclosure{min-width:0}
.module-summary,.lesson-disclosure>.lesson-title{list-style:none;cursor:pointer}
.module-summary::-webkit-details-marker,.lesson-disclosure>.lesson-title::-webkit-details-marker{display:none}
.module-summary{display:flex;align-items:center;justify-content:space-between;gap:16px}
.module-summary>div{min-width:0}
.module-summary h2{margin:6px 0 8px;color:#111;font:800 23px/1.2 var(--manrope);letter-spacing:-.5px}
.module-summary .markdown-body,.module-summary p{max-width:680px;margin:0;color:#222;font-size:14px}
.module-summary:after,.lesson-disclosure>.lesson-title:after{flex:none;width:10px;height:10px;border-right:2px solid #202020;border-bottom:2px solid #202020;content:"";transform:rotate(45deg) translateY(-3px);transition:transform .18s ease}
.roadmap-disclosure:not([open])>.module-summary:after,.lesson-disclosure:not([open])>.lesson-title:after{transform:rotate(-45deg) translateY(0)}
.module-disclosure-body{padding-top:17px}
.lesson-disclosure>.lesson-title{margin:0}
.lesson-title-copy .lesson-name{color:#111;font-size:17px;font-weight:800}
.lesson-disclosure-body{padding-top:12px}
.module-completion-form{display:flex;justify-content:flex-end;margin-bottom:16px}
.module-done-pill{border-color:#18864f;color:#126b41;background:#e3f5e8}
.learning-overview{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);gap:22px;margin:26px 0 34px;padding:26px;border:1px solid #e3dcaf;border-radius:20px;background:linear-gradient(125deg,#fff9dc 0%,#fff 72%);box-shadow:0 12px 36px #2723430a}
.homework-context-label{display:inline-flex;margin:5px 0 8px;padding:5px 8px;border:1px solid #c9c9c3;border-radius:999px;background:#f5f5f2;color:#393939;font-size:11px;font-weight:700}
.calendar-export-link{color:#262626;font-size:12px;font-weight:700;text-decoration:underline;text-decoration-color:#9c8a28;text-underline-offset:3px;white-space:nowrap}
.calendar-export-link:hover{color:#725e00}
@media(max-width:600px){.slot-row.booked{flex-wrap:wrap}.slot-row.booked .calendar-export-link{margin-left:50px}.slot-row.booked>form{margin-left:auto}}
.learning-overview-main{display:flex;align-items:flex-start;flex-direction:column;justify-content:center;min-height:180px}
.learning-overview-main h2{margin:8px 0;color:#171623;font:800 clamp(22px,3vw,30px)/1.2 var(--manrope);letter-spacing:-.7px}
.learning-overview-main p{max-width:560px;margin:0 0 19px;color:#434151;font-size:15px;line-height:1.55}
.learning-overview-main p b{color:#171623}
.learning-overview-main .button{min-height:44px}
.learning-overview-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.learning-stat{display:flex;flex-direction:column;justify-content:center;min-height:88px;padding:14px;border:1px solid #e4e2eb;border-radius:13px;background:#fff;color:#252432}
.learning-stat>span{color:#626071;font-size:12px;font-weight:600}
.learning-stat>b{margin-top:7px;color:#171623;font:800 22px/1.1 var(--manrope)}
.learning-stat>b small{color:#716f7c;font-size:14px;font-weight:700}
.learning-stat-link:hover{border-color:#b79b08;background:#fffdf1}
.learning-stat-link>b small{font:700 11px var(--golos)}
.progress-track{height:6px;margin-top:10px;overflow:hidden;border-radius:999px;background:#e9e7f2}
.progress-track i{display:block;height:100%;border-radius:inherit;background:#218653;transition:width .25s ease}
.next-lesson-card{grid-column:1/-1;display:grid;gap:5px;padding:13px 15px;border:1px solid #d8d1a5;border-radius:13px;background:#fff;color:#242133}
.next-lesson-card span{color:#55516d;font-size:10px;font-weight:800;letter-spacing:.8px}
.next-lesson-card b{font-size:14px}
.next-lesson-card small{color:#545263;font-size:12px}
.next-lesson-card:hover{border-color:#b79b08;background:#fffdf1}
.submissions-panel{grid-column:1/-1;width:100%}
.submission-card{margin:18px 0;padding:22px;border:1px solid #c9c9c3;border-radius:14px;background:#fff}
.submission-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:15px;border-bottom:1px solid #d5d5d0}
.submission-heading h3{margin:7px 0 3px;color:#111;font-size:20px}
.submission-heading p{margin:0;color:#333;font-size:14px}
.submission-description{margin:16px 0;color:#111}
.submitted-code{overflow:hidden;margin:18px 0;border:1px solid #30343b;border-radius:10px;background:#17191f}
.submitted-code-title{display:flex;align-items:center;justify-content:space-between;padding:11px 15px;border-bottom:1px solid #383b42;background:#24272e;color:#fff}
.submitted-code-title span{padding:4px 8px;border-radius:5px;background:#ffd400;color:#111;font-size:11px;font-weight:800}
.submitted-code pre{overflow:auto;max-height:560px;margin:0;padding:18px;color:#f5f5f5;font:14px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre}
.submitted-code code{color:inherit}
.review-form{display:grid;gap:14px;margin-top:18px;padding-top:18px;border-top:1px solid #d5d5d0}
.review-form label{display:grid;gap:7px;color:#111;font-size:13px;font-weight:800}
.review-form select,.review-form textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid #666;border-radius:8px;background:#fff;color:#111;font:14px/1.5 var(--golos)}
.review-form textarea{resize:vertical}
.review-form textarea::placeholder{color:#595959;opacity:1}
.review-form button{justify-self:start;min-height:44px}
.homework-workflow-panel{grid-column:1/-1;width:100%}
.workflow-success{margin:0 0 18px;padding:13px 15px;border:1px solid #18864f;border-radius:10px;background:#e7f7ed;color:#105b35;font-weight:700}
.homework-workflow{display:grid;gap:22px}
.workflow-students{min-width:0;margin:0;padding:17px;border:1px solid #d5d5cf;border-radius:13px;background:#fbfbf9}
.workflow-students legend{padding:0 6px;color:#111;font-size:15px;font-weight:800}
.workflow-student-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:9px}
.workflow-student-option{display:flex;align-items:center;gap:10px;min-width:0;padding:11px 12px;border:1px solid #d6d6d0;border-radius:9px;background:#fff;cursor:pointer}
.workflow-student-option:has(input:checked){border-color:#a88e00;background:#fff9dc}
.workflow-student-option input{width:17px;height:17px;accent-color:#171717}
.workflow-student-option span{display:grid;gap:3px;min-width:0}
.workflow-student-option b{overflow:hidden;color:#171717;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.workflow-student-option small{overflow:hidden;color:#555;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.workflow-task-heading,.workflow-publish-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.workflow-task-heading h3{margin:0;color:#111;font-size:19px}
.workflow-task-heading p{margin:5px 0 0;color:#494949;font-size:13px}
.workflow-task-list{display:grid;gap:14px}
.workflow-task-card{display:grid;gap:14px;padding:18px;border:1px solid #d0d0ca;border-radius:13px;background:#fff}
.workflow-task-card>header{display:flex;align-items:center;gap:10px;padding-bottom:11px;border-bottom:1px solid #e1e1dc;color:#171717}
.workflow-task-card>header .step-number{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#171717;color:#fff;font:800 12px var(--manrope)}
.workflow-task-card>header .icon-button{margin-left:auto}
.workflow-task-card>label,.workflow-task-bottom>label{display:grid;gap:7px;color:#111;font-size:13px;font-weight:800}
.workflow-task-card input:not([type=file]),.workflow-task-card textarea{width:100%;padding:11px 12px;border:1px solid #777;border-radius:8px;background:#fff;color:#111;font:14px/1.5 var(--golos)}
.workflow-task-card textarea{resize:vertical}
.workflow-task-bottom{display:grid;grid-template-columns:minmax(180px,.35fr) minmax(0,1fr);gap:14px}
.workflow-file input[type=file]{width:100%;padding:10px;border:1px dashed #888;border-radius:8px;background:#fafaf8;color:#222;font-size:12px}
.workflow-file-help{color:#555;font-size:11px;font-weight:500}
.workflow-publish-row{padding-top:15px;border-top:1px solid #deded9}
.workflow-publish-row p{margin:0;color:#333;font-size:13px}
.workflow-publish-row [data-state=error]{color:#a1161e}
.workflow-publish-row [data-state=success]{color:#126b41}
@media(max-width:600px){.workflow-task-heading,.workflow-publish-row{align-items:stretch;flex-direction:column}.workflow-task-heading>.button,.workflow-publish-row>.button{width:100%;justify-content:center}.workflow-task-bottom{grid-template-columns:1fr}}
@media(max-width:700px){.module-summary{align-items:flex-start}.module-summary h2{font-size:20px}.module-summary .module-state{white-space:normal}.module-completion-form{justify-content:flex-start}}
@media(max-width:700px){.learning-overview{grid-template-columns:1fr;gap:15px;padding:19px}.learning-overview-main{min-height:unset}.learning-overview-stats{grid-template-columns:1fr 1fr}.learning-stat{min-height:78px;padding:11px}.next-lesson-card{grid-column:1/-1}}
@media(max-width:700px){
  .sidebar{inset:auto 0 0;width:100%;height:auto;padding:7px 8px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #d8d8d2;border-right:0;background:#fff;box-shadow:0 -8px 26px #201f2e0d}
  .sidebar>.brand,.sidebar>.side-label,.sidebar>.sidebar-bottom{display:none}
  .sidebar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;width:100%}
  .sidebar .nav-item{position:relative;display:flex;min-width:0;min-height:54px;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:5px 2px;border-radius:10px;font-size:9px;line-height:1.1;text-align:center;white-space:normal}
  .sidebar .nav-item>span,.sidebar .nav-item:not(.active)>span{display:block;width:auto;color:inherit;font-size:17px}
  .sidebar .nav-item .count{top:0;right:calc(50% - 24px);font-size:8px}
  .nav-item.chat-launch .chat-unread-badge{position:absolute;top:0;right:calc(50% - 25px);margin:0}
  .main{margin-left:0}
  .content{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  .floating-chat-launch{right:14px;bottom:calc(70px + env(safe-area-inset-bottom))}
  .floating-chat{right:12px;bottom:calc(130px + env(safe-area-inset-bottom));height:min(580px,calc(100dvh - 155px))}
}
.telemost-join{display:inline-flex!important;min-height:44px;align-items:center;justify-content:center;gap:7px;padding:10px 16px;border:1px solid #174ea6!important;border-radius:10px;background:#1a73e8!important;color:#fff!important;font-size:14px;font-weight:800;text-decoration:none;box-shadow:0 3px 8px #1a73e822;transition:background .15s ease,transform .15s ease}
.telemost-join:hover{background:#1558b0!important;transform:translateY(-1px)}
.telemost-join:focus-visible{outline:3px solid #8ab4f8;outline-offset:3px}
.telemost-pending{color:#4b4b45;font-size:12px;font-weight:650}
.calendar-student-link{color:inherit;font-weight:800;text-decoration:underline;text-decoration-color:#c5a900;text-underline-offset:2px}
.calendar-teacher-join{align-self:flex-start;margin-top:auto;color:inherit;font-size:11px;font-weight:800;text-decoration:underline;text-underline-offset:2px}
.student-approval-form{grid-column:1/-1;display:flex;align-items:flex-end;gap:10px;padding:0 10px 12px}
.student-approval-form label,.telemost-edit-form label,.teacher-label-form label{display:grid;min-width:0;flex:1;gap:5px;color:#24241f;font-size:11px;font-weight:750}
.student-approval-form input,.telemost-edit-form input,.teacher-label-form input{width:100%;min-height:38px;padding:8px 10px;border:1px solid #aaa99f;border-radius:8px;background:#fff;color:#171714;font-size:13px}
.student-detail-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;margin-top:18px;padding:18px;border:1px solid #d5d5cf;border-radius:13px;background:#fafaf7}
.student-detail-card h3{margin:5px 0 2px;color:#171714;font-size:18px}
.student-detail-card p{margin:0;color:#55554e;font-size:13px}
.telemost-edit-form{grid-column:1/-1;display:flex;align-items:flex-end;gap:10px;padding-top:12px;border-top:1px solid #deded8}
.teacher-label-form{grid-column:1/-1;display:flex;align-items:flex-end;gap:10px;padding-top:12px;border-top:1px solid #deded8}
.teacher-label-note{display:block!important;margin-top:3px;color:#5a4a00!important;font-size:11px!important;font-weight:750!important}
.teacher-label-inline{display:inline-block;margin-left:4px;color:#ffe779!important;font-size:10px;font-weight:750}
.calendar-event .teacher-label-inline{display:block;margin:2px 0 0;color:#ffe779!important}
.roadmap-selected-student .teacher-label-inline{color:#5a4a00!important}
.student-name .teacher-label-note{white-space:normal}
.workflow-student-option .teacher-label-inline{margin-left:4px;color:#615000!important}
.roadmap-approval-form{max-width:560px}
.student-detail-card .telemost-join{justify-self:end}
@media(max-width:700px){.student-approval-form,.telemost-edit-form,.teacher-label-form{align-items:stretch;flex-direction:column}.student-approval-form button,.telemost-edit-form button,.teacher-label-form button{width:100%}.student-detail-card{grid-template-columns:1fr}.student-detail-card .telemost-join{justify-self:start}.roadmap-approval-form{width:100%}}
.skip-link{position:fixed;z-index:200;top:8px;left:8px;padding:10px 14px;transform:translateY(-150%);border-radius:8px;background:#171623;color:#fff;font-size:14px;font-weight:700}
.skip-link:focus{transform:translateY(0)}
:where(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #5542d2;outline-offset:3px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.lesson-links .button.primary{background:#ffd400;color:#111}
.lesson-links .button.outline{background:#fff;color:#111}
.active-module-hint{display:grid;gap:5px;margin:16px 0;padding:16px 18px;border-left:4px solid #d5aa00;border-radius:8px;background:#fff3b7;color:#111;font-size:14px}
.active-module-hint b{font-size:15px}
.roadmap-create-lesson input[type=date]{min-height:44px;width:100%;padding:10px 12px;border:1px solid #777;border-radius:8px;background:#fff;color:#111;font-size:14px}
.lesson-page-content{padding:18px;border:1px solid #c9c9c3;border-radius:12px;background:#fff;color:#111}
.lesson-page-content h3{margin:8px 0 16px;color:#111;font-size:24px}
.lesson-page-meta{color:#333;font-size:13px;font-weight:800}
@media(max-width:600px){.lesson-links{display:grid;grid-template-columns:1fr}.lesson-links .button{width:100%}.lesson-passed{font-size:10px}}

/* Weekly schedule list calendar */
.calendar-toolbar{margin:18px 0 12px}
.calendar-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.calendar-nav>b{margin-left:8px;color:#171714;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}
.calendar-nav-button,.calendar-today{display:inline-grid;min-width:38px;height:36px;place-items:center;padding:0 10px;border:1px solid #d3d3cc;border-radius:9px;background:#fff;color:#161613;text-decoration:none;font-size:20px;font-weight:700;line-height:1}
.calendar-today{font-size:13px}
.calendar-nav-button:hover,.calendar-today:hover{border-color:#171714;background:#f6f6f2}
.calendar-frame{margin:0 0 24px;overflow:auto;border:1px solid #d5d5cf;border-radius:14px;background:#fff;scrollbar-gutter:stable}
.calendar-week-list{min-width:600px}
.calendar-day-row{display:grid;grid-template-columns:150px minmax(0,1fr);min-height:72px;border-bottom:1px solid #d9d9d3}
.calendar-day-row:last-child{border-bottom:0}
.calendar-day-label{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:12px;border-right:1px solid #deded8;background:#fafaf7;color:#171714}
.calendar-day-label small{color:#5d5d55;font-size:10px;font-weight:800}
.calendar-day-label b{display:grid;width:29px;height:29px;place-items:center;border-radius:50%;font-size:14px}
.calendar-day-label span{color:#686860;font-size:10px}
.calendar-day-label.is-today b{background:#171714;color:#fff}
.calendar-day-events{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;padding:8px}
.calendar-event{display:flex;width:min(230px,100%);min-height:64px;flex-direction:column;gap:4px;padding:8px 10px;border:1px solid #b4a000;border-left:4px solid #bea400;border-radius:8px;background:#fff3ac;color:#171714;font-size:12px;line-height:1.25}
.calendar-event b{font-size:12px;font-variant-numeric:tabular-nums}
.calendar-event span{color:#35352f}
.calendar-event-booked{border-color:#272722;border-left-color:#171714;background:#272722;color:#fff}
.calendar-event-booked span{color:#f3f3ec}
.calendar-event-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}
.calendar-event form{margin-top:auto}
.calendar-event-actions form{margin:0}
.calendar-event button,.calendar-event-link{align-self:flex-start;padding:2px 0;border:0;background:transparent;color:inherit;font:inherit;font-size:11px;font-weight:800;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.calendar-event button{white-space:nowrap}
.calendar-event-open form button{color:#171714}
.calendar-locked{margin-top:auto;color:#35352f;font-size:10px;font-weight:700}
.calendar-day-empty{align-self:center;padding:8px;color:#77776f;font-size:12px}
@media(max-width:700px){
 .calendar-frame{margin-right:-3px;margin-left:-3px;border-radius:10px}
 .calendar-week-list{min-width:0}
 .calendar-day-row{grid-template-columns:78px minmax(0,1fr);min-height:70px}
 .calendar-day-label{align-content:flex-start;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;padding:9px 5px}
 .calendar-day-label small{width:100%;text-align:center}
 .calendar-day-label b{width:25px;height:25px;font-size:12px}
 .calendar-day-events{align-content:flex-start;flex-direction:column;gap:6px;padding:7px}
 .calendar-event{width:100%;min-height:62px;padding:7px 8px}
 .calendar-nav{gap:5px}.calendar-nav>b{font-size:14px}
}

.lesson-homework-builder{display:grid;gap:14px;margin-top:12px;padding:14px;border:1px solid #c8c8c1;border-radius:12px;background:#f8f8f5}
.lesson-homework-builder>header,.lesson-homework-builder-item-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.lesson-homework-builder>header>b,.lesson-homework-builder-item-head>b{color:#111;font-size:14px;font-weight:800}
.lesson-homework-builder-list{display:grid;gap:12px}
.lesson-homework-builder-item{display:grid;gap:12px;padding:14px;border:1px solid #d5d5cf;border-radius:10px;background:#fff}
.lesson-homework-builder-item-head{padding-bottom:10px;border-bottom:1px solid #e1e1dc}
.lesson-homework-builder-item [data-remove-lesson-homework]{border:0;background:transparent;color:#333;font:600 12px var(--golos);cursor:pointer}
.lesson-homework-builder-item [data-remove-lesson-homework]:disabled{color:#777;cursor:not-allowed}
.lesson-homework-builder>p{margin:0;color:#444;font-size:12px}
.lesson-homework-fields>summary{cursor:pointer;color:#111;font-weight:800}
.lesson-homework-list{display:grid;gap:12px;margin-top:12px}
.lesson-homework-list>article{padding:12px;border:1px solid #d4d4ce;border-radius:9px;background:#fff;color:#111}
.lesson-homework-list>article .markdown-body{margin-top:8px;color:#111}
.submission-group{overflow:hidden;margin:16px 0;border:1px solid #bdbdb7;border-radius:13px;background:#fff}
.submission-group-summary{display:grid;grid-template-columns:minmax(150px,1fr) minmax(160px,1fr) auto auto;align-items:center;gap:14px;padding:17px 19px;cursor:pointer;list-style:none}
.submission-group-summary::-webkit-details-marker{display:none}
.submission-group[open]>.submission-group-summary{border-bottom:1px solid #d4d4ce;background:#f8f8f5}
.submission-group-person{color:#111;font-weight:800}
.submission-group-context{color:#333;font-size:13px}
.submission-group-count{padding:6px 9px;border-radius:999px;background:#fff0a6;color:#111;font-size:12px;font-weight:800;white-space:nowrap}
.submission-expand{color:#111;font-size:13px;font-weight:800;white-space:nowrap}
.submission-group[open] .submission-expand{font-size:0}
.submission-group[open] .submission-expand:after{content:"Свернуть ↑";font-size:13px}
.submission-group-body{padding:0 16px 16px}
.submission-group-body .submission-card{margin:15px 0 0;padding:17px}
@media(max-width:760px){.submission-group-summary{grid-template-columns:1fr auto;gap:8px}.submission-group-context{grid-column:1}.submission-group-count{grid-column:1;justify-self:start}.submission-expand{grid-column:2;grid-row:1/4}}

.telemost-join{display:inline-flex!important;min-height:54px;align-items:center;justify-content:flex-start;gap:11px;padding:8px 13px;border:1px solid #d5d2c7!important;border-radius:13px;background:#fff!important;color:#171714!important;text-decoration:none;box-shadow:0 2px 5px #1717140a;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.telemost-join:hover{transform:translateY(-1px);border-color:#b9a64a!important;background:#fff!important;box-shadow:0 5px 14px #17171412}
.telemost-join:focus-visible{outline:3px solid #b79b08;outline-offset:3px}
.telemost-join-mark{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:10px;background:#ffe779;color:#171714;font-size:17px;font-weight:800}
.telemost-join-copy{display:grid;gap:2px;text-align:left}
.telemost-join-copy b{color:#171714;font-size:13px;font-weight:800;line-height:1.2}
.telemost-join-copy small{color:#5d5b52;font-size:11px;font-weight:600;line-height:1.2}
.telemost-join-arrow{margin-left:7px;color:#68665d;font-size:16px;transition:transform .18s ease}
.telemost-join:hover .telemost-join-arrow{transform:translateX(2px)}
.calendar-teacher-join{display:inline-flex;min-height:30px;align-items:center;gap:7px;margin-top:auto;padding:5px 9px;border:1px solid #ffffff55;border-radius:8px;color:inherit;font-size:11px;font-weight:750;text-decoration:none;transition:background .15s ease,border-color .15s ease}
.calendar-teacher-join:before{content:"↗";display:grid;width:18px;height:18px;place-items:center;border-radius:5px;background:#ffe779;color:#171714;font-weight:850}
.calendar-teacher-join:hover{border-color:#ffe779;background:#ffffff16}

.learning-overview-main>.telemost-join{margin-top:8px}
