:root {scroll-behavior:smooth}
.cbutton{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 21px;min-height:46px;border:1px solid var(--brand);border-radius:10px;background:var(--brand);color:#fff;font-weight:650;font-size:14px;line-height:1.4;text-align:center}
.cbutton:hover{background:var(--brand-strong);border-color:var(--brand-strong)}
.cbutton.secondary{background:#fff;color:var(--brand);border-color:#c8d9f0}.cbutton.secondary:hover{background:#f0f5fe}.cbutton.compact{min-height:38px;padding:9px 17px;font-size:13px}.cbutton:disabled{opacity:.55;cursor:wait}
.clink{background:none;border:0;color:var(--brand);font:inherit;cursor:pointer}.clink.danger{color:#b12c37}.text-link{color:var(--brand);font-size:14px;font-weight:600}
.cta-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.muted{color:var(--muted);font-size:13px;line-height:1.7}.pill{display:inline-flex;align-items:center;background:#edf3fd;border-radius:7px;color:#23539a;padding:5px 9px;font-size:11px;font-weight:600;white-space:nowrap}.pill.green{background:#e8f6ef;color:#167647}
.landing{max-width:1200px;margin:auto;padding:0 32px}.landing-nav{height:96px;display:flex;align-items:center;justify-content:space-between;gap:20px}.landing-nav .brand{padding:0}.landing-nav nav{display:flex;align-items:center;gap:28px;font-size:13px}
.landing-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:72px;align-items:center;min-height:540px;padding:55px 0 64px}.landing-hero h1{font-size:clamp(36px,4.3vw,58px);letter-spacing:-.055em;line-height:1.24;margin:22px 0}.hero-copy{font-size:16px;line-height:1.85;color:var(--muted);margin:0 0 28px}.hero-points{display:flex;gap:24px;margin-top:28px;font-size:12px;color:var(--muted)}.hero-points span:before{content:'✓';margin-right:8px;color:#287755}
.lesson-preview{border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(8,38,90,.12);overflow:hidden;transform:rotate(2deg)}.preview-cover{position:relative;aspect-ratio:16/9;overflow:hidden}.preview-cover img{width:100%;height:100%;object-fit:cover}.preview-cover span{position:absolute;bottom:14px;left:16px;background:rgba(0,0,0,.6);color:#fff;border-radius:6px;padding:6px 10px;font-size:11px}.preview-sentence{padding:25px 28px}.preview-sentence small{font-size:10px;letter-spacing:.12em;color:var(--brand)}.preview-sentence p{font-size:25px;font-weight:700;margin:17px 0 7px;letter-spacing:-.025em}.preview-sentence>span{font-size:13px;color:var(--muted)}.preview-wave{color:#7e9fd4;letter-spacing:3px;font-size:20px;margin-top:20px}
.landing-section{padding:52px 0}.section-heading{margin-bottom:28px}.section-heading h2{font-size:30px;letter-spacing:-.03em;margin:12px 0}.section-heading>p:last-child{font-size:14px;color:var(--muted);line-height:1.8}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.feature-grid article{border-top:2px solid #b6ccee;padding:24px 12px 0 0}.feature-grid b{color:var(--brand);font-size:12px;letter-spacing:.08em}.feature-grid h3{margin:15px 0 9px;font-size:19px}.feature-grid p{font-size:14px;line-height:1.8;color:var(--muted)}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.product-card{display:block;position:relative;border:1px solid #d8e4f7;background:#fff;border-radius:16px;padding:26px;transition:box-shadow .15s,border-color .15s}.product-card:hover{box-shadow:var(--shadow);border-color:#94b5e6}.product-card.featured{background:linear-gradient(135deg,#eaf2ff,#fff 90%)}.product-top{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.product-card h3{font-size:21px;line-height:1.4;margin:21px 0 10px}.product-card small{color:var(--muted);font-size:12px}.product-card p{font-size:13px;color:var(--muted);line-height:1.8;min-height:47px;margin-bottom:20px}.coming-soon{display:flex;gap:20px;flex-wrap:wrap;padding:22px 26px;margin-top:18px;border-radius:14px;border:1px dashed #c8d6e8;color:var(--muted);font-size:13px}
.start-panel{display:flex;align-items:center;justify-content:space-between;gap:28px;background:#edf3ff;padding:32px;border:1px solid var(--line);border-radius:20px;margin:40px 0 60px}.start-panel h2{font-size:26px;margin:10px 0}.start-panel p{line-height:1.9;font-size:13px;color:var(--muted)}.start-panel .cbutton{flex:none}.landing-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.public-catalog{max-width:1180px;padding:40px 30px 80px;margin:auto}.public-catalog>h1{font-size:36px}.public-catalog>p{color:var(--muted);line-height:1.8;margin-bottom:30px}.product-detail{max-width:820px}.product-detail h2{font-size:30px}.product-detail p{line-height:1.9;color:var(--muted)}.tag-row{display:flex;gap:8px;flex-wrap:wrap}.product-detail .cta-row{margin-top:30px}
.commerce-page{width:100%;max-width:1380px;margin:0 auto;padding:32px 34px 80px}.page-heading{margin-bottom:26px}.page-heading h1{font-size:30px;margin:10px 0}.page-heading>p:last-child{color:var(--muted);font-size:14px;line-height:1.8}.cbox{border:1px solid var(--line);background:#fff;border-radius:16px;padding:26px;margin-bottom:22px}.cbox h2{font-size:20px;margin:0 0 20px}.cbox h3{font-size:17px;margin:24px 0 16px}.cbox p{line-height:1.8}.major-tabs{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:18px}.empty-owned{text-align:center;padding:70px 20px;border:1px solid var(--line);background:#fff;border-radius:20px}.empty-owned>span{font-size:42px;color:#6993cc}.empty-owned h2{font-size:23px}.empty-owned p{font-size:14px;color:var(--muted)}.empty-owned .cta-row{justify-content:center;margin-top:25px}
.redeem-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.cform{display:grid;gap:16px}.cform label{display:grid;gap:8px;font-size:13px;font-weight:600;min-width:0}.cform input,.cform select,.cform textarea{font:inherit;color:var(--text);padding:11px 12px;border:1px solid #cbdaf0;border-radius:8px;width:100%;min-height:43px;background:#fff}.cform input:focus,.cform select:focus,.cform textarea:focus{outline:2px solid #a4c3ee;outline-offset:1px}.cform .check-label{display:flex;align-items:center;gap:9px}.cform input[type=checkbox]{width:17px;min-height:17px;accent-color:var(--brand)}.cform [role=status]{font-size:13px;color:#a33840;margin:0}.cform button{justify-self:start}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-action{display:flex;align-items:end}.wide{grid-column:1/-1}.promise{border:1px solid #cbdcf3;border-radius:12px;padding:20px;background:#f5f8ff;margin:24px 0}.promise h3{margin:15px 0}.promise p{font-size:13px;line-height:1.8;color:var(--muted)}
.grant-row{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line)}.grant-row:last-child{border:0}.grant-row strong{font-size:14px}.grant-row small{display:block;font-size:11px;color:var(--muted);line-height:1.7;margin-top:6px}.grant-row>div{flex:1;min-width:0}.admin-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px}.manage-list{display:grid;gap:7px;max-height:380px;overflow:auto;margin-bottom:20px}.manage-list button{display:flex;flex-direction:column;gap:6px;text-align:left;background:#f6f8fd;border:1px solid transparent;padding:11px;border-radius:8px;color:var(--text);font-size:13px}.manage-list button:hover{border-color:#acc6eb}.manage-list small{font-size:11px;color:var(--muted)}.table-scroll{overflow:auto}.ctable{border-collapse:collapse;width:100%;font-size:12px;text-align:left}.ctable th{background:#f4f7fc;color:var(--muted);font-weight:500;white-space:nowrap}.ctable td,.ctable th{padding:13px 12px;border-bottom:1px solid var(--line);line-height:1.6}.ctable td:first-child{min-width:110px}.ctable .clink{text-align:left;max-width:220px;overflow-wrap:anywhere}.batch-row{display:flex;align-items:center;gap:20px;justify-content:space-between;padding:20px 0;border-bottom:1px solid var(--line)}.batch-row:last-child{border-bottom:0}.batch-row:hover strong{color:var(--brand)}.batch-row strong{font-size:15px}.batch-row small{display:block;color:var(--muted);font-size:12px;margin-top:8px}.batch-counts{display:flex;gap:20px;flex:none;color:var(--muted);font-size:12px}.batch-counts b{color:var(--text);margin-left:4px}.batch-summary{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.audit-list{font-size:12px;color:var(--muted);line-height:1.8;max-height:330px;overflow:auto}.audit-list>div{padding:10px 0;border-bottom:1px solid var(--line)}.audit-list small{display:block;overflow-wrap:anywhere}.user-commerce{margin-top:24px}.account-page{width:100%;max-width:1200px;margin-left:auto;margin-right:auto}.account-card{width:100%}.user-commerce .cform{margin:25px 0}
@media(max-width:1050px){.landing-hero{gap:35px}.landing-hero h1{font-size:40px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.redeem-layout{grid-template-columns:1fr}.batch-row{align-items:start;flex-direction:column}.commerce-page{padding:26px 24px 60px}}
@media(max-width:700px){.landing{padding:0 20px}.landing-nav{height:80px}.landing-nav nav{gap:14px}.landing-nav nav>a:first-child{display:none}.landing-hero{grid-template-columns:1fr;padding:30px 0 25px;gap:45px}.landing-hero h1{font-size:39px}.landing-hero .eyebrow{font-size:10px;letter-spacing:.05em}.hero-copy{font-size:14px}.lesson-preview{transform:none}.landing-section{padding:32px 0}.section-heading h2{font-size:26px}.feature-grid,.product-grid{grid-template-columns:1fr}.feature-grid{gap:12px}.feature-grid article{padding-top:18px}.feature-grid p{margin-bottom:12px}.start-panel{display:block;padding:26px;margin:25px 0}.start-panel .cbutton{margin-top:16px}.landing-footer{flex-wrap:wrap;padding:22px 0}.landing-footer>span{display:none}.commerce-page{padding:23px 16px 60px}.page-heading h1{font-size:27px}.cbox{padding:20px}.form-grid,.admin-columns{grid-template-columns:1fr}.grant-row{flex-wrap:wrap}.grant-row>div{flex-basis:60%}.batch-counts{gap:13px}.toolbar{flex-direction:column;align-items:start}.public-catalog{padding:28px 20px}.public-catalog>h1{font-size:29px}.ctable td,.ctable th{padding:11px 9px}.empty-owned{padding:45px 20px}.hero-points{gap:20px}.cbutton{padding:12px 17px}}

.commerce-dialog{width:calc(100% - 40px);max-width:500px;border:1px solid var(--line);border-radius:16px;padding:28px;color:var(--text);background:#fff;box-shadow:var(--shadow)}.commerce-dialog::backdrop{background:rgba(8,30,60,.35);backdrop-filter:blur(3px)}.commerce-dialog h2{font-size:19px;line-height:1.6;margin:0 0 8px}

.admin-course-search{display:grid;gap:8px;max-width:420px;margin:20px 0;font-size:13px;color:var(--muted)}.admin-course-search input{width:100%;border:1px solid var(--line);border-radius:9px;padding:12px;color:var(--text);font:inherit;background:#fff}.admin-course-pagination{display:flex;align-items:center;justify-content:flex-end;gap:15px;margin-top:20px;font-size:13px}.admin-course-pagination .cbutton:disabled{cursor:default}.major-tabs span{margin-left:5px;opacity:.75}

@media(max-width:1100px){.shell{grid-template-columns:minmax(0,1fr)}.sidebar{min-width:0}.sidebar>.nav{min-width:0;flex:1}.sidebar>.brand{flex:none}.search{min-width:0}}

.admin-course-search{display:grid;gap:8px;max-width:460px;margin:18px 0;font-size:13px;color:var(--muted)}.admin-course-search input{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:9px;font:inherit;color:var(--text);background:#fff}.admin-course-pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:20px;font-size:13px}.admin-course-pagination .cbutton:disabled{cursor:default}.major-tabs span{opacity:.75;margin-left:5px}
.product-price{display:block;color:#176b48;font-size:24px;font-weight:700;margin:18px 0}.product-price small{font-size:12px;font-weight:400;color:var(--muted)}.wechat-button{background:#168a53;color:#fff}.wechat-button:hover{background:#107240}.payment-checkout{max-width:660px;margin-left:auto;margin-right:auto}.payment-amount{font-size:38px;font-weight:700;color:#16714a;margin:22px 0}.payment-qr{text-align:center;padding:20px;border:1px solid var(--line);border-radius:14px;background:#f8fbf9;margin:20px 0}.payment-qr img{display:block;margin:0 auto;width:240px;max-width:100%;height:auto;aspect-ratio:1;background:#fff}.payment-qr p{margin:16px 0 8px}.payment-qr small{color:var(--muted)}.payment-result{line-height:1.8;padding:15px 0}.payment-checkout .muted{overflow-wrap:anywhere}

.product-pricing{margin:18px 0}.product-pricing .product-price{margin:0}.test-price-note{font-size:13px;color:var(--muted);line-height:1.8;margin:8px 0}.test-price-note b{color:#176b48}.payment-checkout>.test-price-note{margin-top:-12px;margin-bottom:22px}

/* Real, bounded course excerpts in the sales catalogue and details. */
.product-card-heading{display:block;color:inherit;text-decoration:none}
.product-card-heading:hover h3{color:#0a4fb7}
.product-card-heading:focus-visible,.course-preview-play:focus-visible{outline:3px solid #78a7ed;outline-offset:4px;border-radius:8px}
.course-preview{margin:20px 0;min-width:0}
.course-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;font-size:12px;color:#63758e}
.course-preview-heading strong{color:#0a4fb7;font-size:13px}
.course-preview-frame{position:relative;background:#06152c;border-radius:12px;overflow:hidden;isolation:isolate}
.course-preview-frame video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
.course-preview-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid #ffffff9c;background:#ffffffed;color:#08265a;padding:11px 17px;border-radius:999px;cursor:pointer;white-space:nowrap;font-family:inherit;font-weight:600;font-size:14px;box-shadow:0 3px 16px #08265a26}
.course-preview-play[hidden]{display:none}
.course-preview-caption{background:#f4f7fc;border-radius:8px;padding:10px 12px;margin-top:10px;min-height:60px}
.product-card .course-preview-caption p,.product-detail .course-preview-caption p{min-height:0;margin:0;line-height:1.6;font-size:13px;color:#62758e;overflow-wrap:anywhere}
.product-card .course-preview-caption p[lang=ko],.product-detail .course-preview-caption p[lang=ko]{color:#183c6b;font-size:14px;font-weight:500;margin-bottom:3px}
.product-card .course-preview-source,.product-detail .course-preview-source{min-height:0;margin:7px 0 0;font-size:12px;line-height:1.5;color:#74849a}
.product-card .course-preview-status,.product-detail .course-preview-status{min-height:0;margin:0;font-size:12px;color:#b52d36}
.course-preview-status:empty{display:none}
.product-detail .course-preview{margin:24px 0 28px;max-width:720px}
@media(max-width:700px){.product-card{padding:20px}.course-preview-heading{font-size:11px}.product-detail .course-preview{margin-top:20px}.product-detail h2{font-size:25px}}

/* Short sales cards: consistent video sizes and a single compact footer. */
.product-card{padding:20px;display:flex;flex-direction:column;gap:14px}
.product-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;min-height:53px}
.product-card-header>div{min-width:0}.product-card-header .pill{white-space:nowrap;flex-shrink:0;padding:5px 8px;font-size:11px}
.product-card h3{margin:0;font-size:20px;line-height:1.4}
.product-card .product-card-meta{min-height:0;margin:5px 0 0;font-size:12px;line-height:1.5;color:#687b95}
.product-card .course-preview{margin:0}.product-card .course-preview-frame{border-radius:10px}
.product-card .product-card-summary{margin:0;min-height:44px;line-height:1.7;font-size:13px;color:#586e8c}
.product-card-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:13px;border-top:1px solid #dce7f2}
.product-card-price{display:grid;gap:4px}.product-card-price strong{font-size:24px;line-height:1.2;color:#17845e}.product-card-price small{font-size:12px;color:#586e8c}
.product-card-link{white-space:nowrap;color:#0a4fb7;font-size:13px;font-weight:600;padding:9px 12px;border-radius:8px;background:#e8f0fc}
.product-card-link:hover{background:#dce9fc}.product-card-link:focus-visible{outline:3px solid #78a7ed;outline-offset:3px}
.product-detail .course-preview{margin-top:22px}.product-detail .course-preview-caption{min-height:0}
@media(max-width:700px){.product-card{padding:18px;gap:12px}.product-card h3{font-size:20px}.product-card-header{min-height:50px}.product-card .product-card-summary{min-height:0}.product-card-price strong{font-size:23px}}

.difficulty-stars{font-size:12px;white-space:nowrap;letter-spacing:1px}.product-card-header{height:auto;padding:0;position:static;border:0;background:transparent}
.product-card .course-preview-status:empty{display:none}

.preview-word{border-radius:3px;transition:background-color .08s,color .08s}.preview-word.active{background:#ffe69b;color:#08265a;box-shadow:0 0 0 2px #ffe69b}
.product-card .course-preview-caption{min-height:94px;padding:9px 10px}.product-card .course-preview-caption p[lang=ko]{font-size:13px;line-height:1.65}.product-card .course-preview-caption p{font-size:12px;line-height:1.6}.product-card .course-preview{margin:0}.product-card .product-card-summary{min-height:44px}
@media(max-width:700px){.product-card .course-preview-caption{min-height:0}}

.redeemed-user strong,.redeemed-user small,.user-redemption-history td small{display:block}.redeemed-user small,.user-redemption-history td small{color:var(--muted);font-size:11px;margin-top:4px}.user-redemption-history{max-height:420px;overflow:auto;margin-bottom:28px}.user-redemption-history code{white-space:nowrap}

.all-courses-offer { margin-top: 24px; }
.all-courses-offer .payment-amount { margin: 24px 0 16px; }
.all-courses-offer .payment-amount small { color: var(--muted); font-size: 14px; font-weight: 500; }
.course-browse { margin-top: 16px; }
.course-browse h2 { font-size: 20px; margin: 0 0 14px; }

.sales-home .home-course-enrollment, .course-enrollment {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px;
  padding: 18px 22px; border: 1px solid #d8e4f7; border-radius: 12px; background: #f3f7ff;
}
.sales-home .home-course-enrollment { margin: 22px 0 20px; }
.sales-home .home-course-enrollment strong, .course-enrollment strong { color: #183f74; font-size: 17px; }
.sales-home .home-course-enrollment p, .course-enrollment p { margin: 5px 0 0; color: #526579; font-size: 13px; line-height: 1.65; }
.sales-home .home-course-enrollment .home-button { min-height: 42px; padding: 10px 16px; }
.course-enrollment { margin: 18px 0; }
.course-enrollment .cta-row { margin: 0; }
.library-enrollment { margin-top: 0; }
.course-browse-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(170px,100%),1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.course-browse-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px;
  padding: 8px 11px; border: 1px solid #d8e4f7; border-radius: 8px; color: #244d80;
}
.course-browse-list a:hover { background: #f3f7ff; }
.course-browse-list small { font-size: 18px; }
@media (max-width: 640px) {
  .sales-home .home-course-enrollment, .course-enrollment { padding: 14px; }
}
