@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

html, body {
  width: 100%;
  overflow-x: hidden;
}
html{
  font-size: 14px;
}
body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", "Open Sans", Helvetica, Arial, sans-serif;
}
.card { border-radius: 16px; }

/* Chat widget (teacher/admin only) */
.chat-widget{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1050;
}
body.fe-fullscreen .chat-widget{
  z-index: 1070;
}
.chat-fab{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5a4, #0f766e);
  color: #fff;
  box-shadow: 0 14px 30px rgba(14, 116, 110, 0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chat-fab-tool{
  position: absolute;
  right: 68px;
  bottom: 0;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
}
.chat-fab-tool.is-active{
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.35);
}
.chat-fab:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(14, 116, 110, 0.42);
}
.chat-fab .chat-unread{
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  border: 2px solid #fff;
  display: none;
}
.chat-panel{
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(520px, calc(100vw - 48px));
  height: min(620px, calc(100vh - 140px));
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  display: none;
  overflow: hidden;
}
.chat-panel.is-open{ display: flex; flex-direction: column; }
.chat-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(14,165,164,.15), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.chat-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #0f172a;
}
.chat-min{
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-body{
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 100%;
  min-height: 0;
}
.chat-sidebar{
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}
.chat-sidebar-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #f8fafc;
}
.chat-sidebar-title{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}
.chat-sidebar-btn{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-sidebar-btn:hover{
  background: #eef2f7;
}
.chat-sidebar-body{
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.chat-section{
  padding: 8px 0;
}
.chat-section-title{
  padding: 4px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
}
.chat-section-list{
  display: flex;
  flex-direction: column;
}
.chat-sidebar-panel{
  position: absolute;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 2;
}
.chat-sidebar-panel.is-open{
  transform: translateX(0);
}
.chat-sidebar-panel-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}
.chat-sidebar-panel-title{
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.chat-sidebar-panel-body{
  flex: 1;
  overflow-y: auto;
}
.chat-sidebar-empty{
  padding: 12px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}
.chat-thread{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  cursor: pointer;
}
.chat-thread.active{ background: #e2f5f4; }
.chat-thread .name{
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.chat-thread .meta{
  font-size: 11px;
  color: #64748b;
}
.chat-thread .badge{
  background: #dc2626;
}
.chat-main{
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.chat-messages{
  flex: 1;
  padding: 14px;
  overflow: auto;
  background:
    radial-gradient(circle at 10% 10%, rgba(14,165,164,.08), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(59,130,246,.08), transparent 45%),
    #fff;
}
.chat-empty{
  color: #64748b;
  font-size: 13px;
  text-align: center;
  margin-top: 40px;
}
.chat-row{
  display: flex;
  margin-bottom: 10px;
}
.chat-row.me{ justify-content: flex-end; }
.chat-row.is-menu-active .chat-bubble{
  box-shadow: 0 0 0 2px rgba(14, 165, 164, 0.18), 0 12px 26px rgba(15, 23, 42, 0.12);
}
.chat-bubble-shell{
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 86%;
}
.chat-row.me .chat-bubble-shell{
  flex-direction: row-reverse;
}
.chat-bubble{
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.3;
  background: #f1f5f9;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.chat-bubble.is-deleted{
  background: #e2e8f0;
  color: #475569;
}
.chat-row.me .chat-bubble{
  background: #0f766e;
  color: #fff;
}
.chat-meta-line{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.chat-time{
  font-size: 10px;
  color: #94a3b8;
  text-align: right;
}
.chat-edited-badge{
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #64748b;
  font-size: 10px;
  line-height: 1;
}
.chat-message-menu-trigger{
  width: 28px;
  height: 28px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
.chat-message-menu-trigger:hover{
  background: #ffffff;
  transform: translateY(0);
}
.chat-row.me:hover .chat-message-menu-trigger,
.chat-row.me.is-menu-active .chat-message-menu-trigger,
.chat-message-menu-trigger:focus-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.chat-row.them .chat-message-menu-trigger{
  display: none;
}
.chat-deleted{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
}
.chat-message-menu{
  position: fixed;
  z-index: 1100;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 210px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.2);
}
.chat-message-menu.is-open{
  display: flex;
}
.chat-message-menu-btn{
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  text-align: left;
}
.chat-message-menu-btn:hover{
  background: #f8fafc;
}
.chat-message-menu-btn .icon{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  color: #0f766e;
  flex: 0 0 auto;
}
.chat-message-menu-btn .label{
  font-size: 12px;
  font-weight: 600;
}
.chat-message-menu-btn.is-danger{
  color: #b91c1c;
}
.chat-message-menu-btn.is-danger .icon{
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
.chat-message-edit-input{
  min-height: 140px;
  resize: vertical;
  border-radius: 14px;
}
.chat-message-edit-error{
  display: none;
  margin-top: 10px;
  font-size: 12px;
  color: #b91c1c;
}
.chat-message-delete-copy{
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}
.chat-input{
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}
.chat-lock{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 12px 10px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid rgba(251, 146, 60, 0.25);
  color: #9a3412;
  font-size: 12px;
}
.chat-lock-icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffedd5;
  color: #c2410c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.chat-lock-title{
  font-weight: 600;
  margin-bottom: 2px;
}
.chat-lock-text{
  font-size: 11px;
  color: #9a3412;
  margin-bottom: 6px;
}
.chat-lock .btn{
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 10px;
}
.chat-input-main{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  min-height: 52px;
  width: 100%;
  transition: opacity .2s ease;
}
.chat-input.is-disabled .chat-input-main,
.chat-input.is-disabled .chat-recording,
.chat-input.is-disabled .chat-send-btn{
  display: none;
}
.chat-input.is-disabled{
  padding-top: 6px;
  padding-bottom: 6px;
}
.chat-input.is-recording .chat-attach-meta,
.chat-input.is-recording .chat-attach-error{
  display: none;
}
.chat-input.is-recording .chat-send-record{
  display: inline-flex;
}
.chat-input.is-recording .chat-send-btn:not(.chat-send-record){
  display: none;
}
.chat-recording{
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  min-height: 52px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.chat-input.is-recording .chat-recording{
  opacity: 1;
  pointer-events: auto;
}
.chat-input.is-recording .chat-input-main{
  opacity: 0;
  pointer-events: none;
}
.chat-recording-trash{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #ef4444 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.chat-recording-trash:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  background: #f1f5f9;
}
.chat-recording-body{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.chat-recording-time{
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
  /* min-width: 54px; */
  min-width: 35px;
  font-variant-numeric: tabular-nums;
}
.chat-recording-wave{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 32px;
}
.chat-recording-wave span{
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: #64748b;
  animation: chatWave 1.2s ease-in-out infinite;
  opacity: 0.9;
}
.chat-recording-wave span:nth-child(3n){
  height: 26px;
  animation-delay: .1s;
}
.chat-recording-wave span:nth-child(4n){
  height: 32px;
  animation-delay: .2s;
}
.chat-recording-wave span:nth-child(5n){
  height: 22px;
  animation-delay: .3s;
}
.chat-recording-pulse{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.18);
  animation: chatRecordPulse 1.2s ease infinite;
  flex: 0 0 auto;
}
.chat-input.is-recording .chat-send-record{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0f766e;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: none;
  flex: 0 0 auto;
}
.chat-input.is-recording .chat-send-record:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  background: #f1f5f9;
}
.chat-attach-btn{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.chat-attach-btn:hover{
  background: #f1f5f9;
}
.chat-attach-input{ display: none; }
.chat-record-btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.chat-record-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
.chat-record-btn.is-recording{
  background: #ef4444;
  color: #fff;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.12);
  animation: chatRecordPulse 1.2s ease infinite;
}
.chat-attach-clear{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #ef4444;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.chat-attach-clear:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  background: #fee2e2;
}
.chat-input textarea{
  flex: 1;
  background: transparent;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  padding: 6px 4px;
  border-radius: 12px;
  border: none;
  outline: none;
}
.chat-input button{
  border-radius: 12px;
  border: none;
  background: #fff;
  color: #0f766e;
  padding: 0 14px;
}
.chat-input .chat-send-inline{
  background: #fff;
  color: #0f766e;
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.chat-input .chat-send-inline:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
.chat-send-btn{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #111827;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}
.chat-send-inline{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  color: #0f766e;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: none;
}
.chat-send-btn i{
  font-size: 16px;
}
.chat-input.has-text .chat-send-btn{
  display: inline-flex;
}
.chat-input.has-text .chat-record-btn{
  display: none;
}
.chat-input.has-text .chat-send-inline{
  display: inline-flex;
}
.chat-input.has-text .chat-send-btn:not(.chat-send-inline){
  display: none;
}
.chat-input button.chat-record-btn,
.chat-input button.chat-attach-clear{
  padding: 0;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.chat-input button.chat-record-btn{
  color: #0f766e;
}
.chat-input button.chat-attach-clear{
  color: #ef4444;
}
.chat-input button.chat-record-btn.is-recording{
  background: #ef4444;
  color: #fff;
  border-color: rgba(239, 68, 68, 0.4);
}
.btn.is-loading{
  pointer-events: none;
  opacity: 0.9;
}
.btn.is-loading .btn-spinner{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  vertical-align: middle;
  animation: btnSpin .7s linear infinite;
}
.btn.is-loading .btn-label{
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
}
@keyframes btnSpin{
  to { transform: rotate(360deg); }
}
.chat-attach-meta{
  width: 100%;
  font-size: 11px;
  color: #64748b;
  padding-left: 12px;
  margin-top: -2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-attach-error{
  width: 100%;
  font-size: 11px;
  color: #b91c1c;
  padding-left: 12px;
  margin-top: -4px;
  display: none;
}
.chat-text{ margin-bottom: 6px; }
.chat-attachment{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-audio-card{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  height: 60px;
  width: 260px;
  max-width: 100%;
}
.chat-audio-btn{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.chat-audio-btn.is-playing{
  background: #0f766e;
  color: #ffffff;
  border-color: rgba(15, 118, 110, 0.4);
}
.chat-audio-body{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-audio-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.chat-audio-title{
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-audio-meta-text{
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}
.chat-audio-track{
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
  overflow: hidden;
  cursor: pointer;
}
.chat-audio-progress{
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #38bdf8);
}
.chat-audio-download{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}
.chat-audio-download:hover{
  background: #f8fafc;
  transform: translateY(-1px);
}
.chat-audio-el{
  display: none;
}
.chat-attachment-media{
  width: 200px;
  height: 120px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f1f5f9;
  display: block;
}
img.chat-attachment-media{
  cursor: zoom-in;
}
.chat-attachment-media-wrap{
  position: relative;
  width: fit-content;
  max-width: 100%;
}
.chat-attachment-download{
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}
.chat-attachment-download:hover{
  background: #f8fafc;
  transform: translateY(-1px);
}
.chat-attachment-audio{
  width: 220px;
  max-width: 100%;
  height: 60px;
  display: block;
}
.chat-attachment-file{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
}
.chat-attachment-meta{
  display: none;
  font-size: 11px;
  color: #94a3b8;
}
.chat-attachment-meta.is-link{
  text-decoration: none;
  color: #64748b;
}
.chat-attachment-meta.is-link:hover{
  text-decoration: underline;
}
.chat-row.me .chat-attachment-file{
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.chat-row.me .chat-attachment-meta{
  color: rgba(255, 255, 255, 0.75);
}
.chat-row.me .chat-attachment-meta.is-link{
  color: rgba(255, 255, 255, 0.75);
}
.chat-row.me .chat-edited-badge{
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
}
.chat-row.me .chat-attachment-media{
  border-color: rgba(255, 255, 255, 0.25);
}
.chat-row.me .chat-audio-card{
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}
.chat-row.me .chat-audio-title{
  color: #ffffff;
}
.chat-row.me .chat-audio-meta-text{
  color: rgba(255, 255, 255, 0.75);
}
.chat-row.me .chat-audio-track{
  background: rgba(255, 255, 255, 0.2);
}
.chat-row.me .chat-audio-progress{
  background: linear-gradient(90deg, #ffffff, #d1fae5);
}
.chat-row.me .chat-audio-btn{
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.chat-row.me .chat-audio-btn.is-playing{
  background: #ffffff;
  color: #0f766e;
}
.chat-row.me .chat-audio-download{
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.chat-row.me .chat-message-menu-trigger{
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

@keyframes chatRecordPulse{
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes chatWave{
  0%, 100% { transform: scaleY(0.6); opacity: 0.6; }
  50% { transform: scaleY(1.4); opacity: 1; }
}

/* Module dock (teacher) */
.module-dock{
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 12px;
  --dock-peek: 18px;
  transition: transform 0.35s ease, opacity 0.25s ease, filter 0.25s ease;
}
.module-dock.right{
  left: auto;
  right: 20px;
}
.module-dock .dock-form{ margin: 0; }
.module-dock .dock-btn{
  width: 62px;
  height: 180px;
  border-radius: 22px;
  text-decoration: none;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.14em;
  line-height: 1;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.module-dock .dock-btn.reading{
  background: linear-gradient(180deg, #e0f2fe, #f8fafc);
  border-color: rgba(2, 132, 199, 0.25);
  color: #075985;
}
.module-dock .dock-btn.listening{
  background: linear-gradient(180deg, #ecfeff, #f0fdfa);
  border-color: rgba(13, 148, 136, 0.25);
  color: #0f766e;
}
.module-dock .dock-btn.writing{
  background: linear-gradient(180deg, #fef9c3, #fefce8);
  border-color: rgba(202, 138, 4, 0.25);
  color: #92400e;
}
.module-dock .dock-btn.speaking{
  background: linear-gradient(180deg, #ede9fe, #f5f3ff);
  border-color: rgba(109, 40, 217, 0.25);
  color: #5b21b6;
}
.module-dock .dock-btn:hover,
.module-dock .dock-btn.active{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  border-color: rgba(15, 23, 42, 0.22);
}
body.module-dock-collapsed .module-dock{
  transform: translateY(-50%) translateX(calc(-100% + var(--dock-peek)));
  opacity: 0.65;
  filter: saturate(0.85);
}
body.module-dock-collapsed .module-dock.right{
  transform: translateY(-50%) translateX(calc(100% - var(--dock-peek)));
}
body.module-dock-collapsed .module-dock:hover,
body.module-dock-collapsed .module-dock:focus-within,
body.module-dock-collapsed .module-dock:focus{
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  filter: none;
}
body.module-dock-collapsed .module-dock.is-open{
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  filter: none;
}

/* Calendar module */
.calendar-shell{
  --cal-ink: #0f172a;
  --cal-muted: #64748b;
  --cal-border: rgba(15, 23, 42, 0.08);
  --cal-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --cal-accent: #2563eb;
  --cal-accent-strong: #1d4ed8;
  display: grid;
  gap: 20px;
  padding: 28px 0 48px;
  color: var(--cal-ink);
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
}
.calendar-hero{
  position: relative;
  padding: 26px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(14, 116, 144, 0.16), transparent 50%),
    linear-gradient(135deg, #eff6ff 0%, #f8fafc 45%, #ecfeff 100%);
  border: 1px solid var(--cal-border);
  box-shadow: var(--cal-shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.calendar-hero::after{
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 60%);
  pointer-events: none;
}
.calendar-hero-copy{
  display: grid;
  gap: 6px;
  max-width: 520px;
}
.calendar-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--cal-accent-strong);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  width: fit-content;
}
.calendar-title{
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  margin: 0;
}
.calendar-subtitle{
  margin: 0;
  color: var(--cal-muted);
}
.calendar-hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  z-index: 1;
}
.calendar-view-toggle{
  display: inline-flex;
  padding: 4px;
  background: #ffffff;
  border-radius: 999px;
  gap: 4px;
  border: 1px solid var(--cal-border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.calendar-view-toggle .btn{
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--cal-muted);
  padding: 6px 14px;
}
.calendar-view-toggle .btn.is-active{
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}
.calendar-nav{
  display: inline-flex;
  gap: 6px;
}
.calendar-nav .btn{
  /* border-radius: 999px;
  border: 1px solid var(--cal-border);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08); */
    border-radius: 999px;
    border: 1px solid var(--cal-border);
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    color: white;
}
.calendar-add-btn{
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border: none;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
}
.calendar-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--cal-border);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}
.calendar-month{
  font-size: 20px;
  font-weight: 700;
}
.calendar-legend{
  display: flex;
  gap: 12px;
  color: var(--cal-muted);
  font-size: 12px;
}
.calendar-legend-item{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.legend-dot.dot-open{ background: #6366f1; }
.legend-dot.dot-done{ background: #94a3b8; }

.calendar-board-wrap{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}
.calendar-board{
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid var(--cal-border);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  padding: 16px;
}
.calendar-weekdays{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.calendar-weekday{
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #94a3b8;
  font-weight: 700;
}
.calendar-grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-cell{
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 8px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.calendar-cell.is-other{
  opacity: 0.5;
}
.calendar-cell.is-today{
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}
.calendar-cell.is-selected{
  border-color: rgba(14, 116, 144, 0.6);
  box-shadow: 0 12px 24px rgba(14, 116, 144, 0.12);
}
.calendar-cell:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}
.calendar-cell-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calendar-date{
  font-weight: 700;
  font-size: 13px;
}
.calendar-add{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.calendar-cell:hover .calendar-add{
  opacity: 1;
  transform: translateY(-1px);
}
.calendar-cell-events{
  display: grid;
  gap: 6px;
}
.calendar-event{
  background: var(--event-color, #6366f1);
  color: #fff;
  border-radius: 12px;
  padding: 6px 8px;
  display: grid;
  gap: 2px;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}
.calendar-event.is-done{
  opacity: 0.6;
  text-decoration: line-through;
}
.calendar-event-title{
  font-weight: 600;
}
.calendar-event-time{
  opacity: 0.9;
}
.calendar-more{
  border: none;
  background: transparent;
  color: #475569;
  font-size: 11px;
  text-align: left;
  padding: 0;
}
.calendar-agenda{
  display: none;
  gap: 12px;
}
.calendar-agenda-day{
  border: 1px solid var(--cal-border);
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
  display: grid;
  gap: 10px;
}
.calendar-agenda-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calendar-agenda-date{
  font-weight: 700;
}
.calendar-agenda-list{
  display: grid;
  gap: 8px;
}
.calendar-agenda-item{
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--cal-border);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.calendar-agenda-item.is-done{
  opacity: 0.6;
  text-decoration: line-through;
}
.calendar-agenda-item::before{
  content: "";
  width: 6px;
  height: 34px;
  border-radius: 999px;
  background: var(--event-color, #6366f1);
}
.calendar-agenda-meta{
  flex: 1;
}
.calendar-agenda-title{
  font-weight: 600;
}
.calendar-agenda-time{
  font-size: 12px;
  color: var(--cal-muted);
}
.calendar-agenda-actions{
  display: flex;
  gap: 6px;
}
.calendar-agenda-empty{
  font-size: 12px;
  color: #94a3b8;
}
.calendar-side{
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--cal-border);
  padding: 16px;
  display: grid;
  gap: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 100px;
  height: fit-content;
}
.calendar-side.is-hidden{
  display: none;
}
.calendar-side-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.calendar-side-label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #94a3b8;
}
.calendar-side-title{
  font-weight: 700;
  font-size: 16px;
}
.calendar-side-list{
  display: grid;
  gap: 10px;
}
.calendar-side-item{
  border: 1px solid var(--cal-border);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
}
.calendar-side-item.is-done{
  opacity: 0.6;
  text-decoration: line-through;
}
.calendar-side-item::before{
  content: "";
  width: 6px;
  height: 36px;
  border-radius: 999px;
  background: var(--event-color, #6366f1);
}
.calendar-side-meta{
  flex: 1;
}
.calendar-side-title-text{
  font-weight: 600;
}
.calendar-side-time{
  font-size: 12px;
  color: var(--cal-muted);
}
.calendar-side-actions{
  display: flex;
  gap: 6px;
}
.calendar-side-empty{
  font-size: 13px;
  color: #94a3b8;
}
.calendar-modal .modal-content{
  border-radius: 20px;
}
.calendar-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.calendar-form-group.full{
  grid-column: 1 / -1;
}
.calendar-form-group.is-disabled{
  opacity: 0.5;
}
.calendar-form-error{
  margin-top: 12px;
  font-size: 13px;
  color: #dc2626;
  display: none;
}
.calendar-toast{
  position: fixed;
  right: 20px;
  bottom: 24px;
  background: #0f172a;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.3);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1200;
}
.calendar-toast.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.calendar-toast.is-error{
  background: #b91c1c;
}

/* Module pages */
.module-shell{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
.module-sidebar{
  position: sticky;
  top: calc(var(--app-header-height, 72px) + 16px);
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  isolation: isolate;
}
.module-sidebar::before{
  content:"";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(59,130,246,0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.module-sidebar .module-label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  position: relative;
  z-index: 1;
}
.module-sidebar .module-title{
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
  letter-spacing: .04em;
  position: relative;
  z-index: 1;
}
.module-nav{
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.module-nav-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.module-nav-btn.active{
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-color: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.24);
}
.module-nav-btn:not(.active):hover{
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.2);
  background: #f8fafc;
}
.module-nav-btn.active:hover{
  color: #ffffff;
}
.module-nav-btn.cta{
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
  border: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}
.module-nav-btn.cta:hover{
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  border-color: transparent;
  color: #ffffff;
}
.module-content{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.module-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.module-filter{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.module-filter .filter-btn{
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: #475569;
}
.module-filter .filter-btn.active{
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}
.module-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.module-full-toolbar{
  margin-bottom: 16px;
}
.module-card{
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.module-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}
.module-full-folder-card{
  cursor: pointer;
}
.module-card-thumb{
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.9), rgba(241, 245, 249, 0.5));
}
.module-card-thumb.reading{
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(255, 255, 255, 0.9));
  color: #0369a1;
}
.module-card-thumb.listening{
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(255, 255, 255, 0.9));
  color: #0f766e;
}
.module-card-thumb.writing{
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(255, 255, 255, 0.9));
  color: #b45309;
}
.module-card-body{
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.module-card-kicker{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #94a3b8;
}
.module-card-title{
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.module-full-folder-card .module-card-title{
  min-height: 40px;
}
.module-card-desc{
  font-size: 12px;
  color: #64748b;
  min-height: 32px;
}
.module-full-folder-note{
  margin-top: auto;
  padding-top: 2px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.module-card-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
}
.module-pagination .pagination{
  gap: 0;
}
.module-pagination .page-link{
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  padding: .35rem .75rem;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 8px 16px rgba(15,23,42,.06);
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.module-pagination .page-link:hover{
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.35);
  color: #1d4ed8;
  transform: translateY(-1px);
}
.module-pagination .page-item.active .page-link{
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  box-shadow: 0 12px 22px rgba(15,23,42,.25);
}
.module-pagination .page-item.disabled .page-link{
  color: rgba(15,23,42,.4);
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.08);
  box-shadow: none;
}
.module-writing-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.module-writing-col{
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.module-writing-divider{
  width: 1px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0));
  border-radius: 999px;
}
.module-writing-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}
.module-writing-title{
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.module-task-grid{
  grid-template-columns: 1fr;
}
.module-task-img{
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}
.module-folder-stack{
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.module-folder,
.module-subfolder{
  border: 0;
}
.module-folder-summary,
.module-subfolder-summary{
  list-style: none;
  cursor: pointer;
  outline: none;
}
.module-folder-summary::-webkit-details-marker,
.module-subfolder-summary::-webkit-details-marker{
  display: none;
}
.module-folder-tile{
  width: 100%;
}
.module-folder-tile.is-root{
  min-height: 140px;
}
.module-folder-tile.is-subfolder{
  min-height: 120px;
}
.module-folder-tile.is-empty{
  opacity: 0.6;
}
.module-folder-body{
  margin-top: 12px;
}
.module-folder-body > .module-folder{
  margin-bottom: 12px;
}
.module-folder-body > .module-folder:last-child{
  margin-bottom: 0;
}
.module-subfolder-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.module-subfolder-body{
  margin-top: 12px;
}
.module-writing-explorer-shell{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
}
.module-writing-explorer-panel{
  border-radius:22px;
  overflow:hidden;
}
.module-writing-explorer-panel .card-body{
  padding:20px;
}
.module-writing-explorer-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}
.module-writing-explorer-kicker{
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#94a3b8;
}
.module-writing-explorer-title{
  font-size:1.1rem;
  font-weight:800;
  color:#0f172a;
}
.module-writing-explorer-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.module-writing-explorer-meta span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#eef2ff;
  border:1px solid #dbeafe;
  color:#1e3a8a;
  font-size:.78rem;
  font-weight:700;
}
.module-writing-toolbar{
  margin-bottom:16px;
}
.module-writing-panel-note{
  font-size:.84rem;
  color:#64748b;
}
.module-writing-grid-panel{
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  align-items:stretch;
}
.module-writing-folder-tile{
  text-align:left;
  min-height:180px;
}
.module-writing-folder-open{
  margin-top:auto;
  font-size:.78rem;
  font-weight:700;
  color:#475569;
}
.module-writing-task-card{
  cursor:pointer;
  transition:all .2s ease;
}
.module-writing-task-card:hover{
  transform:translateY(-2px);
}
.module-writing-task-card.is-selected{
  border-color:#2563eb;
  background:#eef2ff;
  box-shadow:0 0 0 2px rgba(37,99,235,.12);
}
.module-writing-task-kicker{
  margin-top:4px;
  font-size:.8rem;
  font-weight:700;
  color:#64748b;
}
.module-writing-task-preview{
  width:100%;
  max-height:180px;
  object-fit:contain;
  object-position:center;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
  background:#f8fafc;
}
.module-writing-task-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.module-writing-task-footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.module-writing-task-state{
  font-size:.84rem;
  font-weight:700;
  color:#0f172a;
}
.module-writing-task-shortcut{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#64748b;
  font-size:.75rem;
  font-weight:700;
}
@media (max-width: 992px){
  .module-writing-grid{
    grid-template-columns: 1fr;
  }
  .module-writing-divider{
    display: none;
  }
  .module-writing-explorer-shell{
    grid-template-columns:1fr;
  }
}
.module-card-overlay{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.55));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.module-card:hover .module-card-overlay,
.module-card:focus-within .module-card-overlay{
  opacity: 1;
  pointer-events: auto;
}
.module-card-overlay .module-card-btn{
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}
.module-card-overlay .module-card-btn:hover{
  transform: translateY(-1px);
}
.module-card-overlay-text{
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}
.module-part-card{
  cursor: pointer;
}
.module-card.is-selected{
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 14px 30px rgba(13, 110, 253, 0.18);
}
.module-card-check{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.module-card.is-selected .module-card-check{
  opacity: 1;
  transform: scale(1);
}
.module-action-bar{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  bottom: 10px;
  z-index: 5;
}
.module-action-bar.is-error{
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.12);
}
.module-action-left{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.module-action-title{
  font-weight: 700;
  color: #0f172a;
}
.module-action-meta{
  font-size: 13px;
  color: #475569;
}
.module-action-right{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.module-action-hint{
  font-size: 12px;
  color: #64748b;
}
.module-action-bar.is-error .module-action-hint{
  color: #b91c1c;
}
.module-empty{
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  color: #64748b;
  text-align: center;
  background: #f8fafc;
}

.tasks-shell{
  --tasks-ink: #0f172a;
  --tasks-muted: #475569;
  --tasks-accent: #f97316;
  --tasks-accent-strong: #ea580c;
  --tasks-border: rgba(15, 23, 42, 0.08);
  --tasks-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 24px;
}
.tasks-hero{
  position: relative;
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.18), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(14, 116, 144, 0.18), transparent 50%),
    linear-gradient(135deg, #fff7ed 0%, #eef2ff 45%, #ecfeff 100%);
  border: 1px solid var(--tasks-border);
  overflow: hidden;
}
.tasks-hero-inner{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tasks-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
  color: var(--tasks-accent-strong);
}
.tasks-title{
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 700;
  color: var(--tasks-ink);
}
.tasks-subtitle{
  margin: 0;
  font-size: 15px;
  color: var(--tasks-muted);
}
.tasks-hero-stat{
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--tasks-border);
  box-shadow: var(--tasks-shadow);
}
.tasks-stat-label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--tasks-muted);
  font-weight: 700;
}
.tasks-stat-value{
  font-size: 28px;
  font-weight: 700;
  color: var(--tasks-ink);
}
.tasks-compose{
  display: grid;
  gap: 18px;
}
.tasks-compose-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}
.tasks-card{
  background: #ffffff;
  border: 1px solid var(--tasks-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--tasks-shadow);
  display: grid;
  gap: 16px;
}
.tasks-card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tasks-card-title{
  font-weight: 700;
  color: var(--tasks-ink);
}
.tasks-card-subtitle{
  font-size: 13px;
  color: var(--tasks-muted);
}
.tasks-badge{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--tasks-accent-strong);
  font-weight: 600;
  font-size: 12px;
}
.tasks-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tasks-form-full{
  grid-column: 1 / -1;
}
.tasks-due-picker .input-group-text{
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}
.task-file-list{
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.task-file-pill{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  font-size: 13px;
}
.task-file-name{
  font-weight: 600;
  color: var(--tasks-ink);
  flex: 1 1 auto;
}
.task-file-size{
  color: var(--tasks-muted);
}
.task-file-remove{
  color: #dc2626;
}
.task-inline-status{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: var(--tasks-muted);
}
.task-inline-status.is-error{
  border-color: rgba(220, 38, 38, 0.25);
  background: #fef2f2;
  color: #b91c1c;
}
.task-interactive-switch{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(248, 250, 252, 0.98));
}
.task-interactive-switch.is-disabled{
  opacity: 0.72;
}
.task-interactive-copy{
  min-width: 0;
}
.task-interactive-title{
  font-weight: 700;
  color: var(--tasks-ink);
}
.task-interactive-text{
  margin-top: 4px;
  font-size: 13px;
  color: var(--tasks-muted);
}
.task-interactive-summary{
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
}
.task-interactive-summary-main{
  min-width: 0;
}
.task-interactive-summary-title{
  font-weight: 700;
  color: #1d4ed8;
}
.task-interactive-summary-text{
  margin-top: 4px;
  font-size: 13px;
  color: var(--tasks-muted);
}
.tasks-recipient-tools{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tasks-recipient-count{
  font-size: 13px;
  color: var(--tasks-muted);
}
.tasks-section-title{
  font-weight: 700;
  color: var(--tasks-ink);
  margin-bottom: 8px;
}
.task-group-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.task-group-pill{
  position: relative;
  display: inline-flex;
  min-width: 180px;
}
.task-group-pill input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.task-group-pill-body{
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  font-size: 13px;
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.task-group-pill:hover .task-group-pill-body{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15,23,42,.08);
}
.task-group-pill input:checked + .task-group-pill-body{
  background: var(--tasks-accent-strong);
  border-color: var(--tasks-accent-strong);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.25);
}
.task-group-pill.is-selected-manual .task-group-pill-body{
  background: var(--tasks-accent-strong);
  border-color: var(--tasks-accent-strong);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.25);
}
.task-group-pill.is-viewing .task-group-pill-body{
  border-color: rgba(37,99,235,.26);
  box-shadow: 0 14px 28px rgba(37,99,235,.12);
}
.task-group-pill.is-viewing input:checked + .task-group-pill-body{
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.22), 0 0 0 2px rgba(37,99,235,.14);
}
.task-group-pill.is-viewing.is-selected-manual .task-group-pill-body{
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.22), 0 0 0 2px rgba(37,99,235,.14);
}
.task-group-pill.is-loading .task-group-pill-body{
  cursor: progress;
}
.task-group-pill-main{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  transition: opacity .18s ease, transform .18s ease;
}
.task-group-pill:hover .task-group-pill-main{
  opacity: .08;
  transform: scale(.98);
}
.task-group-pill-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(249, 115, 22, 0.12);
  color: var(--tasks-accent-strong);
}
.task-group-pill input:checked + .task-group-pill-body .task-group-pill-count{
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.task-group-pill.is-selected-manual .task-group-pill-count{
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.task-group-pill-actions{
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.task-group-pill:hover .task-group-pill-actions{
  opacity: 1;
  pointer-events: auto;
}
.task-group-pill-action{
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0f172a;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.task-group-pill-action:hover,
.task-group-pill-action:focus-visible{
  background: rgba(255,255,255,.42);
  color: #0f172a;
  outline: none;
}
.task-group-pill input:checked + .task-group-pill-body .task-group-pill-action{
  color: #fff;
}
.task-group-pill.is-selected-manual .task-group-pill-action{
  color: #fff;
}
.task-group-pill input:checked + .task-group-pill-body .task-group-pill-action:hover,
.task-group-pill input:checked + .task-group-pill-body .task-group-pill-action:focus-visible{
  background: rgba(255,255,255,.14);
}
.task-group-pill.is-selected-manual .task-group-pill-action:hover,
.task-group-pill.is-selected-manual .task-group-pill-action:focus-visible{
  background: rgba(255,255,255,.14);
}
.task-group-pill.is-viewing .task-group-pill-action.is-view{
  color: #1d4ed8;
}
.task-group-pill.is-viewing input:checked + .task-group-pill-body .task-group-pill-action.is-view{
  color: #fff;
}
.task-group-pill.is-viewing.is-selected-manual .task-group-pill-action.is-view{
  color: #fff;
}
.task-group-pill-action[disabled]{
  opacity: .55;
  pointer-events: none;
}
.task-group-pill-divider{
  width: 1px;
  height: 0;
  background: rgba(15,23,42,.16);
  align-self: center;
  transition: height .22s ease, background .18s ease;
}
.task-group-pill:hover .task-group-pill-divider{
  height: 62%;
}
.task-group-pill input:checked + .task-group-pill-body .task-group-pill-divider{
  background: rgba(255,255,255,.26);
}
.task-group-pill.is-selected-manual .task-group-pill-divider{
  background: rgba(255,255,255,.26);
}
.tasks-section-title-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.tasks-student-status{
  font-size: 12px;
  font-weight: 600;
  color: var(--tasks-muted);
}
.tasks-student-table{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.tasks-student-table-empty{
  padding: 22px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tasks-muted);
}
.tasks-student-wrap{
  max-height: 320px;
  overflow: auto;
}
.tasks-student-table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}
.tasks-compose-footer{
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.tasks-list{
  display: grid;
  gap: 14px;
}
.tasks-filter-card{
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--tasks-border);
  background: #ffffff;
  box-shadow: var(--tasks-shadow);
}
.tasks-filter-item{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}
.tasks-filter-grow{
  flex: 1 1 260px;
}
.tasks-filter-label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--tasks-muted);
}
.tasks-filter-input .input-group-text{
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--tasks-muted);
}
.tasks-filter-input .form-control,
.tasks-filter-input .form-select{
  border-color: rgba(15, 23, 42, 0.12);
}
.tasks-filter-input .form-control:focus,
.tasks-filter-input .form-select:focus{
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 0 0.15rem rgba(249, 115, 22, 0.2);
}
.tasks-date-label{
  font-weight: 700;
  color: var(--tasks-ink);
  margin-top: 6px;
}
.task-card{
  background: #ffffff;
  border: 1px solid var(--tasks-border);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--tasks-shadow);
}
.task-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.task-card-title{
  font-size: 18px;
  font-weight: 700;
  color: var(--tasks-ink);
}
.task-card-meta{
  font-size: 13px;
  color: var(--tasks-muted);
}
.task-card-body{
  margin-top: 10px;
  color: var(--tasks-ink);
}
.task-card-body p{
  margin: 0 0 12px 0;
}
.task-card-badge{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.task-card.is-unseen{
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.12);
}
.task-interactive-badge{
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}
.task-new-badge{
  background: rgba(249, 115, 22, 0.16);
  color: #c2410c;
}
.task-seen-btn{
  white-space: nowrap;
}
.task-assign-badge{
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}
.task-dot{
  margin: 0 6px;
}
.task-overdue{
  color: #dc2626;
  font-weight: 600;
}
.task-attachments{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  justify-content: start;
  align-items: start;
}
.task-attachment-card{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: #f8fafc;
}
.task-attachment-card.is-unseen{
  border-color: rgba(249, 115, 22, 0.4);
  background: #fff7ed;
}
.task-attachment-preview{
  width: 100%;
  height: 140px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: #f1f5f9;
  display: block;
}
img.task-attachment-preview{
  cursor: zoom-in;
}
.task-attachment-audio{
  width: 100%;
}
.task-attachment-info{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.task-attachment-name{
  font-weight: 600;
  font-size: 13px;
  color: var(--tasks-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}
.task-attachment-meta{
  font-size: 12px;
  color: var(--tasks-muted);
}
.task-attachment-meta .task-new-badge{
  margin-left: 6px;
}
.task-attachment-actions{
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.task-image-modal .modal-dialog{
  max-width: 960px;
}
.task-image-modal .modal-content{
  background: #0b1220;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.45);
}
.task-image-modal .modal-header{
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}
.task-image-modal .modal-title{
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.task-image-modal .btn-close{
  filter: invert(1);
  opacity: 0.8;
}
.task-image-modal .btn-close:hover{
  opacity: 1;
}
.task-image-modal .modal-body{
  padding: 12px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.task-image-preview{
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  background: #0b1220;
}
.task-replies{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.task-replies-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.task-replies-title{
  font-weight: 600;
  color: var(--tasks-ink);
}
.task-replies-count{
  font-size: 12px;
  color: var(--tasks-muted);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff;
}
.task-replies-list{
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.task-reply-card{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.task-reply-card.is-unseen{
  border-color: rgba(249, 115, 22, 0.4);
  background: #fff7ed;
}
.task-reply-icon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 18px;
  flex: 0 0 auto;
}
.task-reply-body{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.task-reply-title{
  font-weight: 600;
  font-size: 13px;
  color: var(--tasks-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-reply-meta{
  font-size: 12px;
  color: var(--tasks-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.task-reply-dot{
  opacity: 0.5;
}
.task-reply-actions{
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 0 0 auto;
}
.task-interactive-modal-grid{
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
}
.task-interactive-panel{
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}
.task-interactive-panel-title{
  font-weight: 700;
  color: var(--tasks-ink);
  margin-bottom: 10px;
}
.task-interactive-cta-card{
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255,255,255,0.98));
}
.task-interactive-cta-title{
  font-weight: 700;
  color: #1d4ed8;
}
.task-interactive-cta-text{
  display: none;
}
.task-interactive-cta-meta{
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
}
.interactive-task-shell{
  max-width: 1520px;
}
.interactive-task-layout{
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.interactive-task-sidebar{
  align-self: start;
  min-width: 0;
  position: relative;
}
.interactive-task-sidebar-stack{
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 6px;
}
.interactive-task-sidebar-stack::-webkit-scrollbar{
  width: 8px;
}
.interactive-task-sidebar-stack::-webkit-scrollbar-thumb{
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}
.interactive-task-sidebar-stack::-webkit-scrollbar-track{
  background: transparent;
}
.interactive-task-sidebar-stack.is-frozen{
  position: fixed;
  top: var(--it-sidebar-top, 84px);
  left: var(--it-sidebar-left, 0px);
  width: var(--it-sidebar-width, 320px);
  z-index: 20;
}
.interactive-task-sidebar-stack.is-bottom-locked{
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
}
.interactive-task-panel{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}
.interactive-task-tool-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.interactive-tool-btn{
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}
.interactive-tool-btn.is-active{
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(255,255,255,0.95));
  border-color: rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
}
.interactive-task-tip{
  margin-top: 12px;
  font-size: 13px;
  color: var(--tasks-muted);
  line-height: 1.55;
}
.interactive-task-status{
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--tasks-ink);
  font-size: 13px;
}
.interactive-task-status.is-error{
  border-color: rgba(220, 38, 38, 0.22);
  background: #fef2f2;
  color: #b91c1c;
}
.interactive-task-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.interactive-task-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.interactive-task-editor-card{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.interactive-task-editor-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.interactive-task-editor-title{
  font-size: 18px;
  font-weight: 700;
  color: var(--tasks-ink);
}
.interactive-task-editor-subtitle{
  margin-top: 6px;
  font-size: 13px;
  color: var(--tasks-muted);
}
.interactive-task-pages{
  display: grid;
  gap: 18px;
  padding: 20px;
}
.interactive-task-page{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.interactive-task-page.is-focused{
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.12);
}
.interactive-task-page-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--tasks-ink);
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.interactive-task-page-meta{
  font-size: 12px;
  color: var(--tasks-muted);
}
.interactive-task-stage{
  position: relative;
  width: 100%;
  background: #edf2f7;
  overflow: hidden;
  cursor: default;
}
.interactive-task-stage.is-brush{
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23007bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21l6-1 11-11-5-5L4 15l-1 6z'/><path d='M14 4l6 6'/></svg>") 4 20, crosshair;
  touch-action: none;
}
.interactive-task-page-image{
  width: 100%;
  display: block;
}
.interactive-task-strokes,
.interactive-task-box-layer{
  position: absolute;
  inset: 0;
}
.interactive-task-strokes{
  width: 100%;
  height: 100%;
  pointer-events: auto;
}
.interactive-task-stage.is-brush .interactive-task-strokes{
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23007bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21l6-1 11-11-5-5L4 15l-1 6z'/><path d='M14 4l6 6'/></svg>") 4 20, crosshair;
  touch-action: none;
}
.interactive-task-stroke{
  fill: none;
  stroke: rgba(0, 123, 255, 0.28);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.interactive-task-stroke.is-draft{
  stroke-opacity: 0.5;
}
.interactive-task-box-layer{
  pointer-events: none;
}
.interactive-task-box{
  position: absolute;
  pointer-events: auto;
  border: 1px solid rgba(37, 99, 235, 0.45);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
  overflow: visible;
  padding: 5px 8px 6px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.interactive-task-box.is-select-mode{
  border-color: rgba(37, 99, 235, 0.58);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.16);
}
.interactive-task-box:focus-within{
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.18);
}
.interactive-task-box-controls{
  position: absolute;
  top: -12px;
  right: -12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.interactive-task-box-drag{
  position: static;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.interactive-task-box-drag:active{
  cursor: grabbing;
}
.interactive-task-box-drag:hover,
.interactive-task-box-drag:focus-visible{
  background: #dbeafe;
  color: #1d4ed8;
}
.interactive-task-box-remove{
  position: static;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
  z-index: 3;
}
.interactive-task-box-remove:hover,
.interactive-task-box-remove:focus-visible{
  background: #fee2e2;
  color: #991b1b;
}
.interactive-task-box-input{
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  resize: none;
  padding: 0;
  font-size: 15px;
  line-height: 1.35;
  color: #0f172a;
  outline: none;
  overflow: hidden;
  white-space: pre-wrap;
}
.interactive-task-box-input::placeholder{
  color: #94a3b8;
}
.interactive-task-box-resize{
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(37, 99, 235, 0.6);
  border-bottom: 2px solid rgba(37, 99, 235, 0.6);
  cursor: nwse-resize;
  touch-action: none;
}
@media (max-width: 991.98px){
  .task-interactive-modal-grid,
  .interactive-task-layout{
    grid-template-columns: minmax(0, 1fr);
  }
  .interactive-task-sidebar-stack{
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .task-interactive-summary,
  .task-interactive-cta-card,
  .interactive-task-editor-head{
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 767.98px){
  .task-interactive-switch{
    flex-direction: column;
    align-items: flex-start;
  }
  .task-interactive-summary,
  .task-interactive-cta-card{
    padding: 14px;
  }
  .interactive-task-pages{
    padding: 14px;
  }
  .interactive-task-page-head{
    padding: 10px 12px;
  }
  .interactive-task-box{
    padding: 6px 9px 7px;
  }
  .interactive-task-box-controls{
    top: -10px;
    right: -10px;
    gap: 6px;
  }
  .interactive-task-box-drag{
    width: 32px;
    height: 32px;
  }
  .interactive-task-box-remove{
    width: 32px;
    height: 32px;
  }
  .interactive-task-box-input{
    font-size: 16px;
  }
}
@media (max-width: 576px){
  .task-replies-list{
    grid-template-columns: 1fr;
  }
  .task-reply-card{
    flex-direction: column;
    align-items: flex-start;
  }
  .task-reply-actions{
    width: 100%;
    justify-content: flex-end;
  }
}
.tasks-empty{
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  color: var(--tasks-muted);
  text-align: center;
  background: #f8fafc;
}

.attendance-shell{
  --att-ink: #0f172a;
  --att-muted: #475569;
  --att-accent: #2563eb;
  --att-accent-strong: #1d4ed8;
  --att-border: rgba(15, 23, 42, 0.08);
  --att-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 24px;
}
.attendance-hero{
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--att-border);
  background:
    radial-gradient(circle at 12% 20%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(14, 116, 144, 0.18), transparent 50%),
    linear-gradient(135deg, #eff6ff 0%, #f8fafc 45%, #ecfeff 100%);
}
.attendance-hero-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.attendance-kicker{
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
  color: var(--att-accent-strong);
}
.attendance-title{
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  color: var(--att-ink);
}
.attendance-subtitle{
  margin: 0;
  font-size: 15px;
  color: var(--att-muted);
}
.attendance-hero-stat{
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--att-border);
  box-shadow: var(--att-shadow);
}
.attendance-stat-label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--att-muted);
  font-weight: 700;
}
.attendance-stat-value{
  font-size: 24px;
  font-weight: 700;
  color: var(--att-ink);
}

/* Generic page hero */
.page-hero{
  --hero-ink: #0f172a;
  --hero-muted: #475569;
  --hero-accent: #2563eb;
  --hero-accent-strong: #1d4ed8;
  --hero-border: rgba(15, 23, 42, 0.08);
  --hero-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--hero-border);
  background:
    radial-gradient(circle at 12% 20%, rgba(37, 99, 235, 0.16), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(14, 116, 144, 0.16), transparent 50%),
    linear-gradient(135deg, #eff6ff 0%, #f8fafc 45%, #ecfeff 100%);
  box-shadow: var(--hero-shadow);
  overflow: hidden;
}
.page-hero.hero-teacher{
  --hero-accent: #2563eb;
  --hero-accent-strong: #1d4ed8;
}
.page-hero.hero-student{
  --hero-accent: #16a34a;
  --hero-accent-strong: #15803d;
  background:
    radial-gradient(circle at 12% 20%, rgba(22, 163, 74, 0.18), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(14, 116, 144, 0.16), transparent 50%),
    linear-gradient(135deg, #f0fdf4 0%, #f8fafc 45%, #ecfeff 100%);
}
.page-hero.hero-admin{
  --hero-accent: #0f766e;
  --hero-accent-strong: #0f766e;
  background:
    radial-gradient(circle at 12% 20%, rgba(15, 118, 110, 0.18), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(30, 64, 175, 0.12), transparent 50%),
    linear-gradient(135deg, #ecfeff 0%, #f8fafc 45%, #eef2ff 100%);
}
.page-hero.hero-ceo{
  --hero-accent: #d97706;
  --hero-accent-strong: #b45309;
  background:
    radial-gradient(circle at 12% 20%, rgba(217, 119, 6, 0.18), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(14, 116, 144, 0.12), transparent 50%),
    linear-gradient(135deg, #fff7ed 0%, #f8fafc 45%, #ecfeff 100%);
}
.page-hero-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.page-hero-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
  color: var(--hero-accent-strong);
}
.page-hero-title{
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: clamp(26px, 3.1vw, 40px);
  font-weight: 700;
  color: var(--hero-ink);
}
.page-hero-subtitle{
  display: none;
}
.page-hero-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.page-hero-actions .btn{
  border-radius: 999px;
}
@media (max-width: 576px){
  .page-hero{
    padding: 22px;
  }
  .page-hero-actions{
    width: 100%;
  }
  .page-hero-actions .btn{
    flex: 1 1 140px;
  }
}
.session-settings-shell{
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 16px 34px;
}
.session-settings-hero-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.82);
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 24px rgba(15,23,42,.06);
  backdrop-filter: blur(10px);
}
.session-settings-flash-wrap{
  margin-bottom: 14px;
}
.session-settings-kpis{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.session-settings-kpis.is-single{
  grid-template-columns: minmax(0, 1fr);
}
.session-settings-kpi,
.session-settings-card{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
}
.session-settings-kpi{
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 104px;
}
.session-settings-kpi-label{
  color: rgba(16,42,67,.62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.session-settings-kpi-value{
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.08;
}
.session-settings-kpi-value.is-small{
  font-size: 16px;
  line-height: 1.5;
}
.session-settings-kpi-note{
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
.session-settings-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, .86fr);
  gap: 16px;
  align-items: start;
}
.session-settings-grid.is-single{
  grid-template-columns: minmax(0, 1fr);
}
.session-settings-card{
  padding: 18px;
}
.session-settings-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.session-settings-card-title{
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}
.session-settings-card-subtitle{
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}
.session-settings-card-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,.08);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.session-settings-install-alert{
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(245,158,11,.24);
  background: rgba(255,251,235,.92);
  color: #92400e;
  font-size: 14px;
  line-height: 1.6;
}
.session-settings-inline-status{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.08);
  background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(255,255,255,.96));
}
.session-settings-inline-status-label{
  color: rgba(16,42,67,.62);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  white-space: nowrap;
}
.session-settings-inline-status-main{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.session-settings-inline-status-value{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,.08);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.session-settings-inline-status-note{
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}
.session-settings-form-layout{
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr);
  gap: 16px;
  align-items: start;
}
.session-settings-form-main{
  min-width: 0;
}
.session-settings-form-side{
  display: grid;
  gap: 12px;
}
.session-mode-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.session-mode-option{
  display: block;
  margin: 0;
}
.session-mode-option input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.session-mode-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 118px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.24);
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.08), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.session-mode-card:hover{
  transform: translateY(-1px);
  border-color: rgba(59,130,246,.28);
  box-shadow: 0 16px 28px rgba(15,23,42,.08);
}
.session-mode-option input:checked + .session-mode-card{
  border-color: rgba(37,99,235,.4);
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.14), transparent 45%),
    linear-gradient(180deg, rgba(239,246,255,.98), rgba(248,250,252,.98));
  box-shadow: 0 18px 34px rgba(37,99,235,.14);
}
.session-mode-topline{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.session-mode-icon{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,.1);
  color: #1d4ed8;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.session-mode-icon.is-custom{
  background: rgba(245,158,11,.14);
  color: #b45309;
}
.session-mode-icon.is-never{
  background: rgba(16,185,129,.14);
  color: #047857;
}
.session-mode-radio{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(100,116,139,.5);
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.session-mode-option input:checked + .session-mode-card .session-mode-radio{
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 4px rgba(37,99,235,.12);
}
.session-mode-main{
  display: grid;
  gap: 8px;
  min-width: 0;
}
.session-mode-title-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.session-mode-title{
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.session-mode-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.session-mode-text{
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
  min-height: 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: color .18s ease, opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.session-mode-card:hover .session-mode-text{
  color: #475569;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.session-custom-panel{
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.08);
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}
.session-custom-panel.is-disabled{
  opacity: .52;
  filter: saturate(.78);
}
.session-custom-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.session-custom-title{
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}
.session-custom-note{
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 4px;
}
.session-custom-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.session-custom-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.session-custom-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.session-custom-label{
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.session-custom-field .form-select{
  min-height: 44px;
  border-radius: 14px;
  border-color: rgba(148,163,184,.28);
  background-color: rgba(255,255,255,.92);
  box-shadow: 0 1px 0 rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 700;
}
.session-custom-field .form-select:focus{
  border-color: rgba(37,99,235,.42);
  box-shadow: 0 0 0 .2rem rgba(37,99,235,.12);
}
.session-settings-preview{
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(37,99,235,.14);
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.14), transparent 44%),
    linear-gradient(135deg, rgba(239,246,255,.94), rgba(255,255,255,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.session-settings-preview-label{
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.session-settings-preview-value{
  margin-top: 6px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.08;
}
.session-settings-preview-text{
  margin-top: 6px;
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
}
.session-settings-error{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(220,38,38,.14);
  background: rgba(254,242,242,.96);
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
}
.session-settings-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.session-settings-actions .btn{
  min-width: 150px;
  min-height: 44px;
  border-radius: 14px;
  font-weight: 700;
}
.session-settings-note-list{
  display: grid;
  gap: 12px;
}
.session-settings-note-item{
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(248,250,252,.86);
}
.session-settings-note-item i{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37,99,235,.1);
  color: #1d4ed8;
  font-size: 16px;
}
.session-settings-note-item div{
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}
.session-debug-card{
  margin-top: 18px;
}
.session-debug-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.session-debug-item{
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(248,250,252,.86);
}
.session-debug-label{
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.session-debug-value{
  margin-top: 8px;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.session-debug-events{
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.session-debug-events-title{
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}
.session-debug-empty{
  color: #64748b;
  font-size: 13px;
}
.session-debug-event-row{
  display: grid;
  grid-template-columns: 140px 180px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
}
.session-debug-event-type{
  font-weight: 800;
  color: #1d4ed8;
}
.session-debug-event-time{
  color: #475569;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.session-debug-event-meta{
  color: #64748b;
  font-size: 12px;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (max-width: 1199.98px){
  .session-settings-form-layout{
    grid-template-columns: 1fr;
  }
  .session-mode-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .session-debug-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px){
  .session-settings-kpis,
  .session-settings-grid{
    grid-template-columns: 1fr;
  }
  .session-settings-inline-status{
    align-items: flex-start;
    flex-direction: column;
  }
  .session-settings-inline-status-main{
    justify-content: flex-start;
  }
  .session-mode-grid{
    grid-template-columns: 1fr;
  }
  .session-debug-grid,
  .session-debug-event-row{
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767.98px){
  .session-settings-shell{
    padding-inline: 12px;
  }
  .session-settings-card{
    padding: 16px;
  }
  .session-custom-head,
  .session-custom-row{
    grid-template-columns: 1fr;
  }
  .session-mode-card{
    min-height: auto;
  }
  .session-mode-text{
    min-height: 0;
  }
  .session-settings-actions .btn{
    width: 100%;
  }
}
.attendance-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.attendance-card{
  background: #ffffff;
  border: 1px solid var(--att-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--att-shadow);
  display: grid;
  gap: 16px;
}
.attendance-card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.attendance-card-title{
  font-weight: 700;
  color: var(--att-ink);
}
.attendance-card-subtitle{
  font-size: 13px;
  color: var(--att-muted);
}
.attendance-badge{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--att-accent-strong);
  font-weight: 600;
  font-size: 12px;
}
.attendance-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.attendance-group-alert{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  font-size: 11px;
  font-weight: 600;
}
.attendance-group-alert::before{
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}
.attendance-schedule{
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 8px;
}
.attendance-schedule-title{
  font-weight: 700;
  font-size: 13px;
  color: var(--att-ink);
}
.attendance-day-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.attendance-day-pill{
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--att-muted);
  background: #ffffff;
}
.attendance-day-pill.is-active{
  background: rgba(37, 99, 235, 0.12);
  color: var(--att-accent-strong);
  border-color: rgba(37, 99, 235, 0.35);
}
.attendance-day-pill.is-today{
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.attendance-time{
  font-size: 13px;
  color: var(--att-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.attendance-summary{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.attendance-summary .label{
  font-size: 12px;
  color: var(--att-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.attendance-summary .value{
  font-weight: 700;
  color: var(--att-ink);
  margin-left: 6px;
}
.attendance-callouts{
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(140deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}
.attendance-student-list{
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding: 6px;
  padding-right: 10px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}
.attendance-student-row{
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}
.attendance-student-info{
  display: grid;
  gap: 2px;
}
.attendance-student-name{
  font-weight: 600;
  color: var(--att-ink);
}
.attendance-student-meta{
  font-size: 12px;
  color: var(--att-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.attendance-student-group{
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  font-size: 11px;
  color: var(--att-muted);
}
.attendance-status{
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--att-muted);
}
.attendance-status.is-present{
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}
.attendance-status.is-unmarked{
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.35);
  color: #64748b;
}
.attendance-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}
.attendance-empty{
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  text-align: center;
  color: var(--att-muted);
  background: #f8fafc;
}
.attendance-warning{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.9), rgba(255, 255, 255, 0.95));
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 22px rgba(245, 158, 11, 0.12);
}
.attendance-warning i{
  font-size: 16px;
}
.attendance-save-btn{
  padding: 10px 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
}
.attendance-filter-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.attendance-stats{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.attendance-stats .stat{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}
.attendance-stats .label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--att-muted);
  font-weight: 700;
}
.attendance-stats .value{
  font-size: 20px;
  font-weight: 700;
  color: var(--att-ink);
}
.attendance-report-table{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
}
.attendance-report-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}
.attendance-report-title{
  font-weight: 700;
  color: var(--att-ink);
}
.attendance-report-range{
  font-size: 12px;
  color: var(--att-muted);
}
.attendance-report-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.attendance-report-table thead th{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--att-muted);
  background: #f8fafc;
}
.attendance-report-table tbody tr{
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.attendance-report-table tbody tr:hover{
  background: rgba(248, 250, 252, 0.7);
}
.attendance-report-status{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--att-muted);
  background: #ffffff;
}
.attendance-report-status.is-present{
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}
.attendance-report-status.is-absent{
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #dc2626;
}
.attendance-history{
  display: grid;
  gap: 10px;
}
.attendance-history-title{
  font-weight: 700;
  color: var(--att-ink);
}
.attendance-history-list{
  display: grid;
  gap: 8px;
}
.attendance-history-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}
.attendance-history-main{
  font-weight: 600;
  color: var(--att-ink);
}
.attendance-history-sub{
  font-size: 12px;
  color: var(--att-muted);
}
.attendance-history-actions{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vocab-shell{
  --vocab-ink: #0f172a;
  --vocab-muted: #475569;
  --vocab-accent: #0f766e;
  --vocab-accent-strong: #0d9488;
  --vocab-border: rgba(15, 23, 42, 0.08);
  --vocab-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 24px;
}
.vocab-teacher-workspace{
  display: grid;
  gap: 22px;
}
.vocab-hero{
  position: relative;
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 12%, rgba(13, 148, 136, 0.18), transparent 55%),
    radial-gradient(circle at 80% 18%, rgba(14, 116, 144, 0.18), transparent 58%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 45%, #ecfeff 100%);
  border: 1px solid var(--vocab-border);
  overflow: hidden;
}
.vocab-hero::after{
  content: "";
  position: absolute;
  right: -140px;
  bottom: -160px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.2), transparent 60%);
  pointer-events: none;
}
.vocab-hero-inner{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.vocab-hero-copy{
  max-width: 520px;
}
.vocab-kicker{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 700;
  color: var(--vocab-accent);
}
.vocab-title{
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  color: var(--vocab-ink);
}
.vocab-subtitle{
  margin: 0;
  font-size: 15px;
  color: var(--vocab-muted);
}
.vocab-search-card{
  background: #ffffff;
  border: 1px solid var(--vocab-border);
  border-radius: 20px;
  padding: 20px;
  min-width: 320px;
  box-shadow: var(--vocab-shadow);
}
.vocab-search-card .form-label{
  font-weight: 600;
  color: var(--vocab-ink);
}
.vocab-search-row{
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}
.vocab-search-row .form-control{
  flex: 1 1 240px;
}
.vocab-search-btn{
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.2);
}
.vocab-search-meta{
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--vocab-muted);
}
.vocab-results{
  display: grid;
  gap: 18px;
}
.vocab-loading{
  display: none;
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--vocab-border);
  box-shadow: var(--vocab-shadow);
  gap: 12px;
}
.vocab-skeleton{
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 100%);
  background-size: 180% 100%;
  animation: vocab-shimmer 1.4s ease-in-out infinite;
}
.vocab-skeleton.sm{ width: 45%; }
.vocab-skeleton.md{ width: 65%; }
.vocab-skeleton.lg{ width: 90%; height: 20px; }
.vocab-error{
  display: none;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff1f2;
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #9f1239;
  font-weight: 600;
}
.vocab-result{
  display: grid;
  gap: 16px;
}
.vocab-result-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.vocab-result-title{
  font-size: 20px;
  font-weight: 700;
  color: var(--vocab-ink);
}
.vocab-result-meta{
  font-size: 13px;
  color: var(--vocab-muted);
}
.vocab-result-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}
.vocab-fav-btn{
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}
.vocab-fav-btn i{
  font-size: 16px;
}
.vocab-fav-btn:hover{
  border-color: rgba(13, 148, 136, 0.4);
  color: var(--vocab-accent);
}
.vocab-fav-btn.is-active{
  background: rgba(13, 148, 136, 0.12);
  color: var(--vocab-accent);
  border-color: rgba(13, 148, 136, 0.4);
}
.vocab-favorites{
  margin-top: 24px;
}
.vocab-favorites-card{
  background: #fff;
  border: 1px solid var(--vocab-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--vocab-shadow);
  display: grid;
  gap: 16px;
}
.vocab-favorites-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.vocab-favorites-title{
  font-size: 18px;
  font-weight: 700;
  color: var(--vocab-ink);
}
.vocab-favorites-subtitle{
  color: var(--vocab-muted);
  font-size: 13px;
}
.vocab-favorites-form{
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
}
.vocab-fav-search{
  display: grid;
  gap: 8px;
}
.vocab-favorites-list{
  display: grid;
  gap: 12px;
}
.vocab-favorites-empty{
  color: var(--vocab-muted);
  font-size: 13px;
}
.vocab-fav-item{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  background: #f8fafc;
}
.vocab-fav-word{
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
}
.vocab-fav-def{
  color: var(--vocab-muted);
  font-size: 13px;
  line-height: 1.4;
}
.vocab-fav-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vocab-fav-action-btn{
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vocab-fav-action-btn.is-danger{
  border-color: rgba(239, 68, 68, 0.25);
  color: #dc2626;
  background: #fff1f2;
}
.vocab-fav-floating{
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999;
}
.vocab-fav-fab{
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.28);
}
.vocab-fav-count{
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}
.vocab-fav-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 998;
}
.vocab-fav-panel{
  position: fixed;
  top: 88px;
  left: 24px;
  bottom: 88px;
  width: min(560px, calc(100vw - 48px));
  overflow: hidden;
  border-radius: 22px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 999;
}
.vocab-fav-panel .vocab-favorites-card{
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vocab-fav-panel .vocab-favorites-list{
  overflow-y: auto;
  max-height: none;
  padding-right: 6px;
}
.vocab-fav-panel.is-open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.vocab-fav-panel.is-open ~ .vocab-fav-backdrop,
.vocab-fav-backdrop.is-open{
  opacity: 1;
  pointer-events: auto;
}
.vocab-fav-head-actions{
  display: flex;
  gap: 8px;
  align-items: center;
}
.vocab-fav-add-btn{
  border: 0;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.vocab-fav-add-btn .icon{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vocab-fav-add-btn:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.32);
}
.vocab-fav-add-btn:active{
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.24);
}
.vocab-fav-close{
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
}
@media (max-width: 768px){
  .vocab-fav-floating{
    left: 16px;
    bottom: 16px;
  }
  .vocab-fav-panel{
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: none;
    height: min(88vh, 780px);
    border-radius: 20px 20px 0 0;
  }
}
.vocab-source-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  color: var(--vocab-accent);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  background: rgba(13, 148, 136, 0.08);
}
.vocab-source-link:hover{
  background: rgba(13, 148, 136, 0.15);
  color: var(--vocab-accent);
}
.vocab-shared-section,
.vocab-student-shared-section{
  margin-top: 28px;
}
.vocab-shared-shell{
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.vocab-shared-card{
  background: #fff;
  border: 1px solid var(--vocab-border);
  border-radius: 22px;
  box-shadow: var(--vocab-shadow);
  padding: 20px;
}
.vocab-shared-sidebar,
.vocab-shared-main{
  display: grid;
  gap: 16px;
  min-width: 0;
}
.vocab-shared-sidebar{
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - 120px);
}
.vocab-shared-card-head{
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.vocab-shared-sidebar > .vocab-shared-card-head,
.vocab-shared-main > .vocab-shared-card-head{
  margin-bottom: 0;
}
.vocab-shared-card-head-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vocab-shared-collapse-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vocab-shared-collapse-btn i{
  transition: transform 0.2s ease;
}
.vocab-shared-collapse-body{
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.24s ease, opacity 0.2s ease;
  min-height: 0;
}
.vocab-shared-collapse-inner{
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 14px;
}
.vocab-shared-card.is-collapsed .vocab-shared-collapse-body{
  grid-template-rows: 0fr;
  opacity: 0.55;
}
.vocab-shared-card.is-collapsed .vocab-shared-collapse-inner{
  visibility: hidden;
  pointer-events: none;
}
.vocab-shared-card.is-collapsed .vocab-shared-collapse-btn i{
  transform: rotate(180deg);
}
.vocab-shared-kicker{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vocab-accent);
  margin-bottom: 6px;
}
.vocab-shared-title{
  font-size: 20px;
  font-weight: 700;
  color: var(--vocab-ink);
}
.vocab-shared-subtitle{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--vocab-muted);
  max-width: 680px;
}
.vocab-shared-message{
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
}
.vocab-shared-message.is-info{
  background: rgba(14, 165, 233, 0.1);
  color: #0c4a6e;
}
.vocab-shared-message.is-success{
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
}
.vocab-shared-message.is-warn{
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}
.vocab-shared-message.is-danger{
  background: rgba(244, 63, 94, 0.12);
  color: #9f1239;
}
.vocab-shared-nav{
  display: grid;
  gap: 12px;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.vocab-shared-nav-empty,
.vocab-shared-empty,
.vocab-shared-entry-empty{
  font-size: 13px;
  color: var(--vocab-muted);
}
.vocab-shared-nav-item{
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px 16px;
  text-align: left;
  display: grid;
  gap: 8px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.vocab-shared-nav-item:hover{
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-1px);
}
.vocab-shared-nav-item.is-active{
  border-color: rgba(13, 148, 136, 0.38);
  background: rgba(13, 148, 136, 0.08);
}
.vocab-shared-nav-item.is-draft{
  border-style: dashed;
}
.vocab-shared-nav-title-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vocab-shared-nav-title{
  font-weight: 700;
  color: #0f172a;
}
.vocab-shared-nav-count{
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--vocab-accent);
}
.vocab-shared-nav-meta{
  font-size: 12px;
  line-height: 1.45;
  color: var(--vocab-muted);
}
.vocab-shared-placeholder{
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  color: var(--vocab-muted);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.85), rgba(241, 245, 249, 0.72));
  padding: 24px;
}
.vocab-shared-editor{
  display: grid;
  gap: 18px;
}
.vocab-shared-editor-top{
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  flex-wrap: wrap;
}
.vocab-shared-editor-kicker{
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vocab-accent);
}
.vocab-shared-editor-title{
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}
.vocab-shared-editor-meta{
  margin-top: 6px;
  font-size: 13px;
  color: var(--vocab-muted);
}
.vocab-shared-editor-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.vocab-shared-grid{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.vocab-shared-panel{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #f8fafc;
  padding: 16px;
  display: grid;
  gap: 14px;
  align-self: start;
}
.vocab-shared-panel-span-6{
  grid-column: span 6;
}
.vocab-shared-panel-span-12{
  grid-column: span 12;
}
.vocab-shared-panel-head{
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.vocab-shared-panel-title{
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.vocab-shared-panel-subtitle{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--vocab-muted);
}
.vocab-shared-quickbar{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}
.vocab-shared-quickbar-search .input-group-text{
  background: rgba(13, 148, 136, 0.08);
  color: var(--vocab-accent);
  border-color: rgba(13, 148, 136, 0.18);
}
.vocab-shared-quickbar .btn{
  white-space: nowrap;
}
.vocab-shared-current-preview{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.vocab-shared-current-preview[data-state="ready"]{
  border-color: rgba(13, 148, 136, 0.24);
  box-shadow: 0 14px 28px rgba(13, 148, 136, 0.08);
}
.vocab-shared-current-preview[data-state="loading"]{
  border-color: rgba(14, 165, 233, 0.22);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.96), #ffffff);
}
.vocab-shared-current-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vocab-shared-current-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.vocab-shared-current-chip.is-muted{
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}
.vocab-shared-current-chip.is-accent{
  background: rgba(13, 148, 136, 0.12);
  color: #115e59;
}
.vocab-shared-current-chip.is-accent-soft{
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}
.vocab-shared-current-word{
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.vocab-shared-current-def{
  font-size: 13px;
  line-height: 1.5;
  color: var(--vocab-muted);
}
.vocab-shared-compact-form{
  display: grid;
  gap: 12px;
  padding-top: 4px;
}
.vocab-batch-modal-dialog{
  max-width: min(980px, calc(100vw - 24px));
}
.vocab-batch-modal-content{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}
.vocab-batch-modal-header,
.vocab-batch-modal-footer{
  border-color: rgba(15, 23, 42, 0.08);
  padding: 18px 20px;
}
.vocab-batch-modal-subtitle{
  margin-top: 6px;
  max-width: 620px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--vocab-muted);
}
.vocab-batch-modal-body{
  padding: 20px;
}
.vocab-batch-layout{
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}
.vocab-batch-panel{
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), #ffffff);
  min-height: 0;
}
.vocab-batch-panel-head{
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.vocab-batch-panel-title{
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.vocab-batch-panel-meta{
  font-size: 12px;
  font-weight: 700;
  color: var(--vocab-accent);
}
.vocab-batch-textarea{
  height: 280px;
  min-height: 280px;
  max-height: 420px;
  overflow-y: hidden;
  resize: vertical;
  border-radius: 16px;
  padding: 14px 16px;
  line-height: 1.6;
}
.vocab-batch-note{
  font-size: 12px;
  line-height: 1.5;
  color: var(--vocab-muted);
}
.vocab-batch-alert{
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 600;
}
.vocab-batch-alert.is-info{
  background: rgba(14, 165, 233, 0.1);
  color: #0c4a6e;
}
.vocab-batch-alert.is-success{
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
}
.vocab-batch-alert.is-warn{
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}
.vocab-batch-alert.is-danger{
  background: rgba(244, 63, 94, 0.12);
  color: #9f1239;
}
.vocab-batch-preview-empty{
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  color: var(--vocab-muted);
  background: rgba(255, 255, 255, 0.78);
}
.vocab-batch-preview-list{
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}
.vocab-batch-item{
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}
.vocab-batch-item.is-muted{
  background: #fff;
}
.vocab-batch-item.is-accent{
  border-color: rgba(14, 165, 233, 0.22);
  background: rgba(240, 249, 255, 0.92);
}
.vocab-batch-item.is-success{
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(236, 253, 245, 0.92);
}
.vocab-batch-item.is-info{
  border-color: rgba(59, 130, 246, 0.18);
  background: rgba(239, 246, 255, 0.92);
}
.vocab-batch-item.is-danger{
  border-color: rgba(244, 63, 94, 0.2);
  background: rgba(255, 241, 242, 0.96);
}
.vocab-batch-item-top{
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.vocab-batch-item-word{
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.vocab-batch-item-text{
  font-size: 12px;
  line-height: 1.55;
  color: var(--vocab-muted);
}
.vocab-batch-item-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.vocab-batch-item-badge.is-muted{
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}
.vocab-batch-item-badge.is-accent{
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}
.vocab-batch-item-badge.is-success{
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}
.vocab-batch-item-badge.is-info{
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}
.vocab-batch-item-badge.is-danger{
  background: rgba(244, 63, 94, 0.14);
  color: #be123c;
}
.vocab-shared-fields{
  display: grid;
  gap: 12px;
}
.vocab-shared-targets,
.vocab-shared-students,
.vocab-shared-entry-list{
  display: grid;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}
.vocab-shared-targets,
.vocab-shared-students{
  max-height: 260px;
}
.vocab-shared-entry-list{
  max-height: 360px;
}
.vocab-shared-check,
.vocab-shared-student-row{
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.vocab-shared-check input,
.vocab-shared-student-row input{
  margin-top: 2px;
}
.vocab-shared-check-copy,
.vocab-shared-student-copy{
  display: grid;
  gap: 4px;
}
.vocab-shared-check-title,
.vocab-shared-student-name{
  font-weight: 700;
  color: #0f172a;
}
.vocab-shared-check-meta,
.vocab-shared-student-meta{
  font-size: 12px;
  line-height: 1.45;
  color: var(--vocab-muted);
}
.vocab-shared-entry-item{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  display: grid;
  gap: 8px;
}
.vocab-shared-entry-item.is-readonly{
  background: #f8fafc;
}
.vocab-shared-entry-word{
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
}
.vocab-shared-entry-def{
  font-size: 13px;
  line-height: 1.5;
  color: var(--vocab-muted);
}
.vocab-shared-entry-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vocab-student-list-grid{
  display: grid;
  gap: 14px;
}
.vocab-student-list-card{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #f8fafc;
  overflow: hidden;
}
.vocab-student-list-summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 16px 18px;
}
.vocab-student-list-summary::-webkit-details-marker{
  display: none;
}
.vocab-student-list-summary-main{
  display: grid;
  gap: 4px;
}
.vocab-student-list-title{
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.vocab-student-list-meta{
  font-size: 12px;
  color: var(--vocab-muted);
}
.vocab-student-list-badges{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.vocab-student-list-body{
  padding: 0 18px 18px;
  display: grid;
  gap: 12px;
}
.vocab-student-list-description{
  font-size: 13px;
  line-height: 1.5;
  color: var(--vocab-muted);
}
.vocab-student-list-grid-compact{
  gap: 10px;
}
.vocab-student-list-grid-compact .vocab-student-list-summary{
  padding: 14px 14px 12px;
}
.vocab-student-list-grid-compact .vocab-student-list-body{
  padding: 0 14px 14px;
}
.vocab-shared-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: #075985;
  font-size: 12px;
  font-weight: 700;
}
.vocab-shared-badge.is-muted{
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}
.vocab-shared-badge.is-accent{
  background: rgba(13, 148, 136, 0.12);
  color: #115e59;
}
.vocab-shared-badge.is-accent-soft{
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}
.vocab-list-tabs{
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.vocab-list-tab{
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
}
.vocab-list-tab.is-active{
  background: rgba(13, 148, 136, 0.12);
  color: var(--vocab-accent);
  border-color: rgba(13, 148, 136, 0.3);
}
.vocab-list-panel{
  display: grid;
  gap: 14px;
  min-height: 0;
}
.vocab-list-panel-teacher{
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.vocab-list-panel-scroll{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 8px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.vocab-list-panel-teacher .vocab-shared-entry-list{
  max-height: none;
  overflow: visible;
}
.vocab-list-panel-teacher .vocab-student-list-grid{
  gap: 12px;
}
.vocab-list-panel-teacher .vocab-student-list-card{
  overflow: visible;
}
.vocab-list-panel-teacher .vocab-student-list-card[open]{
  background: #fff;
  border-color: rgba(13, 148, 136, 0.18);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.vocab-list-panel-teacher .vocab-student-list-card[open] .vocab-student-list-summary{
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.vocab-list-panel-teacher .vocab-student-list-body{
  padding-top: 2px;
}
@media (max-width: 1100px){
  .vocab-shared-shell{
    grid-template-columns: 1fr;
  }
  .vocab-shared-sidebar{
    position: static;
    max-height: none;
  }
}
@media (max-width: 768px){
  .vocab-fav-panel .vocab-favorites-card{
    min-height: 72vh;
  }
  .vocab-shared-card{
    padding: 16px;
  }
  .vocab-shared-card-head-actions{
    width: 100%;
    justify-content: space-between;
  }
  .vocab-shared-grid{
    grid-template-columns: 1fr;
  }
  .vocab-shared-panel-span-6,
  .vocab-shared-panel-span-12{
    grid-column: auto;
  }
  .vocab-batch-layout{
    grid-template-columns: 1fr;
  }
  .vocab-batch-textarea,
  .vocab-batch-preview-empty{
    min-height: 220px;
  }
  .vocab-batch-preview-list{
    max-height: 280px;
    padding-right: 0;
  }
  .vocab-student-list-summary{
    flex-direction: column;
  }
  .vocab-student-list-badges{
    justify-content: flex-start;
  }
  .vocab-shared-quickbar{
    grid-template-columns: 1fr;
  }
  .vocab-shared-quickbar > .btn{
    width: 100%;
  }
  .vocab-list-tabs{
    flex-wrap: wrap;
  }
  .vocab-list-tab{
    flex: 1 1 calc(50% - 4px);
    text-align: center;
  }
  .vocab-list-panel-scroll{
    padding-right: 0;
  }
}
.vocab-entry{
  background: #ffffff;
  border: 1px solid var(--vocab-border);
  border-radius: 18px;
  padding: 20px;
  color: var(--vocab-ink);
  box-shadow: var(--vocab-shadow);
  line-height: 1.6;
}
.vocab-entry .pagetitle{
  display: none;
}
.vocab-entry a{
  color: var(--vocab-accent);
  text-decoration: none;
  font-weight: 600;
}
.vocab-entry a:hover{
  text-decoration: underline;
}
.vocab-entry img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  margin: 12px 0;
}
.vocab-entry .dictentry{
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.15);
}
.vocab-entry .EXAMPLE{
  display: block;
  padding: 8px 12px;
  margin: 8px 0;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 14px;
}
.vocab-entry .Sense{
  display: block;
  padding: 8px 0;
}
.vocab-entry .sensenum{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  margin-right: 6px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--vocab-accent);
  font-weight: 700;
  font-size: 12px;
}
.vocab-entry .ColloBox{
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.vocab-audio-btn{
  border: 1px solid rgba(13, 148, 136, 0.25);
  background: rgba(13, 148, 136, 0.12);
  color: var(--vocab-accent);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.vocab-audio-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.18);
}
.vocab-audio-btn.is-playing{
  background: var(--vocab-accent);
  color: #ffffff;
  border-color: var(--vocab-accent);
}
@keyframes vocab-shimmer{
  0%{ background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce){
  .vocab-skeleton{
    animation: none;
  }
  .vocab-audio-btn{
    transition: none;
  }
}

@media (max-width: 1024px){
  body.module-dock-mobile-collapsed .module-dock{
    transform: translateY(-50%) translateX(calc(-100% + var(--dock-peek)));
    opacity: 0.65;
    filter: saturate(0.85);
  }
  body.module-dock-mobile-collapsed .module-dock.right{
    transform: translateY(-50%) translateX(calc(100% - var(--dock-peek)));
  }
  body.module-dock-mobile-collapsed .module-dock:hover,
  body.module-dock-mobile-collapsed .module-dock:focus-within,
  body.module-dock-mobile-collapsed .module-dock:focus,
  body.module-dock-mobile-collapsed .module-dock.is-open{
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    filter: none;
  }
  .module-dock{
    left: 8px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    --dock-peek: 14px;
  }
  .module-dock.right{
    left: auto;
    right: 8px;
  }
  .module-dock .dock-btn{
    width: 48px;
    height: 140px;
    font-size: 10px;
    border-radius: 16px;
    letter-spacing: 0.1em;
  }
  .module-shell{
    grid-template-columns: 1fr;
  }
  .module-sidebar{
    position: static;
  }
  .module-nav{
    grid-template-columns: repeat(3, 1fr);
  }
  .attendance-hero-inner{
    flex-direction: column;
    align-items: flex-start;
  }
  .attendance-grid{
    grid-template-columns: 1fr;
  }
  .attendance-filter-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .attendance-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tasks-hero-inner{
    flex-direction: column;
    align-items: flex-start;
  }
  .tasks-compose-grid{
    grid-template-columns: 1fr;
  }
  .tasks-student-wrap{
    max-height: none;
  }
  .vocab-hero-inner{
    flex-direction: column;
    align-items: stretch;
  }
  .vocab-search-card{
    width: 100%;
    min-width: 0;
  }
  .calendar-board-wrap{
    grid-template-columns: 1fr;
  }
  .calendar-side{
    order: 2;
    position: static;
  }
  .calendar-board{
    order: 1;
  }
  .calendar-cell{
    min-height: 110px;
  }
}
@media (max-width: 576px){
  body.module-dock-mobile-collapsed .module-dock{
    transform: translateY(-50%) translateX(calc(-100% + var(--dock-peek)));
    opacity: 0.65;
    filter: saturate(0.85);
  }
  body.module-dock-mobile-collapsed .module-dock.right{
    transform: translateY(-50%) translateX(calc(100% - var(--dock-peek)));
  }
  body.module-dock-mobile-collapsed .module-dock:hover,
  body.module-dock-mobile-collapsed .module-dock:focus-within,
  body.module-dock-mobile-collapsed .module-dock:focus,
  body.module-dock-mobile-collapsed .module-dock.is-open{
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    filter: none;
  }
  .module-dock{
    left: 6px;
    top: 50%;
    bottom: auto;
    gap: 8px;
    --dock-peek: 12px;
  }
  .module-dock.right{
    left: auto;
    right: 6px;
  }
  .module-dock .dock-btn{
    width: 44px;
    height: 120px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .module-nav{
    grid-template-columns: 1fr;
  }
  .module-action-bar{
    flex-direction: column;
    align-items: stretch;
  }
  .module-action-right{
    justify-content: space-between;
  }
  .calendar-hero{
    flex-direction: column;
    align-items: flex-start;
  }
  .calendar-hero-actions{
    width: 100%;
    justify-content: space-between;
  }
  .calendar-view-toggle{
    width: 100%;
    justify-content: space-between;
  }
  .calendar-cell{
    min-height: 96px;
  }
  .calendar-legend{
    width: 100%;
    justify-content: flex-start;
  }
  .attendance-hero{
    padding: 24px;
  }
  .attendance-form-grid{
    grid-template-columns: 1fr;
  }
  .attendance-filter-grid{
    grid-template-columns: 1fr;
  }
  .attendance-stats{
    grid-template-columns: 1fr;
  }
  .attendance-report-toolbar{
    flex-direction: column;
    align-items: flex-start;
  }
  .tasks-hero{
    padding: 24px;
  }
  .tasks-form-grid{
    grid-template-columns: 1fr;
  }
  .task-attachment-preview{
    height: 120px;
  }
  .vocab-hero{
    padding: 24px;
  }
  .vocab-search-row{
    flex-direction: column;
  }
  .vocab-search-btn{
    width: 100%;
  }
}
@media (max-width: 992px){
  .chat-panel{
    width: min(460px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 120px));
  }
  .chat-body{
    grid-template-columns: 180px 1fr;
  }
}
@media (max-width: 768px){
  .chat-widget{
    right: 16px;
    bottom: 16px;
  }
  .chat-panel{
    position: fixed;
    inset: 12px;
    width: auto;
    height: auto;
    border-radius: 16px;
  }
  .chat-body{
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .chat-sidebar{
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    max-height: 240px;
  }
  .chat-main{
    min-height: 0;
  }
  .chat-message-menu-trigger{
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .chat-bubble-shell{
    max-width: 100%;
  }
}
@media (max-width: 576px){
  .chat-panel{
    inset: 8px;
    border-radius: 14px;
  }
  .chat-body{
    grid-template-rows: 200px 1fr;
  }
  .chat-input textarea{
    font-size: 13px;
  }
  .chat-message-menu{
    left: 12px !important;
    right: 12px !important;
    bottom: 84px !important;
    top: auto !important;
    min-width: 0;
    border-radius: 18px;
    padding: 10px;
  }
  .chat-message-menu-btn{
    padding: 12px 14px;
  }
  .chat-message-menu-btn .label{
    font-size: 13px;
  }
}

/* Students all table */
.students-all-table{
  font-size: 12.5px;
}
.students-all-table .badge{
  font-size: 10.5px;
}
.students-all-actions{
  white-space: nowrap;
}
.students-all-actions .d-inline-flex{
  flex-wrap: nowrap;
  gap: 6px !important;
}
.students-all-actions .btn{
  padding: 4px 8px;
  font-size: 11.5px;
}

/* Share screen */
.share-modal .modal-content{
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
  height: 100%;
  overflow: hidden;
}
.share-modal .modal-dialog{
  max-width: 1200px;
  width: min(96vw, 1200px);
  height: min(88vh, 920px);
}
.share-modal-header{
  background:
    radial-gradient(1200px 420px at 12% -40%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(900px 420px at 90% -20%, rgba(14, 165, 233, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 14px 18px;
}
.share-modal-title{
  display: grid;
  gap: 4px;
}
.share-modal-kicker{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .25px;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.share-modal-subtitle{
  display: none;
}
.share-modal-body{
  background: #f8fafc;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}
.share-modal-hero{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  margin-bottom: 0;
  flex-wrap: wrap;
}
.share-hero-actions{
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-record-toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #0f172a;
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(248, 250, 252, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.share-record-toggle .form-check-input{
  cursor: pointer;
  width: 2.2em;
  height: 1.15em;
  margin-top: 0;
  background-color: #cbd5f5;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: none;
  transition: all 0.2s ease;
}
.share-record-toggle.is-disabled{
  opacity: 0.6;
}
.share-record-toggle .form-check-input:checked{
  background-color: #2563eb;
  border-color: #2563eb;
}
.share-record-toggle .form-check-label{
  font-weight: 600;
  letter-spacing: 0.2px;
}
.share-record-toggle:hover{
  border-color: rgba(37, 99, 235, 0.35);
}
.share-record-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #0f172a;
}
.share-record-pill.hidden{
  display: none;
}
.share-record-pill .dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
  animation: shareRecordPulse 1.4s ease-in-out infinite;
}
.share-record-timer{
  font-variant-numeric: tabular-nums;
}
.share-overlay .share-record-pill{
  color: #e2e8f0;
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.45);
}
@keyframes shareRecordPulse{
  0%{ transform: scale(1); opacity: 0.7; }
  60%{ transform: scale(1.2); opacity: 1; }
  100%{ transform: scale(1); opacity: 0.7; }
}
.share-layout{
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
}
.share-panel{
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 10px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  min-height: 0;
}
.share-panel-title{
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.share-panel-title-row{
  width: 100%;
  justify-content: space-between;
}
.share-panel-title-row > span{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.share-refresh-btn{
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #ffffff;
  color: #475569;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.share-refresh-btn:hover{
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}
.share-refresh-btn.is-loading{
  pointer-events: none;
  opacity: 0.7;
}
.share-refresh-btn.is-loading i{
  animation: shareRefreshSpin 0.8s linear infinite;
}
@keyframes shareRefreshSpin{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}
.share-panel-left{
  min-height: 0;
}
.share-panel-main{
  display: grid;
  gap: 10px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}
.share-panel .share-log{
  margin-top: 0;
}
.share-panel .share-log-title{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.share-panel .share-log{
  background: #f8fafc;
}
.explore-share-wrap{
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  display: grid;
  gap: 10px;
}
.explore-share-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: #0f172a;
}
.explore-share-count{
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.explore-share-list{
  display: grid;
  gap: 8px;
}
.explore-share-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}
.explore-share-meta{
  display: grid;
  gap: 2px;
  min-width: 0;
}
.explore-share-title{
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.explore-share-sub{
  font-size: 11px;
  color: #64748b;
}
.explore-share-actions .btn{
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
}
.share-grid{
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
}
.share-card{
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.share-card-title{
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
}
.share-card-grow{
  min-height: 0;
}
.share-hint{
  font-size: 12px;
  color: #64748b;
}
.share-group-select{
  min-height: 160px;
}
.share-group-select option{
  padding: 6px 8px;
}
.share-inline{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.share-divider{
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin: 4px 0 6px;
}
.share-mode{
  display: grid;
  gap: 8px;
}
.share-mode-option{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  cursor: pointer;
}
.share-mode-option .form-check-input{
  margin-top: 2px;
  cursor: pointer;
}
.share-mode-text{
  display: grid;
  gap: 2px;
}
.share-mode-title{
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
}
.share-mode-desc{
  font-size: 11px;
  color: #64748b;
}
.share-mode-option input:checked + .share-mode-text .share-mode-title{
  color: #1d4ed8;
}
.share-audio-toggle{
  margin-top: 6px;
  font-size: 12px;
  color: #475569;
}
.share-inline .btn{
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
}
.share-selected{
  font-size: 12px;
  color: #475569;
}
.share-students{
  display: grid;
  gap: 8px;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
  min-height: 0;
}
.share-card .share-students{
  flex: 1 1 auto;
  min-height: 0;
}
.share-student{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}
.share-student .form-check{
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
}
.share-student-name{
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
}
.share-student-meta{
  font-size: 10.5px;
  color: #64748b;
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
}
.share-student-meta span:first-child{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.share-student-meta .share-presence{
  flex: 0 0 auto;
}
.share-presence{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #64748b;
}
.share-presence .dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.share-presence.is-online{
  color: #059669;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}
.share-presence.is-offline{
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.2);
  background: rgba(148, 163, 184, 0.12);
}
.share-status-pill{
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #64748b;
  background: #ffffff;
}
.share-status-pill.is-live{
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #059669;
}
.share-status-pill.is-warn{
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: #92400e;
}
.share-footer{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.share-status{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0f172a;
}
.share-status-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
}
.share-status.is-live .share-status-dot{
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}
.share-actions{
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-error{
  margin-top: 0;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 13px;
}
.share-log{
  margin-top: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  min-height: 0;
}
.share-log-title{
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}
.share-log-list{
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  font-size: 12px;
  color: #475569;
}
.share-log-item{
  padding: 6px 8px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.08);
}
@media (max-width: 991.98px){
  .share-layout{
    grid-template-columns: 1fr;
  }
  .share-panel-left,
  .share-panel-main{
    min-height: 0;
  }
  .share-modal .modal-dialog{
    height: min(92vh, 980px);
  }
  .share-student-meta{
    flex-wrap: wrap;
  }
}
.share-overlay{
  position: fixed;
  inset: 0;
  background: #0b1020;
  color: #ffffff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}
.share-annotate-launcher{
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2305;
}
.share-annotate-launcher.is-active{
  right: 210px;
}
.share-annotate-launcher.hidden{
  display: none;
}
.share-annotate-toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  font-weight: 600;
}
.share-annotate-toggle i{
  font-size: 16px;
}
.share-annotate-toggle.is-active{
  background: #ff2424;
}
.share-annotate-toggle.is-disabled{
  opacity: 0.6;
  cursor: not-allowed;
}
.share-annotate-overlay{
  position: fixed;
  inset: 0;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(30, 41, 59, 0.8), rgba(2, 6, 23, 0.95));
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-annotate-overlay.hidden{
  display: none;
}
.share-annotate-overlay.is-monitor #shareAnnotateRender{
    display: none;
  }
.share-annotate-overlay.is-monitor{
    background: transparent;
    padding: 0;
  }
.share-annotate-overlay.is-direct #shareAnnotateRender{
    display: none;
  }
.share-annotate-overlay.is-direct{
    background: transparent;
    padding: 0;
  }
.share-annotate-overlay.is-direct .share-annotate-preview{
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
  }
.share-annotate-overlay.is-monitor .share-annotate-preview{
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
  }
.share-annotate-warning{
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.35);
  z-index: 2310;
}
.share-annotate-preview{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.5);
}
.share-annotate-preview canvas{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
#shareAnnotateUi{
  cursor: crosshair;
  touch-action: none;
}
.share-annotate-toolbar{
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(12px);
  z-index: 2310;
  pointer-events: auto;
}
.share-annotate-toolbar.is-active{
  display: grid;
}
.annotate-tool{
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}
.annotate-tool i{
  font-size: 14px;
}
.annotate-tool.is-active{
  background: #0f172a;
  color: #ffffff;
  border-color: rgba(15, 23, 42, 0.6);
}
.annotate-tool.is-add{
  background: #ecfeff;
  border-color: rgba(14, 116, 144, 0.3);
  color: #0f172a;
}
.annotate-tool.is-clear{
  background: #fff1f2;
  border-color: rgba(225, 29, 72, 0.3);
  color: #9f1239;
}
.annotate-divider{
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
  margin: 4px 0;
}
.annotate-control{
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: #475569;
}
.annotate-control input[type="color"]{
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 2px;
}
.annotate-control input[type="range"]{
  width: 100%;
}
.share-annotate-button-editor{
  position: absolute;
  inset: auto;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 3;
}
.share-annotate-text-input{
  position: absolute;
  min-width: 160px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  outline: none;
  resize: both;
  background: rgba(255, 255, 255, 0.96);
  z-index: 3;
}

.share-presenter{
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: #0b1224;
  display: flex;
  flex-direction: column;
}
.share-presenter.hidden{
  display: none;
}
.share-presenter-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}
.share-presenter-nav,
.share-presenter-actions{
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.share-presenter-btn{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.7);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.share-presenter-btn:hover{
  transform: translateY(-1px);
  background: rgba(51, 65, 85, 0.9);
}
.share-presenter-btn.is-close{
  background: #ef4444;
  border-color: rgba(239, 68, 68, 0.8);
  color: #fff;
}
.share-presenter-btn.is-close:hover{
  background: #dc2626;
}
.share-presenter-url{
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-presenter-body{
  flex: 1;
  background: #0f172a;
}
#sharePresenterFrame{
  width: 100%;
  height: 100%;
  border: 0;
  background: #0f172a;
}

.share-presenter-embedded #shareAnnotateLauncher{
  display: none !important;
}
.share-presenter-embedded #shareAnnotateOverlay{
  display: none !important;
}

.ic-ai-admin-shell{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ic-ai-admin-overview{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.ic-ai-admin-stat-card{
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.16), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 18px 36px rgba(15,23,42,.08);
}
.ic-ai-admin-stat-card.is-danger{
  background:
    radial-gradient(circle at top right, rgba(248,113,113,.18), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,241,242,.96));
}
.ic-ai-admin-stat-label{
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}
.ic-ai-admin-stat-value{
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
}
.ic-ai-admin-stat-meta{
  margin-top: 8px;
  font-size: .88rem;
  color: #64748b;
}
.ic-ai-admin-tab-rail{
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.98));
  border: 1px solid rgba(148,163,184,.16);
  box-shadow: 0 18px 36px rgba(15,23,42,.05);
}
.ic-ai-admin-tabs{
  gap: 10px;
  flex-wrap: wrap;
}
.ic-ai-admin-tabs .nav-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.24);
  background: rgba(255,255,255,.92);
  color: #334155;
  font-weight: 700;
  padding: .72rem 1rem;
  box-shadow: 0 10px 22px rgba(15,23,42,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.ic-ai-admin-tabs .nav-link:hover{
  transform: translateY(-1px);
  border-color: rgba(59,130,246,.22);
  color: #0f172a;
}
.ic-ai-admin-tabs .nav-link.active{
  background: linear-gradient(135deg, rgba(239,246,255,.98), rgba(219,234,254,.96));
  color: #1d4ed8;
  border-color: rgba(59,130,246,.22);
  box-shadow: 0 16px 28px rgba(59,130,246,.12);
}
.ic-ai-admin-tab-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(15,23,42,.08);
  color: inherit;
  font-size: .78rem;
  font-weight: 800;
}
.ic-ai-admin-tabs .nav-link.active .ic-ai-admin-tab-badge{
  background: rgba(59,130,246,.12);
  color: #1d4ed8;
}
.ic-ai-admin-card{
  border: 0;
  border-radius: 26px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 46px rgba(15,23,42,.08);
}
.ic-ai-admin-card .card-body{
  padding: 20px;
}
.ic-ai-admin-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.ic-ai-admin-kicker{
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  margin-bottom: 6px;
}
.ic-ai-admin-card-title{
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 800;
}
.ic-ai-admin-card-subtitle{
  color: #64748b;
  max-width: 620px;
}
.ic-ai-admin-inline-meta{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.ic-ai-admin-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  color: #0f172a;
  border: 1px solid rgba(148,163,184,.16);
  font-size: .82rem;
  font-weight: 700;
}
.ic-ai-admin-pill.is-soft{
  background: rgba(248,250,252,.94);
  color: #475569;
}
.ic-ai-admin-pill.is-danger{
  background: rgba(254,226,226,.92);
  color: #b91c1c;
  border-color: rgba(248,113,113,.2);
}
.ic-ai-admin-filter-row .form-label,
.ic-ai-admin-panel .form-label{
  font-size: .82rem;
  font-weight: 700;
  color: #334155;
}
.ic-ai-admin-selection-bar{
  margin: 18px 0 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border: 1px solid rgba(148,163,184,.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ic-ai-admin-role-legend{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}
.ic-ai-admin-scope{
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ic-ai-admin-scope-label{
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}
.ic-ai-admin-scope-value{
  font-size: .95rem;
  font-weight: 700;
  color: #0f172a;
}
.ic-ai-admin-table-wrap{
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 20px;
  overflow: auto;
  background: #fff;
}
.ic-ai-admin .ic-ai-admin-table{
  margin: 0;
}
.ic-ai-admin .ic-ai-admin-table th,
.ic-ai-admin .ic-ai-admin-table td{
  vertical-align: middle;
  white-space: nowrap;
}
.ic-ai-admin .ic-ai-admin-table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #64748b;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-top: 14px;
  padding-bottom: 14px;
}
.ic-ai-admin .ic-ai-admin-table td{
  padding-top: 12px;
  padding-bottom: 12px;
}
.ic-ai-user-lock{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(15,23,42,.06);
  color: #475569;
}
.ic-ai-admin .ic-ai-admin-table tbody tr:hover{
  background: rgba(248,250,252,.9);
}
.ic-ai-admin .ic-ai-admin-panel{
  position: sticky;
  top: 90px;
}
.ic-ai-admin .badge.text-uppercase{
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}
.ic-ai-admin-panel-scope{
  margin-bottom: 16px;
  padding: 14px 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eff6ff, #f8fafc);
  border: 1px solid rgba(59,130,246,.12);
  color: #1e3a8a;
  font-size: .92rem;
  line-height: 1.55;
}
.ic-ai-admin-switch{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(148,163,184,.16);
}
.ic-ai-admin-switch .form-check-input{
  margin-top: 0;
}
.ic-ai-admin-switch .form-check-label{
  font-weight: 700;
  color: #0f172a;
}
.ic-ai-admin-status{
  min-height: 42px;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(248,250,252,.94);
  color: #475569;
  font-size: .9rem;
  line-height: 1.45;
}
.ic-ai-admin-status.d-none{
  display: none !important;
}
.ic-ai-admin-status.is-success{
  background: rgba(220,252,231,.9);
  color: #166534;
  border-color: rgba(34,197,94,.16);
}
.ic-ai-admin-status.is-danger{
  background: rgba(254,226,226,.92);
  color: #b91c1c;
  border-color: rgba(248,113,113,.18);
}
.ic-ai-admin-status.is-neutral{
  background: rgba(219,234,254,.92);
  color: #1d4ed8;
  border-color: rgba(59,130,246,.16);
}
.ic-ai-admin-empty-state{
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border: 1px dashed rgba(148,163,184,.28);
}
.ic-ai-admin-empty-icon{
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15,23,42,.06);
  color: #0f172a;
  font-size: 1.8rem;
}
.ic-ai-admin-empty-title{
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
}
.ic-ai-admin-empty-text{
  max-width: 440px;
  margin: 8px auto 0;
  color: #64748b;
}
.ic-ai-incident-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.ic-ai-incident-card{
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 18px 34px rgba(15,23,42,.05);
  overflow: hidden;
  align-self: start;
}
.ic-ai-incident-card[open]{
  border-color: rgba(59,130,246,.18);
  box-shadow: 0 22px 42px rgba(15,23,42,.08);
}
.ic-ai-incident-card[open] .ic-ai-incident-expand i{
  transform: rotate(180deg);
}
.ic-ai-incident-summary{
  list-style: none;
  cursor: pointer;
  padding: 17px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.ic-ai-incident-summary::-webkit-details-marker{
  display: none;
}
.ic-ai-incident-summary-main{
  min-width: 0;
}
.ic-ai-incident-kicker-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.ic-ai-incident-name-row{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ic-ai-incident-name{
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}
.ic-ai-incident-meta{
  margin-top: 6px;
  font-size: .84rem;
  color: #64748b;
  line-height: 1.5;
}
.ic-ai-incident-summary-side{
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.ic-ai-incident-chip-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.ic-ai-incident-time{
  font-size: .8rem;
  color: #64748b;
}
.ic-ai-incident-expand{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15,23,42,.05);
  color: #0f172a;
}
.ic-ai-incident-expand i{
  transition: transform .18s ease;
}
.ic-ai-incident-body{
  padding: 0 18px 18px;
}
.ic-ai-incident-panels{
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 12px;
}
.ic-ai-incident-panel{
  padding: 15px;
  border-radius: 18px;
  background: rgba(248,250,252,.96);
  border: 1px solid rgba(148,163,184,.16);
}
.ic-ai-incident-panel-label{
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}
.ic-ai-incident-panel-value{
  font-size: .92rem;
  color: #0f172a;
  line-height: 1.55;
}
.ic-ai-incident-signal-list{
  display: grid;
  gap: 6px;
  font-size: .86rem;
  color: #334155;
}
.ic-ai-incident-snapshot{
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.55;
  color: #0f172a;
  font-size: .87rem;
}

@media (max-width: 1199px){
  .ic-ai-admin-overview{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ic-ai-admin .ic-ai-admin-panel{
    position: static;
  }
}

@media (max-width: 992px){
  .ic-ai-incident-grid{
    grid-template-columns: 1fr;
  }
  .ic-ai-incident-panels{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .ic-ai-admin-tab-rail{
    padding: 8px;
  }
  .ic-ai-admin-overview{
    grid-template-columns: 1fr;
  }
  .ic-ai-admin-card-head,
  .ic-ai-admin-selection-bar,
  .ic-ai-incident-summary{
    flex-direction: column;
    align-items: stretch;
  }
  .ic-ai-admin-inline-meta,
  .ic-ai-incident-summary-side,
  .ic-ai-incident-chip-row{
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px){
  .share-presenter-bar{
    flex-wrap: wrap;
    justify-content: center;
  }
  .share-presenter-url{
    order: 3;
    width: 100%;
  }
}
.interactive-layer{
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: none;
}
.interactive-layer.is-active{
  display: block;
}
.interactive-toolbar{
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  pointer-events: auto;
  z-index: 2401;
  backdrop-filter: blur(12px);
}
.interactive-title{
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
}
.interactive-tool{
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}
.interactive-tool i{
  font-size: 14px;
}
.interactive-tool.is-add{
  background: #ecfeff;
  border-color: rgba(14, 116, 144, 0.3);
}
.interactive-tool.is-clear{
  background: #fff1f2;
  border-color: rgba(225, 29, 72, 0.3);
  color: #9f1239;
}
.interactive-tool.is-close{
  background: #f8fafc;
}
.interactive-canvas{
  position: absolute;
  inset: 0;
}
.interactive-btn{
  position: absolute;
  padding: 8px 14px;
  min-width: 120px;
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  touch-action: none;
}
.interactive-btn:active{
  cursor: grabbing;
}
.interactive-btn-label{
  outline: none;
}
.interactive-btn.is-editing{
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.25);
}
.interactive-btn.is-editing .interactive-btn-label{
  cursor: text;
  user-select: text;
}
.interactive-btn-remove{
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  background: #ef4444;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.35);
}
.interactive-btn-handle{
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(15, 23, 42, 0.35);
  border-bottom: 2px solid rgba(15, 23, 42, 0.35);
  pointer-events: auto;
  cursor: nwse-resize;
}
.share-invite-toast{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2100;
}
.share-invite-toast.hidden{
  display: none;
}
.share-invite-card{
  min-width: 240px;
  max-width: 320px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 10px;
}
.share-invite-title{
  font-weight: 700;
  font-size: 14px;
}
.share-invite-text{
  font-size: 12px;
  color: #475569;
}
.share-invite-actions{
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.share-overlay.hidden{
  display: none;
}
.share-overlay-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  gap: 10px;
}
.share-overlay-title{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.share-overlay-title .label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}
.share-overlay-title .value{
  font-weight: 700;
  font-size: 15px;
}
.share-overlay-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-overlay-actions .btn{
  border-radius: 999px;
}
.share-mic-toggle.is-muted{
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fee2e2;
}
.share-remote-audio{
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.share-video-wrap{
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.share-video{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}
.share-record-modal .modal-content{
  border-radius: 18px;
  overflow: hidden;
}
.share-record-preview{
  width: 100%;
  max-height: 60vh;
  border-radius: 14px;
  background: #0f172a;
}
.share-whiteboard{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  min-height: 0;
  position: relative;
}
.share-wb-toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.share-wb-tools,
.share-wb-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.share-wb-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
}
.share-wb-btn i{
  font-size: 14px;
}
.share-wb-btn.is-active{
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}
.share-wb-btn.is-clear{
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
.share-wb-btn.is-save{
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}
.share-wb-btn.is-share{
  border-color: rgba(14, 116, 144, 0.35);
  background: rgba(14, 116, 144, 0.12);
  color: #0f766e;
}
.share-wb-btn.is-busy{
  opacity: 0.6;
  pointer-events: none;
}
.share-wb-toast{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}
.share-wb-toast.is-error{
  background: rgba(220, 38, 38, 0.95);
}
.share-wb-color,
.share-wb-size{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
}
.share-wb-color .label,
.share-wb-size .label{
  font-weight: 600;
}
.share-wb-color input,
.share-wb-size input{
  cursor: pointer;
}
.share-wb-canvas-wrap{
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #ffffff;
  overflow: hidden;
}
#shareWbCanvas{
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
  background: #ffffff;
}
.share-wb-text-input{
  position: absolute;
  z-index: 2;
  min-width: 140px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  outline: none;
  resize: both;
  background: rgba(255, 255, 255, 0.96);
}
.share-wb-text-input:focus{
  border-color: rgba(37, 99, 235, 0.6);
}
@media (max-width: 768px){
  .share-wb-toolbar{
    flex-direction: column;
    align-items: flex-start;
  }
  .share-wb-tools,
  .share-wb-actions{
    width: 100%;
  }
  .share-invite-toast{
    left: 12px;
    right: 12px;
  }
  .share-invite-card{
    max-width: 100%;
  }
  .chat-fab-tool{
    bottom: 0;
    right: 64px;
  }
  .share-annotate-toolbar{
    right: 10px;
    top: auto;
    bottom: 12px;
    transform: none;
  }
  .share-annotate-launcher{
    right: 12px;
    top: auto;
    bottom: 12px;
    transform: none;
  }
  .share-annotate-launcher.is-active{
    right: 12px;
  }
  .interactive-toolbar{
    right: 12px;
    top: auto;
    bottom: 100px;
    transform: none;
  }
}
.share-overlay-note{
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.2);
  font-size: 12px;
  display: none;
}
.share-overlay-note.is-visible{
  display: block;
}
@media (max-width: 992px){
  .share-grid{
    grid-template-columns: 1fr;
  }
}

/* NEW: Attendance 3 (spreadsheet UI) */
.attendance3-shell{
  --att3-ink: #0f172a;
  --att3-muted: #475569;
  --att3-border: rgba(15, 23, 42, 0.08);
  --att3-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 22px;
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  color: var(--att3-ink);
}
.attendance3-hero{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.15), transparent 55%),
    radial-gradient(circle at 82% 14%, rgba(16, 185, 129, 0.14), transparent 60%),
    linear-gradient(135deg, #f8fafc, #eef2ff 45%, #f0fdfa 100%);
  border: 1px solid var(--att3-border);
}
.attendance3-kicker{
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
}
.attendance3-title{
  margin: 6px 0 8px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
}
.attendance3-subtitle{
  margin: 0;
  color: var(--att3-muted);
  font-size: 14px;
}
.attendance3-hero-date{
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--att3-border);
  padding: 12px 16px;
  min-width: 150px;
  box-shadow: var(--att3-shadow);
}
.attendance3-hero-date .label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--att3-muted);
}
.attendance3-hero-date .value{
  font-weight: 700;
}
.attendance3-card{
  background: #fff;
  border: 1px solid var(--att3-border);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: var(--att3-shadow);
  display: grid;
  gap: 16px;
}
.attendance3-card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.attendance3-card-title{
  font-weight: 700;
  font-size: 18px;
}
.attendance3-card-subtitle{
  color: var(--att3-muted);
  font-size: 13px;
}
.attendance3-form{
  display: grid;
  gap: 14px;
}
.attendance3-toolbar{
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 240px) minmax(160px, 200px) 1fr;
  align-items: end;
}
.attendance3-field .form-control,
.attendance3-field .form-select{
  border-radius: 12px;
}
.attendance3-summary{
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: start;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid var(--att3-border);
  padding: 10px 12px;
}
.attendance3-summary .metric{
  display: grid;
  gap: 2px;
}
.attendance3-summary .label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--att3-muted);
}
.attendance3-summary .value{
  font-weight: 700;
}
.attendance3-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.attendance3-save-btn{
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
}
.attendance3-warning{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
  font-size: 12px;
}
.attendance3-sheet{
  border: 1px solid var(--att3-border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.attendance3-sheet-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--att3-border);
  background: #f8fafc;
}
.attendance3-sheet-title{
  font-weight: 700;
}
.attendance3-sheet-date{
  font-size: 12px;
  color: var(--att3-muted);
}
.attendance3-sheet-wrap{
  overflow: auto;
  max-height: 520px;
}
.attendance3-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
  --att3-col-idx: 52px;
  --att3-col-id: 130px;
  --att3-col-name: 240px;
  --att3-col-score: 70px;
  --att3-col-percent: 140px;
}
.attendance3-table thead th{
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--att3-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--att3-border);
  white-space: nowrap;
}
.attendance3-table thead th.att3-sticky-left,
.attendance3-table thead th.att3-sticky-right{
  z-index: 4;
}
.attendance3-table tbody td{
  padding: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}
.attendance3-row:hover td{
  background: #f8fafc;
}
.att3-sticky-left{
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 2;
}
.att3-sticky-right{
  position: sticky;
  right: 0;
  background: inherit;
  z-index: 2;
}
.att3-col-idx{ width: var(--att3-col-idx); left: 0; text-align: center; }
.att3-col-id{ width: var(--att3-col-id); left: var(--att3-col-idx); }
.att3-col-name{ width: var(--att3-col-name); left: calc(var(--att3-col-idx) + var(--att3-col-id)); }
.att3-col-score{ width: var(--att3-col-score); right: var(--att3-col-percent); text-align: center; }
.att3-col-percent{ width: var(--att3-col-percent); right: 0; text-align: center; }
.att3-col-date-label{
  text-align: center;
}
.att3-col-date{
  text-align: center;
  font-weight: 600;
  color: var(--att3-ink);
}
.att3-col-status{
  position: relative;
}
.attendance3-student{
  display: flex;
  align-items: center;
  gap: 10px;
}
.attendance3-student .avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.attendance3-student .info{
  display: grid;
}
.attendance3-student .name{
  font-weight: 600;
}
.attendance3-student .meta{
  font-size: 11px;
  color: var(--att3-muted);
}
.att3-input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.att3-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 10px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.att3-badge.is-present{
  background: rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.35);
}
.att3-badge.is-absent{
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.3);
}
.att3-badge:hover{
  transform: translateY(-1px);
}
.att3-percent{
  font-weight: 700;
  color: #0f766e;
}
.attendance3-empty{
  padding: 16px;
  text-align: center;
  color: var(--att3-muted);
}
@media (max-width: 992px){
  .attendance3-toolbar{
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
@media (max-width: 768px){
  .attendance3-hero{
    padding: 20px;
  }
  .attendance3-table{
    min-width: 760px;
  }
}

/* Attendance 2 (sheet view) */
.attendance2-shell{
  --att2-ink: #0f172a;
  --att2-muted: #475569;
  --att2-border: rgba(15, 23, 42, 0.08);
  --att2-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 22px;
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  color: var(--att2-ink);
}
.attendance2-hero{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.15), transparent 55%),
    radial-gradient(circle at 82% 14%, rgba(16, 185, 129, 0.14), transparent 60%),
    linear-gradient(135deg, #f8fafc, #eef2ff 45%, #f0fdfa 100%);
  border: 1px solid var(--att2-border);
}
.attendance2-kicker{
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
}
.attendance2-title{
  margin: 6px 0 8px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
}
.attendance2-subtitle{
  margin: 0;
  color: var(--att2-muted);
  font-size: 14px;
}
.attendance2-hero-date{
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--att2-border);
  padding: 12px 16px;
  min-width: 150px;
  box-shadow: var(--att2-shadow);
}
.attendance2-hero-date .label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--att2-muted);
}
.attendance2-hero-date .value{
  font-weight: 700;
}
.attendance2-tips{
  display: grid;
  gap: 16px;
}
.attendance2-tips-card{
  background: #fff;
  border: 1px solid var(--att2-border);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: var(--att2-shadow);
  display: grid;
  gap: 14px;
}
.attendance2-tips-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.attendance2-tips-title{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
}
.attendance2-tips-title i{
  color: #f59e0b;
}
.attendance2-tips-subtitle{
  color: var(--att2-muted);
  font-size: 10px;
  margin-top: 4px;
}
.attendance2-tips-pill{
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}
.attendance2-tips-grid{
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
}
.attendance2-tip{
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
}
.attendance2-tip .icon{
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-size: 12px;
  flex: 0 0 auto;
}
.attendance2-tip .title{
  font-weight: 600;
  font-size: 10px;
}
.attendance2-tip .text{
  font-size: 10px;
  color: var(--att2-muted);
  margin-top: 2px;
  line-height: 1.5;
}
.attendance2-board{
  display: grid;
  gap: 18px;
}
.attendance2-card{
  background: #fff;
  border: 1px solid var(--att2-border);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: var(--att2-shadow);
  display: grid;
  gap: 16px;
}
.attendance2-card-side{
  padding: 12px 14px;
  gap: 12px;
}
.attendance2-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.attendance2-card-info{
  display: grid;
  gap: 4px;
}
.attendance2-card-tools{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.attendance2-card-tools .attendance2-badge{
  font-size: 10px;
  padding: 4px 10px;
}
.attendance2-card-tools .attendance2-schedule{
  display: grid;
  gap: 4px;
  min-width: 180px;
}
.attendance2-card-tools .attendance2-schedule .title{
  font-size: 9px;
  letter-spacing: 0.18em;
}
.attendance2-card-tools .attendance2-schedule .days{
  gap: 4px;
}
.attendance2-card-tools .attendance2-schedule .time{
  font-size: 10px;
}
.attendance2-quicktips{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--att2-border);
  background: #fff;
  font-size: 11px;
  color: #0f172a;
  position: relative;
  cursor: default;
  white-space: nowrap;
}
.attendance2-quicktips i{
  color: #f59e0b;
}
.attendance2-quicktips::after{
  content: attr(data-tip);
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 11px;
  line-height: 1.4;
  white-space: pre-line;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.28);
  z-index: 5;
}
.attendance2-quicktips::before{
  content: "";
  position: absolute;
  right: 18px;
  top: calc(100% + 2px);
  border: 6px solid transparent;
  border-bottom-color: #0f172a;
  opacity: 0;
  transform: translateY(-4px);
}
.attendance2-quicktips:hover::after,
.attendance2-quicktips:hover::before{
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 992px){
  .attendance2-card-tools{
    width: 100%;
    justify-content: flex-start;
  }
  .attendance2-quicktips::after{
    right: auto;
    left: 0;
  }
  .attendance2-quicktips::before{
    right: auto;
    left: 18px;
  }
}
.attendance2-card-title{
  font-weight: 700;
  font-size: 18px;
}
.attendance2-card-subtitle{
  color: var(--att2-muted);
  font-size: 13px;
}
.attendance2-card-side .attendance2-card-title{
  font-size: 14px;
}
.attendance2-card-side .attendance2-card-subtitle{
  font-size: 11px;
}
.attendance2-card-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.attendance2-badge{
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.attendance2-form{
  display: grid;
  gap: 14px;
}
.attendance2-toolbar{
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 220px) minmax(160px, 200px) 1fr auto;
  align-items: end;
}
.attendance2-field .form-control,
.attendance2-field .form-select{
  border-radius: 12px;
  font-size: 12px;
  padding: 6px 10px;
}
.attendance2-field .form-label{
  font-size: 11px;
}
.attendance2-group-alert{
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
}
.attendance2-summary{
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid var(--att2-border);
  padding: 8px 10px;
}
.attendance2-summary .metric{
  display: grid;
  gap: 2px;
}
.attendance2-summary .label{
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--att2-muted);
}
.attendance2-summary .value{
  font-weight: 700;
  font-size: 12px;
}
.attendance2-save{
  display: flex;
  justify-content: flex-end;
}
.attendance2-save-btn{
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
}
.attendance2-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px dashed var(--att2-border);
  border-radius: 12px;
  padding: 8px 10px;
}
.attendance2-schedule{
  display: grid;
  gap: 6px;
}
.attendance2-schedule .title{
  font-size: 10px;
  font-weight: 700;
  color: var(--att2-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.attendance2-schedule .days{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.attendance2-day{
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 10px;
  color: var(--att2-muted);
  background: #f8fafc;
}
.attendance2-day.is-active{
  background: rgba(16, 185, 129, 0.18);
  color: #0f766e;
  border-color: rgba(16, 185, 129, 0.45);
}
.attendance2-day.is-today{
  border-color: rgba(37, 99, 235, 0.4);
  color: #1d4ed8;
}
.attendance2-schedule .time{
  font-size: 10px;
  color: var(--att2-muted);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.att2-schedule-slot{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.attendance2-warning{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
  font-size: 10px;
}
.attendance2-sheet{
  border: 1px solid var(--att2-border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.group-schedule-modal .modal-body{
  padding-top: 16px;
}
.group-schedule-modal .modal-header{
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(14, 116, 144, 0.08));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.group-schedule-modal .modal-title{
  font-weight: 700;
}
.group-schedule-modal .group-schedule-item{
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.3);
}
.group-schedule-modal .group-schedule-item .form-label{
  margin-bottom: 4px;
}
.group-schedule-modal .form-text{
  font-size: 11px;
  color: #64748b;
}
.group-schedule-modal #groupSchedulePreset{
  background: #fff;
  border-radius: 12px;
}
.group-schedule-modal #groupScheduleList{
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}
.attendance2-sheet .attendance2-tips-inline{
  margin-bottom: 0;
  padding: 6px 10px;
  border-bottom: 1px solid var(--att2-border);
  background: #f8fafc;
}
.attendance2-sheet .attendance2-tips-card{
  box-shadow: none;
  border-radius: 14px;
  padding: 8px 10px;
}
.attendance2-sheet .attendance2-tip{
  border: 0;
  background: transparent;
  padding: 2px 0;
}
.attendance2-sheet .attendance2-tip .icon{
  display: none;
}
.attendance2-sheet .attendance2-tips-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.attendance2-sheet-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--att2-border);
  background: #f8fafc;
}
.attendance2-sheet-title{
  font-weight: 700;
  font-size: 12px;
}
.attendance2-sheet-date{
  font-size: 10px;
  color: var(--att2-muted);
}
.attendance2-sheet-wrap{
  overflow: auto;
  max-height: min(520px, calc(100vh - 340px));
}
.attendance2-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
  --att2-col-idx: 44px;
  --att2-col-id: 90px;
  --att2-col-name: 220px;
}
.attendance2-table thead th{
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 2;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--att2-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--att2-border);
  white-space: nowrap;
}
.attendance2-table tbody td{
  padding: 8px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}
.attendance2-row:hover td{
  background: #f8fafc;
}
.att2-sticky{
  position: sticky;
  background: inherit;
  z-index: 1;
}
.att2-col-idx{
  width: var(--att2-col-idx);
  left: 0;
  text-align: center;
}
.att2-col-id{
  width: var(--att2-col-id);
  left: var(--att2-col-idx);
}
.att2-col-name{
  width: var(--att2-col-name);
  left: calc(var(--att2-col-idx) + var(--att2-col-id));
}
.att2-col-status{
  min-width: 150px;
}
.attendance2-student{
  display: flex;
  align-items: center;
  gap: 8px;
}
.attendance2-student .avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.attendance2-student .info{
  display: grid;
}
.attendance2-student .name{
  font-weight: 600;
  font-size: 12px;
}
.attendance2-student .meta{
  font-size: 10px;
}
.att2-col-idx,
.att2-col-group,
.att2-col-percent{
  font-size: 11px;
  line-height: 1.2;
}
.att2-percent{
  font-size: 11px;
  font-weight: 700;
}
.attendance2-student .meta{
  font-size: 11px;
  color: var(--att2-muted);
}
.attendance2-toggle{
  position: relative;
}
.attendance2-toggle-input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.attendance2-toggle-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.attendance2-toggle-pill .state-present{ display: none; }
.attendance2-toggle-input:checked + .attendance2-toggle-pill{
  background: rgba(16, 185, 129, 0.18);
  color: #0f766e;
}
.attendance2-toggle-input:checked + .attendance2-toggle-pill .state-present{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.attendance2-toggle-input:checked + .attendance2-toggle-pill .state-absent{ display: none; }
.attendance2-toggle-input:not(:checked) + .attendance2-toggle-pill .state-absent{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.attendance2-empty{
  padding: 16px;
  text-align: center;
  color: var(--att2-muted);
}
.attendance2-report{
  gap: 14px;
}
.attendance2-filter-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.attendance2-stats{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.attendance2-stats .stat{
  background: #f8fafc;
  border: 1px solid var(--att2-border);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 120px;
}
.attendance2-stats .label{
  font-size: 11px;
  color: var(--att2-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.attendance2-stats .value{
  font-weight: 700;
}
.attendance2-export{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--att2-border);
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fafc;
}
.attendance2-export .title{
  font-weight: 600;
}
.attendance2-export .range{
  font-size: 12px;
  color: var(--att2-muted);
}
.attendance2-export .actions{
  display: flex;
  gap: 8px;
}
.attendance2-report-table{
  border: 1px solid var(--att2-border);
  border-radius: 14px;
  overflow: hidden;
}
.attendance2-report-status{
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.attendance2-report-status.is-present{
  background: rgba(16, 185, 129, 0.18);
  color: #0f766e;
}
.attendance2-report-status.is-absent{
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}
@media (max-width: 992px){
  .attendance2-toolbar{
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .attendance2-save{
    justify-content: flex-start;
  }
}
@media (max-width: 768px){
  .attendance2-hero{
    padding: 20px;
  }
  .attendance2-table{
    min-width: 680px;
  }
}

/* Attendance 2 (range spreadsheet refresh) */
.attendance2-toolbar{
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
.attendance2-controls{
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  width: 100%;
}
.attendance2-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.attendance2-button-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--att2-border);
  border-radius: 14px;
  padding: 10px;
  flex-direction: column;
}
.attendance2-button-row .att2-btn-group{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.attendance2-button-row .att2-btn-group .btn{
  width: 100%;
}
.attendance2-button-row .att2-save-wide{
  width: 100%;
}
.attendance2-divider{
  width: 100%;
  border: 0;
  height: 1px;
  background: var(--att2-border);
  margin: 2px 0 4px;
}
.attendance2-button-row .btn{
  border-radius: 999px;
  font-weight: 600;
  padding: 6px 12px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  font-size: 11px;
}
.attendance2-button-row .att2-btn-group .btn.btn-outline-secondary:hover,
.attendance2-button-row .att2-btn-group .btn.btn-outline-secondary:focus{
  background: #6c757d !important;
  border-color: #6c757d;
  color: #fff;
}
.attendance2-button-row .attendance2-save-btn{
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.24);
}
.attendance2-button-row .attendance2-save-btn:hover{
  filter: brightness(1.05);
}
.attendance2-button-row #attendance2ExportExcel,
.attendance2-button-row #attendance2ExportPdf{
  background: #f8fafc;
}
.attendance2-sheet-subtitle{
  font-size: 12px;
  color: var(--att2-muted);
}
.attendance2-sheet-range{
  font-size: 10px;
  color: var(--att2-muted);
}
.attendance2-table{
  min-width: 980px;
  table-layout: auto;
  --att2-col-idx: 36px;
  --att2-col-name: 140px;
  --att2-col-group: 90px;
  --att2-col-percent: 70px;
}
.attendance2-table thead tr:first-child th{
  top: 0;
  z-index: 3;
}
.attendance2-table thead tr:last-child th{
  top: 38px;
  z-index: 2;
}
.attendance2-table.attendance2-table-vertical thead tr th,
.attendance2-table.attendance2-table-vertical thead tr:last-child th{
  top: 0;
}
.attendance2-table thead th.att2-head-gap{
  background: #f8fafc;
  border-bottom: 1px solid var(--att2-border);
}
.attendance2-table thead th.att2-sticky-left,
.attendance2-table thead th.att2-sticky-right{
  z-index: 30;
  background: #f8fafc;
}
.attendance2-table thead th.att2-date-head{
  z-index: 0;
  background: transparent;
  pointer-events: none;
}
.attendance2-table tbody td.att2-sticky-left,
.attendance2-table tbody td.att2-sticky-right{
  background: #fff;
}
.attendance2-table thead th,
.attendance2-table tbody td{
  white-space: nowrap;
  font-size: 11px;
}
.attendance2-table thead th.att2-sticky-left,
.attendance2-table tbody td.att2-sticky-left{
  padding-inline: 16px;
}
.att2-date-head{
  text-align: center;
  font-size: 11px;
}
.att2-date-col{
  /* min-width: 84px; */
  min-width: 50px;
  width: 72px;
  text-align: center;
  box-sizing: border-box;
  font-size: 11px;
}
.attendance2-table thead tr#attendance2DateRow .att2-date-col:first-of-type{
  padding-left: 3%;
}
.att2-date-col.is-active{
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}
.att2-date-cell{
  position: relative;
  text-align: center;
  background: #fff;
  font-size: 11px;
}
.att2-date-cell.is-active{
  background: rgba(59, 130, 246, 0.08);
}
.att2-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.att2-badge.is-present{
  background: rgba(16, 185, 129, 0.18);
  color: #0f766e;
  border-color: rgba(16, 185, 129, 0.35);
}
.att2-badge.is-absent{
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.35);
}
.att2-badge.is-empty{
  background: #e2e8f0;
  color: #64748b;
  border-color: #e2e8f0;
}
.att2-badge.is-readonly{
  cursor: default;
  opacity: 0.85;
}
.att2-date-cell[data-disabled="1"] .att2-badge::after{
  content: "\1F512";
  font-size: 10px;
  margin-left: 6px;
  opacity: 0.7;
}
.att2-input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.att2-sticky-left{
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 2;
}
.att2-sticky-right{
  position: sticky;
  right: 0;
  background: inherit;
  z-index: 2;
}

/* NEW: Attendance 2 vertical layout */
.attendance2-table.attendance2-table-vertical{
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}
.attendance2-table-vertical thead th,
.attendance2-table-vertical tbody td,
.attendance2-table-vertical tbody th,
.attendance2-table-vertical tfoot th,
.attendance2-table-vertical tfoot td{
  white-space: normal;
  font-size: 12px;
  padding: 8px 10px;
}
.attendance2-table-vertical thead th{
  text-transform: none;
  letter-spacing: 0;
}
.attendance2-table-vertical thead tr th{
  top: 0;
  z-index: 2;
}
.attendance2-table-vertical .att2-date-head{
  width: 120px;
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 3;
  background: #f8fafc;
}
.attendance2-table-vertical .att2-date-label{
  font-weight: 600;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}
.attendance2-table-vertical .att2-student-col{
  text-align: center;
  vertical-align: bottom;
}
.attendance2-table-vertical .att2-student-head{
  display: grid;
  gap: 2px;
}
.attendance2-table-vertical .att2-student-head .name{
  font-weight: 600;
  font-size: 12px;
}
.attendance2-table-vertical .att2-student-head .group{
  font-size: 10px;
  color: var(--att2-muted);
}
.attendance2-table-vertical .att2-date-cell{
  text-align: center;
}
.attendance2-table-vertical tbody tr:first-child th,
.attendance2-table-vertical tbody tr:first-child td{
  border-top: 1px solid var(--att2-border);
}
.attendance2-table-vertical .attendance2-row:hover td,
.attendance2-table-vertical .attendance2-row:hover th.att2-date-label{
  background: #f8fafc;
}
.attendance2-table-vertical .att2-percent-row th,
.attendance2-table-vertical .att2-percent-row td{
  background: #f8fafc;
}
.attendance2-table-vertical .att2-percent-cell{
  text-align: center;
  font-weight: 600;
}
.att2-hidden{
  display: none !important;
}

/* Attendance 2 layout (sidebar + sheet) */
.attendance2-shell > .attendance2-tips{
  display: none;
}
.attendance2-form{
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  align-items: start;
}
.attendance2-toolbar,
.attendance2-meta,
.attendance2-tips-inline{
  grid-column: 1;
}
.attendance2-sheet{
  grid-column: 2;
  grid-row: 1 / span 3;
}
.attendance2-toolbar{
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--att2-border);
  border-radius: 16px;
  padding: 12px;
}
.attendance2-actions{
  flex-direction: column;
  align-items: stretch;
}
.attendance2-summary{
  justify-content: space-between;
}
.attendance2-button-row{
  justify-content: flex-start;
}
.attendance2-sheet-subtitle{
  display: none;
}
.attendance2-sheet-subtitle.is-fixed{
  display: block;
  font-size: 11px;
}
@media (max-width: 1200px){
  .attendance2-form{
    grid-template-columns: 1fr;
  }
  .attendance2-toolbar,
  .attendance2-meta,
  .attendance2-tips-inline,
  .attendance2-sheet{
    grid-column: 1;
    grid-row: auto;
  }
}
.att2-col-idx{
  width: var(--att2-col-idx);
  left: 0;
  text-align: center;
}
.att2-col-name{
  width: var(--att2-col-name);
  left: var(--att2-col-idx);
  text-align: left;
}
.att2-col-group{
  width: var(--att2-col-group);
  left: calc(var(--att2-col-idx) + var(--att2-col-name));
  text-align: left;
}
.att2-col-percent{
  width: var(--att2-col-percent);
  right: 0;
  text-align: center;
}
.attendance2-student .name{
  font-weight: 600;
}
@media (max-width: 992px){
  .attendance2-actions{
    align-items: flex-start;
  }
}
@media (max-width: 768px){
  .attendance2-controls{
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .attendance2-table{
    min-width: 760px;
  }
}
.tests-explorer .card-body {
  position: relative;
}
.tests-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.tests-toolbar-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tests-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  color: #0f172a;
}
.tests-breadcrumb button {
  border: 0;
  background: none;
  padding: 0;
  color: #0f172a;
  font-weight: 600;
}
.tests-breadcrumb button:disabled {
  opacity: 0.6;
}
.tests-breadcrumb .sep {
  color: #94a3b8;
}
.tests-subtitle {
  display: none;
}
.tests-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.tests-search {
  position: relative;
  min-width: 220px;
}
.tests-search i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}
.tests-search input {
  padding-left: 30px;
}
.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.tests-tile {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 18px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  position: relative;
}
.tests-tile:hover {
  border-color: #cbd5f5;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.tests-tile.is-selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
  background: #eef2ff;
}
.tests-tile-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}
.tests-tile-icon.is-reading {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}
.tests-tile-icon.is-listening {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}
.tests-tile-icon.is-writing {
  background: linear-gradient(135deg, #f97316, #fb923c);
}
.tests-tile-icon.is-speaking {
  background: linear-gradient(135deg, #10b981, #34d399);
}
.tests-tile-icon.is-folder {
  background: linear-gradient(135deg, #6366f1, #a5b4fc);
}
.tests-tile-title {
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
}
.tests-tile-meta {
  color: #64748b;
  font-size: 0.85rem;
}
.tests-folder-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tests-tile:hover .tests-folder-actions {
  opacity: 1;
}
.tests-icon-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 10px;
  padding: 4px 6px;
  font-size: 0.75rem;
  line-height: 1;
}
.tests-icon-btn.is-danger {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff1f2;
}
.tests-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  position: relative;
}
.tests-card-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.tests-card-title {
  font-weight: 600;
  color: #0f172a;
}
.tests-card-desc {
  color: #64748b;
  font-size: 0.88rem;
  min-height: 34px;
}
.tests-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #64748b;
}
.tests-card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 1;
  transform: none;
}
.tests-card-actions .btn,
.tests-card-actions form{
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all 0.2s ease;
}
.tests-card:hover .tests-card-actions .btn,
.tests-card:hover .tests-card-actions form{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tests-card-tools{
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.tests-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tests-modal-note{
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1f5ff;
  color: #1e3a8a;
  font-size: 0.85rem;
  border: 1px solid #dbe3ff;
  margin-bottom: 12px;
}
.tests-tool {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 0.75rem;
  color: #334155;
}
.tests-tool.is-danger {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff1f2;
}
.tests-empty {
  padding: 24px;
}
.tests-empty-card {
  border: 1px dashed #cbd5f5;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  background: #f8fafc;
}
.tests-empty-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #0f172a;
}
.tests-empty-text {
  color: #64748b;
  margin: 10px 0 16px;
}
.tests-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #0f172a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1080;
}
.tests-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}
.tests-toast.is-error {
  background: #dc2626;
}
.ai-create-modal {
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}
.ai-modal-dialog {
  max-width: 980px;
}
.ai-modal-header {
  padding: 16px 18px;
  align-items: flex-start;
  gap: 12px;
}
.ai-modal-head {
  display: grid;
  gap: 4px;
}
.ai-modal-sub {
  font-size: 12px;
  color: #64748b;
}
.ai-modal-body {
  padding: 14px 18px 6px;
}
.ai-modal-form {
  display: grid;
  gap: 12px;
}
.ai-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}
.ai-modal-col {
  display: grid;
  gap: 12px;
}
.ai-card {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  padding: 12px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}
.ai-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 8px;
}
.ai-modal-footer {
  padding: 10px 18px 16px;
}
.ai-modal-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #94a3b8;
  font-weight: 600;
}
.ai-upload-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  background: #f8fafc;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ai-upload-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}
.ai-upload-card.is-active {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.08);
}
.ai-upload-input {
  display: none;
}
.ai-upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
}
.ai-upload-text strong {
  display: block;
  font-size: 14px;
}
.ai-upload-text span {
  font-size: 12px;
  color: #64748b;
}
.ai-upload-meta {
  font-size: 12px;
  color: #475569;
  text-align: right;
  min-width: 100px;
}
.ai-count-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ai-count-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}
.ai-count-hint {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ai-count-hint.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
.ai-topic-input{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.ai-topic-list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ai-topic-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}
.ai-topic-chip button{
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  line-height: 1;
  font-size: 14px;
}
.ai-topic-chip button:hover{
  color: #0b2a85;
}
@media (max-width: 768px) {
  .ai-upload-card {
    grid-template-columns: auto 1fr;
  }
  .ai-upload-meta {
    text-align: left;
    grid-column: 1 / -1;
  }
}
@media (max-width: 992px) {
  .ai-modal-dialog {
    max-width: 760px;
  }
  .ai-modal-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 576px) {
  .ai-modal-dialog {
    max-width: 100%;
    margin: 8px;
  }
  .ai-count-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .tests-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .tests-search {
    width: 100%;
  }
  .tests-card-actions {
    opacity: 1;
    transform: none;
  }
}
.auth-note{
  --note-border: rgba(0,0,0,.08);
  --note-bg: rgba(255,255,255,.96);
  --note-icon-bg: rgba(0,0,0,.05);
  --note-icon-color: #444;
  border: 1px solid var(--note-border);
  background: var(--note-bg);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
}
.auth-shell label.form-label{
  color: #000 !important;
}
.auth-note-success{
  --note-border: rgba(25,135,84,.35);
  --note-bg: linear-gradient(135deg, rgba(25,135,84,.16), rgba(255,255,255,.96));
  --note-icon-bg: rgba(25,135,84,.2);
  --note-icon-color: #198754;
}
.auth-note-warn{
  --note-border: rgba(245, 158, 11, 0.45);
  --note-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(255,255,255,.95));
  --note-icon-bg: rgba(245, 158, 11, 0.2);
  --note-icon-color: #b45309;
}
.auth-note-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--note-icon-bg);
  color: var(--note-icon-color);
  font-size:20px;
}
.auth-note-title{
  font-weight:700;
  margin-bottom:2px;
}
.auth-note-text{
  font-size:13px;
  color:rgba(0,0,0,.65);
}
.auth-note-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:8px;
  font-size:12px;
}
.auth-note-label{
  color:rgba(0,0,0,.6);
  font-weight:600;
}
.auth-note-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.8);
  text-decoration:none;
  color:inherit;
  font-weight:600;
}
.subscription-expired .auth-note-pill{
  border-color: rgba(245, 158, 11, 0.35);
}
@media (max-width: 576px){
  .auth-note{grid-template-columns:1fr;}
  .auth-note-icon{width:38px;height:38px;}
}
.sub-health{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sub-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
}
.sub-pill.is-active{ border-color: rgba(25,135,84,.35); background: rgba(25,135,84,.12); color:#0f5132; }
.sub-pill.is-due{ border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.18); color:#92400e; }
.sub-pill.is-muted{ border-color: rgba(108,117,125,.35); background: rgba(108,117,125,.12); color:#495057; }
.sub-pill.is-canceled{ border-color: rgba(33,37,41,.35); background: rgba(33,37,41,.12); color:#212529; }
.sub-pill.is-soon{ border-color: rgba(13,110,253,.35); background: rgba(13,110,253,.12); color:#084298; }
.submission-row.is-unseen{
  background: rgba(245, 158, 11, 0.08);
  box-shadow: inset 4px 0 0 rgba(245, 158, 11, 0.6);
}
.submission-new{
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-left: 6px;
}
.submissions-results.is-loading{
  opacity: .6;
  pointer-events: none;
  filter: blur(0.2px);
}

/* Admin dashboard */
.admin-dashboard{
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0f172a;
}
.admin-hero{
  position: relative;
  padding: 32px 32px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #111827 55%, #0f766e);
  color: #f8fafc;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.25);
}
.admin-hero-bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(45, 212, 191, 0.35), transparent 48%),
    radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.35), transparent 46%),
    linear-gradient(120deg, rgba(14, 116, 110, 0.25), transparent 40%);
  opacity: 0.9;
}
.admin-hero-inner{
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.admin-hero-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,.7);
  margin-bottom: 8px;
}
.admin-hero-title{
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  margin-bottom: 6px;
}
.admin-hero-subtitle{
  max-width: 560px;
  color: rgba(248,250,252,.78);
  font-size: 15px;
}
.admin-hero-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.admin-hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
}
.admin-hero-badge.is-success{ background: rgba(16, 185, 129, 0.2); border-color: rgba(16,185,129,0.4); }
.admin-hero-badge.is-warning{ background: rgba(245, 158, 11, 0.2); border-color: rgba(245,158,11,0.45); }
.admin-hero-badge.is-info{ background: rgba(56, 189, 248, 0.2); border-color: rgba(56,189,248,0.45); }
.admin-hero-actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-hero-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(15, 23, 42, 0.35);
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.admin-hero-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
}
.admin-hero-btn.is-primary{
  background: linear-gradient(135deg, #0ea5a4, #0f766e);
  border-color: transparent;
  color: #fff;
}
.admin-hero-btn.is-ghost{
  background: rgba(255,255,255,0.08);
}

.admin-kpis{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.admin-kpi-card{
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-kpi-head{
  display: flex;
  gap: 12px;
  align-items: center;
}
.admin-kpi-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 20px;
}
.admin-kpi-card.is-teachers .admin-kpi-icon{ background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.admin-kpi-card.is-subs .admin-kpi-icon{ background: rgba(16, 185, 129, 0.12); color: #047857; }
.admin-kpi-card.is-seats .admin-kpi-icon{ background: rgba(14, 116, 110, 0.12); color: #0f766e; }
.admin-kpi-card.is-actions .admin-kpi-icon{ background: rgba(15, 23, 42, 0.08); color: #0f172a; }
.admin-kpi-label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #64748b;
}
.admin-kpi-value{
  font-size: 24px;
  font-weight: 700;
}
.admin-kpi-meta{
  font-size: 13px;
  color: #475569;
}
.admin-kpi-progress{
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}
.admin-kpi-progress-bar{
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #0ea5a4);
}
.admin-kpi-progress-bar.is-teal{
  background: linear-gradient(90deg, #0ea5a4, #14b8a6);
}
.admin-kpi-pills{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-pill{
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.1);
  color: #334155;
}
.admin-pill.is-active{ background: rgba(16,185,129,0.15); color:#047857; border-color: rgba(16,185,129,0.3); }
.admin-pill.is-warning{ background: rgba(245,158,11,0.18); color:#92400e; border-color: rgba(245,158,11,0.35); }
.admin-pill.is-muted{ background: rgba(100,116,139,0.12); color:#475569; border-color: rgba(100,116,139,0.3); }
.admin-pill.is-dark{ background: rgba(15,23,42,0.12); color:#0f172a; border-color: rgba(15,23,42,0.25); }
.admin-pill.is-info{ background: rgba(59,130,246,0.12); color:#1d4ed8; border-color: rgba(59,130,246,0.3); }
.admin-kpi-actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}
.admin-kpi-btn{
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.3);
  background: rgba(15,23,42,0.03);
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.admin-kpi-btn:hover{ background: rgba(14,116,110,0.08); }

.admin-grid{
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
}
.admin-panel{
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.2);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 18px;
}
.admin-panel-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.admin-panel-kicker{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #94a3b8;
}
.admin-panel-title{
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.admin-link{
  text-decoration: none;
  font-weight: 600;
  color: #2563eb;
}
.admin-table{
  width: 100%;
  overflow-x: auto;
}
.admin-table table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th,
.admin-table td{
  padding: 10px 8px;
  border-bottom: 1px solid rgba(148,163,184,0.2);
}
.admin-table thead th{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #64748b;
}
.admin-table-main{
  font-weight: 600;
  color: #0f172a;
}
.admin-table-sub{
  font-size: 12px;
  color: #64748b;
}
.admin-table-code{
  font-weight: 600;
  color: #0f172a;
}
.admin-empty{
  padding: 18px;
  border-radius: 16px;
  background: rgba(148,163,184,0.08);
  color: #475569;
  text-align: center;
}

.admin-signal-list{
  display: grid;
  gap: 12px;
}
.admin-signal-card{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(248,250,252,0.9);
  color: #0f172a;
  transition: transform .2s ease, box-shadow .2s ease;
}
.admin-signal-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15,23,42,0.1);
}
.admin-signal-icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(148,163,184,0.12);
  font-size: 18px;
}
.admin-signal-title{
  font-weight: 700;
  font-size: 14px;
}
.admin-signal-meta{
  font-size: 12px;
  color: #64748b;
}
.admin-signal-count{
  margin-left: auto;
  font-size: 18px;
  font-weight: 700;
}
.admin-signal-card.is-warning{ border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.12); }
.admin-signal-card.is-warning .admin-signal-icon{ background: rgba(245,158,11,0.2); color: #92400e; }
.admin-signal-card.is-soon{ border-color: rgba(56,189,248,0.3); background: rgba(56,189,248,0.12); }
.admin-signal-card.is-soon .admin-signal-icon{ background: rgba(56,189,248,0.2); color: #0e7490; }
.admin-signal-card.is-muted{ border-color: rgba(100,116,139,0.3); background: rgba(100,116,139,0.12); }
.admin-signal-card.is-muted .admin-signal-icon{ background: rgba(100,116,139,0.2); color: #475569; }
.admin-signal-card.is-dark{ border-color: rgba(15,23,42,0.25); background: rgba(15,23,42,0.08); }
.admin-signal-card.is-dark .admin-signal-icon{ background: rgba(15,23,42,0.15); color: #0f172a; }

@media (max-width: 1200px){
  .admin-kpis{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid{ grid-template-columns: 1fr; }
  .admin-hero-actions{ flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 768px){
  .admin-hero{ padding: 24px; }
  .admin-hero-actions{ width: 100%; }
  .admin-kpi-actions{ grid-template-columns: 1fr; }
  .admin-hero-btn{ width: 100%; justify-content: center; }
}

/* =========================
   LMS Dashboards (Teacher/Student/CEO)
   ========================= */
.lms-dashboard{
  --dash-ink: #0f172a;
  --dash-muted: #64748b;
  --dash-line: rgba(148, 163, 184, 0.25);
  --dash-glow: rgba(56, 189, 248, 0.25);
  --dash-card: #ffffff;
  --dash-bg: radial-gradient(circle at 20% 10%, rgba(56,189,248,0.12), transparent 45%),
             radial-gradient(circle at 80% 0%, rgba(34,197,94,0.12), transparent 35%),
             #f8fafc;
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  color: var(--dash-ink);
}
.lms-dashboard .dash-hero{
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 24px;
  background: var(--dash-bg);
  border: 1px solid var(--dash-line);
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
  margin-bottom: 20px;
}
.lms-dashboard .dash-hero::after{
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(59,130,246,0.35), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.lms-dashboard .dash-hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 20px;
  align-items: center;
}
.lms-dashboard .dash-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.08);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lms-dashboard .dash-title{
  font-size: 30px;
  font-weight: 700;
  margin: 10px 0 6px;
}
.lms-dashboard .dash-subtitle{
  display: none;
}
.lms-dashboard .dash-hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.lms-dashboard .dash-metric-stack{
  display: grid;
  gap: 10px;
}
.lms-dashboard .dash-metric{
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--dash-line);
  box-shadow: 0 10px 22px rgba(15,23,42,0.06);
}
.lms-dashboard .dash-metric .label{
  font-size: 12px;
  color: var(--dash-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.lms-dashboard .dash-metric .value{
  font-size: 20px;
  font-weight: 700;
}
.lms-dashboard .dash-metric .meta{
  font-size: 12px;
  color: var(--dash-muted);
}
.lms-dashboard .dash-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.lms-dashboard .dash-card{
  background: var(--dash-card);
  border-radius: 18px;
  border: 1px solid var(--dash-line);
  box-shadow: 0 12px 28px rgba(15,23,42,0.06);
  padding: 16px;
  position: relative;
  overflow: hidden;
  animation: dash-rise 0.6s ease both;
}
.lms-dashboard .dash-card::after{
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 70%);
  pointer-events: none;
}
.lms-dashboard .dash-card.is-tips{
  background:
    linear-gradient(145deg, rgba(255,251,235,.98) 0%, rgba(255,243,224,.98) 52%, rgba(255,232,204,.98) 100%);
  border-color: rgba(249,115,22,.14);
  box-shadow: 0 14px 28px rgba(249,115,22,.10);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.lms-dashboard .dash-card.is-tips::after{
  right: -28px;
  top: -32px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(251,146,60,.18), transparent 70%);
}
.lms-dashboard .dash-card-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.lms-dashboard .dash-card-title{
  font-weight: 700;
  font-size: 14px;
}
.lms-dashboard .dash-card-sub{
  display: none;
}
.lms-dashboard .dash-card.is-tips .dash-card-sub{
  display: block;
  color: rgba(154,52,18,.72);
  font-size: 12px;
}
.lms-dashboard .dash-card.is-tips .dash-card-title{
  color: #9a3412;
}
.lms-dashboard .dash-card.is-tips .dash-pill{
  background: rgba(255,255,255,.7);
  color: #c2410c;
  border: 1px solid rgba(249,115,22,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.lms-dashboard .dash-kpi-value{
  font-size: 26px;
  font-weight: 700;
}
.lms-dashboard .dash-kpi-meta{
  display: none;
}
.lms-dashboard .dash-split{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
}
.lms-dashboard .dash-table{
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--dash-line);
  overflow: hidden;
}
.lms-dashboard .dash-table thead th{
  background: #f1f5f9;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lms-dashboard .dash-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59,130,246,0.12);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
}
.lms-dashboard .dash-tip-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  position: relative;
  flex: 1;
  min-height: 196px;
  max-height: 196px;
  align-content: start;
  overflow: auto;
  padding: 14px 4px 4px;
}
.lms-dashboard .dash-tip-list::before{
  content: "";
  position: absolute;
  inset: 8px 0 0;
  border-radius: 16px;
  border: 1px dashed rgba(249,115,22,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.10)),
    radial-gradient(circle at top right, rgba(251,146,60,.07), transparent 58%);
  opacity: 0;
  transition: opacity .24s ease, transform .24s ease;
  pointer-events: none;
}
.lms-dashboard .dash-tip-item{
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 2px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: rgba(120,53,15,.88);
  line-height: 1.45;
  font-size: 12px;
  font-weight: 400;
  transition: transform .22s ease, opacity .22s ease, color .22s ease;
}
.lms-dashboard .dash-tip-item::before{
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-top: 5px;
  flex: 0 0 6px;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 0 0 4px rgba(251,146,60,.10);
}
@media (hover: hover) and (pointer: fine){
  .lms-dashboard .dash-card.is-tips .dash-tip-list{
    overflow: hidden;
  }
  .lms-dashboard .dash-card.is-tips .dash-tip-list::before{
    opacity: 1;
  }
  .lms-dashboard .dash-card.is-tips .dash-tip-item{
    opacity: 0;
    transform: translateY(8px);
    color: rgba(120,53,15,0);
  }
  .lms-dashboard .dash-card.is-tips:hover .dash-tip-item,
  .lms-dashboard .dash-card.is-tips:focus-within .dash-tip-item{
    opacity: 1;
    transform: translateY(0);
    color: rgba(120,53,15,.88);
  }
  .lms-dashboard .dash-card.is-tips:hover .dash-tip-list,
  .lms-dashboard .dash-card.is-tips:focus-within .dash-tip-list{
    overflow-y: auto;
  }
  .lms-dashboard .dash-card.is-tips:hover .dash-tip-list::before,
  .lms-dashboard .dash-card.is-tips:focus-within .dash-tip-list::before{
    opacity: 0;
    transform: scale(.98);
  }
  .lms-dashboard .dash-card.is-tips:hover .dash-tip-item:nth-child(2),
  .lms-dashboard .dash-card.is-tips:focus-within .dash-tip-item:nth-child(2){
    transition-delay: .04s;
  }
  .lms-dashboard .dash-card.is-tips:hover .dash-tip-item:nth-child(3),
  .lms-dashboard .dash-card.is-tips:focus-within .dash-tip-item:nth-child(3){
    transition-delay: .08s;
  }
  .lms-dashboard .dash-card.is-tips:hover .dash-tip-item:nth-child(4),
  .lms-dashboard .dash-card.is-tips:focus-within .dash-tip-item:nth-child(4){
    transition-delay: .12s;
  }
  .lms-dashboard .dash-card.is-tips:hover .dash-tip-item:nth-child(5),
  .lms-dashboard .dash-card.is-tips:focus-within .dash-tip-item:nth-child(5){
    transition-delay: .16s;
  }
  .lms-dashboard .dash-card.is-tips:hover .dash-tip-item:nth-child(6),
  .lms-dashboard .dash-card.is-tips:focus-within .dash-tip-item:nth-child(6){
    transition-delay: .20s;
  }
}
.student-group-badge{
  background: #e0f2fe;
  color: #0f172a;
  border: 1px solid rgba(14,165,233,0.35);
}
.student-export-btn{
  --export-bg: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #1d4ed8 100%);
  --export-shadow: 0 12px 24px rgba(37,99,235,.28);
  --export-ring: rgba(14,165,233,.28);
  border: 0;
  color: #fff;
  background: var(--export-bg);
  border-radius: 999px;
  padding: .6rem 1.1rem;
  font-weight: 700;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  box-shadow: var(--export-shadow);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.student-export-btn i{
  font-size: 1.05rem;
}
.student-export-btn:hover{
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37,99,235,.35);
  filter: saturate(1.05);
}
.student-export-btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(37,99,235,.22);
}
.student-export-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--export-ring), var(--export-shadow);
}
@media (max-width: 576px){
  .student-export-btn{
    width: 100%;
    justify-content: center;
  }
}
.dash-view-btn,
.btn-view-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.1;
}
.dash-view-btn i,
.btn-view-pill i{
  font-size: 12px;
}
.dash-view-btn.btn-outline-primary,
.btn-view-pill.btn-outline-primary{
  border-color: rgba(37,99,235,0.35);
  color: #1d4ed8;
}
.dash-view-btn.btn-outline-primary:hover,
.btn-view-pill.btn-outline-primary:hover{
  background: rgba(59,130,246,0.08);
  border-color: rgba(37,99,235,0.6);
}
.btn-action{
  border-radius: 999px;
  padding: .4rem .9rem;
  font-weight: 600;
  font-size: .85rem;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn-action.btn-sm{
  padding: .32rem .7rem;
  font-size: .8rem;
}
.btn-action i{
  font-size: .95em;
}
.btn-action.btn-outline-secondary{
  border-color: rgba(15,23,42,.18);
  color: #0f172a;
  background: #fff;
}
.btn-action.btn-outline-secondary:hover{
  background: rgba(15,23,42,.05);
  border-color: rgba(15,23,42,.35);
  transform: translateY(-1px);
}
.btn-action.btn-outline-dark{
  border-color: rgba(15,23,42,.25);
  color: #0f172a;
  background: #fff;
}
.btn-action.btn-outline-dark:hover{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.45);
  transform: translateY(-1px);
}
.btn-action.btn-primary{
  border-color: #1d4ed8;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 22px rgba(37,99,235,.25);
}
.btn-action.btn-primary:hover{
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  border-color: #1e40af;
  transform: translateY(-1px);
}
.btn-action:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(15,23,42,.12);
}
.lms-dashboard .dash-progress{
  height: 8px;
  border-radius: 999px;
  background: rgba(148,163,184,0.2);
  overflow: hidden;
}
.lms-dashboard .dash-progress > span{
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
}
.lms-dashboard .dash-action-list{
  display: grid;
  gap: 10px;
}
.lms-dashboard .dash-action{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--dash-line);
  background: #f8fafc;
  color: var(--dash-ink);
  text-decoration: none;
}
.lms-dashboard .dash-action .icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,0.14);
  color: #1d4ed8;
}
.lms-dashboard .dash-action .meta{
  font-size: 12px;
  color: var(--dash-muted);
}
.lms-dashboard .dash-card.glass{
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
}

.submissions-pagination .page-item,
.pagination-modern .page-item{
  margin: 0 3px;
}
.submissions-pagination .page-link,
.pagination-modern .page-link{
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  padding: .35rem .75rem;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 8px 16px rgba(15,23,42,.06);
  transition: all .15s ease;
}
.submissions-pagination .page-link:hover,
.pagination-modern .page-link:hover{
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.35);
  color: #1d4ed8;
  transform: translateY(-1px);
}
.submissions-pagination .page-item.active .page-link,
.pagination-modern .page-item.active .page-link{
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  box-shadow: 0 12px 22px rgba(15,23,42,.25);
}
.submissions-pagination .page-item.disabled .page-link,
.pagination-modern .page-item.disabled .page-link{
  color: rgba(15,23,42,.4);
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.08);
  box-shadow: none;
}
@media (max-width: 576px){
  .submissions-pagination,
  .pagination-modern{
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }
  .submissions-pagination .page-link,
  .pagination-modern .page-link{
    padding: .35rem .7rem;
  }
}

@keyframes dash-rise{
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1200px){
  .lms-dashboard .dash-hero-grid{ grid-template-columns: 1fr; }
  .lms-dashboard .dash-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lms-dashboard .dash-split{ grid-template-columns: 1fr; }
}
@media (max-width: 768px){
  .lms-dashboard .dash-hero{ padding: 20px; }
  .lms-dashboard .dash-title{ font-size: 24px; }
  .lms-dashboard .dash-grid{ grid-template-columns: 1fr; }
}

.lms-dashboard .dash-chart{
  position: relative;
  height: 240px;
}
.lms-dashboard .dash-chart canvas{
  width: 100% !important;
  height: 100% !important;
}
.lms-dashboard-ceo .ceo-hero-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.lms-dashboard-ceo .ceo-hero-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(148,163,184,.22);
  color: #0f172a;
  font-size: .8rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15,23,42,.06);
}
.lms-dashboard-ceo .ceo-metric-stack{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lms-dashboard-ceo .ceo-kpi-grid{
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.lms-dashboard-ceo .ceo-kpi-card{
  overflow: visible;
}
.lms-dashboard-ceo .ceo-kpi-note{
  margin-top: 8px;
  font-size: .82rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.45;
}
.lms-dashboard-ceo .ceo-signal-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.lms-dashboard-ceo .ceo-signal-card{
  overflow: visible;
}
.lms-dashboard-ceo .ceo-signal-label{
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}
.lms-dashboard-ceo .ceo-signal-value{
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  line-height: 1.05;
  font-weight: 800;
  color: #0f172a;
}
.lms-dashboard-ceo .ceo-signal-note{
  margin-top: 10px;
  font-size: .86rem;
  color: #64748b;
  line-height: 1.5;
}
.lms-dashboard-ceo .ceo-signal-progress{
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148,163,184,.16);
}
.lms-dashboard-ceo .ceo-signal-progress > span{
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}
.lms-dashboard-ceo .ceo-signal-progress > span.is-students{
  background: linear-gradient(90deg, #8b5cf6, #c084fc);
}
.lms-dashboard-ceo .ceo-signal-progress > span.is-results{
  background: linear-gradient(90deg, #0ea5e9, #22d3ee);
}
.lms-dashboard-ceo .ceo-signal-progress > span.is-attendance{
  background: linear-gradient(90deg, #16a34a, #22c55e);
}
.lms-dashboard-ceo .ceo-chart-grid{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.lms-dashboard-ceo .ceo-chart-card{
  grid-column: span 6;
  overflow: visible;
}
.lms-dashboard-ceo .ceo-chart-card.is-full{
  grid-column: span 12;
}
.lms-dashboard-ceo .ceo-chart-card.is-wide{
  grid-column: span 8;
}
.lms-dashboard-ceo .ceo-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.lms-dashboard-ceo .ceo-card-note{
  margin-top: 6px;
  font-size: .85rem;
  color: #64748b;
  line-height: 1.45;
}
.lms-dashboard-ceo .ceo-card-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.14);
  color: #1d4ed8;
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}
.lms-dashboard-ceo .ceo-card-chip.is-neutral{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.12);
  color: #0f172a;
}
.lms-dashboard-ceo .ceo-card-chip.is-gold{
  background: rgba(245,158,11,.08);
  border-color: rgba(245,158,11,.16);
  color: #b45309;
}
.lms-dashboard-ceo .ceo-card-chip.is-purple{
  background: rgba(139,92,246,.08);
  border-color: rgba(139,92,246,.16);
  color: #6d28d9;
}
.lms-dashboard-ceo .ceo-card-chip.is-teal{
  background: rgba(13,148,136,.08);
  border-color: rgba(13,148,136,.16);
  color: #0f766e;
}
.lms-dashboard-ceo .ceo-card-chip.is-success{
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.16);
  color: #15803d;
}
.lms-dashboard-ceo .ceo-chart-wrap{
  height: 290px;
}
.lms-dashboard-ceo .ceo-chart-wrap.is-compact{
  height: 270px;
}
.lms-dashboard-ceo .ceo-insight-card{
  grid-column: span 6;
}
.lms-dashboard-ceo .ceo-insight-card.is-wide{
  grid-column: span 12;
}
.lms-dashboard-ceo .ceo-insight-list{
  display: grid;
  gap: 12px;
}
.lms-dashboard-ceo .ceo-insight-item{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.88));
  border: 1px solid rgba(148,163,184,.18);
}
.lms-dashboard-ceo .ceo-insight-item .icon{
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(37,99,235,.12);
  color: #1d4ed8;
}
.lms-dashboard-ceo .ceo-insight-item .title{
  font-size: .92rem;
  font-weight: 700;
  color: #0f172a;
}
.lms-dashboard-ceo .ceo-insight-item .meta{
  margin-top: 2px;
  font-size: .84rem;
  color: #64748b;
  line-height: 1.45;
}
.lms-dashboard-ceo .ceo-action-card{
  grid-column: span 6;
}
@media (max-width: 1400px){
  .lms-dashboard-ceo .ceo-kpi-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1200px){
  .lms-dashboard-ceo .ceo-signal-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lms-dashboard-ceo .ceo-chart-card,
  .lms-dashboard-ceo .ceo-chart-card.is-wide,
  .lms-dashboard-ceo .ceo-insight-card,
  .lms-dashboard-ceo .ceo-insight-card.is-wide,
  .lms-dashboard-ceo .ceo-action-card{
    grid-column: span 12;
  }
}
@media (max-width: 768px){
  .lms-dashboard-ceo .ceo-metric-stack{
    grid-template-columns: 1fr;
  }
  .lms-dashboard-ceo .ceo-kpi-grid,
  .lms-dashboard-ceo .ceo-signal-grid{
    grid-template-columns: 1fr;
  }
  .lms-dashboard-ceo .ceo-card-head{
    flex-direction: column;
  }
  .lms-dashboard-ceo .ceo-card-chip{
    white-space: normal;
  }
  .lms-dashboard-ceo .ceo-chart-wrap,
  .lms-dashboard-ceo .ceo-chart-wrap.is-compact{
    height: 260px;
  }
}

