@font-face {
  font-family: "Anuphan";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("fonts/anuphan-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: "Anuphan";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("fonts/anuphan-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #071b36;
  --blue: #1468e8;
  --blue-dark: #0d54c5;
  --blue-soft: #eef4ff;
  --band: #f6f9fe;
  --gold: #d9a52e;
  --gold-soft: #fff7e6;
  --green: #16845b;
  --text: #364d6a;
  --muted: #677b96;
  --line: #d7e2ef;
  --white: #fff;
  --content: 1180px;
  --gutter: 64px;
  --header-h: 72px;
  --font: "Anuphan", "Leelawadee UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body { margin: 0; color: var(--text); background: var(--white); font-family: var(--font); font-weight: 400; line-height: 1.58; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid rgba(36,107,253,.32); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; color: #fff; background: rgba(7,27,54,.97); border-bottom: 1px solid rgba(255,255,255,.13); box-shadow: 0 8px 28px rgba(3,15,31,.16); backdrop-filter: blur(14px); }
.header-inner { width: min(var(--content), calc(100% - var(--gutter))); min-height: var(--header-h); margin: 0 auto; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: 0 0 auto; }
.brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; }
.brand span { display: flex; align-items: center; gap: 5px; }
.brand strong, .brand small { display: block; line-height: 1.04; }
.brand strong { font-size: 1.03rem; letter-spacing: .015em; }
.brand small { margin-top: 0; font-size: 1.03rem; font-weight: 650; }
.course-code { display: flex; align-items: center; gap: 14px; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.18); color: #fff; white-space: nowrap; }
.course-code strong { font-size: .9rem; font-weight: 700; }
.course-code span { color: #9fb4cc; font-size: .75rem; }
.desktop-nav { margin-left: auto; display: flex; align-self: stretch; gap: 24px; }
.desktop-nav a { position: relative; display: flex; align-items: center; color: #c4d1e0; font-size: .84rem; font-weight: 650; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform .18s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: #fff; }
.desktop-nav a.active::after { transform: scaleX(1); }
.header-teacher { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; color: var(--navy); background: #f0cd77; border: 1px solid #f0cd77; border-radius: 7px; white-space: nowrap; font-size: .8rem; font-weight: 750; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.header-teacher:hover { color: var(--navy); background: #ffe19a; border-color: #ffe19a; transform: translateY(-1px); }
.header-teacher svg { width: 17px; height: 17px; }
.header-student { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; color: #fff; background: #1268e8; border: 1px solid #1268e8; border-radius: 7px; white-space: nowrap; font-size: .8rem; font-weight: 700; box-shadow: 0 6px 16px rgba(18,104,232,.18); transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.header-student:hover { color: #fff; background: #0b54c3; border-color: #0b54c3; transform: translateY(-1px); }
.header-student svg { width: 17px; height: 17px; }
.header-action, .primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; color: var(--white); background: var(--blue); border-radius: 7px; box-shadow: 0 6px 16px rgba(36,107,253,.16); font-size: .87rem; font-weight: 650; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.header-action:hover, .primary-action:hover { background: var(--blue-dark); transform: translateY(-1px); }
.header-action svg, .primary-action svg { width: 18px; height: 18px; }
.menu-button { display: none; width: 44px; height: 44px; padding: 0; place-items: center; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; cursor: pointer; }
.menu-button svg { width: 22px; height: 22px; }
.close-icon { display: none; }
.menu-button[aria-expanded="true"] .menu-icon { display: none; }
.menu-button[aria-expanded="true"] .close-icon { display: block; }
.mobile-nav { width: min(var(--content), calc(100% - var(--gutter))); margin: 0 auto; padding: 8px 0 20px; }
.mobile-nav a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 650; }
.mobile-nav .mobile-teacher { margin: 4px 0 8px; padding: 0 12px; color: var(--navy); background: #f0cd77; border: 1px solid #f0cd77; border-radius: 7px; }
.mobile-nav .mobile-student { margin: 4px 0 8px; padding: 0 12px; color: #fff; background: #1268e8; border: 1px solid #1268e8; border-radius: 7px; }
.mobile-nav .mobile-teacher span, .mobile-nav .mobile-student span { display: inline-flex; align-items: center; gap: 8px; }
.mobile-nav .mobile-teacher svg, .mobile-nav .mobile-student svg { width: 18px; height: 18px; }
.mobile-nav .mobile-start { margin-top: 12px; padding: 0 16px; color: var(--white); background: var(--blue); border: 0; border-radius: 8px; }

.lesson-hero { position: relative; overflow: hidden; color: #fff; background-image: linear-gradient(90deg, rgba(7,27,54,.98) 0%, rgba(7,27,54,.92) 38%, rgba(7,27,54,.5) 62%, rgba(7,27,54,.08) 100%), url("../pic/ariss-hero-teacher-v2.png"); background-position: center; background-size: cover; border-bottom: 1px solid rgba(255,255,255,.12); }
.lesson-hero::after { content: ""; position: absolute; inset: auto -150px -320px auto; width: 720px; height: 720px; border: 1px solid rgba(240,205,119,.2); border-radius: 50%; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: min(var(--content), calc(100% - var(--gutter))); min-height: 390px; margin: 0 auto; padding: 44px 0 42px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(310px, .72fr); gap: 46px; align-items: center; }
.hero-copy { padding-left: 0; }
.hero-kicker { margin: 0 0 12px; color: #f0cd77; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h1 { margin: 0; max-width: 760px; color: #fff; font-size: clamp(2.9rem, 4.7vw, 4.15rem); font-weight: 750; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.hero-copy h1 span { color: #f0cd77; }
.hero-copy > p { max-width: 660px; margin: 20px 0 0; color: #d4dfeb; font-size: 1rem; line-height: 1.78; }
.mobile-course-code, .mobile-lesson-time { display: none; }
.hero-actions { margin-top: 22px; display: flex; align-items: center; gap: 22px; }
.primary-action { min-height: 54px; padding: 0 26px; color: var(--navy); background: #f0cd77; box-shadow: 0 10px 28px rgba(217,165,46,.18); font-size: .92rem; }
.primary-action:hover { color: var(--navy); background: #ffe19a; }
.lesson-meta { display: grid; gap: 4px; color: #c3d2e2; font-size: .82rem; }
.lesson-meta span { display: flex; align-items: center; gap: 7px; }
.lesson-meta svg { width: 16px; height: 16px; color: #f0cd77; }
.teacher-card { align-self: end; max-width: 370px; margin-bottom: 8px; padding: 22px 24px; background: rgba(7,27,54,.76); border: 1px solid rgba(255,255,255,.2); border-left: 3px solid #f0cd77; border-radius: 10px; box-shadow: 0 18px 44px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.teacher-identity { display: flex; align-items: center; gap: 14px; }
.teacher-identity img { display: none; }
.teacher-identity span, .teacher-identity small, .teacher-identity strong { display: block; }
.teacher-identity small { color: #9fb4cc; font-size: .7rem; }
.teacher-identity strong { margin-top: 2px; color: #fff; font-size: .96rem; font-weight: 700; }
.teacher-card blockquote { margin: 14px 0 0; color: #fff; font-size: 1.03rem; line-height: 1.68; font-weight: 650; }
.teacher-card--mobile { display: none; }

.course-facts { position: relative; z-index: 3; width: min(var(--content), calc(100% - var(--gutter))); margin: -30px auto 18px; padding: 0; display: grid; grid-template-columns: .78fr 1.35fr 1.55fr .82fr; overflow: hidden; color: var(--text); background: rgba(255,255,255,.97); border: 1px solid rgba(216,225,236,.94); border-radius: 12px; box-shadow: 0 22px 54px rgba(7,27,54,.18); backdrop-filter: blur(14px); }
.course-facts div { min-width: 0; padding: 17px 22px; border-left: 1px solid var(--line); }
.course-facts div:first-child { border-left: 0; }
.course-facts dt { color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .04em; }
.course-facts dd { margin: 3px 0 0; color: var(--navy); font-size: .86rem; font-weight: 700; line-height: 1.45; }

.lesson-route { position: relative; z-index: 3; width: min(var(--content), calc(100% - var(--gutter))); margin: 0 auto 34px; padding: 18px 22px 16px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); list-style: none; color: var(--navy); background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 34px rgba(7,27,54,.11); }
.lesson-route::before { content: ""; position: absolute; top: 35px; right: 7%; left: 7%; height: 1px; background: #c9d6e5; }
.lesson-route li { position: relative; z-index: 1; min-width: 0; display: grid; justify-items: center; gap: 8px; text-align: center; }
.lesson-route span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy); background: #edf3f9; border: 1px solid #c9d6e5; border-radius: 50%; font-size: .76rem; font-weight: 750; }
.lesson-route strong { font-size: .7rem; font-weight: 700; white-space: nowrap; }
.lesson-route .is-current span { background: #f0cd77; border-color: #d9a52e; box-shadow: 0 0 0 4px rgba(217,165,46,.12); }

.presentation-hub { padding: 70px 0; overflow: hidden; color: #fff; background: radial-gradient(circle at 86% 6%, rgba(43, 139, 214, .24), transparent 35%), linear-gradient(135deg, #071b36 0%, #0b2a5b 62%, #123d73 100%); }
.presentation-inner { width: min(var(--content), calc(100% - var(--gutter))); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr); gap: 58px; align-items: center; }
.presentation-copy .section-kicker { color: #7fc7ff; }
.presentation-copy h2 { margin: 0; color: #fff; font-size: clamp(2rem, 3.2vw, 2.85rem); font-weight: 750; line-height: 1.18; letter-spacing: -.025em; }
.presentation-copy h2 span { color: #f3bf4e; }
.presentation-copy > p:not(.section-kicker):not(.presentation-note) { max-width: 620px; margin: 18px 0 0; color: #c9d7e9; font-size: .94rem; line-height: 1.75; }
.presentation-metrics { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.presentation-metrics span { padding: 16px 14px 16px 0; display: grid; grid-template-columns: auto 1fr; gap: 0 9px; align-items: center; }
.presentation-metrics span + span { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.14); }
.presentation-metrics b { grid-row: 1 / 3; color: #f3bf4e; font-size: 2rem; line-height: 1; }
.presentation-metrics small { color: #dce6f2; font-size: .7rem; line-height: 1.35; }
.presentation-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.presentation-actions a { min-height: 46px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px; font-size: .76rem; font-weight: 700; }
.presentation-actions svg { width: 16px; height: 16px; }
.presentation-primary { color: #071b36; background: #f3bf4e; box-shadow: 0 10px 28px rgba(243,191,78,.16); }
.presentation-primary:hover { background: #ffd16d; }
.presentation-secondary { color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.presentation-secondary:hover { background: rgba(255,255,255,.12); }
.presentation-note { margin: 15px 0 0; display: flex; align-items: flex-start; gap: 8px; color: #98b1cc; font-size: .7rem; line-height: 1.5; }
.presentation-note svg { flex: 0 0 auto; width: 17px; height: 17px; color: #65d0a7; }
.slide-viewer { overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: #fff; box-shadow: 0 34px 74px rgba(0,0,0,.28); transform: perspective(1400px) rotateY(-2deg); transform-origin: center; }
.slide-viewer__topbar { min-height: 44px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #294663; background: #f7f9fc; border-bottom: 1px solid #e2e9f1; font-size: .68rem; }
.slide-viewer__topbar span { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.slide-viewer__topbar i { width: 8px; height: 8px; display: block; background: #2e9e74; border-radius: 50%; box-shadow: 0 0 0 4px #dff4eb; }
.slide-viewer__canvas { position: relative; width: 100%; padding: 0; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9eef5; border: 0; cursor: pointer; }
.slide-viewer__canvas::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4,19,39,.68)); opacity: .38; transition: opacity .18s ease; }
.slide-viewer__canvas:hover::after, .slide-viewer__canvas:focus-visible::after { opacity: .78; }
.slide-viewer__canvas img { width: 100%; height: 100%; display: block; object-fit: cover; }
.slide-viewer__present { position: absolute; right: 16px; bottom: 14px; z-index: 2; min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; color: #fff; background: rgba(7,27,54,.88); border: 1px solid rgba(255,255,255,.26); border-radius: 7px; font-size: .66rem; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.slide-viewer__present svg { width: 15px; height: 15px; }
.slide-viewer__controls { min-height: 60px; padding: 0 14px; display: grid; grid-template-columns: 40px 1fr 40px; gap: 12px; align-items: center; color: #173653; background: #fff; border-top: 1px solid #e2e9f1; }
.slide-viewer__controls button { width: 36px; height: 36px; display: grid; place-items: center; color: #0b2a5b; background: #eef4fa; border: 0; border-radius: 50%; font: 600 1.55rem/1 var(--font); cursor: pointer; }
.slide-viewer__controls button:hover { color: #fff; background: #0b5fa5; }
.slide-viewer__controls div { text-align: center; }
.slide-viewer__controls strong, .slide-viewer__controls span { display: block; }
.slide-viewer__controls strong { color: #0b2a5b; font-size: .74rem; letter-spacing: .08em; }
.slide-viewer__controls span { margin-top: 2px; color: #7a8ea5; font-size: .61rem; }

.slide-presentation { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; overflow: hidden; color: #fff; background: #020b17; border: 0; }
.slide-presentation::backdrop { background: rgba(0,7,17,.96); backdrop-filter: blur(8px); }
.slide-presentation[open] { display: block; }
.slide-presentation:fullscreen { inset: 0; width: 100%; height: 100%; }
body.is-presenting { overflow: hidden; }
.slide-presenter__shell { width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; display: grid; grid-template-rows: 58px minmax(0,1fr) 50px; outline: none; background: radial-gradient(circle at 50% 42%, #10294b 0%, #061426 54%, #020b17 100%); }
.slide-presenter__header { padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(2,11,23,.9); border-bottom: 1px solid rgba(255,255,255,.12); }
.slide-presenter__header > div { display: flex; align-items: center; gap: 14px; }
.slide-presenter__header strong { color: #dce7f4; font-size: .74rem; }
.slide-presenter__live { display: inline-flex; align-items: center; gap: 8px; color: #71e3b5; font-size: .68rem; font-weight: 750; }
.slide-presenter__live i { width: 8px; height: 8px; display: block; background: #45ce98; border-radius: 50%; box-shadow: 0 0 0 5px rgba(69,206,152,.13); }
.slide-presenter__actions { margin-left: auto; }
.slide-presenter__actions button { min-height: 36px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; color: #dce7f4; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 7px; font: 650 .67rem/1 var(--font); cursor: pointer; }
.slide-presenter__actions button:hover { color: #fff; background: rgba(255,255,255,.15); }
.slide-presenter__actions svg { width: 16px; height: 16px; }
.slide-presenter__canvas { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.slide-presenter__canvas img { width: auto; max-width: 100%; height: auto; max-height: 100%; min-width: 0; min-height: 0; display: block; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.slide-presenter__nav { position: absolute; top: 50%; z-index: 3; width: 54px; height: 78px; display: grid; place-items: center; color: #fff; background: rgba(2,11,23,.62); border: 1px solid rgba(255,255,255,.2); font: 400 2.35rem/1 var(--font); cursor: pointer; transform: translateY(-50%); transition: background .16s ease, transform .16s ease; }
.slide-presenter__nav:hover { background: rgba(11,95,165,.9); transform: translateY(-50%) scale(1.03); }
.slide-presenter__nav--prev { left: 18px; border-radius: 10px 4px 4px 10px; }
.slide-presenter__nav--next { right: 18px; border-radius: 4px 10px 10px 4px; }
.slide-presenter__footer { padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #91a8c1; background: rgba(2,11,23,.94); border-top: 1px solid rgba(255,255,255,.12); font-size: .64rem; }
.slide-presenter__footer strong { color: #fff; font-size: .82rem; letter-spacing: .08em; }

.worksheet-overview { padding: 72px 0 78px; background: linear-gradient(180deg, #f5f8fd 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.worksheet-overview__inner { width: min(var(--content), calc(100% - var(--gutter))); margin: 0 auto; }
.worksheet-overview__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: end; }
.worksheet-overview__head h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.18; letter-spacing: -.025em; }
.worksheet-overview__head p:last-child { max-width: 760px; margin: 10px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.worksheet-overview__status { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; color: #8b640d; background: #fff8e8; border: 1px solid #efd79b; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.worksheet-overview__status svg { width: 17px; height: 17px; }
.worksheet-lock-note { margin-top: 24px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; color: #345678; background: #edf4fc; border: 1px solid #c8d9ec; border-radius: 10px; }
.worksheet-lock-note > svg { flex: 0 0 auto; width: 26px; height: 26px; color: var(--blue); }
.worksheet-lock-note span, .worksheet-lock-note strong, .worksheet-lock-note small { display: block; }
.worksheet-lock-note strong { color: var(--navy); font-size: .83rem; }
.worksheet-lock-note small { margin-top: 2px; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.worksheet-cards { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.worksheet-card { position: relative; min-height: 344px; padding: 24px; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(11,42,91,.055); }
.worksheet-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: #aebed1; }
.worksheet-card--main { border-color: #bbd2f0; box-shadow: 0 18px 44px rgba(36,107,253,.11); }
.worksheet-card--main::before { background: linear-gradient(90deg, var(--blue), #69a1ff); }
.worksheet-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.worksheet-card__top span { color: var(--blue); font-size: .69rem; font-weight: 750; letter-spacing: .035em; }
.worksheet-card__top em { color: var(--muted); font-size: .65rem; font-style: normal; white-space: nowrap; }
.worksheet-card h3 { margin: 18px 0 0; color: var(--navy); font-size: 1.24rem; line-height: 1.35; }
.worksheet-card > p { margin: 8px 0 0; color: var(--muted); font-size: .79rem; line-height: 1.62; }
.worksheet-card__outcome { margin: 18px 0 20px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.worksheet-card__outcome small, .worksheet-card__outcome strong { display: block; }
.worksheet-card__outcome small { color: var(--muted); font-size: .63rem; }
.worksheet-card__outcome strong { margin-top: 2px; color: var(--text); font-size: .76rem; }
.worksheet-card__locked { margin-top: auto; min-height: 58px; padding: 10px 12px; display: flex; align-items: center; gap: 11px; color: #6d7f95; background: #f3f6fa; border: 1px solid #e1e8f1; border-radius: 8px; cursor: not-allowed; }
.worksheet-card__locked > svg { flex: 0 0 auto; width: 21px; height: 21px; }
.worksheet-card__locked span, .worksheet-card__locked strong, .worksheet-card__locked small { display: block; }
.worksheet-card__locked strong { color: #405873; font-size: .74rem; }
.worksheet-card__locked small { margin-top: 1px; color: #8090a3; font-size: .63rem; }

.share-center { padding: 54px 0 52px; background: linear-gradient(180deg, #f6f9fe 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.share-inner { width: min(var(--content), calc(100% - var(--gutter))); margin: 0 auto; }
.share-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: end; }
.section-kicker { margin: 0 0 7px; color: var(--blue); font-size: .72rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.share-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em; }
.share-heading > div:first-child > p:last-child { max-width: 690px; margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.share-flow { display: flex; align-items: center; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 24px rgba(11,42,91,.05); }
.share-flow span { display: flex; align-items: center; gap: 7px; padding: 4px 11px; color: var(--muted); border-right: 1px solid var(--line); font-size: .68rem; white-space: nowrap; }
.share-flow span:last-child { border-right: 0; }
.share-flow b { width: 22px; height: 22px; display: grid; place-items: center; color: var(--white); background: var(--blue); border-radius: 50%; font-size: .68rem; }
.share-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.share-card { min-height: 150px; padding: 20px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px 14px; align-content: start; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 22px rgba(11,42,91,.035); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.share-card:hover { border-color: #b7c9df; box-shadow: 0 12px 28px rgba(11,42,91,.07); transform: translateY(-2px); }
.share-card--focus { border-color: #f1ca72; background: linear-gradient(145deg, #fff 45%, #fff9ec 100%); }
.share-no { width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 8px; font-size: .75rem; font-weight: 750; }
.share-card--focus .share-no { color: #986309; background: var(--gold-soft); }
.share-copy small { color: var(--blue); font-size: .67rem; font-weight: 700; }
.share-copy h3 { margin: 2px 0 0; color: var(--navy); font-size: .98rem; line-height: 1.35; }
.share-copy p { margin: 4px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.45; }
.share-actions { grid-column: 2; margin-top: 5px; display: flex; flex-wrap: wrap; gap: 7px; }
.share-actions a, .share-actions button { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--blue); background: var(--white); border: 1px solid #bfd0e5; border-radius: 6px; font-size: .7rem; font-weight: 650; cursor: pointer; }
.share-actions a:hover, .share-actions button:hover { background: var(--blue-soft); border-color: var(--blue); }
.share-actions .qr-button { color: var(--white); background: var(--blue); border-color: var(--blue); }
.share-actions .qr-button:hover { color: var(--white); background: var(--blue-dark); }
.share-actions svg { width: 15px; height: 15px; }
.management-note { margin-top: 14px; padding: 15px 18px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 13px; background: #eef7f3; border: 1px solid #cfe7db; border-radius: 9px; }
.management-note > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--green); background: var(--white); border-radius: 50%; }
.management-note p { margin: 0; color: #45645a; font-size: .76rem; line-height: 1.5; }
.management-note strong { display: block; color: #174d3a; font-size: .82rem; }
.management-note > a { min-height: 38px; padding: 0 13px; display: flex; align-items: center; gap: 7px; color: #174d3a; background: var(--white); border: 1px solid #a9d3c1; border-radius: 6px; font-size: .72rem; font-weight: 650; white-space: nowrap; }
.management-note > a svg { width: 15px; height: 15px; }

.lesson-workspace { width: min(var(--content), calc(100% - var(--gutter))); margin: 0 auto; padding: 16px 0 20px; display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(330px, .95fr); gap: 22px; align-items: start; }
.activity-panel, .evidence-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 8px 26px rgba(11,42,91,.035); }
.activity-panel { padding: 24px 24px 18px; }
.evidence-panel { position: sticky; top: calc(var(--header-h) + 18px); padding: 24px 22px 20px; }
.section-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.section-title h2 { margin: 0; color: var(--navy); font-size: 1.72rem; font-weight: 700; line-height: 1.28; letter-spacing: -.015em; }
.section-title p { margin: 6px 0 0; color: var(--muted); font-size: .83rem; }
.duration { display: flex; align-items: center; gap: 7px; color: var(--navy); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.duration svg { width: 18px; height: 18px; }

.activity-list, .evidence-list { margin: 18px 0 0; padding: 0; list-style: none; }
.activity-list { position: relative; }
.activity-list::before { content: ""; position: absolute; top: 30px; bottom: 30px; left: 16px; width: 1px; background: #becde0; }
.activity-list li { position: relative; }
.activity-list li::before { content: ""; position: absolute; top: 28px; left: 9px; width: 13px; height: 13px; background: var(--white); border: 2px solid #8fa5c1; border-radius: 50%; z-index: 2; }
.activity-list li.current::before { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.activity-list li.focus::before { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.activity-list a, .activity-list .activity-row { min-height: 64px; margin-left: 36px; padding: 10px 10px 10px 6px; display: grid; grid-template-columns: 82px minmax(0, 1fr) 22px; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); transition: background .16s ease, padding .16s ease; }
.activity-list li:last-child a, .activity-list li:last-child .activity-row { border-bottom: 0; }
.activity-list a:hover { padding-right: 6px; padding-left: 10px; background: var(--band); }
.activity-list li.current a { background: var(--blue-soft); border-radius: 8px; border-bottom-color: transparent; }
.activity-list li.focus a { background: var(--gold-soft); border-radius: 8px; border-bottom-color: transparent; }
.activity-time { color: var(--text); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.activity-main strong, .activity-main small { display: block; }
.activity-main strong { color: var(--navy); font-size: .91rem; font-weight: 650; line-height: 1.4; }
.activity-main small { margin-top: 2px; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.activity-evidence { display: none; color: var(--muted); font-size: .75rem; }
.activity-list a > svg { width: 18px; height: 18px; color: var(--blue); }
.teacher-led { color: var(--muted); font-size: .62rem; font-weight: 650; line-height: 1.25; text-align: center; }

.evidence-list { margin-top: 15px; }
.evidence-list li + li { border-top: 1px solid var(--line); }
.evidence-list a { min-height: 64px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 16px; gap: 9px; align-items: center; padding: 8px 0; }
.evidence-list a:hover strong, .evidence-list a:hover em { color: var(--blue-dark); }
.evidence-no { width: 22px; height: 22px; display: grid; place-items: center; color: transparent; background: var(--white); border: 2px solid #9fb2ca; border-radius: 50%; font-size: 0; }
.evidence-list li:first-child .evidence-no { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.evidence-list li:first-child .evidence-no::after { content: ""; width: 7px; height: 7px; background: var(--blue); border-radius: 50%; }
.evidence-list strong, .evidence-list small { display: block; }
.evidence-list strong { color: var(--navy); font-size: .82rem; font-weight: 650; line-height: 1.35; }
.evidence-list small { margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.evidence-list em { padding: 4px 8px; color: var(--blue); background: var(--blue-soft); border-radius: 999px; font-size: .67rem; font-style: normal; font-weight: 650; white-space: nowrap; }
.evidence-list svg { width: 16px; height: 16px; color: var(--blue); }
.pass-note { margin-top: 18px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; background: var(--band); border-left: 3px solid var(--blue); }
.pass-note > svg { flex: 0 0 auto; margin-top: 2px; color: var(--blue); }
.pass-note p { margin: 0; }
.pass-note strong, .pass-note span { display: block; }
.pass-note strong { color: var(--navy); font-size: .82rem; }
.pass-note span { margin-top: 4px; color: var(--muted); font-size: .72rem; line-height: 1.55; }

.resources { padding: 14px 0; background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.resources-inner { width: min(var(--content), calc(100% - var(--gutter))); margin: 0 auto; }
.section-title.compact { align-items: end; }
.section-title.compact > p { margin: 0; }
.resource-links { margin-top: 14px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.resource-links a { position: relative; min-height: 84px; padding: 12px 36px 12px 16px; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; align-items: center; border-right: 1px solid var(--line); transition: background .16s ease; }
.resource-links a:last-child { border-right: 0; }
.resource-links a:hover { background: var(--blue-soft); }
.resource-links .resource-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 7px; }
.resource-links .resource-icon svg { width: 22px; height: 22px; }
.resource-copy { min-width: 0; }
.resource-copy small, .resource-copy strong, .resource-copy em { display: block; }
.resource-copy small { color: var(--blue); font-size: .65rem; font-weight: 700; }
.resource-copy strong { margin-top: 2px; color: var(--navy); font-size: .82rem; font-weight: 650; }
.resource-copy em { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: .67rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.resource-links a > svg { position: absolute; right: 14px; top: 50%; width: 17px; height: 17px; color: var(--blue); transform: translateY(-50%); }

footer { background: var(--white); }
.footer-inner { width: min(var(--content), calc(100% - var(--gutter))); min-height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; }
.footer-brand span, .footer-brand strong { display: block; }
.footer-brand span { color: var(--muted); font-size: .7rem; }
.footer-brand strong { color: var(--navy); font-size: .72rem; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .7rem; text-align: right; }

.qr-dialog { width: min(510px, calc(100% - 30px)); padding: 0; color: var(--text); background: transparent; border: 0; overflow: visible; }
.qr-dialog::backdrop { background: rgba(7,25,52,.66); backdrop-filter: blur(4px); }
.qr-dialog__inner { position: relative; padding: 30px; text-align: center; background: var(--white); border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.qr-dialog__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); background: #f5f8fc; border: 0; border-radius: 50%; cursor: pointer; }
.qr-dialog__close:hover { color: var(--navy); background: #eaf0f8; }
.qr-dialog h2 { margin: 0; padding: 0 34px; color: var(--navy); font-size: 1.42rem; line-height: 1.35; }
.qr-help { max-width: 380px; margin: 8px auto 18px; color: var(--muted); font-size: .76rem; }
.qr-output { width: 264px; height: 264px; margin: 0 auto; padding: 12px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.qr-output canvas, .qr-output img { width: 240px !important; height: 240px !important; }
.qr-url { margin: 14px auto 0; padding: 9px 11px; display: block; overflow: hidden; color: #4b6480; background: #f5f8fc; border-radius: 6px; font: 500 .67rem/1.45 var(--font); text-overflow: ellipsis; white-space: nowrap; }
.qr-dialog__actions { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qr-dialog__actions button, .qr-dialog__actions a { min-height: 42px; padding: 0 9px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--blue); background: var(--white); border: 1px solid #bfd0e5; border-radius: 7px; font-size: .68rem; font-weight: 650; cursor: pointer; }
.qr-dialog__actions a { color: var(--white); background: var(--blue); border-color: var(--blue); }
.qr-dialog__actions svg { width: 15px; height: 15px; }
.copy-toast { position: fixed; right: 24px; bottom: 82px; z-index: 100; max-width: min(360px, calc(100% - 32px)); padding: 12px 16px; color: var(--white); background: #143d70; border-radius: 8px; box-shadow: 0 12px 36px rgba(11,42,91,.24); font-size: .76rem; font-weight: 600; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .18s ease, transform .18s ease; }
.copy-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .course-code span { display: none; }
  .desktop-nav { gap: 16px; }
  .header-action { padding: 0 14px; }
  .header-teacher { width: 40px; padding: 0; }
  .header-student { width: 40px; padding: 0; }
  .header-teacher span, .header-student span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-inner { gap: 28px; }
  .teacher-card { max-width: 330px; }
  .lesson-workspace { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr); }
  .activity-list a { grid-template-columns: 74px minmax(0, 1fr) 18px; gap: 10px; }
  .activity-list .activity-row { grid-template-columns: 74px minmax(0, 1fr) 56px; gap: 10px; }
  .share-heading { grid-template-columns: 1fr; gap: 18px; }
  .share-flow { justify-self: start; }
  .presentation-inner { grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); gap: 34px; }
  .presentation-metrics span { grid-template-columns: 1fr; }
  .presentation-metrics b { grid-row: auto; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header-inner { min-height: var(--header-h); }
  .brand img { width: 38px; height: 38px; }
  .brand span { display: block; }
  .brand small { margin-top: 2px; font-size: .7rem; font-weight: 600; }
  .course-code { margin-left: auto; padding-left: 0; border-left: 0; }
  .desktop-nav, .header-action { display: none; }
  .header-student { margin-left: 2px; }
  .menu-button { display: grid; }
  .lesson-hero { background-position: 62% center; }
  .hero-inner { min-height: 0; padding: 42px 0 40px; grid-template-columns: 1fr; gap: 22px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 8vw, 4rem); }
  .teacher-card { justify-self: start; max-width: 520px; margin: 0; padding: 19px 21px; border: 1px solid rgba(255,255,255,.2); border-left: 3px solid #f0cd77; }
  .teacher-card blockquote { margin-top: 16px; font-size: 1.05rem; }
  .lesson-workspace { grid-template-columns: 1fr; }
  .evidence-panel { position: static; }
  .share-grid { grid-template-columns: 1fr; }
  .resource-links { grid-template-columns: repeat(2, 1fr); }
  .resource-links a { border-bottom: 1px solid var(--line); }
  .resource-links a:nth-child(even) { border-right: 0; }
  .resource-links a:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .presentation-hub { padding: 54px 0; }
  .presentation-inner { grid-template-columns: 1fr; gap: 34px; }
  .slide-viewer { width: min(100%, 760px); transform: none; }
  .course-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-facts div:nth-child(3), .course-facts div:nth-child(4) { border-top: 1px solid var(--line); }
  .lesson-route { overflow-x: auto; grid-template-columns: repeat(8, minmax(104px, 1fr)); scrollbar-width: thin; }
  .lesson-route::before { right: 58px; left: 58px; width: 728px; }
  .worksheet-overview__head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .worksheet-overview__status { justify-self: start; }
  .worksheet-cards { grid-template-columns: 1fr; }
  .worksheet-card { min-height: 0; }
}

@media (max-width: 600px) {
  :root { --gutter: 32px; --header-h: 68px; }
  .header-inner, .mobile-nav, .hero-inner, .course-facts, .lesson-route, .presentation-inner, .worksheet-overview__inner, .share-inner, .lesson-workspace, .resources-inner, .footer-inner { width: min(100% - 32px, var(--content)); }
  .brand { gap: 9px; }
  .brand span { display: block; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: .96rem; }
  .brand small { font-size: .66rem; }
  .course-code { display: none; }
  .lesson-hero { overflow: hidden; background-image: linear-gradient(90deg, rgba(7,27,54,.98) 0%, rgba(7,27,54,.92) 62%, rgba(7,27,54,.58) 100%), url("../pic/ariss-hero-teacher-v2.png"); background-position: 68% center; }
  .hero-inner { padding: 30px 0 28px; gap: 18px; }
  .hero-copy { padding-left: 0; }
  .hero-kicker { display: none; }
  .mobile-course-code { display: block; margin: 0 0 8px; color: #f0cd77; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
  .hero-copy h1 { color: #fff; font-size: 2.35rem; line-height: 1.14; letter-spacing: -.025em; }
  .hero-copy h1 br { display: none; }
  .mobile-lesson-time { margin-top: 11px; display: flex; align-items: center; gap: 7px; color: #d5e0eb; font-size: .84rem; font-weight: 600; }
  .mobile-lesson-time svg { width: 19px; height: 19px; color: #f0cd77; }
  .hero-copy > p { margin-top: 15px; color: #d5e0eb; font-size: .92rem; line-height: 1.7; }
  .hero-actions { margin-top: 19px; align-items: stretch; flex-direction: column; gap: 0; }
  .primary-action { width: 100%; min-height: 52px; padding: 0 15px; border-radius: 7px; font-size: .88rem; }
  .lesson-meta { display: none; }
  .teacher-card--desktop { margin-top: 0; display: block; }
  .teacher-card--mobile { width: min(100% - 32px, var(--content)); margin: 0 auto; padding: 32px 0 38px; display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 22px; border: 0; border-top: 1px solid var(--line); }
  .teacher-card--mobile .teacher-identity { display: block; }
  .teacher-card--mobile .teacher-identity img { width: 82px; height: 82px; margin-bottom: 10px; }
  .teacher-card--mobile .teacher-identity small { font-size: .68rem; }
  .teacher-card--mobile .teacher-identity strong { font-size: .78rem; line-height: 1.45; }
  .teacher-card--mobile blockquote { align-self: center; margin: 0; font-size: .93rem; line-height: 1.72; }
  .course-facts { margin: -10px auto 14px; padding: 0; grid-template-columns: 1fr; }
  .course-facts div { padding: 11px 14px; border-left: 0; border-bottom: 1px solid var(--line); }
  .course-facts div:last-child { border-bottom: 0; }
  .course-facts dd { font-size: .8rem; }
  .lesson-route { margin-bottom: 24px; padding: 14px 12px 13px; grid-template-columns: repeat(8, 96px); gap: 0; }
  .lesson-route::before { top: 31px; right: auto; left: 47px; width: 672px; }
  .lesson-route span { width: 32px; height: 32px; }
  .lesson-route strong { font-size: .64rem; }
  .share-center { padding: 38px 0 36px; }
  .presentation-hub { padding: 42px 0; }
  .presentation-copy h2 { font-size: 1.9rem; }
  .presentation-copy > p:not(.section-kicker):not(.presentation-note) { font-size: .83rem; }
  .presentation-metrics { margin-top: 20px; }
  .presentation-metrics span { padding: 13px 7px; }
  .presentation-metrics span:first-child { padding-left: 0; }
  .presentation-metrics b { font-size: 1.6rem; }
  .presentation-metrics small { font-size: .63rem; }
  .presentation-actions { display: grid; grid-template-columns: 1fr; }
  .presentation-actions a { min-height: 48px; }
  .slide-viewer__topbar { min-height: 38px; }
  .slide-viewer__controls { min-height: 54px; }
  .slide-viewer__present { right: 9px; bottom: 9px; min-height: 32px; padding: 0 9px; font-size: .58rem; }
  .slide-presenter__shell { grid-template-rows: 52px minmax(0,1fr) 44px; }
  .slide-presenter__header { padding: 0 12px; }
  .slide-presenter__header strong, .slide-presenter__actions button span { display: none; }
  .slide-presenter__actions { gap: 7px!important; }
  .slide-presenter__actions button { width: 38px; padding: 0; justify-content: center; }
  .slide-presenter__nav { width: 40px; height: 58px; font-size: 1.8rem; }
  .slide-presenter__nav--prev { left: 8px; }
  .slide-presenter__nav--next { right: 8px; }
  .slide-presenter__footer { padding: 0 14px; }
  .slide-presenter__footer span { display: none; }
  .slide-presenter__footer strong { margin-left: auto; margin-right: auto; }
  .worksheet-overview { padding: 44px 0 48px; }
  .worksheet-overview__head h2 { font-size: 1.9rem; }
  .worksheet-overview__head p:last-child { font-size: .81rem; }
  .worksheet-overview__status { min-height: 38px; font-size: .68rem; }
  .worksheet-lock-note { padding: 14px; align-items: flex-start; }
  .worksheet-card { padding: 20px 18px; }
  .worksheet-card__top { align-items: flex-start; flex-direction: column; gap: 3px; }
  .worksheet-card h3 { margin-top: 13px; font-size: 1.12rem; }
  .share-heading { gap: 16px; }
  .share-heading h2 { font-size: 1.78rem; }
  .share-heading > div:first-child > p:last-child { font-size: .8rem; }
  .share-flow { width: 100%; padding: 0; display: grid; grid-template-columns: 1fr; border-radius: 8px; }
  .share-flow span { min-height: 42px; padding: 7px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .share-flow span:last-child { border-bottom: 0; }
  .share-grid { margin-top: 16px; }
  .share-card { padding: 16px 14px; grid-template-columns: 36px minmax(0,1fr); gap: 8px 10px; }
  .share-no { width: 34px; height: 34px; }
  .share-actions { grid-column: 1 / -1; margin-top: 7px; display: grid; grid-template-columns: .72fr 1fr 1.18fr; }
  .share-actions a, .share-actions button { min-height: 40px; padding: 0 8px; }
  .management-note { padding: 15px; grid-template-columns: 36px minmax(0,1fr); }
  .management-note > a { grid-column: 1 / -1; justify-content: center; }
  .lesson-workspace { padding: 30px 0 34px; gap: 26px; }
  .activity-panel, .evidence-panel { padding: 0; border: 0; border-radius: 0; }
  .section-title h2 { font-size: 1.58rem; }
  .section-title p { font-size: .8rem; }
  .duration { display: none; }
  .activity-list { margin-top: 18px; }
  .activity-list::before { left: 8px; }
  .activity-list li::before { left: 1px; }
  .activity-list a, .activity-list .activity-row { min-height: 78px; margin-left: 28px; padding: 11px 0; grid-template-columns: 62px minmax(0, 1fr) 18px; gap: 8px; }
  .activity-list a:hover { padding-right: 0; padding-left: 0; }
  .activity-list li.current a, .activity-list li.focus a { padding-right: 10px; padding-left: 10px; }
  .activity-time { align-self: start; padding-top: 2px; font-size: .76rem; white-space: normal; }
  .activity-main strong { font-size: .87rem; }
  .activity-main small { font-size: .7rem; }
  .activity-evidence { grid-column: 2; display: block; color: var(--blue); font-size: .68rem; font-weight: 600; }
  .activity-list a > svg { grid-column: 3; grid-row: 1 / 3; }
  .teacher-led { grid-column: 2; text-align: left; color: var(--blue); }
  .evidence-panel { padding-top: 6px; }
  .evidence-list a { min-height: 70px; }
  .pass-note { margin-top: 16px; }
  .resources { padding: 34px 0 38px; }
  .section-title.compact { align-items: flex-start; flex-direction: column; }
  .resource-links { grid-template-columns: 1fr; }
  .resource-links a { min-height: 76px; padding: 12px 36px 12px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .resource-links a:last-child { border-bottom: 0; }
  .footer-inner { min-height: 140px; padding: 24px 0; align-items: flex-start; flex-direction: column; justify-content: center; gap: 14px; }
  .footer-inner p { text-align: left; }
  .qr-dialog__inner { padding: 28px 18px 20px; }
  .qr-output { width: 244px; height: 244px; padding: 8px; }
  .qr-output canvas, .qr-output img { width: 226px !important; height: 226px !important; }
  .qr-dialog__actions { grid-template-columns: 1fr; }
  .copy-toast { right: 16px; bottom: 76px; }
}

@media (max-width: 370px) {
  .brand strong { font-size: .86rem; }
  .brand small { font-size: .6rem; }
  .teacher-card--mobile { grid-template-columns: 1fr; }
  .progress-rail a { font-size: .61rem; }
  .progress-rail span { width: 29px; height: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Teacher-controlled 60-minute activity journey */
.activity-journey{padding:76px 24px 92px;background:linear-gradient(180deg,#f4faff 0%,#fff 34%,#f9fcff 100%);border-top:1px solid #dceaf6}
.activity-journey__inner{width:min(1180px,100%);margin:auto}
.activity-journey__head{display:grid;grid-template-columns:minmax(0,1fr) 310px;align-items:end;gap:56px;margin-bottom:34px}
.activity-journey__head h2{max-width:760px;margin:6px 0 14px;color:#0a2d55;font-size:clamp(35px,3.6vw,47px);font-weight:800;line-height:1.13;letter-spacing:-.025em}.activity-journey__head h2 span{color:#0b74bd}.activity-journey__head>div>p:last-child{max-width:760px;margin:0;color:#587189;font-size:16px;line-height:1.75}
.activity-live-status{display:flex;align-items:center;gap:13px;padding:17px 18px;border:1px solid #cfdfec;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 10px 28px rgba(24,78,121,.08)}.activity-live-status__pulse{flex:0 0 auto;width:14px;height:14px;border:4px solid #e5edf3;border-radius:50%;background:#9aabb9}.activity-live-status strong,.activity-live-status small{display:block}.activity-live-status strong{color:#234867;font-size:15px}.activity-live-status small{margin-top:2px;color:#75899a;font-size:12px;line-height:1.45}.activity-live-status.has-open{border-color:#8fd4bd;background:#effbf6;box-shadow:0 12px 30px rgba(13,135,101,.11)}.activity-live-status.has-open .activity-live-status__pulse{border-color:#c7f0e3;background:#17a97c;box-shadow:0 0 0 5px rgba(23,169,124,.09)}
.activity-phases{overflow:hidden;border:1px solid #d7e5f0;border-radius:22px;background:#fff;box-shadow:0 22px 55px rgba(28,75,111,.09)}
.activity-phase{display:grid;grid-template-columns:220px minmax(0,1fr);border-bottom:1px solid #dde8f1;background:#fff}.activity-phase:last-child{border-bottom:0}
.activity-phase__label{position:relative;display:flex;align-items:flex-start;gap:14px;padding:27px 24px;background:#f7fbfe;border-right:1px solid #dde8f1}.activity-phase__label::after{content:"";position:absolute;left:45px;top:76px;bottom:-28px;width:1px;background:#cdddeb}.activity-phase:last-child .activity-phase__label::after{display:none}.activity-phase__label>span{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 auto;width:43px;height:43px;border:1px solid #b7d6ed;border-radius:50%;background:#fff;color:#0b72b8;font-size:15px;font-weight:900;box-shadow:0 5px 14px rgba(32,102,153,.08)}.activity-phase__label small,.activity-phase__label strong{display:block}.activity-phase__label small{margin-top:3px;color:#3d89bd;font-size:9px;font-weight:900;letter-spacing:.13em}.activity-phase__label strong{margin-top:5px;color:#153a60;font-size:15px;line-height:1.4}
.activity-phase--create .activity-phase__label{background:#eef8ff}.activity-phase--create .activity-phase__label>span{border-color:#0b74bd;background:#0b74bd;color:#fff;box-shadow:0 7px 18px rgba(11,116,189,.2)}.activity-phase--finish .activity-phase__label{background:#fffbf0}.activity-phase--finish .activity-phase__label>span{border-color:#e6c66f;background:#fff5d6;color:#9b6500}
.learning-list{display:grid;align-content:start}.learning-list--finish{grid-template-columns:1fr}
.activity-card{display:grid;grid-template-columns:46px minmax(0,1fr) 138px 116px;align-items:center;gap:15px;min-height:88px;padding:15px 20px;border:0;border-bottom:1px solid #e5edf3;border-radius:0;background:#fff;transition:background-color .18s,box-shadow .18s}.activity-card:last-child{border-bottom:0}.activity-card:hover{background:#f8fbfe}.activity-card--featured{background:linear-gradient(90deg,#edf7ff 0%,#f8fcff 44%,#fff 100%);box-shadow:inset 4px 0 #2184ca}.activity-card--featured:hover{background:linear-gradient(90deg,#e7f4ff 0%,#f7fbff 48%,#fff 100%)}
.activity-card__no{display:grid;place-items:center;width:40px;height:40px;border:1px solid #d4e2ed;border-radius:10px;background:#f4f8fb;color:#5f7486;font-size:12px;font-weight:900}.activity-card__copy{min-width:0}.activity-card__copy small{color:#71879a;font-size:11px;font-weight:750}.activity-card__copy h3{margin:3px 0 2px;color:#153a60;font-size:16px;line-height:1.35}.activity-card__copy p{margin:0;overflow:hidden;color:#688094;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.activity-card__state{display:flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:0 10px;color:#617789;background:#f3f6f8;border:1px solid #dce4ea;border-radius:999px;font-size:11px;white-space:nowrap}.activity-card__state svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9}.activity-card__action{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border:1px solid #dde5eb;border-radius:9px;background:#f5f7f9;color:#768794;font-size:12px;font-weight:850;text-decoration:none;white-space:nowrap;pointer-events:none}
.activity-card.is-open{background:#f1fbf7;box-shadow:inset 4px 0 #13a274}.activity-card.is-open:hover{background:#ebf9f4}.activity-card.is-open .activity-card__no{border-color:#9ddcc8;background:#dff6ed;color:#087e68}.activity-card.is-open .activity-card__state{color:#05785d;background:#dff7ed;border-color:#a8dfcc}.activity-card.is-open .activity-card__action{border-color:#0c9872;background:#0c9872;color:#fff;box-shadow:0 7px 18px rgba(12,152,114,.18);pointer-events:auto}.activity-card.is-open .activity-card__action:hover{background:#087e68}
@media(max-width:900px){.activity-journey__head{grid-template-columns:1fr;gap:24px}.activity-live-status{max-width:430px}.activity-phase{grid-template-columns:1fr}.activity-phase__label{align-items:center;padding:18px 20px;border-right:0;border-bottom:1px solid #dde8f1}.activity-phase__label::after{display:none}}
@media(max-width:640px){.activity-journey{padding:54px 14px 68px}.activity-journey__head{margin-bottom:24px}.activity-journey__head h2{font-size:31px;line-height:1.16}.activity-journey__head>div>p:last-child{font-size:15px}.activity-live-status{padding:14px 15px}.activity-phases{border-radius:17px}.activity-phase__label{padding:15px}.activity-phase__label>span{width:39px;height:39px}.activity-card{grid-template-columns:38px minmax(0,1fr);grid-template-areas:"no copy" ". state" ". action";gap:8px 10px;min-height:0;padding:15px}.activity-card__no{grid-area:no;width:36px;height:36px}.activity-card__copy{grid-area:copy}.activity-card__copy h3{font-size:14px}.activity-card__copy p{margin-top:3px;display:block;font-size:11px;line-height:1.48;white-space:normal}.activity-card__state{grid-area:state;justify-self:start;min-height:30px;padding:0 9px}.activity-card__action{grid-area:action;justify-self:stretch;min-height:39px;padding:0 10px;font-size:11px}}
