/**
 * B2C Mobile Design
 */

@media (max-width: 778px) {
.b2c-desktop-only {
  display: none !important;
}

.b2c-mobile-only {
  display: block !important;
}
}

@media (min-width: 779px) {
.b2c-mobile-only {
  display: none !important;
}

.b2c-desktop-only {
  display: block !important;
}

.b2c-mobile-header-wrap,
.b2c-mobile-bottom-nav {
  display: none !important;
}
}

.b2c-mobile-header-wrap {
  display: none;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 16px;
}

@media (max-width: 778px) {
.b2c-mobile-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
}

.b2c-mobile-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.b2c-mobile-logo {
  height: 40px;
  max-height: 40px;
}

.b2c-mobile-brand {
  display: flex;
  flex-direction: column;
}

.b2c-mobile-brand-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.b2c-mobile-brand-subtitle {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.2;
}

.b2c-mobile-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.b2c-mobile-icon-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #4b5563;
}

.b2c-mobile-avatar,
.b2c-mobile-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5B3C66;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.b2c-mobile-avatar-btn {
  border: none;
  cursor: pointer;
}

.b2c-mobile-dropdown-menu {
  z-index: 1100;
  min-width: 200px;
}

.b2c-mobile-sticky-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.b2c-mobile-sticky-header-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.b2c-mobile-page-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
}

.b2c-mobile-page-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.2;
}

.b2c-mobile-filters-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px 12px;
}

.b2c-mobile-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.b2c-mobile-filters-btn:hover {
  background: #f9fafb;
  color: #374151;
}

.b2c-mobile-filter-panel {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 778px) {
  .b2c-mobile-filter-form.b2c-mobile-filter-form-open {
    position: sticky;
    top: var(--b2c-mobile-sticky-offset, 88px);
    z-index: 89;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
  }
}

.b2c-mobile-filter-section {
  padding: 12px 16px 16px;
}

.b2c-mobile-filter-label {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: block;
}

.b2c-mobile-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.b2c-mobile-filter-pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
  border: 1px solid #d1d5db;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.b2c-mobile-filter-pill:hover {
  background: #f9fafb;
}

.b2c-mobile-filter-pill.b2c-mobile-filter-pill-active {
  background: #5B3C66;
  color: #ffffff;
  border-color: #5B3C66;
}

.b2c-mobile-practice-count {
  font-size: 14px;
  color: #6b7280;
  padding: 10px 16px 16px;
}

.b2c-mobile-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0px 12px;
}

.b2c-mobile-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.b2c-mobile-group-dot-overdue {
  background: #dc2626;
}

.b2c-mobile-group-dot-week {
  background: #2563eb;
}

.b2c-mobile-group-dot-upcoming {
  background: #6b7280;
}

.b2c-mobile-group-dot-completed {
  background: #10b981;
}

.b2c-mobile-group-label {
  font-size: 14px;
  font-weight: 600;
  color: #6a7282;
}

.b2c-mobile-group-count {
  font-size: 14px;
  font-weight: 600;
  color: #6a7282;
}

.b2c-mobile-cards-container {
  padding: 0 16px 24px;
}

.b2c-mobile-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.b2c-mobile-card:last-child {
  margin-bottom: 0;
}

.b2c-mobile-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.b2c-mobile-card-icon-img {
  width: 32px;
  height: 32px;
  min-width: 32px;
  object-fit: contain;
}

.b2c-mobile-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.b2c-mobile-card-icon-use-of-english {
  background: #3b82f6;
}

.b2c-mobile-card-icon-reading {
  background: #10b981;
}

.b2c-mobile-card-icon-listening {
  background: #8b5cf6;
}

.b2c-mobile-card-icon-writing {
  background: #f59e0b;
}

.b2c-mobile-card-title-wrap {
  flex: 1;
  min-width: 0;
}

.b2c-mobile-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 2px 0;
}

.b2c-mobile-card-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.b2c-mobile-card-status {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  background: #f3f4f6;
  color: #4b5563;
}

.b2c-mobile-card-status-in-progress {
  background: #fef3c7;
  color: #92400e;
}

.b2c-mobile-card-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b2c-mobile-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #6b7280;
}

.b2c-mobile-card-meta svg {
  vertical-align: middle;
  margin-right: 4px;
}

.b2c-mobile-card-due-overdue {
  color: #dc2626 !important;
}

.b2c-mobile-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.b2c-mobile-card-action-start {
  background: #16a34a;
}

.b2c-mobile-card-action-start:hover {
  background: #16a34a;
  color: #ffffff;
}

.b2c-mobile-card-action-continue {
  background: #d48e28;
}

.b2c-mobile-card-action-continue:hover {
  background: #b8731f;
  color: #ffffff;
}