/* =========================
   CEO Reports
   ========================= */
.ceo-reports-page{
  --ceo-report-ink: #0f172a;
  --ceo-report-muted: #64748b;
  --ceo-report-line: rgba(148,163,184,.22);
  --ceo-report-line-strong: rgba(148,163,184,.32);
  --ceo-report-card: rgba(255,255,255,.92);
  --ceo-report-shadow: 0 24px 60px rgba(15,23,42,.08);
  color: var(--ceo-report-ink);
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
}
.ceo-reports-page .ceo-reports-hero{
  overflow: hidden;
}
.ceo-reports-page .ceo-reports-hero-inner{
  align-items: flex-start;
}
.ceo-reports-page .ceo-reports-hero-actions{
  margin-top: 12px;
}
.ceo-reports-page .ceo-reports-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.ceo-reports-page .ceo-reports-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  border: 1px solid var(--ceo-report-line);
  box-shadow: 0 12px 24px rgba(15,23,42,.05);
  color: var(--ceo-report-ink);
  font-size: .82rem;
  font-weight: 700;
}
.ceo-reports-page .ceo-reports-toolbar-card{
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.92));
  border: 1px solid var(--ceo-report-line);
  box-shadow: var(--ceo-report-shadow);
}
.ceo-reports-page .ceo-reports-filter-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.45fr) auto;
  gap: 14px;
  align-items: end;
}
.ceo-reports-page .ceo-reports-filter{
  display: grid;
  gap: 8px;
}
.ceo-reports-page .ceo-reports-filter-label{
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ceo-report-muted);
}
.ceo-reports-page .ceo-reports-toolbar-note{
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.92));
  border: 1px solid var(--ceo-report-line);
  color: var(--ceo-report-muted);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.5;
}
.ceo-reports-page .ceo-reports-toolbar-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}
.ceo-reports-page .ceo-reports-kpi-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ceo-reports-page .ceo-reports-kpi-card,
.ceo-reports-page .ceo-reports-signal-card,
.ceo-reports-page .ceo-reports-card{
  position: relative;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--ceo-report-card), rgba(248,250,252,.96));
  border: 1px solid var(--ceo-report-line);
  box-shadow: var(--ceo-report-shadow);
  overflow: hidden;
}
.ceo-reports-page .ceo-reports-kpi-card::before,
.ceo-reports-page .ceo-reports-signal-card::before,
.ceo-reports-page .ceo-reports-card::before{
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(37,99,235,.18), rgba(56,189,248,.05), transparent);
}
.ceo-reports-page .ceo-reports-kpi-label,
.ceo-reports-page .ceo-reports-signal-label{
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ceo-report-muted);
}
.ceo-reports-page .ceo-reports-kpi-value{
  margin-top: 12px;
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  line-height: 1;
  font-weight: 800;
  color: var(--ceo-report-ink);
}
.ceo-reports-page .ceo-reports-kpi-meta,
.ceo-reports-page .ceo-reports-signal-meta{
  margin-top: 10px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ceo-report-muted);
  line-height: 1.5;
}
.ceo-reports-page .ceo-reports-signal-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.ceo-reports-page .ceo-reports-signal-value{
  margin-top: 10px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--ceo-report-ink);
}
.ceo-reports-page .ceo-reports-chart-grid,
.ceo-reports-page .ceo-reports-table-grid{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.ceo-reports-page .ceo-reports-card{
  grid-column: span 6;
}
.ceo-reports-page .ceo-reports-card.is-full{
  grid-column: span 12;
}
.ceo-reports-page .ceo-reports-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.ceo-reports-page .ceo-reports-card-title{
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--ceo-report-ink);
}
.ceo-reports-page .ceo-reports-card-note{
  margin-top: 6px;
  color: var(--ceo-report-muted);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.48;
}
.ceo-reports-page .ceo-reports-card-chip{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.14);
  color: #1d4ed8;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.ceo-reports-page .ceo-reports-card-chip.is-neutral{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.12);
  color: #0f172a;
}
.ceo-reports-page .ceo-reports-card-chip.is-gold{
  background: rgba(245,158,11,.1);
  border-color: rgba(245,158,11,.18);
  color: #b45309;
}
.ceo-reports-page .ceo-reports-card-chip.is-blue{
  background: rgba(14,165,233,.1);
  border-color: rgba(14,165,233,.18);
  color: #0369a1;
}
.ceo-reports-page .ceo-reports-card-chip.is-purple{
  background: rgba(139,92,246,.1);
  border-color: rgba(139,92,246,.18);
  color: #6d28d9;
}
.ceo-reports-page .ceo-reports-card-chip.is-teal{
  background: rgba(13,148,136,.1);
  border-color: rgba(13,148,136,.18);
  color: #0f766e;
}
.ceo-reports-page .ceo-reports-card-chip.is-success{
  background: rgba(34,197,94,.1);
  border-color: rgba(34,197,94,.18);
  color: #15803d;
}
.ceo-reports-page .ceo-reports-chart-wrap{
  position: relative;
  height: 320px;
}
.ceo-reports-page .ceo-reports-chart-wrap canvas{
  width: 100% !important;
  height: 100% !important;
}
.ceo-reports-page .ceo-reports-table{
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(241,245,249,.8);
  --bs-table-border-color: rgba(148,163,184,.18);
}
.ceo-reports-page .ceo-reports-table thead th{
  padding-top: .45rem;
  padding-bottom: .75rem;
  border-bottom-width: 1px;
  color: #475569;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: transparent;
}
.ceo-reports-page .ceo-reports-table tbody td{
  padding-top: .9rem;
  padding-bottom: .9rem;
  font-size: .92rem;
  color: var(--ceo-report-ink);
}
.ceo-reports-page .table-responsive{
  border-radius: 18px;
}
@media (max-width: 1400px){
  .ceo-reports-page .ceo-reports-filter-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ceo-reports-page .ceo-reports-filter-note,
  .ceo-reports-page .ceo-reports-filter-actions{
    grid-column: span 2;
  }
  .ceo-reports-page .ceo-reports-kpi-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ceo-reports-page .ceo-reports-signal-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1200px){
  .ceo-reports-page .ceo-reports-card,
  .ceo-reports-page .ceo-reports-card.is-full{
    grid-column: span 12;
  }
}
@media (max-width: 768px){
  .ceo-reports-page .ceo-reports-toolbar-card,
  .ceo-reports-page .ceo-reports-kpi-card,
  .ceo-reports-page .ceo-reports-signal-card,
  .ceo-reports-page .ceo-reports-card{
    border-radius: 22px;
    padding: 16px;
  }
  .ceo-reports-page .ceo-reports-filter-grid,
  .ceo-reports-page .ceo-reports-kpi-grid,
  .ceo-reports-page .ceo-reports-signal-grid{
    grid-template-columns: 1fr;
  }
  .ceo-reports-page .ceo-reports-filter-note,
  .ceo-reports-page .ceo-reports-filter-actions{
    grid-column: auto;
  }
  .ceo-reports-page .ceo-reports-toolbar-actions{
    justify-content: stretch;
    flex-direction: column;
  }
  .ceo-reports-page .ceo-reports-toolbar-actions .btn{
    width: 100%;
  }
  .ceo-reports-page .ceo-reports-card-head{
    flex-direction: column;
  }
  .ceo-reports-page .ceo-reports-card-chip{
    white-space: normal;
  }
  .ceo-reports-page .ceo-reports-chart-wrap{
    height: 280px;
  }
}

