:root {
    --ink: #20332f;
    --muted: #71817c;
    --green: #167f68;
    --green-dark: #126653;
    --mint: #e5f4ed;
    --line: #e5ece8;
    --paper: #fbfcfa;
    --white: #fff;
    --coral: #ed8c7c;
    --font-body: "DM Sans", "Segoe UI", sans-serif;
    --font-display: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--ink); background: #c9efdf; }

.site-header { position: relative; z-index: 3; background: rgba(251,252,250,.94); border-bottom: 1px solid rgba(226,235,230,.75); }
.nav-wrap { width: min(1160px, calc(100% - 48px)); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.7px; }
.brand-mark { width: 35px; height: 35px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--green); background: #e5f2eb; font-size: 22px; }
.brand-mark svg { width: 25px; height: 25px; }
.brand-dot { color: var(--coral); }
.brand-academy { color: #82908a; font-size: 13px; font-weight: 600; letter-spacing: -.2px; margin-left: 3px; }
.nav-links { display: flex; align-items: center; gap: 32px; color: #65756e; font-size: 13px; font-weight: 600; }
.nav-links a, .nav-link-button { transition: color .18s ease; }
.nav-links a:hover, .nav-link-button:hover { color: var(--green); }
.nav-admin { padding: 10px 17px; color: var(--green) !important; background: #eaf5ef; border-radius: 30px; }
.nav-member { color: var(--green); }
.nav-form { display: inline; }
.nav-link-button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font-weight: 600; }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; border-radius: 8px; padding: 8px 12px; color: var(--ink); }

.hero { position: relative; width: min(1160px, calc(100% - 48px)); min-height: 535px; margin: 48px auto 0; padding: 63px 5.3%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; border-radius: 30px; background: linear-gradient(118deg, #f1f8f2 4%, #f5f8ee 58%, #fbf3e7 100%); }
.hero-copy { position: relative; z-index: 1; padding-bottom: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #638277; font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: 1.4px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #f0ad5d; box-shadow: 0 0 0 4px rgba(240,173,93,.15); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 20px 0 16px; max-width: 540px; font-family: var(--font-display); font-size: clamp(42px, 5vw, 63px); line-height: 1.1; letter-spacing: -3.2px; font-weight: 700; }
.hero h1 span, .admin-heading h1 span, .locked-card h1 span { color: var(--green); }
.hero-lede { max-width: 420px; margin-bottom: 25px; color: #697a73; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 0 20px; border: 0; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 7px 15px rgba(22,127,104,.14); }
.button-primary:hover { background: var(--green-dark); box-shadow: 0 9px 20px rgba(22,127,104,.2); }
.button-quiet { color: #566a63; background: transparent; padding-left: 10px; }
.button-light { color: var(--green-dark); background: white; box-shadow: 0 8px 20px rgba(18,70,56,.12); }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.avatar-stack { display: flex; padding-left: 2px; }
.avatar-stack span { width: 29px; height: 29px; margin-left: -3px; display: grid; place-items: center; border: 2px solid #f5f8f1; border-radius: 50%; color: #fff; background: #7bad9a; font-size: 10px; font-weight: 700; }
.avatar-stack span:nth-child(2) { background: #e5a078; }
.avatar-stack span:nth-child(3) { background: #8193ce; }
.hero-proof p { margin: 0; color: #6b7b74; font-size: 11px; line-height: 1.55; }
.hero-proof strong { color: #3a554b; font-size: 11px; }
.hero-art { position: relative; z-index: 1; min-height: 410px; display: grid; place-items: center; }
.art-wash { position: absolute; width: 350px; height: 350px; border-radius: 48% 52% 56% 44%; background: radial-gradient(circle at 54% 46%, #fff8df 0, #f9f0d8 42%, rgba(234,244,227,.25) 70%); }
.molecule-art { position: relative; width: min(100%, 500px); overflow: visible; }
.orbit-a { transform-origin: 260px 233px; animation: orbit-drift 17s ease-in-out infinite alternate; }
.art-label { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.9); border-radius: 8px; background: rgba(255,255,255,.82); color: #5b7068; box-shadow: 0 8px 25px rgba(45,76,58,.07); font-size: 10px; font-weight: 600; }
.label-one { top: 54px; left: 2px; transform: rotate(-4deg); }
.label-two { right: 0; bottom: 72px; transform: rotate(3deg); }
.label-dot { width: 8px; height: 8px; border-radius: 50%; }
.label-dot.green { background: #5fc8a0; }.label-dot.orange { background: #efa95d; }
.art-caption { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; color: #718076; white-space: nowrap; font-size: 10px; }
.caption-icon { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; color: #bd8f3c; background: #f9e9c5; }
.hero-shape { position: absolute; opacity: .7; border-radius: 50%; }
.shape-a { width: 10px; height: 10px; top: 18%; left: 49%; background: #f5bb69; }
.shape-b { width: 14px; height: 14px; right: 5%; top: 24%; background: #89cdb3; }
@keyframes orbit-drift { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(4deg) translateY(-7px); } }

.stats-row { width: min(980px, calc(100% - 60px)); min-height: 105px; margin: 0 auto; display: flex; align-items: center; gap: 36px; border-bottom: 1px solid var(--line); }
.stats-row > div:not(.stats-note) { display: flex; flex-direction: column; gap: 1px; }
.stats-row strong { font-family: var(--font-display); font-size: 21px; letter-spacing: -.8px; }
.stats-row span { color: #85928c; font-size: 10px; }
.stats-row i { width: 1px; height: 28px; background: #e4ebe7; }
.stats-note { margin-left: auto; color: #839087; font-family: var(--font-display); font-size: 12px; font-style: italic; }

.courses-section { width: min(1160px, calc(100% - 48px)); margin: 76px auto 94px; scroll-margin-top: 35px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2, .admin-heading h1 { margin: 9px 0 6px; font-family: var(--font-display); font-size: clamp(29px, 3.4vw, 39px); line-height: 1.2; letter-spacing: -1.6px; }
.section-heading h2 span { color: var(--green); }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.course-arrows { display: flex; align-items: center; gap: 8px; color: #849a8d; font-size: 19px; }
.course-arrows span:first-child { color: #e5aa54; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.course-card { min-height: 237px; padding: 22px 23px 18px; display: flex; flex-direction: column; border: 1px solid rgba(30,75,56,.04); border-radius: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 13px 30px rgba(42,80,61,.09); }
.course-card.mint { background: #edf6ef; }.course-card.peach { background: #fbf0e9; }.course-card.lilac { background: #f2effa; }.course-card.sky { background: #edf4f8; }
.course-card-top, .course-card-bottom { display: flex; align-items: center; justify-content: space-between; }
.course-tag { color: #78877f; font-size: 9px; letter-spacing: 1px; font-weight: 700; }
.course-card-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #39876d; background: rgba(255,255,255,.7); font-size: 17px; }
.peach .course-card-icon { color: #d78a67; }.lilac .course-card-icon { color: #8078b1; }.sky .course-card-icon { color: #5a91b0; }
.course-card h3 { margin: 20px 0 6px; font-family: var(--font-display); font-size: 17px; line-height: 1.4; letter-spacing: -.5px; }
.course-card > p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-bottom: 17px; color: #73817a; font-size: 12px; line-height: 1.65; }
.course-card-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(40,70,57,.09); color: #829087; font-size: 10px; }
.course-card-bottom a { color: #28775f; font-weight: 700; }
.empty-state { padding: 64px 22px; text-align: center; border: 1px dashed #dbe7df; border-radius: 17px; background: #fff; }
.empty-state h2, .empty-state h3 { margin: 9px 0; font-family: var(--font-display); font-size: 22px; letter-spacing: -.7px; }
.empty-state p { margin: 0 auto 18px; max-width: 450px; color: var(--muted); font-size: 13px; }
.empty-icon { width: 44px; height: 44px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 15px; color: #a17b36; background: #fbf1d8; font-size: 23px; }
.join-banner { position: relative; width: min(1160px, calc(100% - 48px)); min-height: 260px; margin: 0 auto 80px; padding: 40px 6%; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; border-radius: 20px; background: linear-gradient(105deg, #e6f4eb, #f0f7ed 66%, #f7f5e9); }
.join-banner .eyebrow { color: #668c7a; }
.join-banner h2 { margin: 10px 0 9px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 35px); letter-spacing: -1px; line-height: 1.22; }
.join-banner h2 span { color: var(--green); }
.join-banner p { margin: 0; color: #728078; font-size: 12px; }
.join-decoration { position: absolute; right: 28%; top: -60px; color: rgba(106,174,144,.11); font-size: 270px; line-height: 1; }
.join-banner .button { position: relative; z-index: 1; white-space: nowrap; }

.site-footer { min-height: 100px; padding: 24px max(24px, calc((100% - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #85918b; font-size: 10px; }
.site-footer .brand { color: var(--ink); font-size: 15px; }.site-footer .brand-mark { width: 28px; height: 28px; font-size: 17px; }.site-footer .brand-academy { font-size: 11px; }
.site-footer p { margin: 0; }
.notice, .setup-notice { width: min(800px, calc(100% - 36px)); margin: 20px auto 0; padding: 13px 17px; border: 1px solid #cce8d9; border-radius: 9px; color: #28694d; background: #eff9f2; font-size: 13px; }
.notice-error { border-color: #f1d2c8; color: #904c3c; background: #fff3ef; }
.notice-info { border-color: #d7e3ed; color: #436579; background: #f1f7fb; }
.setup-notice { margin-top: 30px; color: #755e30; border-color: #f1e0b7; background: #fff9e9; }
.setup-notice p { margin: 5px 0 0; font-size: 13px; }
.setup-notice a { text-decoration: underline; font-weight: 700; }

.page-wrap { width: min(960px, calc(100% - 48px)); min-height: 55vh; margin: 38px auto 80px; }
.back-link { display: inline-block; margin-bottom: 25px; color: #668078; font-size: 12px; font-weight: 600; }
.back-link:hover { color: var(--green); }
.detail-hero { padding: 49px 7%; border-radius: 20px; background: linear-gradient(120deg, #e9f5ed, #f5f5e9); }
.detail-hero h1 { margin: 12px 0; font-family: var(--font-display); font-size: clamp(35px, 5vw, 53px); letter-spacing: -2px; line-height: 1.15; }
.detail-hero > p { max-width: 650px; color: #6e7c75; }
.detail-meta { display: flex; gap: 20px; color: #688178; font-size: 11px; font-weight: 600; }
.topic-list { margin-top: 27px; display: grid; gap: 14px; }
.topic-block { padding: 27px; display: grid; grid-template-columns: 42px 1fr; gap: 19px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.topic-number { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; color: #b98c43; background: #fbf3df; font-size: 19px; }
.topic-main .eyebrow { font-size: 9px; }
.topic-main h2, .topic-main h3 { margin: 4px 0 7px; font-family: var(--font-display); font-size: 22px; letter-spacing: -.8px; }
.topic-main > p { color: var(--muted); font-size: 13px; }
.objectives { margin: 19px 0; padding: 17px 19px; border-radius: 10px; background: #f4f8f4; font-size: 12px; }
.objectives strong { color: #466657; }
.objectives ul { margin: 9px 0 0; padding-left: 19px; color: #697d72; }
.objectives li { padding: 2px 0; }
.chapter-list { display: grid; gap: 12px; }
.chapter { padding: 15px 16px; border: 1px solid #e8eee9; border-radius: 9px; }
.chapter h2, .chapter h3 { margin: 0 0 7px; font-family: var(--font-display); font-size: 14px; }
.topic-locked { background: #fbfcfa; }
.chapter-locked { display: grid; gap: 8px; color: #78877f; background: #fafbf9; font-size: 11px; }
.lesson-locked { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #eff2ef; color: #78877f; font-size: 11px; }
.text-link { color: var(--green); font-size: 10px; font-weight: 700; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.lesson { border-top: 1px solid #eff2ef; }
.lesson summary { display: flex; justify-content: space-between; padding: 11px 0; color: #567166; cursor: pointer; font-size: 12px; font-weight: 600; }
.lesson summary span { color: var(--green); font-size: 17px; }
.lesson[open] summary span { transform: rotate(45deg); }
.lesson-content { padding: 0 0 12px; color: #65746d; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.chapter-disclosure { border: 1px solid #e8eee9; border-radius: 12px; background: #fff; overflow: hidden; }
.chapter-disclosure > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; }
.chapter-disclosure > summary::-webkit-details-marker { display: none; }
.chapter-disclosure > summary h2 { margin: 3px 0 0; }
.chapter-disclosure > summary .chapter-toggle { color: var(--green); font-size: 18px; transition: transform .2s ease; }
.chapter-disclosure[open] > summary .chapter-toggle { transform: rotate(45deg); }
.chapter-disclosure-body { padding: 0 14px 14px; }
.topic-disclosure { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.topic-disclosure > summary { list-style: none; display: grid; grid-template-columns: 42px 1fr auto; align-items: start; gap: 12px; padding: 20px; cursor: pointer; }
.topic-disclosure > summary::-webkit-details-marker { display: none; }
.topic-disclosure > summary .topic-disclosure-title { min-width: 0; }
.topic-disclosure > summary h3 { margin: 3px 0 2px; }
.topic-disclosure > summary .topic-toggle { color: var(--green); font-size: 18px; }
.topic-disclosure[open] > summary .topic-toggle { transform: rotate(45deg); }
.topic-disclosure-body { padding: 0 20px 20px 74px; }
.topic-disclosure-body .content-share-button,
.lesson .content-share-button { margin-top: 12px; }
.content-share-button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dfe8e2; border-radius: 999px; padding: 8px 11px; color: #557164; background: #f8fbf9; font-size: 11px; font-weight: 700; cursor: pointer; }
.content-share-button:hover { border-color: #bfd4c7; background: #eff7f2; }
.rich-content-display h2, .lesson-content h2 { margin: 24px 0 10px; color: #344f42; font-family: var(--font-display); font-size: 20px; }
.rich-content-display h3, .lesson-content h3 { margin: 20px 0 8px; color: #3d594b; font-family: var(--font-display); font-size: 16px; }
.content-attribution { margin: -4px 0 12px; color: #71847a; font-size: 11px; line-height: 1.5; }
.content-attribution strong { color: #3c6b53; font-weight: 700; }
.content-affiliation { color: #89958e; }
.rich-content-display p, .lesson-content p { line-height: 1.8; }
.rich-content-display ul, .rich-content-display ol, .lesson-content ul, .lesson-content ol { padding-left: 24px; line-height: 1.8; }
.rich-content-display img, .lesson-content img { display: block; max-width: 100%; height: auto; margin: 16px auto; border-radius: 10px; }
.rich-content-display img[data-align="left"], .lesson-content img[data-align="left"] { margin-left: 0; margin-right: auto; }
.rich-content-display img[data-align="right"], .lesson-content img[data-align="right"] { margin-left: auto; margin-right: 0; }
.rich-content-display img[width], .lesson-content img[width] { max-width: 100%; }
.rich-content-display pre, .lesson-content pre, .rich-content pre { margin: 16px 0; padding: 15px 17px; border: 1px solid #dce7df; border-radius: 9px; background: #202c27; color: #edf7f1; overflow-x: auto; white-space: pre; }
.rich-content-display code, .lesson-content code, .rich-content code { border-radius: 4px; background: #eef4ef; color: #315c48; }
.rich-content-display p code, .lesson-content p code, .rich-content p code { padding: 2px 5px; }
.rich-content-display pre code, .lesson-content pre code, .rich-content pre code { padding: 0; background: transparent; color: inherit; }
.rich-content-display .rich-table, .lesson-content .rich-table, .rich-content .rich-table { width: 100%; margin: 16px 0; border-collapse: collapse; }
.rich-table th, .rich-table td { border: 1px solid #dfe7e2; padding: 9px 11px; text-align: left; }
.rich-table th { background: #edf5ef; color: #456556; }
.rich-content-display blockquote, .lesson-content blockquote, .rich-content blockquote { margin: 16px 0; padding: 12px 16px; border-left: 4px solid #86b99a; background: #f5f9f6; }
.rich-content .rich-table, .rich-content-display .rich-table, .lesson-content .rich-table { display: block; max-width: 100%; overflow-x: auto; }
.academy-animation { margin: 18px 0; padding: 18px 20px; border: 1px solid #dfece3; border-radius: 12px; color: #456251; background: linear-gradient(120deg, #eff8f1, #fff8e9); }
.academy-animation[data-animation="float"] { animation: academy-float 4s ease-in-out infinite; }
.academy-animation[data-animation="pulse"] { animation: academy-pulse 2.8s ease-in-out infinite; }
.academy-animation strong { display: block; margin-bottom: 5px; color: #2f725b; }
.academy-animation p { margin: 0; }
@keyframes academy-float { 50% { transform: translateY(-4px); } }
@keyframes academy-pulse { 50% { box-shadow: 0 8px 26px rgba(67,145,104,.14); } }
.rich-editor { overflow: hidden; border: 1px solid #dfe8e2; border-radius: 9px; background: #fff; }
.rich-toolbar { padding: 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; border-bottom: 1px solid #edf1ed; background: #f8faf8; }
.rich-toolbar button { min-height: 32px; padding: 0 9px; border: 1px solid #e1e9e3; border-radius: 6px; color: #526b5e; background: #fff; cursor: pointer; font: inherit; font-size: 10px; }
.toolbar-divider { width: 1px; height: 22px; margin: 0 2px; background: #dde8e1; }
.rich-toolbar button:hover { border-color: #9dcbb0; color: #26734f; }
.rich-toolbar button:disabled { opacity: .55; cursor: wait; }
.rich-content { min-height: 250px; padding: 16px; color: #52645a; outline: none; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.rich-content:focus { box-shadow: inset 0 0 0 2px rgba(76,166,126,.13); }
.rich-content h2 { color: #344f42; font-family: var(--font-display); font-size: 20px; }
.rich-content img { max-width: 100%; height: auto; border-radius: 8px; }
.editor-help { margin: 0; padding: 8px 12px; color: #849088; background: #f8faf8; font-size: 10px; line-height: 1.5; }
.advanced-content { padding: 12px; border: 1px solid #e7ece8; border-radius: 8px; background: #fafcfb; }
.advanced-content summary { color: #61756a; cursor: pointer; font-size: 11px; font-weight: 700; }
.advanced-content label { display: block; margin-top: 12px; }
.advanced-content textarea { width: 100%; }
.generated-illustration { margin: 18px 0 10px; padding: 14px; border: 1px solid #e8eee9; border-radius: 11px; background: #fbfcfa; }
.generated-illustration figcaption { margin-bottom: 8px; color: #657b70; font-size: 10px; font-weight: 700; }
.generated-diagram { display: block; width: 100%; max-height: 190px; overflow: visible; }
.diagram-arrow { stroke-dasharray: 8 6; animation: diagram-flow 1.7s linear infinite; }
.diagram-node { transform-box: fill-box; transform-origin: center; animation: diagram-pulse 3s ease-in-out infinite; }
.diagram-node:nth-child(3n) { animation-delay: .35s; }
@keyframes diagram-flow { to { stroke-dashoffset: -28; } }
@keyframes diagram-pulse { 50% { transform: scale(1.045); } }
.locked-card { max-width: 640px; margin: 30px auto; padding: 51px 9%; text-align: center; border-radius: 20px; background: linear-gradient(130deg, #ecf7ef, #f8f5e9); }
.lock-icon { width: 48px; height: 48px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 15px; color: var(--green); background: white; font-size: 26px; }
.locked-card h1 { margin: 12px 0; font-family: var(--font-display); font-size: 36px; line-height: 1.2; letter-spacing: -1.2px; }
.locked-card p { margin: 0 auto 21px; max-width: 450px; color: #728078; font-size: 13px; }

.auth-wrap { width: min(520px, calc(100% - 36px)); min-height: 65vh; margin: 38px auto 78px; }
.auth-wrap .back-link { margin-left: 5px; }
.auth-card { padding: 34px clamp(23px, 7vw, 48px); border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 15px 45px rgba(34,65,48,.045); }
.auth-symbol { width: 43px; height: 43px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 14px; color: var(--green); background: #eaf5ee; font-size: 22px; }
.auth-card h1 { margin: 8px 0 7px; font-family: var(--font-display); font-size: 29px; letter-spacing: -1px; }
.auth-card > p { margin-bottom: 22px; color: #75827b; font-size: 13px; }
.stack-form { display: grid; gap: 9px; }
.stack-form label { margin-top: 5px; color: #495c53; font-size: 11px; font-weight: 700; }
.stack-form input, .stack-form textarea, .stack-form select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dfe8e2; border-radius: 7px; outline: none; background: #fff; color: var(--ink); font-size: 12px; }
.stack-form textarea { resize: vertical; line-height: 1.65; }
.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus { border-color: #69af91; box-shadow: 0 0 0 3px rgba(76,166,126,.12); }
.stack-form input::placeholder, .stack-form textarea::placeholder { color: #aab4ae; }
.stack-form .button { margin-top: 11px; }
.auth-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid #edf1ed; color: #929e97; font-size: 10px; }
.form-footnote { margin: 15px 0 0; color: var(--muted); text-align: center; font-size: 11px; }.form-footnote a { color: var(--green); font-weight: 700; text-decoration: underline; }
.integration-note { padding: 14px 15px; display: grid; gap: 4px; border: 1px solid #e8e2ca; border-radius: 9px; color: #756741; background: #fcf8ea; font-size: 11px; }
.integration-note strong { color: #675a36; }

.admin-wrap { width: min(1140px, calc(100% - 48px)); margin: 45px auto 90px; }
.admin-heading { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.admin-heading h1 { font-size: 39px; }
.admin-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.workflow-course { order: 1; }
.workflow-chapter { order: 2; }
.workflow-topic { order: 3; }
.workflow-lesson { order: 4; }
.workflow-assign { order: 5; }
.admin-panel, .admin-overview { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.panel-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.panel-number { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #448467; background: #eaf4ed; font-size: 11px; font-weight: 700; }
.panel-heading h2 { margin: 1px 0 2px; font-family: var(--font-display); font-size: 16px; letter-spacing: -.4px; }
.panel-heading p { margin: 0; color: #85918a; font-size: 10px; }
.admin-panel .stack-form { gap: 7px; }
.admin-panel .stack-form label { font-size: 10px; }
.admin-panel .stack-form input, .admin-panel .stack-form select, .admin-panel .stack-form textarea { font-size: 11px; }
.admin-panel .stack-form .button { justify-self: start; min-height: 40px; margin-top: 7px; }
.label-hint { float: right; color: #99a59e; font-size: 9px; font-weight: 400; }
.checkbox-label { display: flex; align-items: center; gap: 8px; color: #65756e !important; font-weight: 500 !important; }
.checkbox-label input { width: 15px; min-height: 15px; margin: 0; accent-color: var(--green); }
.admin-panel-wide { grid-column: 1 / -1; }
.lesson-form { grid-template-columns: 1fr 1fr; column-gap: 16px !important; }
.lesson-form > * { grid-column: auto; }
.lesson-form label[for="lesson-content"], .lesson-form label[for="edit-lesson-content"], .lesson-form label[for="edit-lesson-illustrations"], .lesson-form textarea, .lesson-form .editor-hint, .lesson-form .button { grid-column: 1 / -1; }
.lesson-form .rich-editor, .lesson-form .advanced-content, .lesson-form > .admin-hint, .lesson-form [data-content-mode] { grid-column: 1 / -1; }
.lesson-form .editor-hint { display: flex; justify-content: space-between; color: #929d96; font-size: 9px; }
.admin-hint { padding: 13px; border-radius: 8px; color: #79867f; background: #f5f8f5; font-size: 11px; }
.generation-panel { max-width: 820px; margin: 24px auto; }
.generation-privacy { padding: 12px 14px; border-radius: 8px; color: #776b45; background: #fcf8ea; font-size: 10px; }
.generation-status { margin: 18px 0; }
.lesson-library { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lesson-library table { min-width: 980px; }
.lesson-library td:first-child { font-weight: 600; }
.admin-overview { margin-top: 16px; }
.overview-grid { margin: 15px 0 23px; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.overview-grid div { padding: 12px; display: flex; flex-direction: column; border-radius: 9px; background: #f5f8f5; }
.overview-grid strong { font-family: var(--font-display); font-size: 21px; }.overview-grid span { color: #849088; font-size: 10px; }
.content-table h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
th, td { padding: 10px; border-bottom: 1px solid #edf1ed; }
th { color: #839087; font-size: 9px; letter-spacing: .5px; text-transform: uppercase; }
.admin-guide { max-width: 930px; }
.admin-guide > .admin-panel { margin-top: 16px; }
.guide-flow { max-width: 760px; margin: 0 auto; display: grid; justify-items: center; gap: 9px; }
.guide-flow-card { width: min(100%, 590px); padding: 14px 17px; display: flex; align-items: flex-start; gap: 13px; border: 1px solid #e3ebe5; border-radius: 11px; background: #fbfdfb; }
.guide-flow-card h3 { margin: 0 0 3px; color: #314d40; font-family: var(--font-display); font-size: 13px; }
.guide-flow-card p { margin: 0; color: #75847b; font-size: 11px; line-height: 1.55; }
.guide-flow-number { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #397c60; background: #e9f4ed; font-size: 10px; font-weight: 800; }
.guide-flow-highlight { border-color: #cfe7d8; background: linear-gradient(110deg, #f1f8f2, #fffaf0); }
.guide-flow-arrow { height: 22px; color: #82a895; font-size: 18px; line-height: 1; }
.guide-flow-branches { width: min(100%, 760px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-list { margin: 0; padding-left: 22px; color: #586b60; font-size: 12px; line-height: 1.8; }
.guide-list li { padding: 3px 0 3px 4px; }
.guide-list strong { color: #385647; }
.guide-note { margin: 14px 0 0; color: #748278; font-size: 11px; }
.guide-example { margin-top: 16px; padding: 15px 17px; display: grid; gap: 5px; border-left: 3px solid #8fc3a2; border-radius: 7px; color: #5c7063; background: #f5f9f5; font-size: 11px; }
.guide-example strong { margin-bottom: 3px; color: #385647; }
.admin-guide .button { margin-top: 17px; }
.contributor-form { max-width: 720px; }
.contributor-disclosure { margin: 0 0 16px; padding: 15px 18px; display: grid; gap: 4px; border: 1px solid #e8dfc7; border-radius: 10px; color: #746b4c; background: #fcf8ec; font-size: 11px; }
.contributor-disclosure strong { color: #665c38; }
.contributor-list h3 { margin: 17px 0 8px; color: #3e594b; font-family: var(--font-display); font-size: 13px; }
.contributor-affiliation { display: block; color: #849088; font-size: 10px; }
.contributor-studio .admin-grid { margin: 16px 0; align-items: start; }
.contributor-studio .rich-editor { grid-column: 1 / -1; }
.order-table { min-width: 580px; }
.curriculum-order-table { min-width: 780px; }
.curriculum-detail { display: block; margin-top: 3px; color: #849088; font-size: 10px; }
.inline-order-form { display: flex; align-items: center; gap: 7px; min-width: 145px; }
.inline-order-form input { width: 76px; min-height: 36px; padding: 7px 9px; border: 1px solid #dfe8e2; border-radius: 7px; color: var(--ink); font-size: 11px; }
.inline-order-form input:focus { border-color: #69af91; outline: 0; box-shadow: 0 0 0 3px rgba(76,166,126,.12); }
.order-save-button { min-height: 34px; padding: 0 11px; font-size: 10px; }
.admin-overview > .admin-hint { margin-top: 16px; }
.connect-lesson-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid #edf1ed; }

@media (max-width: 850px) {
    .hero { min-height: 475px; padding: 45px 5%; }
    .hero-art { min-height: 345px; }
    .molecule-art { width: 115%; max-width: none; }
    .art-wash { width: 280px; height: 280px; }
    .label-one { left: -9px; }.label-two { right: -9px; bottom: 54px; }
    .stats-row { gap: 20px; }
    .stats-note { display: none; }
    .course-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .nav-wrap { width: calc(100% - 32px); min-height: 66px; flex-wrap: wrap; gap: 8px; }
    .brand { font-size: 16px; }.brand-mark { width: 31px; height: 31px; }
    .menu-toggle { display: block; }
    .nav-links { display: none; width: 100%; padding: 8px 0 15px; flex-wrap: wrap; gap: 15px 22px; }
    .nav-links.is-open { display: flex; }
    .nav-links a, .nav-member, .nav-link-button { font-size: 12px; }
    .hero { width: calc(100% - 24px); margin-top: 15px; padding: 37px 25px 20px; grid-template-columns: 1fr; border-radius: 21px; }
    .hero h1 { margin-top: 16px; font-size: clamp(40px, 12vw, 54px); letter-spacing: -2.5px; }
    .hero-lede { max-width: 420px; font-size: 13px; }
    .hero-proof { margin-top: 23px; }
    .hero-art { min-height: 300px; margin: 2px -10px 0; }
    .molecule-art { width: min(100%, 430px); }
    .art-wash { width: 270px; height: 270px; }
    .art-label { font-size: 9px; }.label-one { top: 30px; left: 0; }.label-two { right: 0; bottom: 48px; }
    .art-caption { bottom: 0; font-size: 9px; }
    .stats-row { width: calc(100% - 45px); min-height: 84px; justify-content: space-between; gap: 11px; }
    .stats-row strong { font-size: 17px; }.stats-row span { max-width: 70px; font-size: 9px; line-height: 1.3; }
    .courses-section { width: calc(100% - 32px); margin: 53px auto 58px; }
    .section-heading { margin-bottom: 19px; }.section-heading h2 { font-size: 29px; }.section-heading p { max-width: 340px; font-size: 11px; }.course-arrows { display: none; }
    .course-grid { grid-template-columns: 1fr; gap: 11px; }
    .course-card { min-height: 205px; padding: 19px; }
    .join-banner { width: calc(100% - 32px); min-height: 280px; margin-bottom: 50px; padding: 29px 25px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 20px; }
    .join-banner h2 { font-size: 28px; }.join-banner p { max-width: 300px; line-height: 1.7; }.join-decoration { right: -15px; top: -12px; font-size: 175px; }.join-banner .button { min-height: 43px; }
    .site-footer { padding: 21px 20px; flex-wrap: wrap; justify-content: space-between; gap: 9px 15px; }.site-footer p { order: 2; width: 100%; }.site-footer > span { font-size: 9px; }
    .page-wrap { width: calc(100% - 30px); margin-top: 24px; }
    .detail-hero { padding: 31px 23px; }.detail-hero h1 { font-size: 36px; }.detail-hero > p { font-size: 12px; }
    .topic-block { padding: 19px 15px; grid-template-columns: 34px 1fr; gap: 12px; }.topic-number { width: 32px; height: 32px; }.topic-main h2, .topic-main h3 { font-size: 19px; }.objectives { padding: 14px; }
    .locked-card { padding: 39px 23px; }.locked-card h1 { font-size: 30px; }
    .auth-wrap { margin-top: 23px; }.auth-card { padding: 28px 23px; }
    .admin-wrap { width: calc(100% - 30px); margin: 28px auto 60px; }
    .admin-heading { align-items: flex-start; }.admin-heading h1 { font-size: 29px; }.admin-heading p { max-width: 330px; font-size: 11px; }.admin-heading > form .button { min-height: 39px; padding: 0 12px; font-size: 11px; }
    .admin-grid { grid-template-columns: 1fr; gap: 12px; }.admin-panel, .admin-overview { padding: 17px; }.admin-panel-wide { grid-column: auto; }
    .lesson-form { grid-template-columns: 1fr; }.lesson-form > * { grid-column: 1 !important; }
    .rich-toolbar { gap: 4px; }.rich-toolbar button { min-height: 34px; padding: 0 8px; }.rich-content { min-height: 220px; padding: 13px; }
    .guide-flow-branches { grid-template-columns: 1fr; }
    .overview-grid { grid-template-columns: repeat(2,1fr); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