.b2c-mobile-card-action-results {
  background: #10b981;
}

.b2c-mobile-card-action-results:hover {
  background: #059669;
  color: #ffffff;
}

.b2c-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.b2c-mobile-bottom-nav-inner {
  display: flex;
  align-items: stretch;
}

@media (max-width: 778px) {
.b2c-mobile-bottom-nav {
  display: block;
}
}

.b2c-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 16px 12px;
  padding-top: 10px;
  text-decoration: none;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 500;
  position: relative;
  flex: 1;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

.b2c-mobile-nav-item.b2c-mobile-nav-active {
  color: #5B3C66;
  font-weight: 600;
}

.b2c-mobile-nav-item.b2c-mobile-nav-active .b2c-mobile-nav-icon {
  color: #5B3C66;
}

.b2c-mobile-nav-active-bar {
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: #5B3C66;
  border-radius: 0 0 2px 2px;
  pointer-events: none;
}

.b2c-mobile-nav-icon-wrap {
  position: relative;
}

.b2c-mobile-nav-icon {
  width: 24px;
  height: 24px;
  color: #9ca3af;
}

.b2c-mobile-nav-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #5B3C66;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 778px) {
body:has(.b2c-mobile-bottom-nav) {
  padding-bottom: 80px;
}
}

.b2c-mobile-filter-form {
  display: block;
}

.b2c-mobile-nav-homework-icon,
.b2c-mobile-nav-practice-icon,
.b2c-mobile-nav-profile-icon {
  width: 24px;
  height: 24px;
}

