/* Phone presentation follows the native mini program. Loaded only at <=700px. */
:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  --orange: #f47721;
  --orange-dark: #b94c06;
  --muted: #6e6258;
  --mobile-page-title: 1.25rem;
  --mobile-card-title: 1rem;
  --mobile-meta: .8125rem;
}

.app-main { padding-inline: 12px; }
.panel { padding: 14px; border-radius: 10px; box-shadow: none; }
.page-intro { margin-bottom: 16px; }
.primary-button { background: var(--orange); }
.course-catalog-top { margin-inline: -12px; padding-inline: 12px; }
.course-catalog-header h1 { position: relative; font-size: 1.125rem; }
.course-catalog-header h1::after {
  content: '';
  display: block;
  width: 16px;
  height: 3px;
  margin: 4px auto 0;
  border-radius: 4px;
  background: var(--orange);
}
.mobile-course-filters summary { font-size: .875rem; }
.mobile-home-hero { padding: 12px 12px 6px; margin-bottom: 8px; background: #fff1e5; }
.mobile-home-hero h2 { font-size: 1.125rem; font-weight: 600; }
.mobile-home-hero p { margin: 3px 0; font-size: .8125rem; }
.mobile-home-hero a { display: inline-flex; align-items: center; min-height: 34px; font-weight: 600; }
.pc-home-page .course-results { display: none; }
.pc-catalog-main .desktop-course-grid { padding-inline: 10px; border: 0; border-radius: 8px; }
.pc-catalog-main .desktop-course-card { grid-template-columns: 27% minmax(0, 1fr); gap: 10px; }
.mobile-course-cover { min-height: 76px; padding: 6px; font-weight: 600; background: #f6e7db; }
.desktop-course-card:nth-child(even) .mobile-course-cover { background: #f0eae4; }
.desktop-course-card .desktop-course-copy h2 { font-size: 1rem; font-weight: 650; }
.desktop-course-card .pc-course-teacher,
.mobile-course-category { margin-top: 3px; font-size: .8125rem; }
.mobile-course-action { padding: 2px 7px; background: #fff1e5; }
.mobile-filter-fields { background: #f7f5f3; }
.mobile-filter-fields > :is(button, a),
.mobile-filter-directions a { min-height: 44px; }

.jobs-page .catalog-filters .search-field { background: #f6f4f2; }
.jobs-page .job-filter-trigger { min-height: 44px; padding: 8px 12px; background: #fff2e8; border-color: #efcdb7; }
.job-card[data-job-summary] { padding: 12px; border-radius: 10px; }
.job-card-head h3 { font-size: 1.0625rem; font-weight: 650; }
.job-card-head .salary { font-size: 1rem; }
.job-card-company svg,
.job-card-inline-location,
.job-card-separator,
.job-card-actions { display: none; }
.job-card-requirements { gap: 6px; margin-top: 6px; }
.job-card-requirements > span:not(.job-card-inline-location):not(.job-card-separator) {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f4f2ef;
}
.job-card-tags { margin-top: 6px; }
.job-card-tags > span { background: var(--soft); color: var(--orange-dark); }
.job-card-location { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.jobs-page .jobs-access .guest-access { padding: 8px 10px; border-radius: 8px; }
.jobs-page .jobs-access .guest-access .primary-button { background: #fff; color: var(--orange-dark); border-radius: 999px; }
.job-filter-dialog { width: 100%; max-width: 100%; max-height: 100dvh; margin: auto 0 0; padding: 16px 12px max(16px, env(safe-area-inset-bottom)); border: 0; border-radius: 14px 14px 0 0; }
.job-region-columns { gap: 0; }
.job-region-columns strong { padding: 8px; }
.job-region-options { height: clamp(180px, 42dvh, 420px); border-radius: 0; padding: 0; gap: 0; }
.job-region-options button, .job-region-options p { min-height: 44px; padding: 10px 8px; }
.job-region-options button { border-radius: 0; }
.job-filter-actions { position: sticky; bottom: 0; padding-top: 12px; background: #fff; }
.job-filter-actions > button { flex: 1; min-height: 44px; font-size: .875rem; }

.profile-person { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; background: linear-gradient(150deg, #ffe0c6, #fff0e4); }
.profile-person .avatar { grid-row: 1 / 4; width: 46px; height: 46px; border-radius: 50%; }
.profile-person h2 { margin: 0; font-size: 1.125rem; }
.profile-person > p { margin: 0; }
.profile-edit-toggle { grid-column: 2; padding: 6px 0; width: fit-content; min-height: 32px; color: var(--orange-dark); font-size: .8125rem; text-align: left; }
.profile-edit-fields { grid-column: 1 / -1; min-width: 0; padding-top: 12px; }
.profile-edit-toggle[aria-expanded='false'] + .profile-edit-fields { display: none; }
.profile-edit-fields .secondary-button { margin: 8px 0 0; font-size: .8125rem; }
.profile-layout { gap: 12px; }
.profile-section { margin-bottom: 10px; }
.profile-section h2 { margin-bottom: 8px; }
.profile-section .saved-job { min-height: 44px; padding: 10px 0; font-size: .875rem; }
.profile-guest-identity { display: flex; align-items: center; gap: 12px; margin: -16px -12px 12px; padding: 24px 16px; background: linear-gradient(#ffe0c6, #faf9f7); }
.profile-guest-identity .avatar { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; }
.profile-guest-identity > div { flex: 1; min-width: 0; }
.profile-guest-identity h1 { font-size: 1.125rem; margin: 0; }
.profile-guest-identity p { margin-top: 4px; color: var(--muted); font-size: .8125rem; }
.profile-guest-identity > svg { width: 18px; flex-shrink: 0; }
.learning-cards { gap: 10px; }
.learning-card h2 { font-size: 1rem; }
.learning-card > .primary-button, .learning-card > .secondary-button { display: flex; width: min(100%, 190px); margin: 12px auto 0; justify-content: center; }
.learning-card .practice-history-link { display: flex; justify-content: center; min-height: 44px; align-items: center; }
.auth-page .login-panel { padding-inline: 14px; }
.auth-page .login-panel input { background: #faf9f7; border-radius: 8px; }
.auth-page .auth-card-heading h1 { font-size: 1.375rem; }
.auth-page .login-tabs { justify-content: flex-start; }
.auth-page .login-tabs button { min-height: 40px; }

.desktop-course-detail { display: flex; flex-direction: column; }
.desktop-course-utility .desktop-course-search { display: none; }
.desktop-course-hero { background: #54515e; color: #fff; border-radius: 10px; padding: 22px 16px; }
.desktop-course-hero h1 { color: #fff; }
.desktop-course-hero p, .desktop-course-progress { color: #eeeaf0; }
.desktop-course-hero .secondary-button { background: #fff; }
.desktop-course-sections { margin-top: 0; background: #fff; }
.desktop-course-detail > section { background: #fff; padding: 16px 12px; margin-top: 10px; border-radius: 10px; }
.desktop-course-detail #course-directory { order: 1; }
.desktop-course-detail #course-introduction { order: 2; }
.desktop-course-detail #course-jobs { order: 3; }
.desktop-chapter { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; min-height: 76px; padding: 14px 0; }
.desktop-chapter-index { display: none; }
.desktop-chapter-name { grid-column: 1 / 3; font-size: 1rem; }
.desktop-chapter-duration { grid-column: 1; grid-row: 2; }
.chapter-status { grid-column: 2; grid-row: 2; font-size: .8125rem; }
.desktop-chapter-icon { grid-column: 3; grid-row: 1 / 3; }
.lesson-reader { padding: 14px; border-radius: 10px; }
.lesson-reader > h1 { margin: 8px 0 16px; padding: 12px; background: var(--soft); border-radius: 8px; }
.lesson-reader > video { margin-block: 0 12px; border-radius: 8px; }
.lesson-reader #video-progress { padding: 12px; background: #fff8f2; border: 1px solid #f0dfd0; border-radius: 8px; }
.lesson-reader .quiz { padding: 12px; border-radius: 10px; }
.chapter-list { padding: 14px; border-radius: 10px; }
.chapter-list a { min-height: 48px; }
.access-banner { gap: 10px; padding: 12px; border-radius: 10px; }
.profile-layout .access-banner { display: flex; flex-wrap: nowrap; align-items: center; }
.profile-layout .access-banner > div { flex: 1; min-width: 0; }
.profile-layout .access-banner > a { flex-shrink: 0; margin: 0; white-space: nowrap; padding-inline: 10px; }
.panel.empty { padding: 24px 16px; }
.panel.empty p { margin-block: 8px 16px; }
.membership-panel { padding: 18px 14px; }
.membership-panel .member-price { font-size: 2rem; }
.panel > h1 + h2 { margin-top: 16px; }
.panel > p + h2 { margin-top: 20px; }
.panel > h2 + p { margin-top: 8px; }
.profile-guest .profile-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.profile-guest .profile-section h2 { grid-column: 1 / -1; }
.profile-guest .profile-section .saved-job { padding: 10px 8px; border: 0; border-radius: 6px; background: #faf9f7; }
.profile-guest .saved-job svg { flex-shrink: 0; width: 16px; }