/* =========================
   Teacher Student Report
   ========================= */
.teacher-student-report-page{
  --teacher-report-ink: #0f172a;
  --teacher-report-muted: #64748b;
  --teacher-report-line: rgba(148,163,184,.22);
  --teacher-report-card: rgba(255,255,255,.94);
  --teacher-report-shadow: 0 24px 60px rgba(15,23,42,.08);
  color: var(--teacher-report-ink);
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
}
.teacher-student-report-page .teacher-student-report-hero{
  overflow: hidden;
}
.teacher-student-report-page .teacher-student-report-hero-inner{
  align-items: flex-start;
}
.teacher-student-report-page .teacher-student-report-hero-actions{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.teacher-student-report-page .teacher-student-report-hero-actions form{
  margin: 0;
}
.teacher-student-report-page .teacher-student-report-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.teacher-student-report-page .teacher-student-report-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--teacher-report-line);
  box-shadow: 0 12px 24px rgba(15,23,42,.05);
  color: var(--teacher-report-ink);
  font-size: .82rem;
  font-weight: 700;
}
.teacher-student-report-page .teacher-student-report-toolbar-card{
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.92));
  border: 1px solid var(--teacher-report-line);
  box-shadow: var(--teacher-report-shadow);
}
.teacher-student-report-page .teacher-student-report-filter-grid{
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) minmax(0, .75fr) minmax(0, 1.5fr);
  gap: 14px;
  align-items: end;
}
.teacher-student-report-page .teacher-student-report-filter{
  display: grid;
  gap: 8px;
}
.teacher-student-report-page .teacher-student-report-filter-label{
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teacher-report-muted);
}
.teacher-student-report-page .teacher-student-report-toolbar-note{
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.92));
  border: 1px solid var(--teacher-report-line);
  color: var(--teacher-report-muted);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.5;
}
.teacher-student-report-page .teacher-student-report-advanced-note{
  border-radius: 18px;
}
.teacher-student-report-page .teacher-student-report-kpi-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.teacher-student-report-page .teacher-student-report-kpi-card,
.teacher-student-report-page .teacher-student-report-signal-card,
.teacher-student-report-page .teacher-student-report-card,
.teacher-student-report-page .teacher-student-report-empty-card{
  position: relative;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--teacher-report-card), rgba(248,250,252,.96));
  border: 1px solid var(--teacher-report-line);
  box-shadow: var(--teacher-report-shadow);
  overflow: hidden;
}
.teacher-student-report-page .teacher-student-report-kpi-card::before,
.teacher-student-report-page .teacher-student-report-signal-card::before,
.teacher-student-report-page .teacher-student-report-card::before,
.teacher-student-report-page .teacher-student-report-empty-card::before{
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(13,148,136,.18), rgba(56,189,248,.05), transparent);
}
.teacher-student-report-page .teacher-student-report-kpi-label,
.teacher-student-report-page .teacher-student-report-signal-label{
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teacher-report-muted);
}
.teacher-student-report-page .teacher-student-report-kpi-value{
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1;
  font-weight: 800;
  color: var(--teacher-report-ink);
}
.teacher-student-report-page .teacher-student-report-kpi-meta,
.teacher-student-report-page .teacher-student-report-signal-meta{
  margin-top: 10px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--teacher-report-muted);
  line-height: 1.5;
}
.teacher-student-report-page .teacher-student-report-signal-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.teacher-student-report-page .teacher-student-report-signal-value{
  margin-top: 10px;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--teacher-report-ink);
}
.teacher-student-report-page .teacher-student-report-chart-grid,
.teacher-student-report-page .teacher-student-report-table-grid{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.teacher-student-report-page .teacher-student-report-card{
  grid-column: span 6;
}
.teacher-student-report-page .teacher-student-report-card.is-full{
  grid-column: span 12;
}
.teacher-student-report-page .teacher-student-report-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.teacher-student-report-page .teacher-student-report-card-title{
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--teacher-report-ink);
}
.teacher-student-report-page .teacher-student-report-card-note{
  margin-top: 6px;
  color: var(--teacher-report-muted);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.48;
}
.teacher-student-report-page .teacher-student-report-card-chip{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13,148,136,.08);
  border: 1px solid rgba(13,148,136,.14);
  color: #0f766e;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.teacher-student-report-page .teacher-student-report-card-chip.is-neutral{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.12);
  color: #0f172a;
}
.teacher-student-report-page .teacher-student-report-card-chip.is-blue{
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.16);
  color: #1d4ed8;
}
.teacher-student-report-page .teacher-student-report-card-chip.is-teal{
  background: rgba(13,148,136,.1);
  border-color: rgba(13,148,136,.18);
  color: #0f766e;
}
.teacher-student-report-page .teacher-student-report-card-chip.is-purple{
  background: rgba(139,92,246,.1);
  border-color: rgba(139,92,246,.18);
  color: #6d28d9;
}
.teacher-student-report-page .teacher-student-report-chart-wrap{
  position: relative;
  height: 320px;
}
.teacher-student-report-page .teacher-student-report-chart-wrap canvas{
  width: 100% !important;
  height: 100% !important;
}
.teacher-student-report-page .teacher-student-report-empty-note{
  margin-top: 12px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--teacher-report-muted);
}
.teacher-student-report-page .teacher-student-report-table{
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(241,245,249,.8);
  --bs-table-border-color: rgba(148,163,184,.18);
}
.teacher-student-report-page .teacher-student-report-table thead th{
  padding-top: .45rem;
  padding-bottom: .75rem;
  border-bottom-width: 1px;
  color: #475569;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: transparent;
}
.teacher-student-report-page .teacher-student-report-table tbody td{
  padding-top: .9rem;
  padding-bottom: .9rem;
  font-size: .92rem;
  color: var(--teacher-report-ink);
}
.teacher-student-report-page .teacher-student-report-focus-list{
  display: grid;
  gap: 12px;
}
.teacher-student-report-page .teacher-student-report-focus-item{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.18);
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(241,245,249,.88));
}
.teacher-student-report-page .teacher-student-report-focus-title{
  font-size: .96rem;
  font-weight: 800;
  color: var(--teacher-report-ink);
}
.teacher-student-report-page .teacher-student-report-focus-meta{
  margin-top: 4px;
  font-size: .84rem;
  color: var(--teacher-report-muted);
  line-height: 1.45;
}
.teacher-student-report-page .teacher-student-report-focus-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.16);
  color: #b91c1c;
  font-size: .8rem;
  font-weight: 800;
}
.teacher-student-report-page .teacher-student-report-empty{
  display: grid;
}
.teacher-student-report-page .teacher-student-report-empty-card{
  text-align: center;
}
.teacher-student-report-page .teacher-student-report-empty-icon{
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(13,148,136,.08);
  color: #0f766e;
  font-size: 2rem;
}
.teacher-student-report-page .teacher-student-report-empty-title{
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teacher-report-ink);
}
.teacher-student-report-page .teacher-student-report-empty-copy{
  max-width: 720px;
  margin: 10px auto 0;
  color: var(--teacher-report-muted);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.6;
}
.teacher-student-report-page .teacher-student-report-empty-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.teacher-student-report-page .table-responsive{
  border-radius: 18px;
}
@media (max-width: 1400px){
  .teacher-student-report-page .teacher-student-report-filter-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teacher-student-report-page .teacher-student-report-kpi-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teacher-student-report-page .teacher-student-report-signal-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1200px){
  .teacher-student-report-page .teacher-student-report-card,
  .teacher-student-report-page .teacher-student-report-card.is-full{
    grid-column: span 12;
  }
}
@media (max-width: 768px){
  .teacher-student-report-page .teacher-student-report-toolbar-card,
  .teacher-student-report-page .teacher-student-report-kpi-card,
  .teacher-student-report-page .teacher-student-report-signal-card,
  .teacher-student-report-page .teacher-student-report-card,
  .teacher-student-report-page .teacher-student-report-empty-card{
    border-radius: 22px;
    padding: 16px;
  }
  .teacher-student-report-page .teacher-student-report-filter-grid,
  .teacher-student-report-page .teacher-student-report-kpi-grid,
  .teacher-student-report-page .teacher-student-report-signal-grid{
    grid-template-columns: 1fr;
  }
  .teacher-student-report-page .teacher-student-report-hero-actions{
    width: 100%;
    justify-content: stretch;
  }
  .teacher-student-report-page .teacher-student-report-hero-actions .btn,
  .teacher-student-report-page .teacher-student-report-hero-actions form{
    width: 100%;
  }
  .teacher-student-report-page .teacher-student-report-hero-actions form .btn{
    width: 100%;
  }
  .teacher-student-report-page .teacher-student-report-card-head{
    flex-direction: column;
  }
  .teacher-student-report-page .teacher-student-report-card-chip{
    white-space: normal;
  }
  .teacher-student-report-page .teacher-student-report-chart-wrap{
    height: 280px;
  }
  .teacher-student-report-page .teacher-student-report-focus-item{
    flex-direction: column;
  }
}

