body { line-height: 1.6; }
.stpl-wrap, .stpl-teacher-container, .stpl-dashboard-box, .stpl-editor-box, .stpl-auth-box{
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 16px 40px;
  color: #1f2937;
}
.stpl-breadcrumb{
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}
.stpl-breadcrumb a{
  color: #2563eb;
  text-decoration: none;
}
.stpl-header h1{
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.stpl-subtitle{
  color: #6b7280;
  margin-bottom: 12px;
}
.stpl-lead{
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  padding: 14px 16px;
  border-radius: 8px;
}
.stpl-hero-image{
  margin: 24px 0;
}
.stpl-hero-image img,
.stpl-teacher-image img{
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}
.stpl-card,
.stpl-section,
.stpl-auth-box,
.stpl-editor-box{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.stpl-card h2,
.stpl-section h2,
.stpl-auth-box h2,
.stpl-editor-box h2{
  font-size: 24px;
  margin: 0 0 16px;
}
.stpl-card h3,
.stpl-section h3{
  font-size: 18px;
  margin: 18px 0 8px;
}
.stpl-table{
  width: 100%;
  border-collapse: collapse;
}
.stpl-table th, .stpl-table td{
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}
.stpl-table th{
  width: 220px;
  background: #f9fafb;
}
.stpl-buttons{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.stpl-btn{
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.stpl-btn-sub{
  background: #0f766e;
}
.stpl-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
.stpl-mini-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.stpl-dashboard-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.stpl-span-2{
  grid-column: span 2;
}
.stpl-mini-card{
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.stpl-list-card{
  overflow: hidden;
}
.stpl-thumb img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.stpl-card-body h3{
  margin: 12px 0 8px;
  font-size: 20px;
}
.stpl-card-body h3 a,
.stpl-mini-card h3 a{
  color: #111827;
  text-decoration: none;
}
.stpl-subline{
  margin: 0 0 8px;
  font-weight: 700;
  color: #374151;
}
.stpl-teacher-hero{
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.stpl-teacher-image{
  flex: 0 0 250px;
  width: 250px;
}
.stpl-teacher-text{
  flex: 1 1 400px;
}
.stpl-badges{
  margin: 12px 0 18px;
}
.stpl-badge{
  display: inline-block;
  background: #eef2f7;
  padding: 6px 10px;
  margin-right: 6px;
  margin-bottom: 6px;
  border-radius: 999px;
  font-size: 12px;
}
.stpl-muted{
  margin-top: 12px;
  color: #4b5563;
}
.stpl-filter-form{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:20px;
  padding:16px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
}
.stpl-filter-form input{
  min-width:160px;
  padding:10px 12px;
  border:1px solid #d1d5db;
  border-radius:10px;
}
.stpl-filter-form button{
  padding:10px 16px;
  border:0;
  border-radius:10px;
  background:#2563eb;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.stpl-reset-link{
  display:inline-flex;
  align-items:center;
  padding:10px 12px;
  color:#374151;
  text-decoration:none;
}
.stpl-loading{
  opacity:.6;
  pointer-events:none;
}
.stpl-role-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin: 16px 0 20px;
}
.stpl-role-tab{
  display:inline-block;
  padding:10px 14px;
  border:1px solid #d1d5db;
  border-radius:999px;
  text-decoration:none;
  color:#1f2937;
}
.stpl-role-tab.is-active{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}
.stpl-login-form label,
.stpl-front-editor-form label{
  display:block;
  margin-bottom:14px;
  font-weight:600;
}
.stpl-login-form input[type="text"],
.stpl-login-form input[type="password"],
.stpl-front-editor-form input[type="text"],
.stpl-front-editor-form select,
.stpl-front-editor-form textarea{
  width:100%;
  margin-top:6px;
  padding:12px;
  border:1px solid #d1d5db;
  border-radius:10px;
  box-sizing:border-box;
}
.stpl-form-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
}
.stpl-checkbox{
  font-weight:400 !important;
}
.stpl-auth-links{
  margin-top:16px;
}
.stpl-alert-error{
  padding:12px 14px;
  border-radius:10px;
  background:#fef2f2;
  color:#991b1b;
  margin-bottom:16px;
}
.stpl-alert-success{
  padding:12px 14px;
  border-radius:10px;
  background:#ecfdf5;
  color:#065f46;
  margin-bottom:16px;
}
.stpl-dashboard-table{
  width:100%;
  border-collapse:collapse;
}
.stpl-dashboard-table th,
.stpl-dashboard-table td{
  border-bottom:1px solid #e5e7eb;
  padding:10px 8px;
  text-align:left;
}
.stpl-plain-list{
  margin:0;
  padding-left:18px;
}
@media (max-width: 768px){
  .stpl-header h1{ font-size: 24px; }
  .stpl-card, .stpl-section, .stpl-auth-box, .stpl-editor-box{ padding: 18px; }
  .stpl-table th, .stpl-table td{
    display: block;
    width: 100%;
  }
  .stpl-grid,
  .stpl-mini-grid,
  .stpl-dashboard-grid,
  .stpl-form-grid{
    grid-template-columns: 1fr;
  }
  .stpl-span-2{
    grid-column: span 1;
  }
  .stpl-teacher-hero{
    flex-direction: column;
    align-items: flex-start;
  }
  .stpl-teacher-image{
    width: 100%;
    flex: none;
  }
  .stpl-filter-form{
    flex-direction:column;
  }
  .stpl-filter-form input,
  .stpl-filter-form button{
    width:100%;
  }
}


.stpl-portal-layout{
  display:flex;
  gap:24px;
  max-width:1400px;
  margin:30px auto;
  padding:0 16px 40px;
  align-items:flex-start;
}
.stpl-portal-sidebar{
  width:260px;
  flex:0 0 260px;
  position:sticky;
  top:20px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:20px;
  box-shadow:0 6px 18px rgba(0,0,0,0.04);
  padding:18px;
}
.stpl-portal-brand{
  font-size:20px;
  font-weight:800;
  margin-bottom:16px;
}
.stpl-portal-menu{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.stpl-portal-menu-link{
  display:block;
  padding:12px 14px;
  border-radius:12px;
  text-decoration:none;
  color:#1f2937;
  background:#f8fafc;
  border:1px solid transparent;
}
.stpl-portal-menu-link:hover{
  background:#eef2ff;
}
.stpl-portal-menu-link.is-active{
  background:#2563eb;
  color:#fff;
}
.stpl-portal-main{
  flex:1 1 auto;
  min-width:0;
}
.stpl-portal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
}
.stpl-portal-header h2{
  margin:0;
}
@media (max-width: 980px){
  .stpl-portal-layout{
    flex-direction:column;
  }
  .stpl-portal-sidebar{
    width:100%;
    flex:none;
    position:static;
  }
}
