/* Learning Hub v12 — Knowledge Flow mobile experience. Desktop layout is preserved. */
.learn-mobile-nav,
.learn-mobile-more-sheet { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .app-shell { display: block; min-height: 100dvh; }
  .sidebar { display: none !important; }
  .mobile-menu { display: none !important; }
  .main-column { min-width: 0; width: 100%; }
  .topbar {
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 30;
    gap: 8px;
    padding: 0 14px;
    background: rgba(247,246,240,.94);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .topbar-left { min-width: 0; flex: 1; }
  .breadcrumb { min-width: 0; gap: 6px; overflow: hidden; font-size: 11px; white-space: nowrap; }
  .breadcrumb strong { overflow: hidden; text-overflow: ellipsis; }
  .topbar-actions { flex: 0 0 auto; gap: 6px; }
  .workspace-return-link { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 0; }
  .workspace-return-link span { display: none; }
  .workspace-return-link::first-letter { font-size: 18px; }
  .language-select { min-height: 40px; padding: 4px 8px; border-radius: 11px; }
  .language-select select { min-height: 30px; max-width: 104px; font-size: 13px; }
  .language-globe { display: none; }
  .profile-chip { min-height: 40px; padding: 4px; }
  .profile-text, .profile-chip .chevron { display: none; }
  .avatar { width: 30px; height: 30px; }
  .content-governance-banner { grid-template-columns: 32px minmax(0,1fr); gap: 10px; margin: 10px 14px 0; padding: 11px; border-radius: 14px; }
  .content-governance-mark { width: 30px; height: 30px; }
  .content-governance-banner strong { font-size: 13px; line-height: 1.3; }
  .content-governance-banner p { margin-top: 4px; font-size: 12px; line-height: 1.45; }
  .content-governance-status { grid-column: 2; justify-self: start; font-size: 10px; }
  .main-content { width: 100%; padding: 17px 14px calc(112px + env(safe-area-inset-bottom,0px)); }
  .hero-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .hero-panel { min-height: 0; padding: 23px 20px 25px; border-radius: 20px; }
  .hero-content { max-width: none; }
  .hero-panel h1 { max-width: 12ch; font-size: clamp(32px,9vw,39px); line-height: 1.04; letter-spacing: -1.6px; }
  .hero-kicker { margin: 18px 0 8px; font-size: 13px; }
  .hero-description { max-width: 38ch; margin: 13px 0 18px; font-size: 14px; line-height: 1.55; }
  .hero-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-buttons .button { min-width: 0; min-height: 48px; padding: 10px 11px; font-size: 12px; }
  .hero-proof { flex-wrap: wrap; margin-top: 19px; font-size: 11px; line-height: 1.4; }
  .hero-art { width: 34%; height: 52%; right: -20px; top: 110px; opacity: .16; pointer-events: none; }
  .art-core { right: 25px; top: 48px; width: 85px; height: 85px; border-radius: 24px; }
  .art-ring { right: 8px; top: 18px; width: 150px; height: 150px; }
  .ring-b { right: 26px; top: 36px; width: 112px; height: 112px; }
  .orbit-a { right: -35px; top: 40px; width: 190px; height: 115px; }
  .orbit-b { right: -12px; top: -5px; width: 155px; height: 220px; }
  .float-card { display: none; }
  .today-card { min-height: 0; padding: 16px; border-radius: 18px; }
  .today-label { font-size: 10px; letter-spacing: .9px; }
  .challenge-time { font-size: 11px; }
  .challenge-icon { width: 40px; height: 40px; margin: 15px 0 10px; }
  .today-card h2 { font-size: 19px; }
  .today-card > p { font-size: 14px; line-height: 1.5; margin: 8px 0 12px; }
  .challenge-options { gap: 8px; }
  .challenge-options button { min-height: 48px; padding: 11px 12px; font-size: 13px; line-height: 1.4; text-align: left; }
  .challenge-feedback { font-size: 13px; line-height: 1.45; }
  .challenge-foot { margin-top: 15px; padding-top: 10px; font-size: 11px; }
  .section-block { margin-top: 30px; }
  .section-heading { align-items: flex-start; gap: 10px; margin-bottom: 13px; }
  .section-heading h2 { margin: 7px 0 4px; font-size: 22px; letter-spacing: -.6px; }
  .section-heading p { font-size: 13px; line-height: 1.45; }
  .plain-link { min-height: 40px; font-size: 12px; }
  .path-grid, .department-grid, .catalog-grid { grid-template-columns: 1fr; gap: 9px; }
  .path-card { min-height: 136px; padding: 15px; border-radius: 16px; }
  .path-icon { width: 40px; height: 40px; }
  .path-tag { font-size: 10px; }
  .path-card h3 { margin: 11px 0 5px; font-size: 16px; }
  .path-card p { max-width: 34ch; font-size: 13px; line-height: 1.45; }
  .path-bottom { margin-top: 10px; font-size: 12px; }
  .department-card { min-height: 96px; padding: 13px; gap: 11px; border-radius: 15px; }
  .dept-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 20px; }
  .dept-meta { gap: 5px; font-size: 10px; letter-spacing: .45px; }
  .dept-copy h3 { margin: 5px 0 4px; font-size: 15px; line-height: 1.3; }
  .dept-copy p { font-size: 13px; line-height: 1.45; }
  .dept-arrow { font-size: 18px; }
  .quick-strip { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 14px; border-radius: 15px; }
  .quick-strip-icon { width: 42px; height: 42px; }
  .quick-strip-copy { min-width: calc(100% - 56px); }
  .quick-strip-copy strong { font-size: 14px; }
  .quick-strip-copy span { font-size: 12px; line-height: 1.4; }
  .quick-strip .button { width: 100%; min-height: 48px; }
  .catalog-toolbar { gap: 10px; }
  .search-field { width: 100%; max-width: none; height: 49px; border-radius: 13px; }
  .search-field input, .quick-search input { font-size: 16px; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; min-height: 42px; padding: 9px 13px; font-size: 12px; }
  .catalog-results-head { align-items: center; gap: 8px; margin-bottom: 9px; font-size: 12px; }
  .learning-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 7px 0 25px; }
  .learning-summary-main { grid-column: 1/-1; padding: 15px; }
  .learning-summary-main > span { font-size: 10px; }
  .learning-summary-main > strong { font-size: 27px; }
  .learning-summary-main small { font-size: 11px; line-height: 1.4; }
  .learning-stat { min-width: 0; min-height: 94px; padding: 13px; }
  .learning-stat strong { font-size: 24px; }
  .learning-stat small { font-size: 11px; }
  .learning-row { min-height: 68px; gap: 10px; padding: 11px; }
  .learning-row-copy b { font-size: 14px; line-height: 1.3; }
  .learning-row-copy small { font-size: 11px; line-height: 1.4; }
  .row-progress { font-size: 11px !important; }
  .quick-hero { padding: 21px 17px; border-radius: 18px; }
  .quick-hero h1 { font-size: 32px; }
  .quick-hero p { font-size: 14px; line-height: 1.5; }
  .assist-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .assist-side { max-width: none; }
  .assist-grid { grid-template-columns: 1fr; gap: 8px; }
  .course-hero { padding: 21px 18px; border-radius: 19px; }
  .course-hero h1 { font-size: 31px; }
  .course-hero p { font-size: 14px; line-height: 1.5; }
  .course-meta { gap: 6px; }
  .meta-pill { min-height: 32px; padding: 7px 9px; font-size: 11px; }
  .course-layout { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
  .course-aside { order: 0; padding: 14px; }
  .course-aside h3 { font-size: 16px; }
  .course-aside p { font-size: 13px; line-height: 1.5; }
  .lesson-item { min-height: 66px; padding: 12px; gap: 10px; border-radius: 13px; }
  .lesson-number { width: 36px; height: 36px; font-size: 12px; }
  .lesson-item b { font-size: 14px; line-height: 1.3; }
  .lesson-item small { font-size: 11px; line-height: 1.4; }
  .lesson-content { width: 100%; }
  .lesson-top { align-items: flex-start; flex-direction: column; gap: 8px; }
  .lesson-top .back-link { min-height: 42px; font-size: 13px; }
  .lesson-shell { padding: 17px 14px; border-radius: 17px; }
  .lesson-shell h1 { font-size: 29px; }
  .lesson-lead { font-size: 14px; line-height: 1.55; }
  .draft-banner { font-size: 12px; line-height: 1.5; }
  .lesson-step b { font-size: 14px; }
  .lesson-step p { font-size: 13px; line-height: 1.5; }
  .quiz-box { padding: 14px; border-radius: 14px; }
  .quiz-box h3 { font-size: 16px; line-height: 1.4; }
  .quiz-answers button { min-height: 48px; padding: 11px; font-size: 13px; line-height: 1.4; }
  .quiz-feedback { font-size: 13px; line-height: 1.45; }
  .lesson-actions { align-items: stretch; flex-direction: column; gap: 9px; }
  .lesson-actions small { font-size: 11px; line-height: 1.45; }
  .lesson-actions .button { width: 100%; min-height: 48px; }
  .button { min-height: 48px; font-size: 13px; }
  .site-footer { padding: 14px 14px calc(14px + env(safe-area-inset-bottom,0px)); flex-direction: column; gap: 8px; font-size: 11px; }
  .site-footer > span:last-child { flex-wrap: wrap; }
  .toast { left: 14px; right: 14px; bottom: calc(88px + env(safe-area-inset-bottom,0px)); width: auto; font-size: 13px; }
  .learn-mobile-nav {
    position: fixed;
    z-index: 140;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 2px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom,0px));
    border-top: 1px solid rgba(29,70,47,.12);
    background: rgba(250,250,246,.94);
    box-shadow: 0 -8px 28px rgba(17,54,35,.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
  }
  .learn-mobile-nav button {
    min-width: 0;
    min-height: 54px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 5px 2px;
    border: 0;
    border-radius: 13px;
    color: #718076;
    background: transparent;
    font: 700 11px/1.1 var(--body);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .learn-mobile-nav .mobile-nav-icon { font-size: 19px; line-height: 1; }
  .learn-mobile-nav button[aria-current="page"] { color: #184a35; background: #e6f0e5; box-shadow: inset 0 0 0 1px rgba(58,111,68,.12); }
  .learn-mobile-nav button:focus-visible { outline: 3px solid #83ad83; outline-offset: 2px; }
  .learn-mobile-more-sheet {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: min(82dvh,720px);
    margin: 0;
    padding: 0;
    overflow: auto;
    border: 1px solid rgba(36,82,52,.14);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    color: var(--ink);
    background: #fffefa;
    box-shadow: 0 -20px 70px rgba(6,30,17,.23);
  }
  .learn-mobile-more-sheet[open] { display: block; animation: learnSheetIn .24s cubic-bezier(.2,.8,.2,1) both; }
  .learn-mobile-more-sheet::backdrop { background: rgba(5,24,15,.48); backdrop-filter: blur(3px); }
  .learn-mobile-sheet-inner { padding: 10px 17px calc(22px + env(safe-area-inset-bottom,0px)); }
  .learn-mobile-sheet-handle { width: 38px; height: 4px; margin: 2px auto 14px; border-radius: 99px; background: #d9e1d8; }
  .learn-mobile-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
  .learn-mobile-sheet-head h2 { margin: 0; font: 800 21px/1.2 var(--display); letter-spacing: -.5px; }
  .learn-mobile-sheet-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #f7f8f4; font-size: 20px; }
  .learn-mobile-sheet-group { margin-top: 14px; }
  .learn-mobile-sheet-group h3 { margin: 0 0 8px; color: #849187; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
  .learn-mobile-sheet-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .learn-mobile-sheet-links .more-nav-link { min-width: 0; min-height: 60px; display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #e5eae2; border-radius: 13px; color: #254934; background: #fff; text-align: left; font-size: 13px; font-weight: 750; }
  .learn-mobile-sheet-links .more-nav-link .nav-icon { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #edf4e9; font-size: 17px; }
  .learn-mobile-sheet-links .more-nav-link .nav-count,
  .learn-mobile-sheet-links .more-nav-link .nav-live,
  .learn-mobile-sheet-links .more-nav-link .nav-new { display: none; }
  .learn-mobile-sheet-note { margin: 14px 1px 0; color: #839087; font-size: 12px; line-height: 1.5; }
}
@media (max-width: 380px) {
  .topbar-actions { gap: 4px; }
  .workspace-return-link { width: 36px; height: 36px; }
  .language-select { padding-inline: 6px; }
  .language-select select { max-width: 85px; font-size: 12px; }
  .hero-buttons { grid-template-columns: 1fr; }
  .learn-mobile-sheet-links { grid-template-columns: 1fr; }
}
@keyframes learnSheetIn { from { opacity: .55; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .learn-mobile-sheet[open] { animation: none !important; }
  .learn-mobile-nav button { transition: none !important; }
}