.b2c-profile-wrapper { background: #ffffff; min-height: 100vh; }
.b2c-profile-header { background: #ffffff; border-bottom: 1px solid #e5e7eb; }
.b2c-profile-header-row { gap: 1rem; }
@media (min-width: 576px) {
  .b2c-profile-header-row { gap: 1.5rem; }
}

@media (max-width: 767.98px) {
  .b2c-profile-wrapper .sh-title-divider {
    border-right: 0;
    padding-right: 0;
  }
}

.b2c-profile-title { font-size: 16px; font-weight: 700; color: #1f2937; margin: 0 0 2px 0; }
.b2c-profile-subtitle { font-size: 12px; color: #6b7280; margin: 0; }
.b2c-profile-target-label { font-size: 12px; color: #6b7280; display: block; }
.b2c-profile-select { margin-top: 4px; padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-weight: 600; color: #1f2937; background: #fff; }
.b2c-profile-tabs { background: #ffffff; border-bottom: 1px solid #f3f4f6; }
.b2c-profile-tabs-inner { display: flex; gap: 0; overflow-x: auto; }
.b2c-profile-tab { padding: 10px 16px; font-size: 14px; font-weight: 500; color: #6b7280; background: none; border: none; border-bottom: 2px solid transparent; cursor: default; white-space: nowrap; }
.b2c-profile-tab-disabled { cursor: not-allowed; opacity: 0.8; }
.b2c-profile-tab-active { color: #5D3D68; font-weight: 600; border-bottom-color: #5D3D68; }
.b2c-profile-tab-badge { font-size: 11px; padding: 2px 8px; border-radius: 9999px; margin-left: 6px; }
.b2c-profile-tab-badge-red { background: #fee2e2; color: #dc2626; }
.b2c-profile-tab-badge-gray { background: #f3f4f6; color: #6b7280; }
.b2c-profile-main { background: #f9fafb; }
.b2c-profile-mobile-filters { padding: 0 0 12px; }
.b2c-profile-skill-icon { width: 40px; height: 40px; min-width: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.b2c-profile-skill-icon-use-of-english { background: #dbeafe; color: #1d4ed8; }
.b2c-profile-skill-icon-reading { background: #d1fae5; color: #059669; }
.b2c-profile-skill-icon-listening { background: #ede9fe; color: #6d28d9; }
.b2c-profile-skill-icon-writing { background: #fce7f3; color: #be185d; }
.b2c-profile-skill-icon-speaking { background: #ffedd5; color: #c2410c; }
.b2c-profile-skill-icon-default { background: #f3f4f6; color: #4b5563; }
.b2c-profile-score { font-size: 16px; font-weight: 700; }
.b2c-profile-score-green { color: #059669; }
.b2c-profile-score-orange { color: #d97706; }
.b2c-profile-score-red { color: #dc2626; }
.b2c-profile-action-link { color: #5D3D68; text-decoration: none; }
.b2c-profile-action-link:hover { text-decoration: underline; color: #5D3D68; }
.b2c-profile-action-link.disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

.b2c-profile-wrapper {
  background: #ffffff;
  min-height: 100%;
}

.b2c-profile-header {
  border-bottom: 1px solid #e5e7eb;
}

.b2c-profile-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 2px 0;
}

.b2c-profile-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.b2c-profile-target-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.b2c-profile-select {
  padding: 4px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  background: #ffffff;
}

.b2c-profile-tabs {
  border-bottom: 1px solid #f3f4f6;
  overflow-x: auto;
}

.b2c-profile-tabs-inner {
  display: flex;
  gap: 0;
}

.b2c-profile-tab {
  padding: 10px 16px 12px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: none;
  color: #9ca3af;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.b2c-profile-tab-disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.b2c-profile-tab-active {
  color: #5D3D68;
  border-bottom-color: #5D3D68;
  font-weight: 600;
}

.b2c-profile-tab-badge {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.b2c-profile-tab-badge-red {
  background: #fee2e2;
  color: #b91c1c;
}

.b2c-profile-tab-badge-gray {
  background: #f3f4f6;
  color: #4b5563;
}

.b2c-profile-main {
  padding-bottom: 80px;
}

.b2c-profile-mobile-filters {
  padding: 0 0 12px;
}

.b2c-profile-skill-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.b2c-profile-skill-icon-use-of-english {
  background: #dbeafe;
  color: #1d4ed8;
}

.b2c-profile-skill-icon-reading {
  background: #d1fae5;
  color: #059669;
}

.b2c-profile-skill-icon-listening {
  background: #ede9fe;
  color: #7c3aed;
}

.b2c-profile-skill-icon-writing {
  background: #fce7f3;
  color: #db2777;
}

.b2c-profile-skill-icon-speaking {
  background: #ffedd5;
  color: #ea580c;
}

.b2c-profile-skill-icon-default {
  background: #f3f4f6;
  color: #6b7280;
}

.b2c-profile-score {
  font-size: 16px;
  font-weight: 700;
}

.b2c-profile-score-green {
  color: #059669;
}

.b2c-profile-score-orange {
  color: #d97706;
}

.b2c-profile-score-red {
  color: #dc2626;
}

.b2c-profile-action-link {
  color: #5D3D68;
  text-decoration: none;
  font-weight: 600;
}

.b2c-profile-action-link:hover {
  text-decoration: underline;
}

.b2c-profile-action-link.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

@media (max-width: 778px) {
.b2c-profile-wrapper {
  background: #ffffff;
  min-height: 100vh;
}

.b2c-profile-header {
  border-bottom: 1px solid #e5e7eb;
}

.b2c-profile-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
}

.b2c-profile-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.2;
}

.b2c-profile-target-label {
  font-size: 12px;
  color: #6b7280;
  display: block;
}

.b2c-profile-select {
  display: block;
  margin-top: 4px;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  background: #ffffff;
}

.b2c-profile-tabs {
  border-bottom: 1px solid #f3f4f6;
}

.b2c-profile-tabs-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.b2c-profile-tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  background: none;
  color: #9ca3af;
  cursor: default;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2c-profile-tab-active {
  color: #5D3D68;
  font-weight: 600;
  border-bottom-color: #5D3D68;
  cursor: default;
}

.b2c-profile-tab-disabled {
  opacity: 0.8;
}

.b2c-profile-tab-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.b2c-profile-tab-badge-red {
  background: #fee2e2;
  color: #991b1b;
}

.b2c-profile-tab-badge-gray {
  background: #f3f4f6;
  color: #4b5563;
}

.b2c-profile-main {
  padding-bottom: 100px;
}

.b2c-profile-mobile-filters {
  padding: 0 0 12px;
}

.b2c-profile-skill-icon-use-of-english {
  background: #dbeafe;
  color: #1d4ed8;
}

.b2c-profile-skill-icon-reading {
  background: #d1fae5;
  color: #047857;
}

.b2c-profile-skill-icon-listening {
  background: #ede9fe;
  color: #6d28d9;
}

.b2c-profile-skill-icon-writing {
  background: #fce7f3;
  color: #be185d;
}

.b2c-profile-skill-icon-speaking {
  background: #ffedd5;
  color: #c2410c;
}

.b2c-profile-skill-icon-default {
  background: #f3f4f6;
  color: #4b5563;
}

.b2c-profile-score-green {
  color: #059669;
  font-weight: 700;
}

.b2c-profile-score-orange {
  color: #d97706;
  font-weight: 700;
}

.b2c-profile-score-red {
  color: #dc2626;
  font-weight: 700;
}

.b2c-profile-action-link {
  color: #5D3D68;
  text-decoration: none;
}

.b2c-profile-action-link:hover {
  text-decoration: underline;
}

.b2c-profile-action-link.disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}
}

@media (max-width: 778px) {
  .b2c-hide-on-mobile {
    display: none !important;
  }
}