/* =========================
   Admin Teacher Edit (Modern)
   ========================= */
.admin-teacher-edit{
  --edit-ink: #0f172a;
  --edit-muted: #64748b;
  --edit-line: rgba(148, 163, 184, 0.28);
  --edit-card: #ffffff;
  --edit-bg: radial-gradient(circle at 18% 8%, rgba(56,189,248,0.12), transparent 48%),
             radial-gradient(circle at 85% 0%, rgba(34,197,94,0.12), transparent 38%),
             #f8fafc;
  color: var(--edit-ink);
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
}
.admin-teacher-edit .edit-hero{
  background: var(--edit-bg);
  border: 1px solid var(--edit-line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 20px 48px rgba(15,23,42,0.08);
  margin-bottom: 18px;
}
.admin-teacher-edit .edit-hero-main{
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.admin-teacher-edit .edit-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.08);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-teacher-edit .edit-title{
  font-size: 28px;
  font-weight: 700;
}
.admin-teacher-edit .edit-meta{
  font-size: 13px;
  color: var(--edit-muted);
}
.admin-teacher-edit .edit-hero-actions{
  display: grid;
  gap: 10px;
  justify-items: end;
}
.admin-teacher-edit .edit-badges{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-teacher-edit .edit-chip-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.admin-teacher-edit .edit-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59,130,246,0.12);
  color: #1d4ed8;
  font-size: 12px;
  border: 1px solid rgba(59,130,246,0.22);
  font-weight: 600;
}
.admin-teacher-edit .edit-stat-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.admin-teacher-edit .edit-stat-card{
  background: var(--edit-card);
  border: 1px solid var(--edit-line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}
.admin-teacher-edit .edit-stat-card .label{
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--edit-muted);
}
.admin-teacher-edit .edit-stat-card .value{
  font-size: 20px;
  font-weight: 700;
}
.admin-teacher-edit .edit-stat-card .value.is-meta{
  font-size: 14px;
  font-weight: 600;
  color: rgba(15,23,42,.78);
  line-height: 1.45;
}
.admin-teacher-edit .edit-panel{
  border-radius: 18px;
  border: 1px solid var(--edit-line);
  background: var(--edit-card);
  box-shadow: 0 12px 28px rgba(15,23,42,0.06);
}
.admin-teacher-edit .edit-form .form-label{
  font-weight: 600;
  font-size: 13px;
}
.admin-teacher-edit .edit-form .form-control,
.admin-teacher-edit .edit-form .form-select{
  border-radius: 12px;
  border-color: rgba(148,163,184,0.35);
  box-shadow: none;
}
.admin-teacher-edit .edit-form .form-control:focus,
.admin-teacher-edit .edit-form .form-select:focus{
  border-color: rgba(59,130,246,0.7);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.admin-teacher-edit .edit-quick-actions{
  background: #f8fafc;
  border-color: rgba(148,163,184,0.3);
}
.admin-teacher-edit .edit-table-card .table-responsive{
  border-radius: 16px;
  border: 1px solid var(--edit-line);
}
.admin-teacher-edit .edit-table thead th{
  background: #f1f5f9;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-teacher-edit .edit-table tbody tr:hover{
  background: rgba(59,130,246,0.04);
}
.admin-teacher-edit .table-sticky thead th{
  position: sticky;
  top: 0;
  z-index: 1;
}
.admin-teacher-edit .due-picker .input-group{
  border-radius: 12px;
  overflow: hidden;
}
.admin-teacher-edit .due-picker .input-group-text{
  background:#f8fafc;
  border-color: rgba(0,0,0,.08);
}
.admin-teacher-edit .due-picker .btn{
  border-color: rgba(0,0,0,.12);
}
.admin-teacher-edit .due-picker-icon{
  cursor: pointer;
}
.admin-teacher-edit .soft-divider{
  border-top: 1px dashed rgba(0,0,0,.08);
}
.admin-teacher-edit .flatpickr-calendar{
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.admin-teacher-edit .flatpickr-day.selected,
.admin-teacher-edit .flatpickr-day.selected:hover{
  background: #0d6efd;
  border-color: #0d6efd;
}
.admin-teacher-edit .flatpickr-time{ border-top:1px solid rgba(0,0,0,.08); }
@media (max-width: 1200px){
  .admin-teacher-edit .edit-stat-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px){
  .admin-teacher-edit .edit-hero{ padding: 18px; }
  .admin-teacher-edit .edit-title{ font-size: 22px; }
  .admin-teacher-edit .edit-hero-actions{ justify-items: start; }
  .admin-teacher-edit .edit-stat-grid{ grid-template-columns: 1fr; }
}

.app-install-prompt{
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1200;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.app-install-prompt.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.app-install-card{
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  position: relative;
  border-radius: 18px;
  background: rgba(15,23,42,.95);
  color: #fff;
  box-shadow: 0 20px 50px rgba(15,23,42,.25);
  border: 1px solid rgba(148,163,184,.2);
  backdrop-filter: blur(10px);
}
.app-install-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(37,99,235,.2);
  color: #93c5fd;
  font-size: 20px;
}
.app-install-title{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}
.app-install-meta{
  font-size: 12px;
  color: rgba(226,232,240,.8);
}
.app-install-btn{
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-install-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37,99,235,.35);
}
.app-install-close{
  border: 0;
  background: transparent;
  color: rgba(226,232,240,.7);
  font-size: 14px;
  padding: 6px;
  border-radius: 10px;
}
.app-install-close:hover{
  color: #fff;
  background: rgba(148,163,184,.15);
}
@media (max-width: 991px){
  .app-install-prompt{
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .app-install-card{
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon content"
      "btn btn";
  }
  .app-install-icon{ grid-area: icon; }
  .app-install-content{ grid-area: content; }
  .app-install-btn{ grid-area: btn; width: 100%; justify-self: stretch; }
  .app-install-close{ position: absolute; top: 6px; right: 6px; }
}

/* IC AI selection helper */
.ic-ai-selection-btn{
  position: absolute;
  z-index: 10010;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 0;
  background: #2737ff;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 10px 24px rgba(39,55,255,.25);
  cursor: pointer;
}
.ic-ai-selection-btn:hover{
  background: #1f2ad8;
}
.ic-ai-selection-btn.is-visible{
  display: inline-flex;
}
.ic-ai-popover{
  position: absolute;
  z-index: 10020;
  width: min(380px, calc(100vw - 24px));
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15,23,42,.2);
  display: none;
  overflow: hidden;
}
.ic-ai-popover.is-visible{
  display: block;
}
.ic-ai-popover-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15,23,42,.08);
  font-weight: 700;
  font-size: 13px;
}
.ic-ai-popover-title{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ic-ai-popover-close{
  border: 0;
  background: transparent;
  color: rgba(15,23,42,.6);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.ic-ai-popover-close:hover{
  background: rgba(15,23,42,.08);
  color: #0f172a;
}
.ic-ai-popover-body{
  padding: 12px;
  font-size: 13px;
  line-height: 1.55;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
}
.ic-ai-popover-muted{
  font-size: 12px;
  color: rgba(15,23,42,.6);
}
.ic-ai-popover-actions{
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(15,23,42,.08);
  background: #fbfdff;
}
.ic-ai-popover-actions .btn{
  flex: 1;
}

.tutorials-shell{
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 18px 36px;
}
.tutorials-page-hero{
  position: relative;
}
.tutorials-page-hero .page-hero-inner{
  align-items: flex-start;
}
.tutorials-page-hero-actions{
  justify-content: flex-end;
}
.tutorials-hero-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
}
.tutorials-overview-strip{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tutorials-overview-card{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 108px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}
.tutorials-overview-label{
  color: rgba(16, 42, 67, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.tutorials-overview-value{
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}
.tutorials-overview-value.is-small{
  font-size: 16px;
  line-height: 1.5;
}
.tutorials-hero{
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .9fr);
  gap: 18px;
  align-items: stretch;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(16, 24, 40, .08);
  background:
    radial-gradient(900px 440px at 0% -20%, rgba(7, 89, 133, .18), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(234, 179, 8, .16), transparent 48%),
    linear-gradient(135deg, #f7fafc 0%, #ffffff 55%, #f6efe3 100%);
  box-shadow: 0 24px 64px rgba(15, 23, 42, .08);
}
.tutorials-hero-copy{
  min-width: 0;
}
.tutorials-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(11, 93, 215, .08);
  color: #0b5ed7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.tutorials-title{
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  font-weight: 800;
  color: #102a43;
}
.tutorials-subtitle{
  max-width: 760px;
  margin: 0;
  color: rgba(16, 42, 67, .76);
  font-size: 16px;
  line-height: 1.7;
}
.tutorials-hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}
.tutorials-inline-note{
  color: rgba(16, 42, 67, .68);
  font-size: 13px;
}
.tutorials-hero-metrics{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tutorials-metric{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 124px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.tutorials-metric .label{
  color: rgba(16, 42, 67, .64);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.tutorials-metric .value{
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}
.tutorials-metric .value.is-small{
  font-size: 16px;
  line-height: 1.45;
}
.tutorials-compose-card,
.tutorials-library-card{
  margin-top: 22px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
}
.tutorials-compose-head,
.tutorials-library-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.tutorials-section-title{
  font-size: 24px;
  font-weight: 800;
  color: #102a43;
}
.tutorials-section-subtitle{
  margin-top: 6px;
  color: rgba(16, 42, 67, .68);
  font-size: 14px;
  line-height: 1.6;
}
.tutorials-compose-form{
  margin-top: 18px;
}
.tutorials-compose-grid{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.tutorials-field{
  min-width: 0;
}
.tutorials-field-span-12{ grid-column: span 12; }
.tutorials-field-span-6{ grid-column: span 6; }
.tutorials-field .form-control{
  border-radius: 16px;
  border-color: rgba(15, 23, 42, .14);
  padding: 12px 14px;
  box-shadow: none;
}
.tutorials-field .form-control:focus{
  border-color: rgba(13,110,253,.42);
  box-shadow: 0 0 0 4px rgba(13,110,253,.12);
}
.tutorials-field textarea.form-control{
  min-height: 138px;
}
.tutorials-field-hint{
  margin-top: 7px;
  color: rgba(15, 23, 42, .58);
  font-size: 12px;
  line-height: 1.55;
}
.tutorials-compose-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}
.tutorials-existing-label{
  margin-bottom: 10px;
  color: #102a43;
  font-size: 13px;
  font-weight: 700;
}
.tutorials-existing-assets{
  display: grid;
  gap: 10px;
}
.tutorial-existing-item{
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(248, 250, 252, .9);
}
.tutorial-existing-item .form-check-input{
  margin: 0;
}
.tutorial-existing-item-icon{
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(11, 93, 215, .08);
  color: #0b5ed7;
  font-size: 18px;
}
.tutorial-existing-item-main{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tutorial-existing-item-name{
  color: #102a43;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tutorial-existing-item-meta,
.tutorial-existing-item-remove{
  color: rgba(15, 23, 42, .6);
  font-size: 12px;
}
.tutorials-library-tools{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.tutorials-search-group{
  min-width: min(100%, 340px);
}
.tutorials-search-group .input-group-text,
.tutorials-search-group .form-control{
  border-radius: 14px;
}
.tutorials-filter-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tutorial-filter-chip{
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  color: #334e68;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: all .18s ease;
}
.tutorial-filter-chip:hover{
  border-color: rgba(11, 93, 215, .28);
  color: #0b5ed7;
}
.tutorial-filter-chip.is-active{
  background: #0b5ed7;
  color: #fff;
  border-color: #0b5ed7;
  box-shadow: 0 12px 24px rgba(11, 93, 215, .22);
}
.tutorials-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.tutorial-card{
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, .08);
  background:
    radial-gradient(680px 280px at 0% 0%, rgba(11, 93, 215, .08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .06);
}
.tutorial-card-top{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 18px 0;
}
.tutorial-card-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tutorial-card-date{
  color: rgba(15, 23, 42, .58);
  font-size: 12px;
  white-space: nowrap;
}
.tutorial-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.85);
  color: #334e68;
  font-size: 12px;
  font-weight: 700;
}
.tutorial-badge.is-accent{
  background: rgba(11, 93, 215, .10);
  color: #0b5ed7;
  border-color: rgba(11, 93, 215, .14);
}
.tutorial-card-body{
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}
.tutorial-card-title{
  margin: 0;
  color: #102a43;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.18;
}
.tutorial-card-desc{
  margin: 0;
  color: rgba(16, 42, 67, .72);
  font-size: 14px;
  line-height: 1.7;
  min-height: 48px;
}
.tutorial-card-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tutorial-file-list{
  display: grid;
  gap: 10px;
}
.tutorial-file-item{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.82);
}
.tutorial-file-icon{
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(11, 93, 215, .08);
  color: #0b5ed7;
  font-size: 20px;
}
.tutorial-file-main{
  min-width: 0;
}
.tutorial-file-name{
  color: #102a43;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tutorial-file-meta{
  margin-top: 4px;
  color: rgba(15, 23, 42, .58);
  font-size: 12px;
}
.tutorial-file-actions{
  display: flex;
  gap: 8px;
  align-items: center;
}
.tutorials-empty{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 20px;
  text-align: center;
  color: rgba(15, 23, 42, .66);
}
.tutorials-empty-icon{
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: rgba(11, 93, 215, .08);
  color: #0b5ed7;
  font-size: 34px;
}
.tutorials-empty-title{
  color: #102a43;
  font-size: 22px;
  font-weight: 800;
}
.tutorials-empty-text{
  max-width: 620px;
  font-size: 14px;
  line-height: 1.7;
}
.tutorial-viewer-dialog{
  max-width: min(1200px, calc(100vw - 28px));
}
.tutorial-viewer-content{
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(15, 23, 42, .24);
}
.tutorial-viewer-header,
.tutorial-viewer-footer{
  border: 0;
  background: linear-gradient(180deg, rgba(248,250,252,.98), rgba(255,255,255,.98));
}
.tutorial-viewer-header{
  padding: 20px 22px 14px;
}
.tutorial-viewer-kicker{
  color: rgba(15, 23, 42, .56);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.tutorial-viewer-body{
  min-height: 340px;
  padding: 0 22px 22px;
  background: #fff;
}
.tutorial-viewer-loading{
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, .66);
}
.tutorial-video-frame-wrap,
.tutorial-inline-frame,
.tutorial-image-stage,
.tutorial-video-stage{
  width: 100%;
  min-height: 64vh;
}
.tutorial-video-frame,
.tutorial-inline-frame{
  width: 100%;
  min-height: 64vh;
  border: 0;
  border-radius: 22px;
  background: #0f172a;
}
.tutorial-image-stage,
.tutorial-audio-stage{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 8px;
}
.tutorial-preview-image{
  max-width: 100%;
  max-height: 72vh;
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, .14);
}
.tutorial-preview-audio{
  width: min(100%, 760px);
}
.tutorial-preview-video{
  width: 100%;
  min-height: 64vh;
  border-radius: 22px;
  background: #0f172a;
}
.tutorial-text-preview{
  margin: 18px 0 0;
  min-height: 58vh;
  max-height: 68vh;
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.65;
}
.tutorial-docx-preview{
  margin-top: 18px;
  min-height: 58vh;
  max-height: 68vh;
  overflow: auto;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
  color: #102a43;
  line-height: 1.7;
}
.tutorial-docx-preview h1,
.tutorial-docx-preview h2,
.tutorial-docx-preview h3{
  color: #102a43;
  font-weight: 800;
}
.tutorial-fallback-card{
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: rgba(15, 23, 42, .68);
}
.tutorial-fallback-card h3{
  margin: 0;
  color: #102a43;
  font-size: 22px;
  font-weight: 800;
}
.tutorial-fallback-card p{
  max-width: 580px;
  margin: 0;
  line-height: 1.7;
}
.tutorial-fallback-icon{
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(11, 93, 215, .08);
  color: #0b5ed7;
  font-size: 32px;
}

@media (max-width: 1199.98px){
  .tutorials-grid{
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 991.98px){
  .tutorials-overview-strip{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tutorials-page-hero-actions{
    justify-content: flex-start;
  }
  .tutorials-hero{
    grid-template-columns: minmax(0, 1fr);
  }
  .tutorials-hero-metrics{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tutorials-compose-head,
  .tutorials-library-head{
    flex-direction: column;
  }
  .tutorials-library-tools{
    width: 100%;
    justify-content: stretch;
  }
  .tutorials-search-group{
    width: 100%;
  }
  .tutorials-field-span-6{
    grid-column: span 12;
  }
}

@media (max-width: 767.98px){
  .tutorials-shell{
    padding: 16px 12px 28px;
  }
  .tutorials-overview-strip{
    grid-template-columns: minmax(0, 1fr);
  }
  .tutorials-overview-card{
    min-height: 0;
    border-radius: 20px;
  }
  .tutorials-page-hero-actions{
    width: 100%;
  }
  .tutorials-page-hero-actions .btn,
  .tutorials-hero-pill{
    flex: 1 1 100%;
    justify-content: center;
  }
  .tutorials-hero,
  .tutorials-compose-card,
  .tutorials-library-card{
    padding: 18px;
    border-radius: 24px;
  }
  .tutorials-hero-metrics{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tutorial-card-title{
    font-size: 20px;
  }
  .tutorial-card-top,
  .tutorial-card-body{
    padding-left: 14px;
    padding-right: 14px;
  }
  .tutorial-file-item{
    grid-template-columns: auto minmax(0, 1fr);
  }
  .tutorial-file-actions{
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  .tutorial-existing-item{
    grid-template-columns: auto auto minmax(0, 1fr);
  }
  .tutorial-existing-item-remove{
    grid-column: 1 / -1;
    padding-left: 50px;
  }
  .tutorial-viewer-dialog{
    max-width: calc(100vw - 12px);
    margin: 6px auto;
  }
  .tutorial-viewer-body{
    padding: 0 14px 14px;
  }
  .tutorial-video-frame,
  .tutorial-inline-frame,
  .tutorial-preview-video,
  .tutorial-video-frame-wrap,
  .tutorial-video-stage{
    min-height: 46vh;
  }
  .tutorial-text-preview,
  .tutorial-docx-preview{
    min-height: 44vh;
    max-height: 54vh;
  }
}

.tutorials-shell-explorer{
  max-width: 1480px;
}
.tutorial-explorer-card{
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
}
.tutorial-explorer-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tutorial-explorer-toolbar-main{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tutorial-explorer-breadcrumb{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}
.tutorial-explorer-breadcrumb button{
  border: 0;
  padding: 0;
  background: transparent;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}
.tutorial-explorer-breadcrumb button:disabled{
  color: rgba(15, 23, 42, .52);
}
.tutorial-explorer-breadcrumb .sep{
  color: #94a3b8;
}
.tutorial-explorer-subtitle{
  color: #64748b;
  font-size: .9rem;
  line-height: 1.55;
}
.tutorial-explorer-toolbar-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.tutorial-explorer-primary-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.tutorial-explorer-search{
  position: relative;
  min-width: min(100%, 360px);
}
.tutorial-explorer-search i{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(15, 23, 42, .46);
  pointer-events: none;
}
.tutorial-explorer-search .form-control{
  min-height: 42px;
  padding-left: 42px;
  border-radius: 14px;
  border-color: #e2e8f0;
  box-shadow: none;
}
.tutorial-explorer-search .form-control:focus{
  border-color: #cbd5f5;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}
.tutorial-folder-banner{
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.tutorial-folder-banner-main{
  display: flex;
  gap: 16px;
  min-width: 0;
  flex: 1 1 420px;
}
.tutorial-folder-banner-icon{
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #6366f1, #a5b4fc);
  color: #fff;
  font-size: 28px;
  flex: 0 0 auto;
}
.tutorial-folder-banner-copy{
  min-width: 0;
}
.tutorial-folder-banner-title{
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}
.tutorial-folder-banner-desc{
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}
.tutorial-folder-banner-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tutorial-folder-banner-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.tutorial-explorer-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 268px));
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
  justify-content: flex-start;
}
.tutorial-explorer-grid.is-item-view{
  grid-template-columns: repeat(auto-fill, minmax(220px, 268px));
}
.tutorial-folder-tile,
.tutorial-entry-card{
  width: 100%;
  max-width: 268px;
}
.tutorial-folder-tile{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
  min-height: 172px;
  outline: none;
}
.tutorial-folder-tile:hover{
  transform: translateY(-2px);
  border-color: #cbd5f5;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}
.tutorial-folder-tile:focus-visible,
.tutorial-folder-tile.is-selected{
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .15);
  background: #eef2ff;
}
.tutorial-folder-tile-top{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.tutorial-folder-tile-icon{
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #6366f1, #a5b4fc);
  color: #fff;
  font-size: 24px;
}
.tutorial-folder-tile-actions{
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  opacity: 0;
  transition: opacity .18s ease;
}
.tutorial-folder-tile:hover .tutorial-folder-tile-actions,
.tutorial-folder-tile.is-selected .tutorial-folder-tile-actions,
.tutorial-folder-tile:focus-visible .tutorial-folder-tile-actions{
  opacity: 1;
}
.tutorial-folder-icon-btn{
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tutorial-folder-icon-btn.is-danger{
  color: #dc2626;
  border-color: #fecaca;
  background: #fff1f2;
}
.tutorial-folder-access-chip{
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}
.tutorial-folder-tile-title{
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tutorial-folder-tile-desc{
  color: #64748b;
  font-size: .85rem;
  line-height: 1.55;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tutorial-folder-tile-meta,
.tutorial-folder-tile-foot{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 600;
}
.tutorial-folder-tile-visibility{
  color: #475569;
}
.tutorial-folder-tile-hint{
  margin-left: auto;
  color: #2563eb;
}
.tutorial-entry-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
  min-height: 294px;
  height: 100%;
}
.tutorial-entry-head{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.tutorial-entry-title{
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tutorial-entry-desc{
  margin-top: 4px;
  color: #64748b;
  font-size: .85rem;
  line-height: 1.55;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tutorial-entry-date{
  white-space: nowrap;
  color: #64748b;
  font-size: .75rem;
  font-weight: 600;
}
.tutorial-entry-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tutorial-entry-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 2px;
}
@media (hover: hover) and (pointer: fine){
  .tutorial-entry-card .tutorial-entry-meta,
  .tutorial-entry-card .tutorial-entry-actions{
    display: none;
  }
  .tutorial-entry-card:hover .tutorial-entry-meta,
  .tutorial-entry-card:hover .tutorial-entry-actions,
  .tutorial-entry-card:focus-within .tutorial-entry-meta,
  .tutorial-entry-card:focus-within .tutorial-entry-actions{
    display: flex;
  }
}
.tutorial-file-list-inline{
  margin-top: 2px;
  display: grid;
  gap: 8px;
  max-height: 124px;
  overflow: auto;
  padding-right: 2px;
}
.tutorial-file-list-inline::-webkit-scrollbar{
  width: 8px;
}
.tutorial-file-list-inline::-webkit-scrollbar-thumb{
  background: rgba(148,163,184,.55);
  border-radius: 999px;
}
.tutorial-entry-card .tutorial-file-item{
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
}
.tutorial-entry-card .tutorial-file-icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 18px;
}
.tutorial-entry-card .tutorial-file-name{
  font-size: 13px;
}
.tutorial-entry-card .tutorial-file-meta{
  margin-top: 2px;
  font-size: 11px;
}
.tutorial-entry-card .tutorial-file-actions{
  gap: 6px;
}
.tutorial-entry-card .tutorial-file-actions .btn,
.tutorial-entry-card .tutorial-entry-actions .btn,
.tutorial-entry-card .tutorial-entry-actions form .btn{
  padding: .35rem .65rem;
  font-size: .78rem;
  border-radius: 10px;
}
.tutorial-entry-card .tutorial-entry-actions form{
  margin: 0;
}
.tutorial-folder-banner-actions .btn{
  border-radius: 12px;
}
.tutorial-modal-card{
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(15, 23, 42, .2);
}
.tutorial-modal-card .modal-header,
.tutorial-modal-card .modal-footer{
  border: 0;
  background: linear-gradient(180deg, rgba(248,250,252,.98), rgba(255,255,255,.98));
}
.tutorial-modal-stack{
  display: grid;
  gap: 16px;
}
.tutorial-modal-stack .form-control,
.tutorial-modal-stack .form-select{
  border-radius: 16px;
  border-color: rgba(15, 23, 42, .12);
  box-shadow: none;
}
.tutorial-modal-stack .form-control:focus,
.tutorial-modal-stack .form-select:focus{
  border-color: rgba(11, 93, 215, .36);
  box-shadow: 0 0 0 4px rgba(11, 93, 215, .1);
}
.tutorial-share-body{
  display: grid;
  gap: 18px;
}
.tutorial-share-summary{
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(11, 93, 215, .12);
  background: linear-gradient(135deg, rgba(11,93,215,.08), rgba(11,93,215,.03));
}
.tutorial-share-summary-title{
  color: #102a43;
  font-size: 20px;
  font-weight: 800;
}
.tutorial-share-summary-text{
  margin-top: 4px;
  color: rgba(16, 42, 67, .72);
  font-size: 14px;
}
.tutorial-share-summary-meta{
  margin-top: 10px;
  color: #0b5ed7;
  font-size: 13px;
  font-weight: 700;
}
.tutorial-share-grid{
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 18px;
}
.tutorial-share-card{
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
}
.tutorial-share-card-title{
  color: #102a43;
  font-size: 18px;
  font-weight: 800;
}
.tutorial-share-card-subtitle{
  margin-top: 4px;
  color: rgba(16, 42, 67, .66);
  font-size: 13px;
  line-height: 1.6;
}
.tutorial-share-group-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.tutorial-share-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .1);
  background: #fff;
  color: #334e68;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .16s ease;
}
.tutorial-share-chip:hover{
  border-color: rgba(11, 93, 215, .24);
  color: #0b5ed7;
}
.tutorial-share-chip.is-active{
  background: rgba(11, 93, 215, .08);
  border-color: rgba(11, 93, 215, .24);
  color: #0b5ed7;
  box-shadow: 0 12px 24px rgba(11, 93, 215, .12);
}
.tutorial-share-chip-count{
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .06);
  color: rgba(15, 23, 42, .68);
  font-size: 12px;
}
.tutorial-share-search{
  margin-top: 16px;
}
.tutorial-share-search .input-group-text,
.tutorial-share-search .form-control{
  border-radius: 14px;
}
.tutorial-share-students{
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}
.tutorial-share-student{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(248,250,252,.7);
  cursor: pointer;
  transition: all .16s ease;
}
.tutorial-share-student:hover{
  border-color: rgba(11, 93, 215, .18);
}
.tutorial-share-student.is-active{
  border-color: rgba(11, 93, 215, .24);
  background: rgba(11, 93, 215, .07);
  box-shadow: 0 12px 24px rgba(11, 93, 215, .1);
}
.tutorial-share-student-main{
  min-width: 0;
}
.tutorial-share-student-name{
  color: #102a43;
  font-size: 14px;
  font-weight: 800;
}
.tutorial-share-student-meta{
  margin-top: 4px;
  color: rgba(15, 23, 42, .62);
  font-size: 12px;
}
.tutorial-share-empty{
  padding: 18px;
  border-radius: 16px;
  background: rgba(248,250,252,.8);
  color: rgba(15, 23, 42, .58);
  font-size: 13px;
}
.tutorial-explorer-toast{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .94);
  color: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.tutorial-explorer-toast.is-show{
  opacity: 1;
  transform: translateY(0);
}
.tutorial-explorer-toast.is-error{
  background: rgba(146, 19, 19, .96);
}

@media (max-width: 1199.98px){
  .tutorial-share-grid{
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 991.98px){
  .tutorial-explorer-toolbar{
    flex-direction: column;
    align-items: stretch;
  }
  .tutorial-explorer-toolbar-actions{
    width: 100%;
    justify-content: stretch;
  }
  .tutorial-explorer-primary-actions{
    width: 100%;
    justify-content: flex-end;
  }
  .tutorial-explorer-search{
    width: 100%;
    min-width: 0;
  }
  .tutorial-folder-banner{
    padding: 18px;
  }
  .tutorial-folder-banner-actions{
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px){
  .tutorial-explorer-grid,
  .tutorial-explorer-grid.is-item-view{
    grid-template-columns: minmax(0, 1fr);
  }
  .tutorial-folder-tile,
  .tutorial-entry-card{
    max-width: none;
  }
  .tutorial-explorer-card{
    padding: 18px;
    border-radius: 24px;
  }
  .tutorial-folder-banner{
    border-radius: 20px;
  }
  .tutorial-folder-banner-main{
    flex-direction: column;
  }
  .tutorial-folder-banner-title{
    font-size: 22px;
  }
  .tutorial-entry-head{
    flex-direction: column;
  }
  .tutorial-entry-date{
    white-space: normal;
  }
  .tutorial-entry-card{
    min-height: 0;
  }
  .tutorial-file-list-inline{
    max-height: none;
  }
  .tutorial-folder-tile,
  .tutorial-entry-card{
    border-radius: 20px;
  }
  .tutorial-explorer-toast{
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* Global UI cleanup */
[class*="-subtitle"]{
  display: none !important;
}

.users-history-page{
  display:flex;
  flex-direction:column;
  gap:0;
}
.users-history-hero-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.users-history-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.users-history-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:.55rem .85rem;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(255,255,255,.78);
  font-size:.9rem;
  color:#334155;
}
.users-history-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}
.users-history-kpi-card,
.users-history-panel{
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  border-radius:20px;
  box-shadow:0 16px 32px rgba(15,23,42,.05);
}
.users-history-kpi-card{
  padding:16px 18px;
}
.users-history-kpi-label{
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#64748b;
}
.users-history-kpi-value{
  font-size:1.9rem;
  font-weight:800;
  line-height:1.05;
  color:#0f172a;
  margin-top:10px;
}
.users-history-kpi-meta{
  margin-top:6px;
  color:#64748b;
  font-size:.92rem;
}
.users-history-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.65fr) minmax(300px, .8fr);
  gap:16px;
  align-items:start;
}
.users-history-panel{
  padding:18px;
}
.users-history-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.users-history-panel-head h2{
  margin:0;
  font-size:1.1rem;
  color:#0f172a;
}
.users-history-note{
  margin-top:6px;
  color:#64748b;
  font-size:.94rem;
  line-height:1.5;
}
.users-history-filter-grid{
  display:grid;
  grid-template-columns:minmax(220px, 1.4fr) repeat(2, minmax(150px, .6fr)) minmax(220px, .95fr);
  gap:12px;
  margin-bottom:16px;
}
.users-history-filter{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.users-history-filter > span{
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#64748b;
}
.users-history-filter-actions{
  justify-content:flex-end;
}
.users-history-action-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.users-history-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  margin-bottom:14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  background:linear-gradient(180deg, #fff, #f8fafc);
}
.users-history-toolbar-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.users-history-toolbar-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:.45rem .8rem;
  border-radius:999px;
  background:#eef2ff;
  color:#334155;
  font-size:.9rem;
}
.users-history-table-wrap{
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  overflow:hidden;
}
.users-history-table{
  margin-bottom:0;
}
.users-history-table thead th{
  background:#f8fafc;
  border-bottom-color:rgba(15,23,42,.08);
  font-size:.82rem;
  font-weight:700;
  color:#475569;
  vertical-align:middle;
  white-space:nowrap;
}
.users-history-table td{
  vertical-align:middle;
}
.users-history-check-col{
  width:44px;
  text-align:center;
}
.users-history-user{
  min-width:0;
}
.users-history-user-name{
  font-weight:700;
  color:#0f172a;
}
.users-history-user-email{
  color:#64748b;
  font-size:.9rem;
  word-break:break-word;
}
.users-history-side{
  position:sticky;
  top:calc(var(--app-header-height) + 16px);
}
.users-history-side-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.users-history-side-item{
  padding:14px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
}
.users-history-side-title{
  font-weight:700;
  color:#0f172a;
}
.users-history-side-copy{
  margin-top:6px;
  color:#64748b;
  font-size:.93rem;
  line-height:1.5;
}
@media (max-width: 1199.98px){
  .users-history-kpi-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .users-history-grid{
    grid-template-columns:1fr;
  }
  .users-history-side{
    position:static;
  }
}
@media (max-width: 991.98px){
  .users-history-filter-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px){
  .users-history-kpi-grid,
  .users-history-filter-grid{
    grid-template-columns:1fr;
  }
  .users-history-toolbar{
    flex-direction:column;
    align-items:stretch;
  }
  .users-history-toolbar-meta{
    width:100%;
  }
  .users-history-panel{
    padding:14px;
  }
}

.analytics-page-hero{
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(244,248,255,.98));
}
.analytics-hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.analytics-shell{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.analytics-toolbar{
  border:1px solid rgba(148,163,184,.18);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
  box-shadow:0 18px 40px rgba(15,23,42,.08);
  position:sticky;
  top:88px;
  z-index:25;
}
.analytics-toolbar-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(180px, 220px)) minmax(0, 1fr);
  gap:16px 18px;
  align-items:end;
}
.analytics-filter{
  min-width:0;
}
.analytics-filter-grow{
  min-width:0;
  grid-column:auto;
}
.analytics-toolbar-meta{
  grid-column:1 / -1;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.analytics-toolbar-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.24);
  background:#fff;
  color:#0f172a;
  font-size:.9rem;
  font-weight:600;
}
.analytics-pill-nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.analytics-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.24);
  background:#fff;
  color:#334155;
  text-decoration:none;
  font-weight:600;
  transition:all .18s ease;
}
.analytics-pill:hover{
  border-color:rgba(37,99,235,.32);
  color:#0f172a;
  transform:translateY(-1px);
}
.analytics-pill.is-active{
  background:#0f172a;
  border-color:#0f172a;
  color:#fff;
  box-shadow:0 16px 28px rgba(15,23,42,.16);
}
.analytics-view-shell{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.analytics-view-shell-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.analytics-view-toggle{
  border:1px solid rgba(148,163,184,.24);
  background:#fff;
  color:#0f172a;
  border-radius:16px;
  padding:10px 12px;
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-weight:700;
  min-width:210px;
  justify-content:space-between;
  box-shadow:0 10px 20px rgba(15,23,42,.05);
}
.analytics-view-toggle-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  min-width:0;
}
.analytics-view-toggle-title{
  font-size:.92rem;
  color:#0f172a;
}
.analytics-view-toggle-meta{
  font-size:.78rem;
  color:#64748b;
}
.analytics-view-toggle.is-collapsed{
  border-color:rgba(15,23,42,.12);
}
.analytics-view-drawer{
  display:none;
}
.analytics-view-drawer.is-open{
  display:block;
}
.analytics-pill-nav-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:10px;
}
.analytics-view-pill{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  min-height:88px;
  border-radius:18px;
  padding:14px;
}
.analytics-view-pill-main{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  color:inherit;
}
.analytics-view-pill-main i{
  font-size:1rem;
}
.analytics-view-pill-meta{
  font-size:.8rem;
  line-height:1.35;
  color:#64748b;
}
.analytics-view-pill.is-active .analytics-view-pill-meta{
  color:rgba(255,255,255,.72);
}
.analytics-card-grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:14px;
}
.analytics-section-card,
.analytics-view-spotlight{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.analytics-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:14px;
}
.analytics-section-head-main{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.analytics-section-head h2{
  margin:0;
  font-size:1.02rem;
  font-weight:800;
  color:#0f172a;
}
.analytics-collapse-btn{
  border:1px solid rgba(148,163,184,.22);
  background:#fff;
  color:#0f172a;
  border-radius:999px;
  padding:8px 12px;
  font-size:.84rem;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.analytics-collapse-btn.is-collapsed{
  color:#475569;
}
.analytics-section-body{
  display:none;
}
.analytics-section-body.is-open{
  display:block;
  animation:analyticsSectionFade .18s ease;
}
.analytics-spotlight-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}
.analytics-spotlight-card{
  padding:16px 18px;
  border-radius:20px;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.96));
  box-shadow:0 18px 32px rgba(15,23,42,.05);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.analytics-spotlight-card span{
  color:#64748b;
  font-size:.82rem;
  font-weight:700;
}
.analytics-spotlight-card strong{
  color:#0f172a;
  font-size:1.15rem;
  font-weight:800;
}
.analytics-stat-card{
  position:relative;
  overflow:hidden;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  box-shadow:0 18px 32px rgba(15,23,42,.06);
}
.analytics-stat-card::after{
  content:"";
  position:absolute;
  inset:auto -20px -20px auto;
  width:92px;
  height:92px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.3), transparent 70%);
  pointer-events:none;
}
.analytics-stat-card.is-students .analytics-stat-icon{ background:rgba(59,130,246,.12); color:#1d4ed8; }
.analytics-stat-card.is-tasks .analytics-stat-icon{ background:rgba(20,184,166,.14); color:#0f766e; }
.analytics-stat-card.is-assignments .analytics-stat-icon{ background:rgba(124,58,237,.14); color:#6d28d9; }
.analytics-stat-card.is-attempts .analytics-stat-icon{ background:rgba(234,88,12,.14); color:#c2410c; }
.analytics-stat-card.is-risk .analytics-stat-icon{ background:rgba(239,68,68,.14); color:#b91c1c; }
.analytics-stat-card.is-warning .analytics-stat-icon{ background:rgba(245,158,11,.16); color:#b45309; }
.analytics-stat-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
  margin-bottom:14px;
}
.analytics-stat-label{
  font-size:.86rem;
  font-weight:700;
  color:#475569;
  margin-bottom:8px;
}
.analytics-stat-value{
  font-size:1.7rem;
  line-height:1;
  font-weight:800;
  color:#0f172a;
}
.analytics-stat-meta{
  margin-top:10px;
  font-size:.86rem;
  color:#64748b;
}
.analytics-chart-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}
.analytics-chart-panel-wide{
  grid-column:1 / -1;
}
.analytics-main-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  align-items:start;
}
.analytics-main-column,
.analytics-side-column{
  min-width:0;
}
.analytics-side-column{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  position:static;
  align-items:start;
}
.analytics-side-column > .analytics-panel{
  min-width:0;
  align-self:start;
}
.analytics-side-column .analytics-panel-head{
  margin-bottom:12px;
}
.analytics-side-column .analytics-list{
  max-height:none;
  overflow:visible;
  padding-right:0;
}
.analytics-side-column .analytics-insight-grid{
  grid-template-columns:1fr;
}
.analytics-panel-span-full{
  grid-column:1 / -1;
}
.analytics-panel-large-tables .analytics-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-height:none;
  overflow:visible;
}
.analytics-panel-large-tables .analytics-list-item{
  min-width:0;
}
.analytics-panel-large-tables .analytics-list-item-table{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:16px 18px;
  border-radius:20px;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
  box-shadow:0 14px 30px rgba(15,23,42,.05);
}
.analytics-panel-large-tables .analytics-table-main{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.analytics-panel-large-tables .analytics-table-name-row{
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:10px;
}
.analytics-panel-large-tables .analytics-list-title{
  margin-bottom:0;
  font-size:1rem;
  font-weight:800;
  overflow-wrap:anywhere;
}
.analytics-panel-large-tables .analytics-table-meta-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:100%;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.16);
  background:rgba(241,245,249,.9);
  color:#475569;
  font-size:.78rem;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
}
.analytics-panel-large-tables .analytics-table-stats{
  display:grid;
  grid-template-columns:repeat(2, minmax(110px, auto));
  gap:8px;
  justify-content:end;
  align-items:stretch;
  flex:0 0 auto;
}
.analytics-panel-large-tables .analytics-table-stat{
  min-width:0;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.16);
  background:rgba(248,250,252,.88);
  text-align:right;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.analytics-panel-large-tables .analytics-table-stat.is-muted{
  background:rgba(241,245,249,.88);
}
.analytics-panel-large-tables .analytics-table-stat-value{
  color:#0f172a;
  font-size:1rem;
  font-weight:800;
  line-height:1.1;
}
.analytics-panel-large-tables .analytics-table-stat-label{
  color:#64748b;
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.analytics-panel{
  border:1px solid rgba(148,163,184,.16);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.96));
  box-shadow:0 22px 34px rgba(15,23,42,.06);
  padding:18px;
}
.analytics-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:16px;
}
.analytics-panel-head > .analytics-collapse-btn{
  margin-left:auto;
}
.analytics-panel-head h2{
  margin:0;
  font-size:1.05rem;
  font-weight:800;
  color:#0f172a;
}
.analytics-panel-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(15,23,42,.05);
  border:1px solid rgba(15,23,42,.08);
  color:#475569;
  font-size:.8rem;
  font-weight:700;
}
.analytics-chart-panel canvas{
  width:100% !important;
  height:260px !important;
}
.analytics-table-panel{
  padding-bottom:0;
}
.analytics-table-tools{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.analytics-search{
  position:relative;
  min-width:250px;
}
.analytics-search i{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#64748b;
}
.analytics-search .form-control{
  padding-left:40px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.22);
  box-shadow:none;
}
.analytics-table-wrap{
  border-top:1px solid rgba(148,163,184,.12);
}
.analytics-table-scroll{
  width:100%;
  overflow:auto;
}
.analytics-table{
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(15,23,42,.025);
  margin-bottom:0;
}
.analytics-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f8fafc;
  border-bottom:1px solid rgba(148,163,184,.18);
  white-space:nowrap;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#64748b;
}
.analytics-table td{
  min-width:120px;
  white-space:pre-line;
  vertical-align:top;
  color:#0f172a;
  font-size:.92rem;
  line-height:1.5;
  word-break:break-word;
}
.analytics-empty-state{
  padding:28px 10px;
  text-align:center;
  color:#64748b;
}
.analytics-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.analytics-list-item{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(148,163,184,.16);
  background:rgba(255,255,255,.78);
}
.analytics-list-title{
  font-weight:700;
  color:#0f172a;
  margin-bottom:3px;
}
.analytics-list-copy{
  min-width:0;
}
.analytics-list-meta{
  color:#64748b;
  font-size:.86rem;
}
.analytics-list-value{
  min-width:120px;
  display:flex;
  flex-direction:column;
  gap:4px;
  text-align:right;
  color:#334155;
  font-size:.86rem;
  font-weight:700;
}
@media (max-width: 1399.98px){
  .analytics-card-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1199.98px){
  .analytics-toolbar{
    top:80px;
  }
  .analytics-side-column{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px){
  .analytics-toolbar-grid{
    grid-template-columns:1fr 1fr;
  }
  .analytics-filter-grow{
    grid-column:1 / -1;
  }
  .analytics-card-grid,
  .analytics-chart-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .analytics-side-column{
    grid-template-columns:1fr;
  }
  .analytics-chart-panel-wide{
    grid-column:auto;
  }
}
@media (max-width: 767.98px){
  .analytics-toolbar{
    position:static;
  }
  .analytics-toolbar-grid{
    grid-template-columns:1fr;
  }
  .analytics-card-grid,
  .analytics-chart-grid{
    grid-template-columns:1fr;
  }
  .analytics-hero-actions{
    width:100%;
  }
  .analytics-hero-actions .btn{
    flex:1 1 100%;
  }
  .analytics-panel-head{
    flex-direction:column;
    align-items:stretch;
  }
  .analytics-search{
    min-width:0;
  }
  .analytics-list-item{
    flex-direction:column;
  }
  .analytics-list-value{
    min-width:0;
    text-align:left;
  }
}

.analytics-hero-surface{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.analytics-hero-inner{
  align-items:flex-start;
  gap:20px;
}
.analytics-hero-copy{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}
.analytics-hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.analytics-hero-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.2);
  background:rgba(255,255,255,.78);
  color:#334155;
  font-size:.88rem;
  font-weight:700;
}
.analytics-hero-stats{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}
.analytics-hero-stat{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 18px;
  border-radius:20px;
  border:1px solid rgba(148,163,184,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,250,252,.95));
  box-shadow:0 18px 34px rgba(15,23,42,.06);
}
.analytics-hero-stat-icon{
  width:46px;
  height:46px;
  border-radius:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(37,99,235,.1);
  color:#1d4ed8;
  font-size:1.1rem;
  flex:0 0 auto;
}
.analytics-hero-stat-copy{
  min-width:0;
}
.analytics-hero-stat-label{
  color:#64748b;
  font-size:.82rem;
  font-weight:700;
  margin-bottom:4px;
}
.analytics-hero-stat-value{
  color:#0f172a;
  font-size:1.28rem;
  font-weight:800;
  line-height:1.05;
}
.analytics-focus-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}
.analytics-focus-card{
  padding:16px 18px;
  border-radius:22px;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.96));
  box-shadow:0 18px 32px rgba(15,23,42,.06);
}
.analytics-focus-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
.analytics-focus-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.06);
  color:#0f172a;
  font-size:1.02rem;
}
.analytics-focus-title{
  font-size:.98rem;
  font-weight:800;
  color:#0f172a;
}
.analytics-focus-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.analytics-focus-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:10px 0;
  border-top:1px solid rgba(148,163,184,.12);
  color:#475569;
  font-size:.9rem;
}
.analytics-focus-row:first-child{
  border-top:0;
  padding-top:0;
}
.analytics-focus-row strong{
  color:#0f172a;
  font-size:.98rem;
}
.analytics-card-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}
.analytics-stat-card{
  min-height:178px;
}
.analytics-panel-head-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.analytics-panel-caption{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.analytics-row-count,
.analytics-search-meta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.18);
  background:#fff;
  color:#475569;
  font-size:.8rem;
  font-weight:700;
}
.analytics-table-tools{
  justify-content:flex-end;
  margin-bottom:16px;
}
.analytics-insight-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
.analytics-insight-item{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(148,163,184,.16);
  background:rgba(255,255,255,.78);
}
.analytics-insight-item span{
  color:#64748b;
  font-size:.82rem;
  font-weight:700;
}
.analytics-insight-item strong{
  color:#0f172a;
  font-size:1.02rem;
  font-weight:800;
}
.analytics-insight-panel{
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.08), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.96));
}
@keyframes analyticsSectionFade{
  from{
    opacity:0;
    transform:translateY(-4px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
.analytics-table td{
  min-width:120px;
}
.analytics-table td:first-child{
  min-width:160px;
}
.analytics-list-item{
  border-radius:20px;
  padding:15px 16px;
}
@media (max-width: 1399.98px){
  .analytics-hero-stats,
  .analytics-focus-grid,
  .analytics-spotlight-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px){
  .analytics-pill-nav-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .analytics-card-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .analytics-insight-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width: 767.98px){
  .analytics-hero-stats,
  .analytics-focus-grid,
  .analytics-card-grid,
  .analytics-insight-grid,
  .analytics-spotlight-grid{
    grid-template-columns:1fr;
  }
  .analytics-view-shell-head,
  .analytics-section-head{
    flex-direction:column;
    align-items:stretch;
  }
  .analytics-view-toggle{
    width:100%;
  }
  .analytics-pill-nav-grid{
    grid-template-columns:1fr;
  }
  .analytics-table-tools{
    justify-content:stretch;
  }
  .analytics-panel-large-tables .analytics-list{
    display:flex;
    flex-direction:column;
  }
  .analytics-panel-large-tables .analytics-list-item-table{
    flex-direction:column;
    align-items:stretch;
  }
  .analytics-panel-large-tables .analytics-table-stats{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    width:100%;
    justify-content:stretch;
  }
  .analytics-panel-large-tables .analytics-table-stat{
    text-align:left;
  }
  .analytics-panel-large-tables .analytics-table-meta-pill{
    white-space:normal;
  }
  .analytics-search-meta{
    justify-content:flex-start;
  }
}

.question-banks-bulkbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  margin-bottom:14px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:20px;
  background:
    radial-gradient(circle at top right, rgba(251,191,36,.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.question-banks-bulkbar.is-active{
  border-color:rgba(245,158,11,.35);
  box-shadow:0 16px 34px rgba(15,23,42,.08);
}
.question-banks-bulkbar-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.question-banks-bulkbar-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#0f172a;
  font-size:.86rem;
  font-weight:800;
}
.question-banks-bulkbar-label i{
  color:#d97706;
}
.question-banks-bulkbar-meta{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex-wrap:wrap;
}
.question-banks-bulkbar-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:94px;
  padding:6px 12px;
  border-radius:999px;
  background:#fff7ed;
  color:#9a3412;
  font-size:.8rem;
  font-weight:800;
  border:1px solid rgba(251,146,60,.24);
}
.question-banks-bulkbar-hint{
  color:#64748b;
  font-size:.82rem;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:460px;
}
.question-banks-bulkbar-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.question-banks-bulkbar-actions .btn{
  border-radius:999px;
  padding-inline:14px;
}
.question-banks-table .form-check-input{
  cursor:pointer;
}
.question-banks-table .bank-select-cell{
  width:44px;
}
.question-banks-table tr.is-selected{
  background:rgba(255,247,237,.88);
}
.question-banks-table tr.is-selected > td{
  box-shadow:inset 0 1px 0 rgba(251,146,60,.08), inset 0 -1px 0 rgba(251,146,60,.08);
}
.question-banks-row-actions{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
@media (max-width: 767.98px){
  .question-banks-bulkbar{
    flex-direction:column;
    align-items:stretch;
  }
  .question-banks-bulkbar-meta{
    align-items:flex-start;
  }
  .question-banks-bulkbar-hint{
    white-space:normal;
    max-width:none;
  }
  .question-banks-bulkbar-actions{
    justify-content:stretch;
  }
  .question-banks-bulkbar-actions .btn{
    flex:1 1 140px;
  }
}
